cancel
Showing results for 
Search instead for 
Did you mean: 

Table as input parameter to RFC

Former Member
0 Kudos

Hi all..

We have a Table structure as one of the input parameter to RFC. Can XI directly update the Table once it sends the input .. or a code should be writen in the RFC to load the data into the Table.

Thanx in advance..

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

As such an RFC just provides an interface. Without code or calling other RFCs the update wouldnt be possible

If u want to do any database updates, the corresponding code must be written in the source code of RFC.

Regards,

Prateek

Answers (2)

Answers (2)

Former Member
0 Kudos

Hey,

Question isn't that clear. CaN you specify the specific about the BAPI that you are going to use to update ?

In addition to that database only gets updated when the commit is done. With some BAPIs Commit has to be called explicitly.Check the documentation of the bapi.

In the advance mode of the RFC ADAPTER you have the following parameter

Commit Control for Single BAPI Calls:

If you want to use this communication channel to call BAPIs as remote-enabled function modules that change data in the database, set the indicator.

If executed successfully, the transaction is written to the database by calling the function module BAPI_TRANSACTION_COMMIT explicitly. If an error occurs, the transaction is rolled back by BAPI_TRANSACTION_ROLLBACK.

The result is determined by the value of the field TYPE in parameter RETURN. If successful, the tables are empty and the values “”, “S”, “I”, and “W” are displayed. All other values are regarded as errors.

For further reference follow the url <a href="http://help.sap.com/saphelp_nw04/helpdata/en/c8/e80440a832e369e10000000a155106/content.htm">RECEIVER RFC ADAPTER</a>

Answered ur query ?

Cheers,

<b>*RAJ*

*REWARD POINTS IF FOUND USEFULL*</b>

sbhutani1
Contributor
0 Kudos

You can directly pass the data in table structure from XI, there is no need for extra code. Just define a structured datatype as same of the table parameter in rfc FM and map the field in message mapping.

However if you are talking about the database table then offcourse you need to write the code in RFC FM to update the data in database table

Regards

Sumit Bhutani