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: 

Variable declaration in user exit?

Former Member
0 Kudos

Hi,

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

Thanks & Regards,

Abhijit

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

former_member262988
Active Contributor
0 Kudos

Hi,

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

data : v_variable type c.

Thanks,

Shailaja Ainala.

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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.

0 Kudos

Hi,

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