F Get selection screen variables using Function Module in SAP | CodeTheta

Get selection screen variables using Function Module in SAP

November 17, 2025

Using RS_TEXTPOOL_READ we can able to find all parameters, radio button name of any program.

Pass the program name in objectname parameter and internal table in tpool table.

Code Snippet:

DATA: it_tpool TYPE STANDARD TABLE OF textpool.

CALL FUNCTION 'RS_TEXTPOOL_READ'
    EXPORTING
        objectname = 'ZPROGRAM'
        action = 'EDIT'
        language = sy-langu
    TABLES
        tpool = it_tpool
    EXCEPTIONS
        object_not_found = 1
        permission_failure = 2
        invalid_program_type = 3
        error_occured = 4
        action_cancelled = 5
        OTHERS = 6.
    IF sy-subrc <> 0.
        * Implement suitable error handling here
    ENDIF.

you can find the contents in TPOOL table.

 


IDE Used To Test This Code : SAP GUI.
Try this code in your computer for better understanding. Enjoy the code. If you have any Question you can contact us or mail us. We will reply you as soon as possible.

Post a Comment