‎2012 Feb 24 10:03 AM
Hi ,
I'm trying to transfer data from ECC to SRM for creating bid document ( Function : BBP_PD_BID_CREATE ). After transferring the data I want to get the data back to ECC ( I need bid document number to write on delivery document's field ). What's the best way to do this ?
Regards.
‎2012 Feb 24 12:43 PM
Hi,
Try using the BAPI BBP_BID_TRANSFERED_PO_CREATE.
Regards,
Aravind.
‎2012 Feb 24 12:50 PM
Can you explain steps? How can i call this function from ECC and send back again ?
‎2012 Feb 24 1:10 PM
Hi
You can use CALL FUNCTION "BAPI NAME" DESTINATION.....(RFC DESTINATION). You should have RFC connection between 2 systems in SM59
You can also refer below link for the above
http://help.sap.com/abapdocu_70/en/ABAPCALL_FUNCTION_DESTINATION-.htm
‎2012 Feb 24 1:12 PM
By the way , I don't want to create PO . I need to create bid document in SRM with ECC data. After i create bid document i want to send document number to ECC again.
‎2012 Feb 24 1:42 PM
Hi vinit ,
I've written code to call 'BBP_PD_BID_CREATE' in ECC. But ECC and SRM have different structures. So i am not sure how i can define data to send SRM.
Here is my code in ECC program
CALL FUNCTION 'BBP_PD_BID_CREATE' IN BACKGROUND TASK
DESTINATION 'XXX'
IMPORTING
I_REF_GUID =
I_BAPIMODE =
I_PARK =
I_SAVE =
I_TESTRUN =
I_HEADER = I_HEADER ?
IT_ATTACH =
IT_DYN_ATTR =
IT_CONDITIONS =
EXPORTING
E_HEADER = E_HEADER ?
ET_ATTACH =
ET_DYN_ATTR =
ET_CONDITIONS =
TABLES
I_ITEM =
I_PARTNER =
I_LONGTEXT =
I_SDLN =
I_ORGDATA =
I_HCF =
I_ICF =
I_TOL =
I_WEIGHT =
IT_EXCHRATE =
E_ITEM =
E_PARTNER =
E_LONGTEXT =
E_SDLN =
E_ORGDATA =
E_HCF =
E_ICF =
‎2012 Feb 24 2:25 PM
Hi If your structures are different then create wrapper Z remote enabled function module to match up with the structure.
‎2012 Feb 26 11:36 AM
‎2012 Feb 26 2:56 PM
Hi,
Sorry I was confunsed... What do you mean by structure does not match? You can directly call the BAPI in SRM from ECC if there exits RFC connection.
RFC connection should be tye 3 ABAP connection.
If name of your RFC destination is "SRM_DEST" then you will call BAPI in SRM from ECC as Follows
Code in ECC
CALL FUNCTION "BAPI NAME" DESTINATION "SRM_TEST"