Application Development 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: 

Getting purchase orders from other system and recreate them

fernando_martin
Participant
0 Kudos

Hello,

the client wants an application that should get the Purchase Orders from an external SAP system, import this data, and with some changes recreate them in the new system.

I know there is a BAPI that could be used for this:

Call  'BAPI_PO_GETDETAIL' DESTINATION  'oldsystem' ...

The question is following: how could I know the PO numbers I need to input to that BAPI? as the POs are in another system, is there a RFC or other way to retrieve data (PO numbers) from EKKO table?

Thanks for your input.

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos

Hi Martin

You can first use RFC_READ_TABLE to fetch PO numbers based on date or whatever you like and then you can use get details etc

Nabheet

2 REPLIES 2

nabheetscn
Active Contributor
0 Kudos

Hi Martin

You can first use RFC_READ_TABLE to fetch PO numbers based on date or whatever you like and then you can use get details etc

Nabheet

0 Kudos

Hi Nabheet.

many thanks for your reply.