Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

issue in selection screen and at selection-seen output command

Former Member
0 Kudos

Hi All,

I habe one parameter called payroll area in selection screen when i enter US01 and i press enter it has to show one more selection block in this block i need one filed called absence types it should be select option not parameter.

based on payroll area absence type should be changes.

absence type is selecoption not parameter.

i know how to write for parameter i am not sure abt select options.

anybody can help me how to approach.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Use this :

Select options: S_matnr for mara-matnr no intervals no-extentions.

Regards,

Amit.

former_member212653
Active Contributor
0 Kudos

Check out this code...


*&---------------------------------------------------------------------*
*& Report  ZTEST_SDN
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*

REPORT  ztest_sdn.

DATA:wa_sbook TYPE sbook.


PARAMETERS: p_hide TYPE c AS CHECKBOX USER-COMMAND hide.

SELECT-OPTIONS: s_carrid FOR wa_sbook-carrid.


AT SELECTION-SCREEN OUTPUT.
*  IF sy-ucomm = 'HIDE'.

  LOOP AT SCREEN.
    IF p_hide = 'X'.
      IF screen-name = '%_S_CARRID_%_APP_%-TEXT' OR
         screen-name = '%_S_CARRID_%_APP_%-OPTI_PUSH' OR
         screen-name = 'S_CARRID-LOW' OR
         screen-name = '%_S_CARRID_%_APP_%-TO_TEXT' OR
         screen-name = 'S_CARRID-HIGH' OR
         screen-name = '%_S_CARRID_%_APP_%-VALU_PUSH'.
        screen-active = '0'.
      ENDIF.
    ELSE.
      IF screen-name = '%_S_CARRID_%_APP_%-TEXT' OR
         screen-name = '%_S_CARRID_%_APP_%-OPTI_PUSH' OR
         screen-name = 'S_CARRID-LOW' OR
         screen-name = '%_S_CARRID_%_APP_%-TO_TEXT' OR
         screen-name = 'S_CARRID-HIGH' OR
         screen-name = '%_S_CARRID_%_APP_%-VALU_PUSH'.
        screen-active = '1'.
      ENDIF.
    ENDIF.
    MODIFY SCREEN.
  ENDLOOP.


*  ENDIF.

you have to go to the selection screen and get each element that has been generated by SAP.

Former Member
0 Kudos

This message was moderated.