Application Development 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: 

BAPI_CONTRACT_CREATE Issue

Former Member
0 Kudos

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

13 REPLIES 13

former_member195402
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

Hi Praveen,

in ITEM_CONDX you have certainly only set 'X' to those fields? Just want to get sure.

Regards,

Klaus


0 Kudos

Hi Klaus,

Yes I did.. I checked it one more time.

Regards,

Praveen

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

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

pavanm592
Contributor
0 Kudos

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

Former Member
0 Kudos

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