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: 

outbound proxy.......

Vijay
Active Contributor
0 Kudos

hi all,

i am working on an outbound proxy.

i fetched all the data in a table of type proxy structure .

filled in all all the header details and calling the execute_asynchronous method like this

-


  • Pass on the data to the deep table structure in Proxy.

wa_out_proxy-mt_extract_orders-message_header-system_of_origin = 'SAP'

wa_out_proxy-mt_extract_orders-message_header-unique_id = 'IN_4043'

wa_out_proxy-mt_extract_orders-message_header-interface_id = ' '

wa_out_proxy-mt_extract_orders-message_header-process_area = 'ZEAM'.

wa_out_proxy-mt_extract_orders-message_payload-record = it_orders[]. (table having the data)

CREATE OBJECT ord_details.

CALL METHOD ord_details->execute_asynchronous

EXPORTING

output = wa_out_proxy.

COMMIT WORK.

-


it is giving me dump as below:

<i>Error analysis

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_AI_SYSTEM_FAULT', was not caught

in

procedure "ZPMMT1_ORDER_GETDETAIL" "(METHOD)", nor was it propagated by a

RAISING clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

Error (id=GET_BUSINESS_SYSTEM_ERROR): An error occurred when determining the

business system (NO_BUSINESS_SYSTEM)

The occurrence of the exception is closely related to the occurrence of

a previous exception "CX_XMS_SYSERR_PROXY", which was raised in the program

"CL_PROXY_RUNTIME_ERRORS=======CP",

specifically in line 16 of the (include) program

"CL_PROXY_RUNTIME_ERRORS=======CM008".

The cause of the exception was:

An error occurred when determining the business system (NO_BUSINESS_SYSTEM)</i>

plz help me ......

regards

vijay

3 REPLIES 3

Former Member
0 Kudos

Hi vijay,

Just Remove Commit Work and try (its just try ).

Thanks

Naveen khan

Vijay
Active Contributor
0 Kudos

HI

din't work....

vj

Former Member
0 Kudos

Hi Vijay,

Use Try and catch statements.

Make the changes as mentioned below and check.

CREATE OBJECT ord_details.

TRY.

wa_out_proxy-mt_extract_orders-message_header-system_of_origin = 'SAP'

wa_out_proxy-mt_extract_orders-message_header-unique_id = 'IN_4043'

wa_out_proxy-mt_extract_orders-message_header-interface_id = ' '

wa_out_proxy-mt_extract_orders-message_header-process_area = 'ZEAM'.

wa_out_proxy-mt_extract_orders-message_payload-record = it_orders[]. (table having the data)

CALL METHOD ord_details->execute_asynchronous

EXPORTING

output = wa_out_proxy.

COMMIT WORK.

.

CATCH cx_ai_system_fault .

DATA fault TYPE REF TO cx_ai_system_fault .

CREATE OBJECT fault.

WRITE 😕 fault->errortext.

ENDTRY.

I hope this will help.

Regards,

Monica