on 06-26-2009 10:09 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry Guys..I solved the issue but forgot to close the thread.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.