10-09-2007 6:31 AM
Hi Experts.
We are successfully using BAPI_SALESORDER_CREATEFROMDAT2 to create sales order.
Only problem is that the contract start and end date do not get updated.
We are passing that in ORDER_HEADER_in-CT_VALID_F and ORDER_HEADER_IN-CT_VALID_T.
After debugging, I found that there is one more table SALES_CONTRACT_IN in SD_SALESDOCUMENT_CREATE. Updating the values in that table works.
But the problem is this table is not available in BAPI_SALESORDER_CREATEFROMDAT2. How to update Contract start and end dates from this FM ?
I could not find anything in the search of this forums. So I guess this is not an issue and I am doing something wrong. Can someone suggest to me please?
Thanks in adv.
Aishi
10-09-2007 7:12 AM
10-09-2007 7:19 AM
after using ORDER_HEADER_in-CT_VALID_F ,ORDER_HEADER_IN-CT_VALID_T.
eneble the x structure also
ORDER_HEADER_INX-CT_VALID_F = 'X'.
ORDER_HEADER_INX-CT_VALID_T = 'X'.
REWARD POINTS IF HELPFUL...........
10-09-2007 7:44 AM
I have already tried that Ramyav.
But that also doesn't help.
I put
ORDER_HEADER_INX-CT_VALID_F = 'X'.
ORDER_HEADER_INX-CT_VALID_T = 'X'.
ORDER_HEADER_INX-UPDATEFLAG = 'I'. Tried with 'U' also. No luck!
Has anyone used these fields before in creating a sales order via this BAPI?
10-09-2007 7:51 AM
check weather u have did any validation for the date fields in flatfile......or date field in selection screen.....might if those are not in that range ...it wont upload.......
and one more thing check u r system date format.....if that wont match with u r flat file date format then also it wont upload......so if that is not in the same format try to change u r flat file date format.....or after getting u r date in to the internal table use edit mask..........
reward points if helpful...........
10-09-2007 8:08 AM
They are all correct.
Date is being passed in YYYYMMDD format.
In debugging i saw, it gets transferred to the VBAK-GUEBG and GUEEN fields. But then after that it never updates. Don't know why!
06-17-2014 6:57 AM