cancel
Showing results for 
Search instead for 
Did you mean: 

RFC Call with multiple Input

Former Member
0 Kudos

Hi Guys,

I have a problem in calling RFC Jco in Transaction.

Actually am uisng :: RFC_READ_TABLE

Here one element input takes : Column name :

/RFC_READ_TABLE/TABLES/FIELDS/item/FIELDNAME

Input for this FILEDNAME am giving it from the "Transaction Properties"

How i assign multiple values to the FILEDNAME is accepting one ,

tried below

/RFC_READ_TABLE/TABLES/FIELDS/item[1]/FIELDNAME = Column1
/RFC_READ_TABLE/TABLES/FIELDS/item[2]/FIELDNAME = Column2

not working any inputs ??

rgds

savy

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can create various input variables in "Import Parameters" of " RFC_READ_TABLE".

Create corresponding input variables in transaction properties.

Assign those transaction properties input variables to Import parameters of RFC_READ_TABLE.

Hope this helps.

Thanks

Rajesh.S

Former Member
0 Kudos

Hi

Am trying doing same

For instance

Input 
<?xml version="1.0" encoding="UTF-8"?><FIELDS>
<item>
<FIELDNAME>CORID</FIELDNAME>
</item>
<item>
<FIELDNAME>ZDESC</FIELDNAME>
</item>
</FIELDS>

But in RFC If i see in Editor

Fields
  item
    FieldName

Now I linked Fileds --> Fileds / item --> item / fieldname --> fieldname / fieldname --> ?? How can i mapp this to RFC

regards

Savy

Former Member
0 Kudos

Savy,

if you have created a local XML parameter with the <item> node as described above, you link it to the FIELDS node of the RFC using Link Type Append XML. This way MII copies the <item> node into the RFC structure under the FIELDS node.

Good luck

Michael

Former Member
0 Kudos

Hi

Worked like gem

Savy

Answers (1)

Answers (1)

Former Member
0 Kudos

Savy,

you can create a XML Local parameter with the structure of the <item>:


<item>
  <FIELDNAME/>
  <OFFSET/>
  <LENGTH/>
  <TYPE/>
  <FIELDTEXT/>
</item>

Fill in the fieldname. Then use an assign action with Link Type Assign XML or Append XML to assign the item node to the RFC FIELDS node. This way you can assign as many items as you need for your output. You should play around with the Link Type to get used to it, because it will help you solve such kind of problems.

Michael