2009 Apr 02 12:58 PM
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?
2009 Apr 02 1:09 PM
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?
2009 Apr 02 1:33 PM
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..
2009 Apr 02 1:36 PM
hi,
Can u please show me how have u declared your Internal Table.
Thanks and Regards
Suraj S Nair
2009 Apr 02 1:42 PM