Skip to Content
avatar image
Former Member

RFC->XI->FILE

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 05, 2011 at 05:33 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 05, 2011 at 06:26 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello

      I fixed it by checking if the target system for RFC Destination (XI) was a Unicode or Non-Unicode System. Than changed the setting in MDMP & UNICODE section of the RFC Destination to the same Communication Type as XI's.

      thanks a lot anyway for your replies.