Application Development and Automation 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: 
Read only

BAPI_CONTRACT_CREATEFROMDATA Contract START/END date not updated

Former Member
0 Likes
1,808

Hi All,

I am creating contract using BAPI “<b>BAPI_CONTRACT_CREATEFROMDATA</b>” for VA41. It contract created fine, but only issue is It’s not populating <b>“CONTRACT START” and CONTRACT END”</b> dates on header. Do anyone know which field I should be filling in “CONTRACT_HEADER_IN” to update this fields.

Thanks in advance.

Regards,

Tim

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,312

Have you tried these?

CT_VALID_F

CT_VALID_T

Regards,

Rich Heilman

8 REPLIES 8
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,313

Have you tried these?

CT_VALID_F

CT_VALID_T

Regards,

Rich Heilman

Read only

0 Likes
1,312

Make sure that you are also filling the corresponding fields in the CONTRACT_HEADER_INX structure with "X".

REgards,

RIch Heilman

Read only

0 Likes
1,312

Hi Rich,

YES! I did try CT_VALID_F and CT_VALID_T update along with CONTRACT_HEADER_INX. It updates date fields in table “VBAK”, but contract start/end dates are in table VEDA. Thanks for your reply.

Regards,

Tim

Read only

0 Likes
1,312

Hi, please try filling CONTRACT_DATA_IN and CONTRACT_DATA_INX. If you look at the structures, they do resemble fields in the VEDA table.

Remember, these are TABLES parameters, so you will need to APPEND to the table before passing to the BAPI.

Regards,

RIch Heilman

Read only

0 Likes
1,312

Rich,

Thanks I did go thru "CONTRACT_DATA_IN" fields, but i am unable to find any contract related date. Thanks for that.

Regards,

Tim

Read only

0 Likes
1,312

How about fields CON_ST_DAT and CON_EN_DAT of the CONTRACT_DATA_IN parameter?

REgards,

Rich Heilman

Read only

0 Likes
1,312

Hi Rich,

Apologies! YES you are right CONTRACT_DATA_IN/CONTRACT_DATA_INX need to be filled. I got mixed up with CONTRACT_ITEMS_IN. Thanks a lot it works fine.

Regards,

Tim

Read only

0 Likes
1,312

Cool. Glad it worked out for ya.

Regards,

Rich Heilman