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

reprocess PBO

Former Member
0 Likes
798

Hi all,

i have a drop down box.

The value of this drop down box depend on a internal table. So I need to reprocess the pbo for displaying the new value.

How can I achive this (reprocess the PBO) automatically?

bye

enzo

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
753

Hi Enzo,

It is very easy to force a PBO.

I use cl_gui_cfw=>set_new_ok_code( NEW_CODE = '/00' ).

This emulates the user pushing the green tick button next to the transaction box.

If you use this though, you must know that it first executes the PAI and then the PBO (so make sure nothing unexpected could happen in your PAI).

Hope this helps,

Phil.

6 REPLIES 6
Read only

Former Member
0 Likes
753

if you want to re-process a screen without entry use the statement "suppress dialog". pai->pbo will be processed one time without any input.

but i guess what you need is to read your itab at pbo...

Read only

0 Likes
753

Hi Robin

in my dympro I have an alv and a drop down list.

The value of list depend on value of internal table displayed with alv.

This alv is editable, so when I add a row in the alv (i.e. in the internal table) I have to add this value also to drop list.

Read only

0 Likes
753

i think you have to handle the event for updated data.

look at the methods from your alv.

Read only

Former Member
0 Likes
754

Hi Enzo,

It is very easy to force a PBO.

I use cl_gui_cfw=>set_new_ok_code( NEW_CODE = '/00' ).

This emulates the user pushing the green tick button next to the transaction box.

If you use this though, you must know that it first executes the PAI and then the PBO (so make sure nothing unexpected could happen in your PAI).

Hope this helps,

Phil.

Read only

0 Likes
753

Phillip is right, a good way to make sure nothing will happen in the PAI, is to use an FCODE that is not being handled in the PAI. For example.......


cl_gui_cfw=>set_new_ok_code( NEW_CODE = <b>'DUMMY_FCODE'</b> ).

In your PAI, you must be doing a CASE statment on OK_CODE.

Case ok_code.
   when 'BACK'.
     ..
   when 'EXIT'.
     ..
Endcase.

SO in this case, you don't want to use any Fcode being handled here, using DUMMY_FCODE, it would simply fall thru the PAI.

Regards,

Rich Heilman

Read only

0 Likes
753

Thanks to all.

As usualy all sdn members are import resource

Bye

enzo