Skip to Content
0
Former Member
May 14, 2008 at 01:42 PM

BAPI_PO_CHANGE for PO

46 Views

Hi,

I have a conditon type zabc which set as "A" (Percentage) in the customising.

I am trying to update the Value and currecny in to the PO using theBAPI BAPI_PO_CHANGE .

CALL FUNCTION 'BAPI_PO_CHANGE'

EXPORTING

PURCHASEORDER = P_EBELN

TESTRUN = ' '

TABLES

RETURN = I_RETURN

POITEM = I_POITEM

POITEMX = I_POITEMX

POCOND = I_POCIND

POCONDX = I_POCINDX.

For this condtion type i am using the below statement to update the value and Currency.

I_POCIND-CURRENCY = 'INR'

I_POCIND-CALCTYPCON = 'B'.

I_POCIND-CHANGE_ID = 'U'.

When i try to run the BAPI , the value gets updated but not the currecny. Stil it shows "%" sign.

But in the customisation if it change it fixed value and run bapi it does not update the PO at all.

can any body please help me in this regard.

with rgds

Ranjtih Singh