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: 

Sales x Purchase IDocs

RafaelVieira
Active Participant
0 Kudos

Hi experts,

I have an interface running which sends Sales Order Data from SAP to SQL DB (ORDERS05) online.

I received a request to pull out also purchase data from SAP and push it into the same SQL DB, in different tables.

I tried to figure out which IDoc might be used for this purpose and realized that the same IDoc ORDERS05 can be used for both, Sales data and Purchase data.

Can anyone confirm whether this is correct or not? If not, which one is supposed to be used to achieve that for purchasing data?

If this is correct, can anyone give me some light on how I should configure to have both running online and SENDING data to external system?

I still don't imagine Purchase and Sales Order running in the same IDoc.

Is there any field which identifies the business type (Purchase or Sales Order) or, how am I going to differentiate them?

I really appreciate your suggestions.

Thank you.

3 REPLIES 3

RafaelVieira
Active Participant
0 Kudos

Does anyone has any suggestion?

I followed this material:

[http://w w w . saptechnical . com/Tutorials/ALE/AutoIDOCGen/AutomaticIDocGeneration1 . htm]

however, in the step 11, the pop up doesn't show the last option Purchasing Organization, so I cannot complete it. Until there, everything was configured accordingly.

I've also used thread below to guide me through the steps to configure Change Pointers to ORDERS message type of ORDERS05 IDoc. Although it seems to be well configured, when changing a PO in ME22N, no IDocs are NOT being generated.

I appreciate all your help.

Edited by: rvsilvax on Jul 12, 2011 9:33 PM

0 Kudos

Any suggestions?

0 Kudos

I've configured Partner Profiles with:

Partner Type LS

Output Options tab:

Msg Type = ORDERS

Corresponding Rec. Port

Pack Size = 1

Out. Mode = 2 (Transfer Imed.)

IDoc Basic Type = ORDERS05

Message Control tab:

App = EF

Msg type = NEU

Process Code = ME10

Change msg flag = ' '

With the same configs (with different Message Control configs, of course) the Sales Order Outbound IDoc is being sent.

Why does this one for Purchase is not being sent to destination?

Please advice.

POINTS WILL BE AWARDED