Skip to Content
0
Former Member
Nov 09, 2011 at 02:43 PM

Adding a manual condition when using BAPI_PO_CREATE1

709 Views

Hi

I am using a this bapi to create a PO.

I have the bapi posting successfully and creating a PO using the data I provide.

Based on the config, the document is created with all the relevant pricing conditions.

As part of this process I need to add a manual pricing condition. This is part of the scema and everything and if carried out manually, it works.

However when I populate the information in the bapi in POCOND and mark the corresponding in POCONDX, it does not seem to create this condition

This is the information that I am populating

CONDITION_NO = Blank

ITM_NUMBER = 000001 (This is my PO line Item)

COND_ST_NO = 099 (This is the step number as per the pricing scema)

COND_COUNT = 01

COND_TYPE = ZED0 (Name of Condition)

COND_VALUE = 1

CURRENCY = ZAR

CURRENCY_ISO = ZAR

COND_UNIT = EA

COND_UNIT_ISO = EA

COND_P_UNT = 1 (not sure about this one)

APPLICATIO = M (according to pricing scema)

CONPRICDAT = I put in the the date on which i run the bapi and I have tried leaving this field blank

CALCTYPCON = C (Looked at other conditions so not sure about this one)

CONBASEVAL = 10.00000

CONEXCHRAT = Blank

NUMCONVERT = Blank

DENOMINATO = Blank

CONDTYPE = C (based on table entry on konv when done manually)

STAT_CON = X (this is a statistical condition)

SCALETYPE = Blank

ACCRUALS = Blank

CONINVOLST = Blank

CONDORIGIN = C (based on table entry on konv when done manually)

GROUPCOND = Blank

COND_UPDAT = I tried this with a blank and an 'X', not sure what this field is for

ACCESS_SEQ = 00

CONDCOUNT = 00

CONDCNTRL = C (based on table entry on konv when done manually)

CONDISACTI = Blank (No idea what this field is)

CONDCLASS = B (based on table entry on konv when done manually)

FACTBASVAL = Blank

SCALEBASIN = Blank

SCALBASVAL = 0.000000

UNITMEASUR = Blank

UNITMEASUR_ISO = Blank

CURRENCKEY = Blank

CURRENCKEY_ISO = Blank

CONDINCOMP = Blank

CONDCONFIG = Blank

CONDCHAMAN = Blank

COND_NO = Blank

CHANGE_ID = Blank

VENDOR_NO = Blank

The only thing I have noticed on table konv when this is done manually, is there is a condition category = H. I am not sure where that links with this and if it needs to be populated anywhere.

All the Fields that are blank are not been carried over or maintained POCONDX.

Please help

Thanks

Vinesh