Skip to Content
avatar image
-1
Former Member

Need to display selection screen values in to application log.

I have one requirement where I need to display the selection screen parameters or select option values to the application log via SLG1 transaction.

Can you please give me some hint on how to proceed further.

I am able to capture the selection screen parameters/select-options into an internal table by using the function module

RS_REFRESH_FROM_SELECTOPTIONS.

But Can you help me how to display those values from the internal table GT_PARAMS into the application log using

the function module BAL_LOG_MSG_ADD.

capture.png (9.4 kB)
capture1.png (22.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 13, 2017 at 06:59 AM

    You could use the following FM :

    • RS_REFRESH_FROM_SELECTOPTIONS (selection-screen)
    • RS_REFRESH_FROM_DYNAMICAL_SEL (logical database dynamic selection)
    • BAL_LOG_CREATE (header of one SLG1 log)
    • BAL_LOG_MSG_ADD (add a message) or BAL_LOG_MSG_ADD_FREE_TEXT (add some text)
    • BAL_DB_SAVE

    There are already some wiki document and online documentation available.

    Add comment
    10|10000 characters needed characters exceeded

    • I would sugget you create a message in a z-class, and in a small loop on GT_RETURN use this message with the parameters+select-options, only constraint is only 4 parameters in a message so I would suggest &1 variable name, &2 some user friendly text built from sign/option or even the icon from FM SELSCREEN_ICONS_SUPPLY) then &3 and &4 for low and high values?

  • Oct 12, 2017 at 08:55 PM

    Check the "SBAL_DEMO_*" programs in your System as a reference or see these usefull SAP Wiki's : link / link ...

    By generating messages with your parameters included you can fill the logs accordingly ...

    Add comment
    10|10000 characters needed characters exceeded