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: 

How to pass conditions to BAPI_PO_CREATE1

Former Member
0 Kudos

Hi All,

In my schema, PB00 is a mandatory condition and I have PBXX as manuall condition to override PB00. Now when I create a PO using BAPI_PO_CREATE1 and enter PBXX in POCOND and POCONDX, I don't see PBXX in the created PO, rather I see PB00 which the system picks from condition records maintained. I guess I'm missing some parameters in the BAPI which when maintained, can force PBXX along with PB00 to the PO. Can anyone help me with required entries to achieve this?

Appreciate your help!

Regards,

Rohit

1 ACCEPTED SOLUTION

eduardo_hinojosa
Active Contributor
0 Kudos

Hi Rohit,

Please, see Note 580225 - Purchasing BAPIs: Conditions and pricing.

I hope this helps you

Regards

Eduardo

6 REPLIES 6

madhu_vadlamani
Active Contributor
0 Kudos

Hi,

Please paste your piece of code how you are adding the condition.Is it header level or item level.How you are maintaining it in pricing like manual entry.

Regards,

Madhu.

0 Kudos

Hi Madhu,

I'm using the BAPI in SE37 and I'm passing condition to POCOND and POCONDX.

Thanks!

Rohit

0 Kudos

Hi Rohit,

Is it header level or item level

CONDITION_NO,

ITM_NUMBER,

COND_ST_NO,

COND_COUNT,

COND_TYPE,

COND_VALUE

CURRENCY_ISO.

Pass all these values and check.Just shown this to functional people.I think they need to small changes in pricing.

Regards,

Madhu.

Edited by: madhurao123 on Dec 7, 2011 10:14 AM

0 Kudos

Hi sir


Mpassing valus like this...but no esults


MOVE:'000010'  TO IT_POCOND-ITM_NUMBER,

      '001'    to IT_POCOND-COND_ST_NO ,

      'R000'   TO IT_POCOND-COND_TYPE,

      '20'     TO IT_POCOND-COND_VALUE,

      'U'      TO IT_POCOND-CHANGE_ID.

APPEND IT_POCOND.

MOVE:'00010' TO IT_POCONDX-ITM_NUMBER,

      '000'   TO IT_POCONDX-COND_ST_NO ,

      'X'     TO IT_POCONDX-COND_TYPE,

      'X'     TO IT_POCONDX-COND_VALUE,

      'X'     TO IT_POCONDX-CHANGE_ID..

APPEND IT_POCONDX.


Thanks


eduardo_hinojosa
Active Contributor
0 Kudos

Hi Rohit,

Please, see Note 580225 - Purchasing BAPIs: Conditions and pricing.

I hope this helps you

Regards

Eduardo

Former Member
0 Kudos

Hi Rohit ,

can you create PO manually with condition type PBXX and check the analysis ..which one will get the higher priority ?

regards

Prabhu