1) Often we have requirement to check if a field has only alphabets in it. There are ‘n’ number of ways to do it but the most convenient method is to use system field SY-ABCDE. It is a constant and contains alphabets A, B, C … Z. (i.e A to Z).
2) At times, business users need to see/print the input parameters of the selection screen along with the output report. To get the copy of the selection screen, we can use standard function module ‘RS_COVERPAGE_SELECTIONS’
* Table For the Selection Screen Report
BEGIN OF i_infotable OCCURS 0,
flag(1) TYPE c,
olength TYPE x,
line LIKE rsvar-infoline,
END OF i_infotable.
* Get selection screen copy
CALL FUNCTION ‘RS_COVERPAGE_SELECTIONS’
report = sy-repid
variant = ”
no_import = ‘X’
infotab = i_infotable
error_message = 1
variant_not_found = 2
OTHERS = 3.
LOOP AT i_infotable.
If you want to get such practical issues and resolutions straight to your inbox, please SUBSCRIBE. We respect your privacy and take protecting it seriously.
If you liked this post, please hit the share button at the left side of your screen.
Thank you very much for your time!!
Image source : www.deathandtaxesmag.com