Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Transfer Data from ECC to SRM

Former Member
0 Likes
957

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.

8 REPLIES 8
Read only

Former Member
0 Likes
861

Hi,

Try using the BAPI BBP_BID_TRANSFERED_PO_CREATE.

Regards,

Aravind.

Read only

0 Likes
861

Can you explain steps? How can i call this function from ECC and send back again ?

Read only

0 Likes
861

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

Read only

0 Likes
861

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.

Read only

0 Likes
861

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 =

Read only

0 Likes
861

Hi If your structures are different then create wrapper Z remote enabled function module to match up with the structure.

Read only

0 Likes
861

I didn't understand what i have to do. Can you explain?

Read only

0 Likes
861

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"