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: 

Create PO from RFQ using BAPI_PO_CREATE1 --> Condition problem

Former Member
0 Kudos
574

Hi,

I'm currently trying to create a PO from RFQ using

BAPI_PO_CREATE1.

It creates a valid PO, but without any conditions in header and at the item level.

When I create the PO using ME21N, it automatically generates PB00 and PBXX entries at the header level and a PB00 at the item level.

Do I have to code the conditions manually in the BAPI call? Or is it supposed to be generated automatically?

What am I doing wrong?

1 ACCEPTED SOLUTION

NTeunckens
Active Contributor
0 Kudos
117

As a start, check the BAPI-Documentation as there is mention of filling in the Condition and / or Price tables ...

Please check some of the valuable input in SAP-KBA's and info within the SAP-Community on this as there are a lot of resources.

I feel SAP-KBA 580225 can be useful, as it provides additional Samples and Explanation ...

2 REPLIES 2

NTeunckens
Active Contributor
0 Kudos
118

As a start, check the BAPI-Documentation as there is mention of filling in the Condition and / or Price tables ...

Please check some of the valuable input in SAP-KBA's and info within the SAP-Community on this as there are a lot of resources.

I feel SAP-KBA 580225 can be useful, as it provides additional Samples and Explanation ...

Former Member
0 Kudos
117

Thanks.

Putting an 'A' in POITEM-CALCTYPE added the 'PBXX' automatically, thanks.

I will explore all the possibilities of this field!