on 01-04-2011 10:45 PM
Hi everyone,
I try to implement a tRFC-XI-FILE scenario based on this blog http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/5398. [original link is broken] [original link is broken] [original link is broken]
everything works fine with except that the RFC metadata differs in XI from what is been posted by RFC from R3.
the report: ZTC_CATS_EXPORT
CALL FUNCTION 'Z_GET_CATS_HOURS'
EXPORTING
test_run = ld_test
to_date = p_dato
TABLES
hours = lt_hours
bukrs = lt_bukrs_flat
EXCEPTIONS
invalid_parameter = 1
OTHERS = 2.
CALL FUNCTION 'Z_GET_CATS_HOURS' IN BACKGROUND TASK DESTINATION 'XIQCLNT100'
TABLES
hours = lt_hours
bukrs = lt_bukrs_flat .
COMMIT WORK.
after executing the report, i can see the rfc date is correct. but in SXMB_MONI is looks like this:
<?xml version="1.0" encoding="UTF-8" ?>
- <rfc:Z_GET_CATS_HOURS xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<ABS_FULLDAY>0</ABS_FULLDAY>
<ABS_HOURS>0</ABS_HOURS>
<TEST_RUN>1</TEST_RUN>
<TO_DATE>2011-01-04</TO_DATE>
- <BUKRS>
- <item>
<BUKRS>SE21</BUKRS>
</item>
</BUKRS>
- <HOURS>
- <item>
<PERNR>00020523</PERNR>
<WORKDATE>SE21377</WORKDATE>
<BUKRS>ME_K</BUKRS>
<AWART />
<CATSHOURS>0</CATSHOURS>
<MEINH />
<CATEGORY />
</item>
</HOURS>
while it should be like this:
<?xml version="1.0" encoding="UTF-8" ?>
- <rfc:Z_GET_CATS_HOURS xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
<ABS_FULLDAY>0</ABS_FULLDAY>
<ABS_HOURS>0</ABS_HOURS>
<TEST_RUN>1</TEST_RUN>
<TO_DATE>2011-01-04</TO_DATE>
- <BUKRS>
- <item>
<BUKRS>SE21</BUKRS>
</item>
</BUKRS>
- <HOURS>
- <item>
<PERNR>00020523</PERNR>
<WORKDATE>06.05.2010</WORKDATE>
<BUKRS>SE21</BUKRS>
<AWART>337</AWART>
<CATSHOURS>20</CATSHOURS>
<MEINH>H</MEINH>
<CATEGORY>TIME_KEN </CATEGORY>
</item>
can anyone tell me what could be the problem here?
thanks
Hello,
If you have changed the RFC structure than I guess you should stop RFC channel first.
Run a dummy test. Re-start the RFC channel and retest the interface.
Possibly the RFC structure is not refreshed at adapter level.
-Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
The structure looks okay, but to be sure, can you download the payload in moni and view it in IE?
Hope this helps,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.