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

Conditions with BAPI_PO_CREATE1

Former Member
0 Likes
968

Hi,

how can I insert and change conditions with this function?

I need a description/ excample, how to fill the structur POCOND and POCONDX.

Everytime I try it, the conditions I insert with structure were overwritten/ignored with the normal price-analyse.

Thanks

Nicole

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
831

hi nicole,

i think u can find it out in function module documentation of BAPI_PO_CREATE1....

rewards if helpful,

regards sagar.

Hi,

how can I insert and change conditions with this function?

I need a description/ excample, how to fill the structur POCOND and POCONDX.

Everytime I try it, the conditions I insert with structure were overwritten/ignored with the normal price-analyse.

Thanks

Nicole

3 REPLIES 3
Read only

Former Member
0 Likes
832

hi nicole,

i think u can find it out in function module documentation of BAPI_PO_CREATE1....

rewards if helpful,

regards sagar.

Read only

0 Likes
831

Hi,

i tried it on this way without solution. :O(

Read only

0 Likes
831

here is the example in xml format.Just pass the values to se37 FM input structures:

<POCOND>

<item>

<CONDITION_NO/>

<ITM_NUMBER>000010</ITM_NUMBER>

<COND_ST_NO>001</COND_ST_NO>

<COND_COUNT>01</COND_COUNT>

<COND_TYPE>ZBTP</COND_TYPE>

<COND_VALUE>130.00</COND_VALUE>

<CURRENCY>EUR</CURRENCY>

<CURRENCY_ISO/>

<COND_UNIT>VST</COND_UNIT>

<COND_UNIT_ISO/>

<COND_P_UNT/>

<APPLICATIO/>

<CONPRICDAT/>

<CALCTYPCON/>

<CONBASEVAL>1</CONBASEVAL>

<CONEXCHRAT/>

<NUMCONVERT/>

<DENOMINATO/>

<CONDTYPE/>

<STAT_CON/>

<SCALETYPE/>

<ACCRUALS/>

<CONINVOLST/>

<CONDORIGIN/>

<GROUPCOND/>

<COND_UPDAT/>

<ACCESS_SEQ/>

<CONDCOUNT/>

<CONDCNTRL/>

<CONDISACTI/>

<CONDCLASS/>

<FACTBASVAL/>

<SCALEBASIN/>

<SCALBASVAL/>

<UNITMEASUR/>

<UNITMEASUR_ISO/>

<CURRENCKEY/>

<CURRENCKEY_ISO/>

<CONDINCOMP/>

<CONDCONFIG/>

<CONDCHAMAN/>

<COND_NO/>

<CHANGE_ID>U</CHANGE_ID>

</item>

</POCOND>

<POCONDX>

<item>

<CONDITION_NO/>

<ITM_NUMBER>000010</ITM_NUMBER>

<COND_ST_NO>001</COND_ST_NO>

<CONDITION_NOX/>

<ITM_NUMBERX/>

<COND_ST_NOX/>

<COND_COUNT>X</COND_COUNT>

<COND_TYPE>X</COND_TYPE>

<COND_VALUE>X</COND_VALUE>

<CURRENCY>X</CURRENCY>

<CURRENCY_ISO/>

<COND_UNIT>X</COND_UNIT>

<COND_UNIT_ISO/>

<COND_P_UNT/>

<APPLICATIO/>

<CONPRICDAT/>

<CALCTYPCON/>

<CONBASEVAL>X</CONBASEVAL>

<CONEXCHRAT/>

<NUMCONVERT/>

<DENOMINATO/>

<CONDTYPE/>

<STAT_CON/>

<SCALETYPE/>

<ACCRUALS/>

<CONINVOLST/>

<CONDORIGIN/>

<GROUPCOND/>

<COND_UPDAT/>

<ACCESS_SEQ/>

<CONDCOUNT/>

<CONDCNTRL/>

<CONDISACTI/>

<CONDCLASS/>

<FACTBASVAL/>

<SCALEBASIN/>

<SCALBASVAL/>

<UNITMEASUR/>

<UNITMEASUR_ISO/>

<CURRENCKEY/>

<CURRENCKEY_ISO/>

<CONDINCOMP/>

<CONDCONFIG/>

<CONDCHAMAN/>

<COND_NO/>

<CHANGE_ID>X</CHANGE_ID>

</item>

</POCONDX>