08-12-2008 3:51 AM
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
08-12-2008 4:31 AM
08-12-2008 6:11 AM
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
08-12-2008 8:12 AM
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
08-12-2008 8:40 AM
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.
08-12-2008 11:30 AM
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
08-12-2008 3:52 PM
Hi Anbalagan,
I think you are explaining the Outbound scenario but mine is inbound scenario.
Any how thanks for u r info.
Regards,
John
09-04-2008 8:11 AM
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
09-04-2008 12:16 PM
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
09-04-2008 1:45 PM
Hi John,
Thanks for your quick answer. I will probably do the same (create a custom FM).
Regards
Nordine
09-16-2008 9:21 PM
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
11-28-2008 6:09 AM
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.
07-14-2009 7:45 PM
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
09-04-2008 8:16 AM
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
09-04-2008 8:20 AM
Hi
I think you are explaining the Outbound scenario but John' scenario is inbound scenario.
Regards,
01-16-2016 6:09 PM
If your using IDOC type : PORDCR1 the net price condition should be populated with CHANGE_ID 'U" instead of "I"