‎2008 Jan 03 7:35 PM
Hi All,
I am using BAPI 'BAPI_CONTRACT_CREATEFROMDATA' to create sales contract VA41.
I am passing 'CONTRACT_START_DT' and 'CONTRACT_END_DT' in table parameters 'BAPICTR' ....but I couldnt see these values in sales contract after it was created fields are empty.
At the same time AMOUNT field also. I am passing the ammount and when contract was created the filed is empty.
Please suggest if some one used the same BAPI.
***Any updates please...
Thanks in advance,
Deepak.
Edited by: KDeepak on Jan 4, 2008 2:25 AM
‎2008 Jan 03 7:39 PM
Which fields are you using? Did you fill in the corresponding X-structure fields?
‎2008 Jan 03 7:44 PM
Hi Srinivas,
it_cont1-ITM_NUMBER = '10'.
it_cont1-VAL_PER = '06'. "validity period
it_cont1-VAL_PER_UN = 'M'. "unit of validity
it_cont1-ACCEPT_DAT = '20080103'. "agreement acceptance date
it_cont1-CON_ST_DAT = '20080103'. "contract start date
it_cont1-CON_EN_DAT = '20160101'. "contract end date
APPEND it_cont1.
it_cont_in-ITM_NUMBER = '10'.
it_cont_in-UPDATEFLAG = 'I'.
it_cont_in-VAL_PER = 'X'.
it_cont_in-VAL_PER_UN = 'X'.
it_cont_in-ACCEPT_DAT = 'X'.
it_cont_in-CON_ST_DAT = 'X'.
it_cont_in-CON_EN_DAT = 'X'.
append it_cont_in.
These are the above fields are passed to table parameters.
At the same time AMOUNT is also not getting.
it_cond1-ITM_NUMBER = '10'.
it_cond1-COND_TYPE = 'PR00'.
it_cond1-CURRENCY = 'USD'.
it_cond1-CONDVALUE = '89000.00'.
it_cond1-CONBASEVAL = '89000.00'.
APPEND it_cond1.
Please suggest.
Thanks once again,
Deepak.
‎2008 Jan 03 7:54 PM
Hi Deepak
what are the warning messages you are getting in the BAPI Return table
Regards
Madhan Doraikannan
‎2008 Jan 03 7:57 PM
Hi,
Hera are the messages I am getting.
S 233 |SALES_HEADER_IN has been processed successfully <
S 233 |SALES_ITEM_IN has been processed successfully <
S 233 |SALES_CONDITIONS_IN has been processed successfully <
W 555 |The sales document is not yet complete: Edit data < KONVKOM VBUVKOM
Thanks,
Deepak.
Edited by: KDeepak on Jan 4, 2008 1:29 AM