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

Declaration type for XVBAK

Former Member
0 Likes
1,228

Hi all,

I am doing enhancement in MV45AFZZ in DOCUMENT_SAVE_PREPARE..

Here i need to put XVBAK-LIFSK = X..

But in include we are writing BADI ..we are not writing direct coding here..We impliment method and then we will parameters to BADI in include..

My problem iis when I am declaring XVABK as VBAK in method parameters (CS_XVBAK type VBAK) It is giving me error message..

mis match XVBAK = CS_XVBAK..

because in XVBAK declaration in enhancement it is

DATA: BEGIN OF XVBAK.

NCLUDE STRUCTURE VBAK.

DATA: AGUPDA LIKE RV02P-AGUPD,

WEUPDA LIKE RV02P-WEUPD,

AUARTUPDA,

END OF XVBAK.

What type I declare for XVBAP in method??

thanks

1 REPLY 1
Read only

eduardo_hinojosa
Active Contributor
0 Likes
623

Hi,

Try with vbapvb for XVBAP. ie:

DATA: BEGIN OF XVBAP.

INCLUDE STRUCTURE VBAPVB

DATA: END OF XVBAP.

I hope this helps you

Regards,

Eduardo