09-10-2007 9:57 AM
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?
09-10-2007 10:08 AM
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>
09-10-2007 10:08 AM
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>
09-10-2007 10:26 AM
09-10-2007 10:10 AM
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.
09-10-2007 10:27 AM
You know I don't know how to use selection screen in module pool program.
09-10-2007 1:16 PM
&----
*& 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.
09-10-2007 10:35 AM
Hi,
u can do that in a report program using field catalogs
and call the FM 'reuse_alv_grid_display'
09-10-2007 10:40 AM
09-10-2007 10:53 AM
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.
09-10-2007 2:02 PM
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.
09-10-2007 2:03 PM
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
09-10-2007 1:32 PM
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
09-10-2007 3:07 PM
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