on 08-16-2007 2:56 PM
Hi,
I'm trying to figure out how to pass multiple records from a form to a BAPI or function module, but do not find an easy how-to or example. I found a how-to on 1 this links (https://www.sdn.sap.com/irj/sdn/visualcomposer?rid=/webcontent/uuid/91b3bb34-0c01-0010-ef94-b74567074bdf [original link is broken]) with the title How to Pass Multiple Records from a Form to a BAPI. This how-to assumes you already have the control design model FIN_HCM_CORPORATE_GOVERNANCE_DESIGN. The thing is that I do not have this model and neither find the BAPI with which they work.
Can someone help me out on this?
thanks in advance!
Tom
Hi,
From where u r passing multiple records to BAPI, is it form or table view, my guess it must be table view
if that is the case u need to set two important properties of a table view
first open u r table view in configure elemten window
and set selection mode == multiple, and check the keep select row option and set editing mode as editable.
Note::make sure that ur bapi has a logic of updating multiple records at a time.
hope this will solve u r problem
regards
srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tom,
this is quite simple. You have to flip port the port for your table parameters. A BAPI/RFC function module has import and export parameters for single values. Then you have also table parameters for passing a whole table or as you have written for passing multiple records. If you drag a BAPI/RFC function module on VC storyboard the table parameters are by default output ports, but they could be both, input and output ports.
Ok for passing multiple values, you should have a table and set the selection mode to multiple. Then connect the output port of your table with the input port (which you have flipped the port before) of the BAPI/RFC function module. The you have to configure the line between table and BAPI/RFC function module. Set the mapping scope to all data rows.
This should work, but it depends on your SPS. You need SPS10.
Also have a look here:
<a href="https://wiki.sdn.sap.com/wiki/display/VC/Selectingmultiplevalues">https://wiki.sdn.sap.com/wiki/display/VC/Selectingmultiplevalues</a>
Best Regards,
Marcel
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.