cancel
Showing results for 
Search instead for 
Did you mean: 

INPUT Parameter of INBOUND ABAP PROXY

former_member70391
Contributor
0 Kudos

Hello Friends,

We have created the inbound proxy via SPROXY and we have implemented the class ZACCL_MI_VENDOR_MASTER_PROXY_I for the same. Now In the structure tab of ABAP Proxy I can see the following structure of the INPUT.

INPUT-MT_VENDOR_MASTER_PROXY -VENDOR -VENDOR_DETAIL -RECORD_TYPE.

Now in the record_type we are passing a single parameters C or N. i.e if i is N then new and if it C then change.

In my class implementation i am doing the followin check.

CASE input--MT_VENDOR_MASTER_PROXY -VENDOR -VENDOR_DETAIL -RECORD_TYPE. WHEN 'N'.

CALL METHOD me->create_vendor

EXPORTING

input = input

IMPORTING

title = title

it_recp = it_recp

it_contenttext = content_text.

WHEN 'C.

CALL METHOD me->change_vendor

EXPORTING

input = input

IMPORTING

title = title

it_recp = it_recp

it_contenttext = content_text.

but I am getting following error message.

input-MT_VENDOR_MASTER_PROXY-VENDOR-VENDOR_DETAIL-RECORD_TYPE is unknown.

Could you please help me on this issue.

Thanks & Regards,

Nagaraj

Accepted Solutions (1)

Accepted Solutions (1)

former_member181962
Active Contributor
0 Kudos

If one of MT_VENDOR_MASTER_PROXY,VENDOR or VENDOR_DETAIL is a table type and not a flat structure, then your statement will not work.

Suppose if VENDOR_DETAIL is a table type, then you have to access RECORD_TYPE this way.

* Create it_vendor_detail type table of <VENDor_DETAIL>...
it_vendor_detail[] = input-MT_VENDOR_MASTER_PROXY-VENDOR-VENDOR_DETAIL[].

loop at it_vendor_detail into wa_vendordetail.
case wa_vendordetail-record_type.
when 'N'....
when 'C'...
endcase.
endloop.

Regards,

Ravi

Answers (3)

Answers (3)

former_member70391
Contributor
0 Kudos

Sorry Guys..I solved the issue but forgot to close the thread.

former_member732072
Active Participant
0 Kudos

Hi Nagaraj,

Please have a look at the following link and see if it helps you.

https://wiki.sdn.sap.com/wiki/display/XI/ABAPClientProxytoABAPServerProxy+Scenario

Best Regards

0 Kudos

Check your INPUT-MT_VENDOR_MASTER_PROXY -VENDOR -VENDOR_DETAIL -RECORD_TYPE is correct or not.

Usually it has to be of structure input-MT-item.