‎2009 Apr 01 6:40 PM
Good afternoon !
I´m working in a project to integrate some legacy system with the ECC 6.0(has already mentioned in my another message regarding classification data for technical objects), and I need to do some activities like, create functional locations and equipments in SAP PM, I have done this creating Z RFC modules that call bapis like BAPI_FUNCLOC_CREATE and BAPI_EQUI_CREATE, but these BAPIs doesn´t fill address data, so, in a first moment, I solved this using BDC, but I would like to solve these needs using standard BAPIs if possible.
To solve the set of technical object address, after some research, I found only the FMs of function group SZA0(ADDR_INSERT, ADDR_NUMBER_GET, etc), but these are not RFC enabled functions, so to use them, is needed to encapsulated in a Z RFC module. Does somebody know if exists some BAPI to do the technical object address set ?
Thank you for your attention,
Wilson
Edited by: Wilson Santos on Apr 1, 2009 7:42 PM
‎2009 Apr 02 2:43 PM
Hi all,
Reading a response for this same question that I posted in another topic, I understood that I didn´t explained my scenario correctly.
I´m using SAP Netweaver XI to integrate a non-SAP system with the SAP ECC 6.0, and I intended to use RFC to communicate between ECC and XI, so, I´m looking for standard BAPIs that can execute what I need. For example, to create a functional location, I wrote a Z remote enabled module, that call BAPI_FUNCLOC_CREATE, and after that, call another Z function that I wrote, that fill the address data using BDC with call transaction, but the project manager ask me to try to use 100% standard code, so, I´m looking for a BAPI to do this work, fill the address of functional location and equipments, so I can call this(or these) standard BAPI(s) from XI.
If somebody knows a BAPI, or some BAPIs that can do this work, please tell me, my environment has no enhancement package installed, it´s SAP ECC 6.0 SR3.
Thank you for your attention, and best regards,
Wilson
‎2009 Apr 02 2:46 PM
Hi Wilson,
try this...
*BAPI to change organization addresses
BAPI_ADDRESSORG_CHANGE
*BAPI to change contact person addresses
BAPI_ADDRESSCONTPART_CHANGE
Regards,
Prabhudas
‎2009 Apr 02 4:34 PM
Hi Prabhu !
Thank you for your response !
I have done some checks and tests but, unfortunatelly these BAPIs appears to be not adequate to work with PM Technical Objects.
I still researching !
Thank you again,
Wilson
‎2009 Apr 02 5:11 PM
you can create an address
in BAPI_FUNCLOC_CREATE in the DATA_GENERAL you have to fill READ_ADRNR
with the addresnumber returnd from the function you created it in ADDR_INSERT
if you want to change an existing adres of a functionale location use ADDR_GET and fill in the adres number you get from BAPI_FUNCLOC_GETDETAIL in the data_general tab READ_ADRNR
an address is a sap wide function and everywhere the same so you won't find specific function to create an adress directly into a functional location. use addr_insert and use the adrnr returned in the specific functions for functional locations and equipments
kind regards
arthur de smidt
Edited by: A. de Smidt on Apr 2, 2009 6:12 PM
‎2009 Apr 02 6:12 PM
Hi Arthur !
Thank you for your message !
I have checked that the attribute READ_ADRNR is read-only, according to SAP Note 333988, so I can´t use this approach.
And there is another problem, the ADDR_* functions are not remote enabled modules, what implies that I must to encapsulate them to be called from XI using RFC.
I still researching !
Thank you again, and best regards !
Wilson
‎2009 Apr 02 6:17 PM
Hi Arthur !
Thank you for your message !
I have checked that the attribute READ_ADRNR is read-only, according to SAP Note 333988, so I can´t use this approach.
And there is another problem, the ADDR_* functions are not remote enabled modules, what implies that I must to encapsulate them to be called from XI using RFC.
I still researching !
Thank you again, and best regards !
Wilson