Top Banner

of 17

BWOpen Hub Extraction Enhancement

Apr 04, 2018

Download

Documents

santhosh945
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 7/31/2019 BWOpen Hub Extraction Enhancement

    1/17

    Open Hub Extraction Enhancement: UsingLiteral Filename & Path

    Applies To:

    SAP BW Open Hub Extraction

    Article Summary

    With the help of Open Hub, data can be extracted from BW and saved onto the application serveror local drive. Currently, standard functionality does not allow you to specify the filename or path.This article provides a step by step solution to enhance current BW Open Hub functionality to usecustom filename & path specified by the user.

    By: Catherine FanTitle: Technical ConsultantDate: 08 Mar 2005

    Table of Content

    Open Hub Extraction Enhancement: Using Literal Filename & Path...............................................1Applies To: ................................................................................................................................ .... 1

    Article Summary ............................................................................................................................ . 1Table of Content............................................................................................................................. 1Overview: How It Works ................................................................................................................. . 2

    Step By Step Instruction ..................................................................................................... ..... ....... 2Disclaimer & Liability Notice ..................................................................................................... ..... 17

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    2/17

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    3/17

    6. Enter Package & Transport information7. Click the Superclass Button8. Enter CL_RSB_FILE_GENERAL9. Enter the following properties:

    Message Class: RSBOType group/Object type:RSRSBORSUDT

    10. Accept the remaining defaults11. Click the Methods tab

    12. Place the cursor on Method: IF_RSB_OPEN_HUB_TARGET~RECEIVE_DATA

    13. Click the Redefine button

    14. Highlight the existing commented code & follow the menu path:

    Utilities More Utilities Upload/Download Upload

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    4/17

    15. Navigate to the previously unzipped folder and select the corresponding file name with thesame Method name

    16. Save and Activate themethod

    17. Return to the Methods tab by using the green arrow back button and repeat steps 12through 16 for the remaining methods

    IF_RSB_OPEN_HUB_TARGET~RECEIVE_DATA

    IF_RSB_OPEN_HUB_TARGET~BEFORE_EXTRACTION

    IF_RSB_OPEN_HUB_TARGET~AFTER_EXTRACTION

    IF_RSB_OPEN_HUB_TARGET~REQUEST_ROLLBACK

    CHANGE_PARMS

    CONVERT_INT_TO_EXT

    GET_INFO

    SAVE

    CHECK

    GENERATE_CONTROL_FILE_CSV

    GENERATE_CONTROL_FILE_ASC

    DETERMINE_FILENAME

    18. Return to the Methods tab to customize the last method in your custom class19. Click the create Constructor button20. Save the changes and click the Code button21. Repeat steps 14 through 16

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    5/17

    Task 2: Steps for Modifying Methods of a Standard Class to Use the Newly Created FileManagement Class

    (a) Method: CHANGE_PARMS

    1. Go to transaction SE242. Display Object Type: CL_RSB_DEST3. Click the Display button

    4. Double click on the method: CHANGE_PARMS

    5. Click the Change Button

    Access key required to make changes

    6. Place the cursor on line 17 and Click the Insert button

    7. Insert the following code in the allocated space:

    * clear filepath when change between server vs. local file

    clear l_s_vdest-path.

    8. Place the cursor on line 27 and Click the Replace button

    9. Insert the following code in the allocated space:

    * replaced for open hub extraction literal filename/path

    data: l_r_file_applsrv type ref to zcl_rsb_file_literal.

    10. Save and activate the changes

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    6/17

    Sample Code: CL_RSB_DEST

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    7/17

    (b) Method: GET_OBJECT_REF_INT

    1. Double click on the method: GET_OBJECT_REF_INT

    2. Click the Change Button3. Place the cursor on line 19 and click the Replace button4. Insert the following code in the allocated space:

    * replaced for open hub extraction logical filename/path

    data: l_r_file_applsrv type ref to zcl_rsb_file_literal.

    5. Save and activate the changes

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    8/17

    Sample Code: GET_OBJECT_REF_INT

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    9/17

    Task 3: Steps for Enhancing the User Interface Properties

    (a) Modifying a Method from a Standard Class to Control the User Interface

    1. Go to transaction SE242. Display Object Type: CL_RSB_SPOK_VIEW

    3. Double click on the method SET_SCREEN_2001

    4. Click the Change button5. Place the cursor on line 101 and highlight the 4 lines of code below.6. Click the Delete button

    7. Follow the same steps to delete the corresponding endif statement

    8. Place the cursor at the following example and click the Replace button

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    10/17

    9. Insert the following code in the allocated space:

    * replaced for open hub extraction literal filename/path

    e_input = rsboh_c_on.

    10. Save and activate the changes

    Sample code: SET_SCREEN_2001

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    11/17

    (b) Modifying Screen Attributes

    1 Create a Domain1.1 Go to Transaction SE111.2 Select the Domain radio button1.3 Enter RSPATH

    1.4 Click the copy button1.5 Enter the Copy To field

    1.6 Select the Definition tab1.7 Set the Lowercase option by clicking the Lowercase checkbox1.8 Save and activate

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    12/17

    2 Create a Data type2.1 Go to Transaction SE112.2 Select the Data type radio button2.3 Enter RSBPATH2.4 Click the copy button2.5 Enter the Copy To field

    2.6 Select the Data Type tab2.7 Enter the newly created domain

    2.8 Save and activate

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    13/17

    3 Assign the custom Component type3.1 Go to Transaction SE113.2 Select the Data type radio button3.3 Enter RSBODYN20013.4 Click the change button

    Access key required to make changes

    3.5 Enter the newly created data element in the component type for component: PATH3.6 Save and activate

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    14/17

    3.7 Confirm screen properties changes3.7.1 Go to transaction SE803.7.2 Enter RSBO_GUI under function group3.7.3 Expand screens and double click on screen 20013.7.4 Click the Element list tab3.7.5 Click the Special attr. Tab3.7.6 Scroll down to RSBODYN2001-PATH type I/O3.7.7 Confirm that Upper/Lower case entry is checked (If setting not applied, screen

    properties may need to be re-activated - access key would be needed for R3TRFUGR RSBO_GUI)

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    15/17

    3.8 Turn off upper case formatting on file path when using search help

    3.8.1 While still in screen 2001, Go to the Flow Logic tab

    3.8.2 Double click on module f4_path_2001

    3.8.3 Double click on method f4_path

    3.8.4 Double click on method dynp_values_read_2001

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    16/17

    3.8.5 Use the replace button to replace the exporting parameter rs_c_true withrs_c_false in the call function DYNP_VALUES_READ in order to turn off theupper case option

  • 7/31/2019 BWOpen Hub Extraction Enhancement

    17/17

    Disclaimer & Liability Notice

    This document may discuss sample coding, which does not include official interfaces and thereforeis not supported. Changes made based on this information are not supported and can beoverwritten during an upgrade.

    SAP will not be held liable for any damages caused by using or misusing of the code and methodssuggested here, and anyone using these methods, is doing it under his/her own responsibility.

    SAP offers no guarantees and assumes no responsibility or liability of any type with respect to thecontent of the technical article, including any liability resulting from incompatibility between thecontent of the technical article and the materials and services offered by SAP. You agree that youwill not hold SAP responsible or liable with respect to the content of the Technical Article or seek todo so.

    Copyright 2004 SAP AG, Inc. All Rights Reserved. SAP, mySAP, mySAP.com, xApps, xApp,and other SAP products and services mentioned herein as well as their respective logos aretrademarks or registered trademarks of SAP AG in Germany and in several other countries allover the world. All other product, service names, trademarks and registered trademarksmentioned are the trademarks of their respective owners.