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: 

Sales Order VEDA ( Contract Start /End date) entries are missed.

jhon_jhon
Explorer
0 Kudos
1,459

Hi ,

I have a requirement to create entries only in VEDA table which were missed during sales order creation , I am having some issues to use sales Order BAPI just to create VEDA Entries.

Could any one come across this requirement , Please let me know best approach.

If anyone worked on SD_VEDA_CREATE , Please let me know.

Thanks,

Jhon

1 ACCEPTED SOLUTION

jhon_jhon
Explorer
0 Kudos
773

Hi Rohit,

I am using SD_VEDA_CREATE * SAVE function modules to fill VEDA table.

Regards

Jhon

4 REPLIES 4

former_member753791
Participant
0 Kudos
773

Hi John,

Check the enhancemente V45W0001.

You should not modify standard table using modify statment....Instead You need to modify runtime internal table (XVEDA, YVEDA). this will automatically will take care of updating VEDA and end of saving order...

try below piece of code..

check gv_cdate not initial.

loop at XVEDA.

gs_veda-venddat = . "date value

xveda-UPDKZ = 'U'.. " Use I- while creating new record & use 'U' while updating existing record

modify xveda.

I hope this helps you

Regards,

Rohit

0 Kudos
773

Hi Rohit,

We are updating VEDA missed entries thru Report Program , Looking for any FM / Class to update VEDA legacy data.

Tried with SD_VEDA_CREATE/MAINATIN ..etc , didn't work.

Regards

Jhon

former_member753791
Participant
0 Kudos
773

Hi John,

I have found two FM's:

1.SD_SALESDOCUMENT_CHANGE

Check this FM's documentation,you'll find contract under tables section.

2.EXIT_SAPLV45W_001

These above are the two options. I hope that helps.

Regards,

Rohit

jhon_jhon
Explorer
0 Kudos
774

Hi Rohit,

I am using SD_VEDA_CREATE * SAVE function modules to fill VEDA table.

Regards

Jhon