Additional Blogs by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
Former Member
0 Kudos
This blog describes how to use the EDW interfaces for Master Data update published in the SAP NetWeaver Developer Guide by using a example. The link to the guide can be found in my blog SAP NetWeaver BI Interfaces - Overview. (SAP NetWeaver BI Interfaces - Overview II (SAP NetWeaver BI Interfaces - Overview II)) The used example can update/insert a key and text of the master data stored in InfoObject 0VERSION. The sample will be easy to use from outside. A table of the texts can be easily updated. The returned message can be easily interpreted. The open interfaces used in this blog are the function modules: *BAPI_IOBJ_GETDETAIL
*and *RSNDI_MD_TEXTS_UPDATE* h5. Step by Step guide *Create a Function Group* In this example I have created the Function Groups ZGEN_WEBSERVICE in the ABAP Developer Workbench (Transaction SE80) [http://help.sap.com/saphelp_nw04s/helpdata/en/d1/801ef5454211d189710000e8322d00/content.htm | http://help.sap.com/saphelp_nw04s/helpdata/en/d1/801ef5454211d189710000e8322d00/content.htm] 0.1. *Create a reuseable INCLUDE 'ZGEN_TEXT'* that can be reused for any other InfoObject. Please find the coding of the Include ZGEN_TEXT below. This INCLUDE is NOT part of the Function Group ZGEN_WEBSERVICE. 0.1. *Create a remote enabled function module* Z_TXT_SET_0VERSION The function module must be remote enabled. This can be flaged in the 'Attributes' view in the function module maintenance. " There are no Importing paramters necessary. The Exporting paramter is 'message' with type 'BAPI_MSG'. This is the message that will be sent back to the caller if the update of the text was succesful or not. " The Tables parameter defines the structure of the text table that will be updated. The text table of an InfoObject can be found in the InfoObject maintenance Master data/texts view in transaction RSD1. " In this case it is the table  /BI0/TVERSION. There are no Exceptions defined. The source code of the function module is very simple since the include mentioned in 2. is very generic. " Source code of function module Z_TXT_SET_0VERSION. FUNCTION Z_TXT_SET_0VERSION. *"-------------------------------------------------------------------
*"*"Local Interface:
*" EXPORTING *" VALUE(message) TYPE BAPI_MSG
*" TABLES *" texts STRUCTURE */BI0/TVERSION* *"-------------------------------------------------------------------
data: l_iobj_name type RSIOBJNM value '*0VERSION'*.
include zgen_text.
ENDFUNCTION.

The WebService can be generated using the created the created function module.
Goto Utilieties in the Function Module maintenance view --> More Utilities --> Create WebService --> From the Function Module

6 Comments