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

Problem in using at selection-screen output

Former Member
0 Likes
1,869

Hai Frnds,

I am using 5 parameters in the selection screen . I am entering data in the 4 input fields. Then I am doing concatenate 4 fileds data into the 5th field in the event AT SELECTION-SCREEN OUTPUT, but my problem is When ever i click ENTER , then only 5th field is updating. With out ENTER key , Is it possible update 5th filed.

Thanks,

Kiran.

11 REPLIES 11
Read only

agnihotro_sinha2
Active Contributor
0 Likes
1,212

hi,

there has to be an event to update the 5th field which is ENTER here...

i dnt think without any event triggering it you can update the 5ht field since the control has 2 flow frm screen to code and back 2 code...

Read only

agnihotro_sinha2
Active Contributor
0 Likes
1,212

hi,

there has to be an event to update the 5th field which is ENTER here...

i dnt think without any event triggering it you can update the 5ht field since the control has 2 flow frm screen to code and back 2 code...

Read only

Former Member
0 Likes
1,212

it will be displayed only on clicking ENTER.(this will be the event here)

Read only

Former Member
0 Likes
1,212

Hi Kiran,

ABAP is event driven programming language but unlike other event driven languages it has a set of events that are fired and unfortunately events like lost focus or got focus are not among them so any operation you need will happen only if an event which exists in ABAP will fire and in your case hitting enter is probably the best scenario.

Regards,

Sachin

Read only

Former Member
0 Likes
1,212

Hi Kiran ,

Try doing the concatenation in the INITIALIZATION event then you might get it !

Much Regards ,

Amuktha .

Read only

Former Member
0 Likes
1,212

Hi ,

If want to update the 5th field with out ENTER you can use two Radiobutton as follows -


PARAMETERS : p1 RADIOBUTTON GROUP rgp USER-COMMAND ONLI DEFAULT 'X',

p2 RADIOBUTTON GROUP rgp .

After filling the first 4 fields you can swap the radio button to get the fifth field populated .

Regards

Pinaki Mukherjee

Read only

Former Member
0 Likes
1,212

Hi,

We can restrict the functionality of ENTER.

User the Concatenation in AT SELECTION-SCREEN EVENT

because AT SELECTION-SCREEN OUTPUT is triggered before

selection screen is displayed.Below code will definitly work.

Ex:

Tables:SSCRFIELDS.

At selection-screen.

IF SY-ucomm = ' '.

Clear SSCRFIELDS-UCOMM.

ENDIF.

CHECK SSCRFIELDS-UCOMM EQ 'ONLI'.

CONCATENATE <FIELDS> INTO PARAMETER5.

ONLI is Function code of F8

' ' is for enter.

The above code will surely work.

Thanks.

Read only

0 Likes
1,212

PARAMETERS : p1 RADIOBUTTON GROUP rgp USER-COMMAND ONLI DEFAULT 'X',

p2 RADIOBUTTON GROUP rgp .

i dont need the second button. But when i am using one button it is giving me error message that 'the RGP contains only one parameter'. I dont need the second one. or if it is there, when i click the P2 button the field should be errased, can we do that.

Thanks to all especially for Gurpreet Singh and Tanveer Zahack.

Kiran.

Read only

0 Likes
1,212

Hi,

P1 and P2 are radiobuttons, you can not have a single radiobutton, thats why you receive the error message. You can code such that when p2 is selected parameters will clear.

Simplely write

if p1 = 'X'.

do the concatenate fucntion

else.

clear: parameter list.(5 parameters u have created)

endif.

Hope this helps

Sachin

Edited by: Sachin Dargan on Feb 5, 2009 11:06 AM

Read only

0 Likes
1,212

In two radio buttons I invisibled one button. Sachin pls look this

This is my code..

at selection-screen output.

LOOP AT SCREEN.

IF screen-name = 'P1'.

screen-invisible = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Read only

Former Member
0 Likes
1,212

Hi Kiran,

There's no such event in ABAP that can automatically assign concatenated values of the above given parameters without hitting ENTER KEY.

Had it been radiobutton, it can be automatically done by assigning USER-COMMAND.

Thanks.