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: 

Inbound Idoc Create/Change Purchase Order

Former Member
0 Kudos

Hi All,

I have to do a inbound Idoc scenario for create as well as change Purchase Order.

Which is the IDoc type for Create/Change purchase order.

I went through this form found that ORDERS05 can be used but I am not sure this can be used for both create as well change Purchase Order.

If ORDERS05 can be used then which is Process code,Function Module and Message type for both create and change Purchase order.

I also found that IDoc type PORDCR102 can be used for create Purchase order and PORDCH02 can be used for change Purchase order,but i don't want to use two Idoc types.

Please suggest.

Thanks in advance.

Regards,

John

15 REPLIES 15

Former Member
0 Kudos

Hi John,

Have you checked this IDOC type "PORDCR101".

Mohinder

former_member188685
Active Contributor
0 Kudos

You can use the IDOC type ORDERS05,

Process code is BAPI

These Functions will be called in the Background

IDOC_INPUT_PORDCH for change

IDOC_INPUT_PORDCR1 for creation

0 Kudos

Hi vinay,

Thanks for your info.

But which is the qualifier in the IDoc type, based on Create or Change event will be triggered or respective FM will be called.

Like which is the Segment-Feild name in ORDERS05 for which if you donot specify any value, PO will be created and if you specify value then PO will change.

Regards,

John

0 Kudos

when you use BAPI , BAPI_IDOC_INPUT1 will be triggered from Process code.

inside the BAPI function it will call respective functions for create or change message types.

see the table TBDBE for linkage

Process code is BAPI.

for change ..

BAPI_IDOC_INPUT1

PORDCH01

PORDCH

for creation.

BAPI_IDOC_INPUT1

PORDCR01

PORDCR

if you dont want to use them then you have to link ORDERS05 ,PORDCH and BAPI

ORDERS05 ,PORDCR and BAPI , for this you need to maintain EDIMSG and VEDIEDIFCT.

Former Member
0 Kudos

Hi John,

For creating a IDoc for PO, whenever a PO is created/Changed, it has to be configured in Parter Profile(WE20) for a particular Partner in Outbound Paramtrs tab.

Give ORDERS05 in Message Type and select the line & go to Display.

In the screen which appears , choose tab Message Control and give the Process code

ME10 - Creation of PO

ME11 - Changes to PO & check the Change Message.

Give respective Output Message Type & Application(VF) for PO.

Create Output types for a vendor in T.Code MN04, else take help from MM Consultant.

Create a PO & save. Then make some changes in Po & again save.

Now IDoc will be created while saving the Po & IDocs will be created whenver you make changes to PO and saving it.

Hope It helps.

Regards,

Anbalagan

0 Kudos

Hi Anbalagan,

I think you are explaining the Outbound scenario but mine is inbound scenario.

Any how thanks for u r info.

Regards,

John

0 Kudos

Hi John,

I would like to know if you succeed to use message type ORDERS05 to create / change purchase orders.

If yes, any details would be very appreciated.

Thankds in advance for your help

regards

nordine

0 Kudos

Hi Nordine,

No i am not using the Orders05, instead em using PORDCR102 for create as well as change PO, for ths i have created a custom FM.Inside that i have called different BAPI for change as well as to create based on the qualifier in the header field.

Regards,

John

0 Kudos

Hi John,

Thanks for your quick answer. I will probably do the same (create a custom FM).

Regards

Nordine

0 Kudos

All,

Now that everyone has lots of experience using this I have another question. I am using the FM BAPI_IDOC_INPUT1 for inbound purchase order changes. I want to send these error messages to workflow but I'm having difficulty locating what standard task(s) will be called when/if these go into error.

Does anyone know the answer to this?

Thanks,

Corey

0 Kudos

Hi,

I have the same issue, we want to trigger workflow when there is any error occur during idoc processing for purchase order.

Messge type i'm using is PORDCR101.

experts please help.

0 Kudos

Hey John,

Mine is also same scenario as I am getting an IDOC from 4.6C VERSION server to ECC as Inbound IDOC so I need to change the PO in ECC 6.0 so I am using PORDCH and ORDERS05 and process Code BAPI in ecc as it is my inbound sytem

I was trying to re-process through WE19 so I am getting errors like

- Instance of the object type purchase order could not be changed

- Docuement Does not exist.

I am really appreciate your help in this regard.

Thanks

Nishanth

uwe_schieferstein
Active Contributor
0 Kudos

Hello John

For a special business scenario we are creating purchase orders in a given SAP client, send them as ORDERS.ORDERS05 IDocs to SAP-XI which does some mapping and then returns an ORDERS.ORDERS05 IDoc to the same client where it creates the sales order corresponding to the PO.

Regards

Uwe

0 Kudos

Hi

I think you are explaining the Outbound scenario but John' scenario is inbound scenario.

Regards,

Former Member
0 Kudos

If your using IDOC type : PORDCR1 the net price condition should be populated with CHANGE_ID 'U" instead of "I"