Académique Documents
Professionnel Documents
Culture Documents
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 server or 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 use custom filename & path specified by the user. By: Catherine Fan Title: Technical Consultant Date: 08 Mar 2005
Table of Content
Open Hub Extraction Enhancement: Using Literal Filename & Path...............................................1 Applies To: ....................................................................................................................................1 Article Summary.............................................................................................................................1 Table of Content.............................................................................................................................1 Overview: How It Works..................................................................................................................2 Step By Step Instruction.................................................................................................................2 Disclaimer & Liability Notice..........................................................................................................17
6. 7. 8. 9.
Enter Package & Transport information Click the Superclass Button Enter CL_RSB_FILE_GENERAL Enter the following properties:
Message Class: RSBO Type group/Object type: RS RSBO RSUDT 10. Accept the remaining defaults 11. 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
15. Navigate to the previously unzipped folder and select the corresponding file name with the same Method name 16. Save and Activate the method
17. Return to the Methods tab by using the green arrow back button and repeat steps 12 through 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. 19. 20. 21. Return to the Methods tab to customize the last method in your custom class Click the create Constructor button Save the changes and click the Code button Repeat steps 14 through 16
Task 2: Steps for Modifying Methods of a Standard Class to Use the Newly Created File Management Class (a) Method: CHANGE_PARMS 1. Go to transaction SE24 2. Display Object Type: CL_RSB_DEST 3. Click the Display button 4. Double click on the method: CHANGE_PARMS
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
2. Click the Change Button 3. Place the cursor on line 19 and click the Replace button 4. 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
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 SE24 2. Display Object Type: CL_RSB_SPOK_VIEW
4. Click the Change button 5. 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
9. Insert the following code in the allocated space: * replaced for open hub extraction literal filename/path e_input = rsboh_c_on.
(b)
Modifying Screen Attributes 1 Create a Domain 1.1 Go to Transaction SE11 1.2 Select the Domain radio button 1.3 Enter RSPATH 1.4 Click the copy button 1.5 Enter the Copy To field
Select the Definition tab Set the Lowercase option by clicking the Lowercase checkbox Save and activate
2 Create a Data type 2.1 Go to Transaction SE11 2.2 Select the Data type radio button 2.3 Enter RSBPATH 2.4 Click the copy button 2.5 Enter the Copy To field
Select the Data Type tab Enter the newly created domain Save and activate
3 Assign the custom Component type 3.1 Go to Transaction SE11 3.2 Select the Data type radio button 3.3 Enter RSBODYN2001 3.4 Click the change button Access key required to make changes
3.5 3.6
Enter the newly created data element in the component type for component: PATH Save and activate
3.7 Confirm screen properties changes 3.7.1 Go to transaction SE80 3.7.2 Enter RSBO_GUI under function group 3.7.3 Expand screens and double click on screen 2001 3.7.4 Click the Element list tab 3.7.5 Click the Special attr. Tab 3.7.6 Scroll down to RSBODYN2001-PATH type I/O 3.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 R3TR FUGR RSBO_GUI)
3.8
Turn off upper case formatting on file path when using search help
3.8.1
3.8.2 3.8.3
3.8.4
3.8.5
Use the replace button to replace the exporting parameter rs_c_true with rs_c_false in the call function DYNP_VALUES_READ in order to turn off the upper case option