cancel
Showing results for 
Search instead for 
Did you mean: 

Inbound IDOC Purchase Order Processing through PI

Former Member
0 Kudos

Hi SAP Experts,

In my project: SAPECC will receive the inbound IDOC PORDCR05 from PI, and I have to create the Purchase Order in SAP ECC from this inbound idoc. What I did so far:

1. In the Partner Profile for PI (Partner type = 'LS'), I define Inbound Parameter:

Message Type: PORDCR

Process Code: BAPI (Function Module: BAPI_IDOC_INPUT1 - in debug mode, I see it call another 'IDOC_INPUT_PORDCR')

2. Distribution Model:

Sender: PI

Receiver: SAPECC

BAPI: PurchaseOrder:CreateFromData

3. In WE19, I create inbound IDOC and test, but get the IDOC error 51: 'Partne role cannot be processed by BAPI BAPI_PO_CREATE'

in Diagnosis for this message: 'Only the following roles are possible for BAPI BAPI_PO_CREATE:

IP - invoicing party

GS - goods supplier

4. In Partner Profile for PI - Inbound Parameters: PORDCR- Partner Role: I see just only two options: EL and LS.

Please advise:

1. Do i use the right Process Code in this scenario?

2. Do i need to create the new Process Code, Z Message Type and Z Function Module?

3. How can I solve this IDOC error?

Thanks for your help,

Elaine

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

I am facing the same error. Can you please tell me how did you resolve that??

Thanx in advance.

Former Member
0 Kudos

Finally I am able to create a PO with

Message type : PORDCR

Basic Idoc Type : PORDCR03

Process Code : BAPI

Segment : E1BPEKKOC

DOC_TYPE , CO_CODE , PURCH_ORG , PUR_GROUP , VENDOR.

Segment : E1BPEKPOC

PUR_MAT , MAT_GRP , PLANT , TAX_CODE.

Segment : E1BPEKET

DELIV_DATE , QUANTITY

adrian_mejido
Contributor
0 Kudos

How do you passed the date of orders05 to PORDCR?

VijayKonam
Active Contributor
0 Kudos

Please post it in ABAP or Functional forums.

VJ