Application Development 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: 

update a text on screen without action/event of an user

former_member215107
Active Participant
0 Kudos

Hi everybody,

I have a checkbox ch_pax.

When i activate this checkbox, i want to display the status of a Process Chain via a table.

BUT the refresh of the status does work only if an user create an event on the screen.

I want to refresh the status on the screen without action of an user ....

Please, Help me !

Thanks

Rodolphe.

Here the code ABAP:

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF ch_pax = 'X'.

SELECT * FROM rspclogchain UP TO 1 ROWS WHERE chain_id LIKE 'PAX_AIRLINE' ORDER BY datum DESCENDING zeit DESCENDING.

CASE rspclogchain-analyzed_status.

WHEN 'R'.

com_pax = 'PC Ended with Errors'.

WHEN 'G'.

com_pax = 'PC Ended with Successfull'.

WHEN 'A'.

com_pax = 'PC in Process ...'.

WHEN OTHERS.

com_pax = rspclogchain-analyzed_status.

ENDCASE.

ENDSELECT.

ENDIF.

ENDLOOP.

1 ACCEPTED SOLUTION

h_senden2
Active Contributor
0 Kudos

use the option USER-COMMAND ENTE for the checkbox.

After changing the checkbox, the event AT SELECTION-SCREEN OUTPUT is triggered. And you can do your things.

I know that i will work for radio button groups, probably also for checkboxes.

regards,

Hans

5 REPLIES 5

h_senden2
Active Contributor
0 Kudos

use the option USER-COMMAND ENTE for the checkbox.

After changing the checkbox, the event AT SELECTION-SCREEN OUTPUT is triggered. And you can do your things.

I know that i will work for radio button groups, probably also for checkboxes.

regards,

Hans

former_member215107
Active Participant
0 Kudos

Hi Hans,

I have already add the option USER-COMMAND ENTE for the checkbox.

And, indeed, when i click on the checkbox, i can see immediately the status "PC in Process".

But, when the Process Chain has finished, i don't see the status "'PC Ended with Successfull'

on my screen.

I need to do an event on my screen to have the refresh...

Thanks,

Rodolphe.

0 Kudos

In that case "It's not possible" as far as I know.

Regards,

Mohaiyuddin

Former Member
0 Kudos

Hi,

assigning user command to checkbox will automatically trigger event and call

At selection-screen output (PBO)

PARAMETERS : p_check AS CHECKBOX USER-COMMAND click.

Regards,

Mohaiyuddin

Former Member
0 Kudos

Hi,

I think it should work but i have few doubts regarding your query if you have implemented it the way it is mentioned here:

1. You are selecting upto 1 rows .....but where there is no "INTO <Work Area>".

2.If yo are selecting upto 1 rows...then whats the need of doing order by..

3. I don't think there is need to do Loop at Screen because you are not checking Screen elements any where like Name ,Group1 etc. so just remove that and proceed,

you can simply check condition

IF ch_pax = 'X'.

and continue processing