Application Development and Automation 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: 
Read only

Create PO from RFQ using BAPI_PO_CREATE1 --> Condition problem

Former Member
0 Likes
1,625

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
Read only

NTeunckens
Active Contributor
0 Likes
1,168

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 ...

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?

2 REPLIES 2
Read only

NTeunckens
Active Contributor
0 Likes
1,169

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 ...

Read only

Former Member
0 Likes
1,168

Thanks.

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

I will explore all the possibilities of this field!