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

Selection screens

Former Member
0 Likes
1,663

How to design a screen as in SE11 Transaction?

ie with radiobutto and i/o field in report programming.

18 REPLIES 18
Read only

Former Member
0 Likes
1,628

Hi,

you need to know about SE51(screen painter)

http://help.sap.com/saphelp_nw04/helpdata/en/d1/801b50454211d189710000e8322d00/frameset.htm

and check the sample programs using ABAPDOCU transaction.

you can see them under <b>dialog programs</b>.

Regards

vijay

Read only

Former Member
0 Likes
1,628

Hi Suganya,

I think you are new to SAP ABAP.

Welcome to SDN!

You can achieve this using radio button group.

PARAMETERS : R1 RADIOBUTTON GROUP RAD1,

R2 RADIOBUTTON GROUP RAD1,

R3 RADIOBUTTON GROUP RAD1 DEFAULT 'X',

S1 RADIOBUTTON GROUP RAD2,

S2 RADIOBUTTON GROUP RAD2,

S3 RADIOBUTTON GROUP RAD2 DEFAULT 'X'.

Example Selection screen.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

PARAMETERS : P_BUKRS LIKE BKPF-BUKRS OBLIGATORY.

"Company code

SELECT-OPTIONS : S_BELNR FOR BKPF-BELNR MODIF ID M01.

"Accounting Doc No

PARAMETERS: P_GJAHR LIKE BKPF-GJAHR MODIF ID M02.

"Fiscal year

SELECT-OPTIONS: S_BLART FOR BKPF-BLART MODIF ID M03,

"Document type

S_BUDAT FOR BKPF-BUDAT MODIF ID M04.

"Posting date

PARAMETERS: S1 RADIOBUTTON GROUP RAD2,

S2 RADIOBUTTON GROUP RAD2,

S3 RADIOBUTTON GROUP RAD2 DEFAULT 'X'.

SELECTION-SCREEN END OF BLOCK B1.

Read only

abdul_hakim
Active Contributor
0 Likes
1,628

hi

you cannot design a screen in SE11 but you can do in SE51.

There are lots of sample programs available in the transaction ABAPDOCU.Just go thru it..

Regards,

Abdul Hakim

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,628

Hi,

Try this and kindly reward points by clicking the star on the left of reply,if it helps.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS : p1 RADIOBUTTON GROUP rad1 DEFAULT 'X' USER-COMMAND rad.

SELECTION-SCREEN COMMENT 2(10) Text-001 FOR FIELD P1.

parameters p3(10).

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(10) Text-002 FOR FIELD P1.

PARAMETERS : p2 RADIOBUTTON GROUP rad1,

parameters p4(10).

SELECTION-SCREEN END OF LINE.

Read only

Former Member
0 Likes
1,628

check this..........

SELECTION-SCREEN BEGIN OF LINE.

parameters: r1 radiobutton group g1 .

SELECTION-SCREEN COMMENT 10(20) text-001

FOR FIELD r1.

parameter : rr1 like RSRD1-TBMA_VAL.

SELECTION-SCREEN END OF LINE.

Read only

Former Member
0 Likes
1,628

Hi Suganya,

SE11 transaction screen is designed through Module pool program using screen.

If you want to design a similar screen in report programming, use the following code:

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS : p1 RADIOBUTTON GROUP rad1.

SELECTION-SCREEN: COMMENT 4(10) text-001 FOR FIELD p1.

PARAMETERS p2(10).

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS : p3 RADIOBUTTON GROUP rad1.

SELECTION-SCREEN: COMMENT 4(10) text-002 FOR FIELD p3.

PARAMETERS p4(10).

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS : p5 RADIOBUTTON GROUP rad1.

SELECTION-SCREEN: COMMENT 4(10) text-003 FOR FIELD p5.

PARAMETERS p6(10).

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN BEGIN OF LINE.

PARAMETERS : p7 RADIOBUTTON GROUP rad1.

SELECTION-SCREEN: COMMENT 4(10) text-003 FOR FIELD p7.

PARAMETERS p8(10).

SELECTION-SCREEN END OF LINE.

SELECTION-SCREEN PUSHBUTTON /2(10) PUSH1 USER-COMMAND DISP.

SELECTION-SCREEN PUSHBUTTON 15(10) PUSH2 USER-COMMAND CHAN.

SELECTION-SCREEN PUSHBUTTON 28(10) PUSH3 USER-COMMAND CREA.

INITIALIZATION.

MOVE 'Display' TO PUSH1.

MOVE 'Change' TO PUSH2.

MOVE 'Create' TO PUSH3.

Hope it helps.

Regards,

Neeraj Gupta

Read only

0 Likes
1,628

hi Neeraj,

But if i use this code ,i am not getting the label.

that's what i needed.

Read only

0 Likes
1,628

Have you defined the text-symbols (just double click on TEXT-...)?

Regards,

John.

Read only

Former Member
0 Likes
1,628

check this..........

