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

Exception in Update Task causing dump

Former Member
0 Likes
815

Hi All,

We have created a output type with special function which gets triggered upon PGI. In the program attached to this output type we are making a proxy call which is synchronous.

In case while doing creating delivbery and doing PGI, if the proxy call fails it ends with update termination since the above program executes in the update task.

Can you please suggest any way this expection can be handled so that creation of delivery is not terminated ?

Following call is made:

CALL METHOD lo_clientproxy->(lo_method)

          
EXPORTING

            
output = out_msg

          
IMPORTING

            
input  = in_msg.

*    Use Protocol Methods to get the sent Message ID

         l_message_id 
= lo_protocol_messageid->get_message_id( ).

      
CATCH cx_ai_system_fault INTO lo_system_fault.

        
MESSAGE i008(zitf) WITH lo_system_fault->errortext.

        
WRITE: / lo_system_fault->errortext.

* get the root exception and display the textid value

      
CATCH cx_root INTO lo_root.                       "#EC CATCH_ALL

        
MESSAGE i008(zitf) WITH lo_root->textid.

*         RETURN.

    
ENDTRY.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
728

In update task why please comment information message.do you have some commit?

4 REPLIES 4
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
729

In update task why please comment information message.do you have some commit?

Read only

0 Likes
728

Yes I commented the information message and it worked, thanks.

Can you please let me know the reason for this ?

Read only

0 Likes
728

In update tasks no user interaction is allowed for example this info message

Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
728

Check by commenting information message email the errors