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

Refresh opportunity screen

Former Member
0 Likes
422

Hi,

I have implemented the BADI CRM_ORDER_STATUS. This BADI is being called when status of any business transaction (Opportunity) is changed. At the change of status I am updating few fields in the transaction (Opportunity) using this BADI. But the changes are not reflected on the Opportunity screen immediately. A user action (pressing enter or changing the tab) is required to update the fields. Can someone tell me how do I refresh the screen or update those fields both in SAP GUI and PCUI.

Hi,

I have implemented the BADI CRM_ORDER_STATUS. This BADI is being called when status of any business transaction (Opportunity) is changed. At the change of status I am updating few fields in the transaction (Opportunity) using this BADI. But the changes are not reflected on the Opportunity screen immediately. A user action (pressing enter or changing the tab) is required to update the fields. Can someone tell me how do I refresh the screen or update those fields both in SAP GUI and PCUI.

1 REPLY 1
Read only

manfred_oster
Explorer
0 Likes
388

Hi!

Maybe I have a solution at least for SAP GUI.

In classical dynpros the screen is refreshed only at PBO (the process before output event). User actions enforce a PAI (process after input) event. PBO is processed automatically afterwards.

By means of the control framework you can simulate this by program. Just use

CALL METHOD cl_gui_cfw=>set_new_ok_code

EXPORTING new_code = dummy_okcode.

Take care that 'dummy_okcode' is not used in the program to avoid side effects. (In my program I set an okcode with a non-printable sign, e.g. ASCII-Code 0).

Best regards, Manfred