‎2009 May 11 2:46 PM
Hi,
I am trying to update global product master using "BAPI_PRDSRVAPS_SAVEMULTI2". I successfully tested the BAPI by executing it through SE37 and passing following parameters:
1. LOGICAL_SYSTEM = <Techinal Name>
2. COMMIT_CONTROL = 'A'
3. PRODUCT_HEAD = <Relevant Details>
4. PRODUCT_HEAD_X = <Relevant Details>
On execution, the product was created as expected.
However, the BAPI failed to create the product when called through an ABAP program passing the exacly same parameters as specified above. Following messages are returned in the 'Return' structure:
1. Type: E, ID: /SAPAPO/MAT, Number: 033, Message: Base unit of measure PAC does not exist (Product D100126CCF has not been created)
2. Type: I, ID: /SAPAPO/CIF, Number: 003, Message: Application log (ext. no. IWVNWI7A81XX0000MAWAJ0) for obj. APO_BAPI and sub-obj. PRD_APS has been logged
I have tried using COMMIT_CONTROL A,S,E and blank. Nothing worked.
SCM Version 5.00.
Please advice.
Regards,
Anoop Sahu
‎2009 May 12 7:02 AM
Hi,
The problem has been resolved. The problem occured as the unit passed was 'Commercial Unit' and not Unit (Maintained in Tcode CUNI). However, surprisingly when the BAPI is executed from SE37 and the commercial unit passed, it authomatticaly selects the relevant Unit and creates the product. This does not happen when the BAPI is called through ABAP program.
Thanks & Regards,
Anoop Sahu
Edited by: Anoop Sahu on May 12, 2009 11:32 AM