SELECTION-SCREEN BEGIN OF LINE.

parameters: r1 radiobutton group g1 .

SELECTION-SCREEN COMMENT 10(20) text-001

FOR FIELD r1.

parameter : rr1 like RSRD1-TBMA_VAL.

SELECTION-SCREEN END OF LINE.

use above code in text-001 u have to maintain ur label.

double click text-0001 and maintain there

Read only

0 Likes
1,628

Thanks for ur help

Read only

0 Likes
1,628

how can be the event set cursor field performed when one radiobutton is selected.

Read only

0 Likes
1,628

Hi suganya,

1. Simple.

2. Just copy paste in new program.

3.

REPORT abc.

TABLES : sscrfields.

PARAMETERS : a RADIOBUTTON GROUP g1 USER-COMMAND bb,

b RADIOBUTTON GROUP g1.

PARAMETERS : mm(15) TYPE c.

PARAMETERS : pp(15) TYPE c.

AT SELECTION-SCREEN OUTPUT.

IF a = 'X'.

SET CURSOR FIELD 'MM'.

ENDIF.

IF b = 'X'.

SET CURSOR FIELD 'PP'.

ENDIF.

regards,

amit m.

Read only

0 Likes
1,628

When one radio button is selected the cursor can be set to the field by set cursor field.but i want the radio button to be selectd when the cursor is in a field.

Read only

0 Likes
1,628

Hi again,

1. What u are asking is not possible.

2. The reason is

3. got_focus

lost_focus

etc,

such events (which are normally available in

windows programming)

are not supported by sap gui.

regards,

amit m.

Read only

0 Likes
1,628

how the AT LINE SELECTION EVENT ON ALV REPORT can be performed.

Read only

0 Likes
1,628

chk the help on AT LINE SELECTION

This event is processed whenever the user chooses a valid line in the list (i.e. a line generated by statements such as WRITE,ULINE, or SKIP) with the cursor and presses the function key which has the function PICK in the interface definition. This should normally be the function key F2, because it has the same effect as double-clicking the mouse, or clicking once in the case of a hotspot.

The processing for the event AT LINE-SELECTION usually generates further list output (the details list) which completely covers the current list display. If you want the current list display to remain visible (to aid user orientation), you can do this with the key word WINDOW.

In most cases, the information from the selected line is used to retrieve more comprehensive information by direct reading. When displaying the original list, you store the key terms needed for this in the HIDE area of the output line.

Note

You can choose a line and start new processing even in the details lists.

The following system fields are useful for orientation purposes, since their values change with each interactive event executed.

eg:

DATA TEXT(20).

START-OF-SELECTION.

PERFORM WRITE_AND_HIDE USING SPACE SPACE.

AT LINE-SELECTION.

CASE TEXT.

WHEN 'List index'.

PERFORM WRITE_AND_HIDE USING 'X' SPACE.

WHEN 'User command'.

PERFORM WRITE_AND_HIDE USING SPACE 'X'.

WHEN OTHERS.

SUBTRACT 2 FROM SY-LSIND.

PERFORM WRITE_AND_HIDE USING SPACE SPACE.

ENDCASE.

CLEAR TEXT.

FORM WRITE_AND_HIDE USING P_FLAG_LSIND P_FLAG_UCOMM.

WRITE / 'SY-LSIND:'.

PERFORM WRITE_WITH_COLOR USING SY-LSIND P_FLAG_LSIND.

TEXT = 'List index'.

HIDE TEXT.

WRITE / 'SY-UCOMM:'.

PERFORM WRITE_WITH_COLOR USING SY-UCOMM P_FLAG_UCOMM.

TEXT = 'User command'.

HIDE TEXT.

IF SY-LSIND > 0.

WRITE / 'PICK here to go back one list level'.

ENDIF.

ENDFORM.

FORM WRITE_WITH_COLOR USING P_VALUE

P_FLAG_POSITIVE.

IF P_FLAG_POSITIVE = SPACE.

WRITE P_VALUE COLOR COL_NORMAL.

ELSE.

WRITE P_VALUE COLOR COL_POSITIVE.

ENDIF.

ENDFORM.

Depending on whether you choose the line at SY-LSIND or SY-UCOMM, the next details list contains the corresponding value with the color "positive". If the line is chosen without HIDE information, the list level is reduced.

Read only

Former Member
0 Likes
1,628

Hi ,

You can create the Radio buttons and input/output fields using

Select-options and Parameters.

The labels for these you have to specify in go to ->text elements ->selection texts.

There if the fields on the screen are dictionary fields you can check the checkbox which will display the description of the fields mentioned in the data elements of those fields. Otherwise ,we can add the labels there.

Regards ,

Sriranjani Chimakurthy.

Read only

Former Member
0 Likes
1,628

Hi,

1. Please post it as a separate question/post

and close this thread.

2. As per the forum etiquette,

u may pls award points

to helpful answers by clicking the STAR

on the left of that reply.

regards,

amit m.