My Method Declaration
fill_finaltab
importing
VALUE(im_toc) TYPE char30
VALUE(im_check) TYPE char50
Implementation of the method mentioned above.
METHOD fill_finaltab. DATA: lwa_final TYPE gty_final. lwa_final-toc = im_toc. lwa_final-check = im_check. APPEND lwa_final TO gt_final. CLEAR lwa_final. ENDMETHOD.
CALLING THE METHOD.
fill_finaltab( im_toc = 'text1' im_check = 'text2' ).
The way I want to call the method.
fill_finaltab( text1 text2 text3 text4 text5 ).
Yes, I want to Omit the formal parameter names just for convenience sake as I would use it many times in a program.
I have tried making my import parameters optional, declared via reference and value, used preferred parameter option and so on.
Basically, I tried all the permutation and combinations while declaring the method signature.
The code works fine but I want to learn why cannot I send parameters just as I send them in a perform(old school)? perform f_data: PARAM1 PARAM2 PARAM3 ETC.
NOTE: this is not my assignment nor office work but just my personal research.
regards,
kk