04-16-2014 5:40 AM
Hi,
I am facing issue in uploading POs using BAPI_CONTRACT_CREATE.
I am able to create Contract PO. But not Conditions.
My Issue is in creating Conditions for Items. I searched many threads, but no proper answer.
As per BAPI structure, I have passed the Conditions for Items in tables
ITEM_CONDITION & ITEM_CONDITIONX.
ITEM_COND_VALIDITY & ITEM_COND_VALIDITYX with following details
ITEM_CONDITION:
ITEM_ SERIAL_ID CO D COND S S SCA SCA SCALE SCA C COND_VALUE
00010 1 00 PBXX 10.000000000
ITEM_CONDITIONX:
ITEM_ SERIAL_ID CO I S C D C S S S S S S C C
00010 1 00 X X X X
ITEM_COND_VALIDITY:
ITEM_ SERIAL_ID PLAN VALID_FROM VALID_TO
00010 1 1001 15.01.2014 01.01.9999
ITEM_COND_VALIDITYX:
ITEM_ SERIAL_ID I S P V V
00010 1 X X X X X
Kindly help me.
Regards,
G.V.S Praveen Kumar
04-16-2014 5:51 AM
Hi,
can't see currency field is filled in your sample. Please check, if this is mising. in ITEM_CONDITION and ITEM_CONDITIONX.
Regards,
Klaus
04-16-2014 5:59 AM
Hi Klaus,
Thanks for reply. I have tried by giving Currency also. But no result. Conditions not getting created for the particular item.
Regards,
Praveen
04-16-2014 6:16 AM
Hi,
field CHANGE_ID seems to be needed in ITEM_CONDITION.
Maybe COND_UNIT and COND_P_UNIT are also needed in ITEM_CONDITION and ITEM_CONDITIONX.
Regards,
Klaus
04-16-2014 6:51 AM
Hi Klaus,
I have passed CHANGE_ID = 'I' and COND_UNIT = 'EA'. COND_P_UNIT = '1'
in both item_condition and Item_conditionx tables. Still same issue.
regards,
Praveen G.V.S
04-16-2014 7:13 AM
Hi Praveen,
in ITEM_CONDX you have certainly only set 'X' to those fields? Just want to get sure.
Regards,
Klaus
04-16-2014 7:27 AM
04-16-2014 7:59 AM
Hi Praveen,
please check the following SAP notes. Maybe one of them may be useful for your release:
1891921 - BAPI generates incomplete or no master conditions
1361019 - Conditions not created for outline agreements via BAPI
Regards,
Klaus
04-16-2014 10:37 AM
Hi Klaus,
I have implemented the Note 1891921. Still it is not updating. It is updating ONLY PB00 Condition Type even if I give PBXX and FRB1.
Regards,
Praveen
04-16-2014 10:59 AM
Hi,
I found someone had a similar issue, because he forgot to fill the item unit in the ITEM structure. Header and Item were created corrctly, but no item conditions.
Please check this.
Regards,
Klaus
04-16-2014 11:22 AM
Hi Klaus,
Still Not happening. Pls let me know what are the mandatory fields for Item Conditions. So that I will fill the same.
Regards,
Praveen
04-16-2014 11:42 AM
Hi,
if you have filled ITEM and ITEMX with the unit, I have no idea for single fields.
I would suggest to call tcode VA42 and have a look at the Incompletion Log there.
Regards,
Klaus
04-16-2014 6:09 AM
Hi Praveenkumar,
Once check the FM Documentation of BAPI_CONTRACT_CREATE you will find the sample code once check it you can find that there he has used the ITEM_CONDITION and ITEM_CONDITIONX
once try and reply.
Thanks
Pavan
04-16-2014 6:20 AM
Hi Pavan,
I checked the Sample Code.
I am not able to differentiate Serial ID and Condition Count fields. Can you pls let me what will be values for these.
Regards,
Praveen