cancel
Showing results for 
Search instead for 
Did you mean: 

wrong XML data in RFC sender adapter

Former Member
0 Kudos

Hi!

I'am using simple scheme: RFC -> XI -> File.

Used RFC Function Z_TEST_BPM_5 has importing parameters:

*" IMPORTING

*" VALUE(IM_ROWCOLVAL) TYPE ZSROWCOLVAL

*" VALUE(IM_PAR1) TYPE CHAR10

*" VALUE(IM_PAR2) TYPE INT4

*" VALUE(IM_PAR3) TYPE CHAR100

Structure ZSROWCOLVAL:

ZROW CHAR 4

ZCOLUMN CHAR 4

ZVALUE CHAR 256

I'm running this code:


ls_rcv-zrow = 'abcd'.
ls_rcv-zcolumn = 'efgh'.
ls_rcv-zvalue = 'ijklmnopqrstuvwxyz'.


CALL FUNCTION 'Z_TEST_BPM_5'
DESTINATION 'D70_RFC_SENDER_D70'
  EXPORTING
    IM_PAR1 = 'Text 1'
    IM_PAR2 =  3
    IM_PAR3 = 'Text for parameter 2'
    IM_ROWCOLVAL       = ls_rcv
 EXCEPTIONS
         system_failure        = 2 MESSAGE msg_text
         communication_failure = 1 MESSAGE msg_text
         other = 4.

Content of generated file:

<?xml version="1.0" encoding="UTF-8" ?>

<rfc:Z_TEST_BPM_5 xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

<IM_PAR1>Text 1</IM_PAR1>

<IM_PAR2>3</IM_PAR2>

<IM_PAR3>Text for parameter 2</IM_PAR3>

<IM_ROWCOLVAL>

<ZROW>abcd</ZROW>

<ZCOLUMN>ijkl</ZCOLUMN>

<ZVALUE>qrstuvwxyz</ZVALUE>

</IM_ROWCOLVAL>

</rfc:Z_TEST_BPM_5>

PAR1, PAR2, PAR3 - correct ...

IM_ROWCOLVAL - incorrect ...

I think, RFC-adapter parsed my RFC-data to XML incorrect .... But, why?

I activated all objects.

Sorry of my English!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

check ur maping with test tab using same xml... i think there shd be problem with the mapping for that element.(IM_ROWCOLVAL)

Former Member
0 Kudos

I haven't mapping.

I checked "Unicode" in RFC-destination in SM59, and OK.

Thanks!

Edited by: Dmitry Pliskov on Oct 30, 2008 2:24 PM

Former Member
0 Kudos

Hi,

IM_ROWCOLVAL - incorrect ...

how do you want this structure to be fillled in xml message...

whats ur requirement.

Regards,

Sreeni.