Skip to Content
-1

Need to display selection screen values in to application log.

Oct 12, 2017 at 06:31 PM

102

avatar image
Former Member

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)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
Oct 13, 2017 at 06:59 AM
2

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.

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Raymond,

Thanks for your input!

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)
0

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?

1
Nic Teunckens Oct 12, 2017 at 08:55 PM
0

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 ...

Share
10 |10000 characters needed characters left characters exceeded