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_SALESORDER_CREATEFROMDAT2 contract start date

Former Member
0 Kudos

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

6 REPLIES 6

Former Member
0 Kudos

Any help friends?

Former Member
0 Kudos

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...........

0 Kudos

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?

0 Kudos

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...........

0 Kudos

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!

0 Kudos

Hi

Did you get the solution?

please share with us.