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

hi

Former Member
0 Likes
622

hi all,

i'm new to abap world.

could anybody tell me how to use selection screens???

thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
600

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 all,

i'm new to abap world.

could anybody tell me how to use selection screens???

thanks in advance.

4 REPLIES 4
Read only

Former Member
0 Likes
600

hi,

Welcome to ABAP world. You can access www.sap-img.com to learn the same.

Gaurav

Read only

Former Member
0 Likes
600

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.

Read only

Former Member
0 Likes
601

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

Read only

Former Member
0 Likes
600

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