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

Variable declaration in user exit?

Former Member
0 Likes
639

Hi,

How can i declare variable in user exit? Is it the same way we declare in report?

Thanks & Regards,

Abhijit

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
606

Hi abhijit,

Yes in the same way you are declaring in a report. Also you can refer to the importing and exporting fields.

If you are not clear , please explain your requirement. so that i can help you?

Thanks,

Vamshi

5 REPLIES 5
Read only

Former Member
0 Likes
606

Hi,

Yes the same way you can declare as if you declare in normal report.

data : v_variable type c.

Thanks,

Shailaja Ainala.

Read only

Former Member
0 Likes
607

Hi abhijit,

Yes in the same way you are declaring in a report. Also you can refer to the importing and exporting fields.

If you are not clear , please explain your requirement. so that i can help you?

Thanks,

Vamshi

Read only

0 Likes
606

Well Vamshi,

I got a question regarding user_exit. How can u declare the variable in Save_Document_prepare user exit? How can you import or export fields in to that subroutine? And also if version changed then whether the user exit, customer exit and screen exit will work properly?

Thanks & Regards,

Abhijit

Edited by: Abhijit Mandal on May 4, 2009 11:41 AM

Read only

0 Likes
606

hi abhijith,

Which save_document_prepare? I think this is a method in BADI. Please specify clearly, the BADI name.

Even with the version change the user exits/ BADI's will work, if that change is to higher version.

Thanks,

Vamshi.

Read only

0 Likes
606

Hi,

This is a User Exit and not a BADI. The variable declaration is as normal.