on 10-20-2009 4:59 AM
Hi,
I just installed and configure new PI 7.1 EHP 1 SP3 and i tried some simple abap proxy but seems like doesn't work.
Please advise what is missing base on my simple abap code below :
=================================================================================================
METHOD zpi711ii_si_syn_in_aaeproxy~si_syn_in_aaeproxy.
**** INSERT IMPLEMENTATION HERE **** ***
DATA: inputdata TYPE ZPI711MT_REQ_1,
outputdata TYPE ZPI711MT_RES_1.
CONCATENATE inputdata-mt_req_1-firstname ' ' inputdata-mt_req_1-lastname INTO outputdata-mt_res_1-fullname.
ENDMETHOD.
=================================================================================================
i have put some break on the CONCATENATE seems like inputdata-mt_req_1-firstname is empty ? why ?
The sample xml input is :
=================================================================================================
<n0:MT_REQ_1 xmlns:n0="http://www.abeam.com/sample/pi" xmlns:prx="urn:sap.com:proxy:ST6:/1SAI/TAS1190827B531A473B357B:700:2008/06/25">
<FIRSTNAME>This is a string 4</FIRSTNAME>
<LASTNAME>This is a string 5</LASTNAME>
</n0:MT_REQ_1>
=================================================================================================
Please advise
Thank You and Best Regards
Fernand
The correct coding is :
METHOD zpi711ii_si_syn_in_aaeproxy~si_syn_in_aaeproxy.
**** INSERT IMPLEMENTATION HERE **** ***
CONCATENATE INPUT-mt_req_1-firstname INPUT-mt_req_1-lastname INTO OUTPUT-mt_res_1-fullname SEPARATED BY SPACE.
ENDMETHOD.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fernand,
Seems the inputdata has no data in it, initially check with some hard code values, if they are giving expected result, then check the input structure, whether you are pointing to right structure or not and also check your output structure.
Regards,
Prasanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Fernand ,
Few things to check :
1. hope you are accessing the correct node of proxy structure and the correct message type too.
2.. If the occurrence of node is 1 to many than it will be a table type in that case your need to use a loop to access row values.
Make sure that you have used the correct message types for creating variables..
DATA: inputdata TYPE ZPI711MT_REQ_1,
outputdata TYPE ZPI711MT_RES_1.
--->inputdata-mt_req_1-firstname ' ' inputdata-mt_req_1-lastname
-
>once you have created the variable of particular messagetype than you have to use in this format inputdata-firstname and inputdata-lastname. seems some thing fishy here...inputdata-mt_req_1-firstname/lastname.
Regards ,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.