2007 Dec 12 6:45 AM
hi all,
i'm new to abap world.
could anybody tell me how to use selection screens???
thanks in advance.
2007 Dec 12 6:59 AM
Hi fresher Welcome,
write the following code in SE38 Transaction .
Parameters: p_Name(30).
write / p_name.
When execute this program (by pressing F8) a selection-screen will appear in that cursor will wait for input in the give a text and press F8 your text will displayed.
selection-screen is mediator of user and programm.
Plz Reward if useful by selecting the button at my answer ( It is in left side, 3 buttons are there by star symbol),
Mahi.
Message was edited by:
Maheswari Chegu
Hi fresher Welcome,
write the following code in SE38 Transaction .
Parameters: p_Name(30).
write / p_name.
When execute this program (by pressing F8) a selection-screen will appear in that cursor will wait for input in the give a text and press F8 your text will displayed.
selection-screen is mediator of user and programm.
Plz Reward if useful by selecting the button at my answer ( It is in left side, 3 buttons are there by star symbol),
Mahi.
Message was edited by:
Maheswari Chegu
2007 Dec 12 6:50 AM
2007 Dec 12 6:52 AM
Welcome to SDN, learn from below code by doing similar things in IDES. below code covers all syntax used in selection screens
SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE text-008.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 1(25) text-002 FOR FIELD p_app.
PARAMETERS : p_app RADIOBUTTON GROUP abc.
SELECTION-SCREEN: POSITION 33.
PARAMETERS : p_aname1 LIKE rlgrap-filename
DEFAULT 'AS/AF/processing/INF31026.txt'(012)
OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 1(25) text-004 FOR FIELD p_pre.
PARAMETERS: p_pre RADIOBUTTON GROUP abc.
SELECTION-SCREEN: POSITION 33.
PARAMETERS: p_pname1 LIKE rlgrap-filename
DEFAULT 'C:\INF31026.txt'(013) OBLIGATORY.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN END OF BLOCK blk1.
SELECTION-SCREEN BEGIN OF BLOCK blk3 WITH FRAME.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: COMMENT 1(25) text-025 FOR FIELD p_error.
PARAMETER : p_error LIKE rlgrap-filename
DEFAULT 'AS/AF/outbound/INF31026_error'(023).
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK blk3.
SELECTION-SCREEN BEGIN OF BLOCK blk4 WITH FRAME.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN : COMMENT 1(30) text-031 FOR FIELD s_email.
SELECT-OPTIONS : s_email FOR adr6-smtp_addr NO INTERVALS.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK blk4.
2007 Dec 12 6:59 AM
Hi fresher Welcome,
write the following code in SE38 Transaction .
Parameters: p_Name(30).
write / p_name.
When execute this program (by pressing F8) a selection-screen will appear in that cursor will wait for input in the give a text and press F8 your text will displayed.
selection-screen is mediator of user and programm.
Plz Reward if useful by selecting the button at my answer ( It is in left side, 3 buttons are there by star symbol),
Mahi.
Message was edited by:
Maheswari Chegu
2007 Dec 12 7:02 AM
hi,
welcome to sdn forum.
u can ckh in various sites like sap-img and help.sap.com..
also chk this eg:
tables : vbak, vbap , lips, likp,sscrfields.
TYPE-POOLS : slis.
SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text.
SELECT-OPTIONS: s_vbeln FOR vbak-vbeln. "OBLIGATORY. "sales order no:
SELECT-OPTIONS: s_auart FOR vbak-auart no intervals DEFAULT 'TA'. "order type
SELECT-OPTIONS: s_audat FOR vbak-audat. "order date
SELECTION-SCREEN END OF BLOCK a1.
SELECTION-SCREEN BEGIN OF BLOCK a2 WITH FRAME TITLE Text2.
SELECTION-SCREEN BEGIN OF BLOCK a3 WITH FRAME.
PARAMETERS : c_get as checkbox.
select-options : s_input for vbak-vbeln no intervals.
SELECTION-SCREEN END OF BLOCK a3.
parameters : c_vbeln as checkbox USER-COMMAND run1.
SELECTION-SCREEN END OF BLOCK a2.
AT SELECTION-SCREEN .
initialization.
.
start-of-selection.
<<<<<<<< PERFORM STATEMENTS>>>>
end-of-selection.
reward if helpful.
regards,
sohi
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |