Skip to Content
0
Oct 24, 2013 at 10:09 AM

PO item conditions not updating through BAPI_PO_CREATE1

552 Views

Hello all,

i am using bapi_po_create1 to upload service orders.

Every thing is populating fine but the pricing conditions are not updating in the po. below is the code written.

WA_COND-ITM_NUMBER = LV_ITEM.

WA_COND-COND_TYPE = 'RA01'.

WA_COND-COND_ST_NO = 010.

WA_COND-COND_COUNT = 01.

WA_COND-COND_VALUE = LV_DISC.

WA_COND-CALCTYPCON = 'A'.

WA_COND-CURRENCY = '%'.

WA_COND-CURRENCY_ISO = '%'.

WA_COND-CHANGE_ID = 'U'.

APPEND WA_COND TO GT_COND.

CLEAR WA_COND.

WA_CONDX-ITM_NUMBER = LV_ITEM.

WA_COND-COND_ST_NO = 010.

WA_CONDX-COND_TYPE = 'X'.

WA_CONDX-COND_VALUE = 'X'.

WA_CONDX-COND_ST_NO = 'X'.

WA_CONDX-COND_COUNT = 'X'.

WA_COND-CALCTYPCON = 'X'.

* WA_CONDX-CONDORIGIN = 'X'.

* WA_CONDX-CONDCLASS = 'X'.

WA_CONDX-CURRENCY = 'X'.

WA_CONDX-CURRENCY_ISO = 'X'.

* WA_CONDX-COND_UNIT = 'X'.

* WA_CONDX-COND_P_UNT = 'X'.

WA_CONDX-CHANGE_ID = 'X'.

APPEND WA_CONDX TO GT_CONDX.

CLEAR WA_CONDX.

I searched in the other links in which few links end up with note number to be applied.

Is it really necessary to apply a note or any corrections to above code.

Thanks in advance

Ujwal