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: 

Selection screen on screen.

Former Member
0 Kudos

Hi all, I want to create two screens, one for selecting data, another for outputing data in table control. But I don't know how to do it, I can't create selection screen on the screen. Would you pls tell me how should I do?

1 ACCEPTED SOLUTION

varma_narayana
Active Contributor
0 Kudos

Hi

You cannot have Table control in Selection Screen. So proceed like this

Create the First Screen as Selection Screen.

Create the Second Screen as Norma Screen (Tcode SE51). Eg: 100

AT SELECTION-SCREEN.

call SCREEN 100.

<b>reward if helpful.</b>

12 REPLIES 12

varma_narayana
Active Contributor
0 Kudos

Hi

You cannot have Table control in Selection Screen. So proceed like this

Create the First Screen as Selection Screen.

Create the Second Screen as Norma Screen (Tcode SE51). Eg: 100

AT SELECTION-SCREEN.

call SCREEN 100.

<b>reward if helpful.</b>

0 Kudos

Thanks for your anwer, I will have a try.

Former Member
0 Kudos

hi yu huali,

U can develop module pool program for that.

There u can use seletion screen for selection of data and then call another screen for output data on screen.

0 Kudos

You know I don't know how to use selection screen in module pool program.

0 Kudos

&----


*& Report ZSCREEN13 *

*& *

&----


*& *

*& *

&----


REPORT ZSCREEN13 .

SELECTION-SCREEN BEGIN OF BLOCK b1.

parameters P1 like lfa1-lifnr.

SELECTION-SCREEN END OF BLOCK b1.

call screen 100.

refere this Program just copy it and past. Double click on screen no. and create screen.

Former Member
0 Kudos

Hi,

u can do that in a report program using field catalogs

and call the FM 'reuse_alv_grid_display'

0 Kudos

Would you pls tell me how to do it in detail?

0 Kudos

Hi,

Iam sending u a crude program.

Hope it ll be useful to u

DATA: I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,

WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.

perform build_cat.

call the FM 'REUSE_ALV_GRID_DISPLAY'

and pass the internal table 'i_fieldcat' to that FM

Form build_cat

WA_FIELDCAT-TABNAME = 'IT_EKKO'. (internal table)

WA_FIELDCAT-FIELDNAME = 'EBELN'. (field name)

WA_FIELDCAT-SELTEXT_M = 'PO NO.'. (column name)

APPEND WA_FIELDCAT TO I_FIELDCAT.

CLEAR WA_FIELDCAT.

WA_FIELDCAT-TABNAME = 'IT_EKKO'.

WA_FIELDCAT-FIELDNAME = 'AEDAT'.

WA_FIELDCAT-SELTEXT_M = 'DATE.'.

APPEND WA_FIELDCAT TO I_FIELDCAT.

CLEAR WA_FIELDCAT.

WA_FIELDCAT-TABNAME = 'IT_EKKO'.

WA_FIELDCAT-FIELDNAME = 'BUKRS'.

WA_FIELDCAT-SELTEXT_M = 'COMPANY CODE'.

APPEND WA_FIELDCAT TO I_FIELDCAT.

CLEAR WA_FIELDCAT.

WA_FIELDCAT-TABNAME = 'IT_EKKO'.

WA_FIELDCAT-FIELDNAME = 'BUKRS'.

WA_FIELDCAT-SELTEXT_M = 'DOCMENT TYPE'.

APPEND WA_FIELDCAT TO I_FIELDCAT.

CLEAR WA_FIELDCAT.

WA_FIELDCAT-TABNAME = 'IT_EKKO'.

WA_FIELDCAT-FIELDNAME = 'LIFNR'.

WA_FIELDCAT-NO_OUT = 'X'.

WA_FIELDCAT-SELTEXT_M = 'VENDOR CODE'.

APPEND WA_FIELDCAT TO I_FIELDCAT.

*Reward points if useful.

0 Kudos

Hi,

To create a selection screen in module pool program code as under:

MODULE STATUS_0118 OUTPUT.

SET PF-STATUS 'xxxxxxxx'.

SET TITLEBAR 'xxx'.

SELECTION-SCREEN BEGIN OF SCREEN 0118 AS SUBSCREEN.

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

SELECT-OPTIONS : S_QMNUM FOR VIQMEL-QMNUM.

SELECTION-SCREEN END OF BLOCK b1.

Hope this helps.

Reward if helpful.

Regards,

Sipra

*SELECTION-SCREEN END OF SCREEN 0118.

ENDMODULE.

0 Kudos

To create a selection screen in module pool program code as under:

MODULE STATUS_0118 OUTPUT.

*SET PF-STATUS 'xxxxxxxx'.

*SET TITLEBAR 'xxx'.

SELECTION-SCREEN BEGIN OF SCREEN 0118 AS SUBSCREEN.

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

SELECT-OPTIONS : S_QMNUM FOR VIQMEL-QMNUM.

SELECTION-SCREEN END OF BLOCK b1.

SELECTION-SCREEN END OF SCREEN 0118.

ENDMODULE.

Hope this helps.

Reward if helpful.

Regards,

Sipra

Former Member
0 Kudos

Hi There,

Solution is very easy.

First of all design the selection screen in abap statement

SELECTION-SCREEN BEGIN OF SCREEN dynnr AS SUBSCREEN 
                                        [NO INTERVALS] 
                                        [NESTING LEVEL n]. 
  ... 
  SELECTION-SCREEN END OF SCREEN dynnr.

Then define the dynpro and in this dynpro create a subscreen area...

Finally in the PBO of the dynpro call the subscreen

CALL SUBSCREEN sub_area INCLUDING prog dynnr.

can replace prog and dynnr by sy-repid and sy-dynnr.

Thank you for the reward

0 Kudos

If it did help thanks for the reward!

> Hi There,

>

> Solution is very easy.

>

> First of all design the selection screen in abap

> statement

>

>

SELECTION-SCREEN BEGIN OF SCREEN dynnr AS
> SUBSCREEN 
> [NO
> INTERVALS] 
> [NESTING
> LEVEL n]. 
>   ... 
> SELECTION-SCREEN END OF SCREEN dynnr.

>

> Then define the dynpro and in this dynpro create a

> subscreen area...

>

>

> Finally in the PBO of the dynpro call the subscreen

>

CALL SUBSCREEN sub_area INCLUDING prog
> dynnr.

>

> can replace prog and dynnr by sy-repid and sy-dynnr.

>

>

>

> Thank you for the reward