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: 

passing Select option to the sub routine

Former Member
0 Kudos

Hi All ,

how can we pass select option values to a subroutine ,

Thanks in Advance

Vinay

1 ACCEPTED SOLUTION

former_member156446
Active Contributor
0 Kudos

perform perform_name tables so_options.

2 REPLIES 2

former_member156446
Active Contributor
0 Kudos

perform perform_name tables so_options.

Former Member
0 Kudos

Hi Vinay Kolla,

Check out this.


TYPES: TYP_DATUM TYPE RANGE OF SY-DATUM.

DATA: WA_DATUM   TYPE LINE OF TYP_DATUM.

SELECT-OPTIONS : S_DATUM FOR SY-DATUM.

START-OF-SELECTION.
  PERFORM WRITE_DATUM TABLES S_DATUM[].

*&---------------------------------------------------------------------*
*&      Form  write_datum
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      -->P_S_DATUM  text
*----------------------------------------------------------------------*
FORM WRITE_DATUM TABLES P_S_DATUM TYPE TYP_DATUM.
  LOOP AT P_S_DATUM INTO WA_DATUM.
    WRITE : /10 WA_DATUM-SIGN,
                WA_DATUM-OPTION,
                WA_DATUM-LOW,
                WA_DATUM-HIGH.
  ENDLOOP.
ENDFORM.             

Regards,

R.Nagarajan.

-


We can -