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

coding in user exit in program rffous_t

Former Member
0 Likes
544

form exit_100 tables tab_regup structure regup

using exit_reguh structure reguh

exit_dtamusfh structure dtamusfh

exit_formnr.

data: up_dtamusfh like dtamusfh.

hlp_formnr = exit_formnr.

up_dtamusfh = exit_dtamusfh.

call customer-function '100'

exporting

i_reguh = exit_reguh

i_dtamusfh = exit_dtamusfh

importing

e_dtamusfh = exit_dtamusfh

tables

t_regup = tab_regup.

if up_dtamusfh ne exit_dtamusfh. "fields modified by user

if hlp_formnr+0(1) eq '2'. "user exit 101 already used

hlp_formnr+0(1) = '3'. "both exits 100 and 101 used

else.

if hlp_formnr+0(1) ne '3'.

hlp_formnr+0(1) = '1'. "user exit 100 used

endif.

endif.

endif.

exit_formnr = hlp_formnr.

" regarding the use of exit_formr in exit_100 - exit_105:

" first digit: 1 - exit 100 used, 2 - exit 101 used,

" 3 - both exits 100 and 101 used

" second digit: 1 - exit 102 used, 2 - exit 103 used,

" 3 - both exits 102 and 103 used

" third digit: 1 - exit 104 used, 2 - exit 105 used,

" 3 - both exits 104 and 105 used

endform.

in the above form i need to code in the customer-function '100'. the coding is to be done to pass certain fields and get the output in the form of the values for those fields. my main problem is that the structure or the value of exit_formnr is not available and im not able to find it either!! until and unless the value for exit_formnr is found out the value for hlp_formnr won't be known and thus i can't proceed. please help me out in doing so asap.!! the program name is RFFOUS_T. in that the include name for this form is RFFORIU4. please help me fast!!

2 REPLIES 2
Read only

mithun_shetty4
Contributor
0 Likes
458

These are the Few enhancements with FM exits Available for RFFOUS_T .May i know which Enhancement you are using

RFFOX100 EXIT_RFFOEXIT_100

RFFOX101 EXIT_RFFOEXIT_101

RFFOX102 EXIT_RFFOEXIT_102

RFFOX103 EXIT_RFFOEXIT_103

RFFOX104 EXIT_RFFOEXIT_104

RFFOX105 EXIT_RFFOEXIT_105.

Check out the Import and Export parameters of FMs for fullfilling the Requirement .

Incase none of the Exits help ,Try finding out for BADi's.

Regards,

Mithun

Read only

0 Likes
458

out of the 5 enhancements im using 100,101 and 105. the export and import parameters for these functions are mentioned in the code snippet which i have mentioned in my question.