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

Help with userexit_save_document

Former Member
0 Likes
884

I create a new tab in sales order head information called addational data .and i put a component named 'add_address' . My problem is when I click the save button. the 'add_address' will be saved default value when it is initial. otherwise, it will be saved with input value.

Now what I do is :

Form userexit_save_document.

if xvbak-zz_address is initial.

xvbak-zz_address = 'defalut address'.

endif.

endform

but it didn't work...

anyone can help me?

4 REPLIES 4
Read only

Former Member
0 Likes
817

Hi,

You need to populate the updkz field of XVBAK structure to 'I' Insert or 'U' update.

Regards,

Gagan

Read only

0 Likes
817

Bhanot ;

thanks for your advice.

but I did it in Call function 'mcv_statistics_order' after.

in call function 'mcv_statistice_order', the exporting xvbak is what i expected ,xvbak_updkz is 'u' but when the program finished. the table values is still not changed.

Read only

0 Likes
817

Maybe I got the answer.

vbak and vbap is not additional tabels .So I think I should use userexit_save_document_prepare instead of userexit_save_document.

Read only

Former Member
0 Likes
817

Hi,

I needed to find an user exit for FV60 transaction code,

tried everything that was listed thru SMOD.

Has anyone done this before....

If so, would really Appreciate your input

Thank you

Lalitha