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

at selection-screen output probelm

Former Member
0 Likes
2,013

Hi ,

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

regards,

ramajay reddy

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,643

Hi,

This is not possible without a user action on the screen, unless your fields are drop down lists, check box or radiobutton respectively, Reason is that the SAP Screen processing will not trigger the PAI event unless there is a user action on the screen like pushing a button, radiobutton , checkbox or selecting a value from a dropdown list. And hence PBO will not get triggered either. Thus entering value in input fields and pressing the tab key is not enough. The user must press 'Enter' if the PAI--PBO should be triggered.

Pressing 'Enter' is much more user friendly and convinient than adding a button/radiobutton/checkbox on the selection screen to update other fields on the selection screen as in your scenario.

regards,

Advait

Hi ,

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

regards,

ramajay reddy

7 REPLIES 7
Read only

Former Member
0 Likes
1,643

Have you tried doing it with the FM:

CALL FUNCTION 'DYNP_VALUES_UPDATE'

Suppose you are entering 3 values after calling your screen then you have to press the enter to call

trigger the event :

At Selection-Screen on output.

Neha

Read only

0 Likes
1,643

Hi Neha,

Is there any alternative with out ENTER key pressing to trigger the Event and add the data into the 4th field.

I want that requirement.

regards,

ram

Read only

0 Likes
1,643

Hi Ram

You can add a button in your selection-screen .

or you can try with Modif-id ,I think you can try to do it with Modif-id that should sove your problem.

Neha

Read only

0 Likes
1,643

Hi,

There is. All you need to do is add function code to each parameters, then after changing its value it will automatically trigger AT SELECTION-SCREEN event:


PARAMETERS: pa_1st type ... USER-COMMAND fcode1,
                        pa_2nd type ... USER-COMMAND fcode2...
                        ...
AT SELECTION-SCREEN.
  CONCATENATE pa_1st pa_2nd pa_3rd INTO pa_4th.

That should help you

Regards

Marcin

Read only

0 Likes
1,643

Hi,

I think we need to use the USER-COMMAND options for Check BOX, radio button or List box.

But here mine is In put field.(Some need to enter here).

regards,

Ram

Read only

0 Likes
1,643

Hi

One option can be you can add one additional parameter as checkbox in your selection-screen and then

assign it a function code.

Another will be using a pushbutton.


SELECTION-SCREEN: FUNCTION KEY 1,
                                   FUNCTION KEY 2.

In the standard GUI of the selection-screnn SAP has provided 5 default pushbuttons.

By using Function Key you can use them for your screen modifications.

Neha

Read only

Former Member
0 Likes
1,644

Hi,

This is not possible without a user action on the screen, unless your fields are drop down lists, check box or radiobutton respectively, Reason is that the SAP Screen processing will not trigger the PAI event unless there is a user action on the screen like pushing a button, radiobutton , checkbox or selecting a value from a dropdown list. And hence PBO will not get triggered either. Thus entering value in input fields and pressing the tab key is not enough. The user must press 'Enter' if the PAI--PBO should be triggered.

Pressing 'Enter' is much more user friendly and convinient than adding a button/radiobutton/checkbox on the selection screen to update other fields on the selection screen as in your scenario.

regards,

Advait