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

How to make a dynamic selection screen

Former Member
0 Likes
699

Hi

I have been searching the SDN for long time, but couldn't find the answer, so therefor a new post.

I have an internal table with following values:

VBKD-BSARK_E

TVKO-VKORG

By these values I would like to make a new selection-screen whith following:

Parameters: FIELD1 like VBKD-BSARK_E.

Parameters: FIELD2 like TVKO-VKORG.

Next time the internal table can contain

MARA-MATNR

TVKO-VKORG

VBAK-BSTZD

And the parameters should then be:

Parameters: FIELD1 like MARA-MATNR.

Parameters: FIELD2 like TVKO-VKORG.

Parameters: FIELD3 like VBAK-BSTZD.

How do I do that -any suggestions?

Hi

I have been searching the SDN for long time, but couldn't find the answer, so therefor a new post.

I have an internal table with following values:

VBKD-BSARK_E

TVKO-VKORG

By these values I would like to make a new selection-screen whith following:

Parameters: FIELD1 like VBKD-BSARK_E.

Parameters: FIELD2 like TVKO-VKORG.

Next time the internal table can contain

MARA-MATNR

TVKO-VKORG

VBAK-BSTZD

And the parameters should then be:

Parameters: FIELD1 like MARA-MATNR.

Parameters: FIELD2 like TVKO-VKORG.

Parameters: FIELD3 like VBAK-BSTZD.

How do I do that -any suggestions?

4 REPLIES 4
Read only

Sm1tje
Active Contributor
0 Likes
665

Just a question for you:

How do you want to create a selection screen up front, when you only at runtime know how internal tables are filled / structured?

Read only

Former Member
0 Likes
665

Hi,

This piece of code will design selection screen based on radio button selection:


    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .
    SELECT-OPTIONS :  s_date  FOR  pnpbegps DEFAULT sy-datum  .    
    SELECTION-SCREEN: END OF BLOCK b1.

    SELECTION-SCREEN : BEGIN OF  BLOCK b2 WITH FRAME TITLE text-002.
    PARAMETERS:rb1 RADIOBUTTON GROUP rbf DEFAULT 'X'.
    PARAMETERS:rb2 RADIOBUTTON GROUP rbf .

    SELECTION-SCREEN: END OF BLOCK b2.


    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003 .
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(25) text-006 FOR FIELD px_pdf.
    PARAMETERS:  px_pdf AS CHECKBOX USER-COMMAND xxx  .       
    SELECTION-SCREEN END OF LINE.

    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(15) text-004 FOR FIELD rb_app.
    PARAMETERS:rb_app RADIOBUTTON GROUP gbf DEFAULT 'X' USER-COMMAND uc01.
    PARAMETERS: p_file(128) MODIF ID 001.           " application server
    SELECTION-SCREEN END OF LINE.

Thanks,

Krishna..

Read only

Former Member
0 Likes
665

hi,

Can u please show me how have u declared your Internal Table.

Thanks and Regards

Suraj S Nair

Read only

0 Likes
665

I think that i can use FM: POPUP_GET_VALUES