Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

create select-options using internal table

Hello,

I have number of table-fields in one internal table.

I need to create select-options on screen for each of the table field in that internal table.

Can anybody please provide a code for it ?

Thanks.

Tags:
Former Member
Former Member replied

Try this sample code:

REPORT z_demo_jg1 LINE-COUNT 10(2) NO STANDARD PAGE HEADING.

DEFINE option.

select-options : s_&1 for w_itab-&1.

END-OF-DEFINITION.

TYPES: BEGIN OF ty_itab,

vbeln LIKE vbap-vbeln,

posnr LIKE vbap-posnr,

werks LIKE vbap-werks,

END OF ty_itab.

DATA: t_itab TYPE TABLE OF ty_itab,

w_itab TYPE ty_itab.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.

option : vbeln,posnr,werks.

SELECTION-SCREEN END OF BLOCK b1.

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question