Application Development and Automation 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: 
Read only

select-options in perform

Former Member
0 Likes
1,871

If I am passing a SELECT-OPTIONS to a FORM (PERFORM routine not SmartForms) what would be the "structure" for it in the FORM? I am assuming one passes these as tables.

Thanks.

Nic

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,280

Hi,

Try this..

SELECT-OPTIONS: SO_MATNR FOR MARA-MATNR.

PERFORM TEST USING SO_MATNR[].

FORM TEST USING LT_MATNR LIKE SO_MATNR[].

ENDFORM.

Thanks,

Naren

If I am passing a SELECT-OPTIONS to a FORM (PERFORM routine not SmartForms) what would be the "structure" for it in the FORM? I am assuming one passes these as tables.

Thanks.

Nic

4 REPLIES 4
Read only

Former Member
0 Likes
1,280

Yes.

You need to pass it as a table.

Regards,

Atish

Read only

Former Member
0 Likes
1,280

You may have to do something like this.


SELECT-OPTIONS: s_date FOR sy-datum.

START-OF-SELECTION.

  PERFORM pass_ranges TABLES s_date.

FORM pass_ranges TABLES date_range TYPE STANDARD TABLE.

  DATA: ls_range TYPE RANGE OF datum.

  ls_range[] = date_range[].

ENDFORM.                    "pass_ranges

Read only

Former Member
0 Likes
1,281

Hi,

Try this..

SELECT-OPTIONS: SO_MATNR FOR MARA-MATNR.

PERFORM TEST USING SO_MATNR[].

FORM TEST USING LT_MATNR LIKE SO_MATNR[].

ENDFORM.

Thanks,

Naren

Read only

Former Member
0 Likes
1,280

Problem solved. Thank you all for your help.