cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent related to message type structure and proxy

Former Member
0 Kudos

Hello,

My outbound interface related message type structure is like this....

message type name : MSg1

Msg1

x

y

Z

(under z)

a

b

c

ok,Now in generating the proxy how to populate this structure.

For example ...

if Msg type is emp_profile_msg

Emp_name

Empno

Department_name

we use this code

REPORT zblog_abap_proxy.

DATA prxy TYPE REF TO zblogco_proxy_interface_ob.

*

CREATE OBJECT prxy.

DATA it TYPE zblogemp_profile_msg.

TRY.

it-emp_profile_msg-emp_name = 'Sravya'.

it-emp_profile_msg-empno = '80101'.

it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.

CALL METHOD prxy->execute_asynchronous

EXPORTING

output = it.

commit work

.

CATCH cx_ai_system_fault .

DATA fault TYPE REF TO cx_ai_system_fault .

CREATE OBJECT fault.

WRITE 😕 fault->errortext.

ENDTRY.

if message type consists structure inside strucutre ..then how to populate those sructure

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sunil,

Please don't mind, but I think I already have posted the answer for this query and have provided some links

Please see the below mail.

Please let me know if you need anything else than the given info.

I have one sample program where we have deal with these kind of sub-sturctures

Thanks

Swarup

Former Member
0 Kudos

Thank you ...

Could you pls forward sample code for me.

satya.kumar.sap@gmail.com

Former Member
0 Kudos

Hi,

The way for fill is Msg1-(underz) = itab and

MSG1-a = a

msg1-b = b;

etc.

Former Member
0 Kudos

I had sent you the snap-shot and the Function module code for it.

Thanks

Swarup

Answers (0)