Skip to Content
author's profile photo Former Member
Former Member

Inbound IDOC Purchase Order Processing through PI

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Apr 16, 2010 at 07:37 PM

    Please post it in ABAP or Functional forums.

    VJ

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 22, 2011 at 10:30 AM

    Hi

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

    Thanx in advance.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.