cancel
Showing results for 
Search instead for 
Did you mean: 

filling table with rows before calling RFC

Former Member
0 Kudos

Hi,

I must call RFC has table. Before calling it, i must fill the table with rows.

I accumulate rows in a document object.

How to proceed to bind document to RFC table?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Cemil,

Do you want to put RFC table data into document before calling RFC. Is it right? Or you need something else.

Please explain.

-Suresh

Former Member
0 Kudos

Hi,

I want to put data from document object to RFC table and call RFC.

Thanks.

Former Member
0 Kudos

Cemil,

Please go through below mentioned blogs,it will help you in someway.

/people/padmavathi.rao2/blog/2009/03/14/mii-odyssey-how-to-pass-table-structure-to-bapi-using-jco-interface-of-erp-system-interface-in-mii-12

/people/abesh.bhattacharjee/blog/2007/06/05/calling-a-bapi-with-a-table-as-an-input-parameter-from-xmii

-Suresh

Edited by: Suresh Hiremath on Jul 16, 2009 2:18 PM

Answers (1)

Answers (1)

roger_zuehlsdorf
Discoverer
0 Kudos

Hello,

as a beginner I spent some days reading all the hints and blogs about this problem - nothing worked for me the way I want.

Main problem was the first step, how to define the temporary structure of the BAPI. I don't want to use a fix structure defined manually or with reference documents to avoid problems with changing table structures.

Finally I got it working this with the advantage, that I can trace everything at all points by XML.Output of the Request-XML.

Use a dumy JCO block with execute flag unchecked.

In the JCODummy.Request XML

1. Removing the empty default record of the table using Assignment with XML Remove

2. Adding Rows by assigning fields to the row:

- Create a local XML named BAPI_INP

- use assign XML of JCODummy.Request to BAPI_INP

- for the JCO-Dummy do an XML-Remove for the empty default entry of the table

- running through my input doc with a repeater,

Assign fields to Table structure row in BAPI_INP

do an XML Append of the BAPI_INP Table "item" to the DummyJco-Table

Finally add an JCOTest action with activated Execute flag.

In this action link the JCODummy.Request to the JCOTest.Request using Assign XML.

Hope this helps.

Not really nice - I will try to address this point for one of the next MII releases in the DSAG user group in Germany (we had a meeting in SAP-Walldorf last week).

Roger Zuehlsdorf

Germany