Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Call transaction passing values

Former Member
0 Kudos

Hi Experts,

I have a report program from which i need to call a transaction to insert a record.Brief description of the problem is as follows:

User enters some value of Ware house No,Inventory record and Count in a transaction say 'T1'.

The entries are then checked in the database table.If no record exist then some other transaction 'T2' is called passing these values of Ware house No,Inventory record No and Count.Please suggest a way how to pass multipe values from 1 transaction to other.

Help will be appreciated.

Regards

Sourabh

3 REPLIES 3

Former Member
0 Kudos

Hello Sourabh,

The simplest way I can think of is BDC recording and using the data execute the transaction.

raguraman_c
Active Contributor
0 Kudos

Hi,

call transaction syntax is ""call transaction <transaction code>using<BDCtab>mode<A/N/E>update<S/A>message into <internal table>

<b>

CALL TRANSACTION tcod [AND SKIP FIRST SCREEN] [USING itab].</b>

The <b>USING ITAB</b> addition in the <b>CALL TRANSACTION </b>statement allows you to pass an internal table itab to the new transaction. itab has the format of a batch input table.

Feel free to revert back.

--Ragu

Message was edited by:

Raguraman C

Former Member
0 Kudos

Hi Sourabh,

You can just set the values that you need to pass to transaction T2 into the SAP memory before calling transaction T2 using the following syntax:

<b>SET PARAMETER ID pid FIELD source</b>, where pid is the memory id & source is your field in transaction T1 which user enters.

In the transaction T2, get the values set by the above statement using the syntax:

<b>GET PARAMETER ID pid FIELD target</b>, where target is the field which you want to set in transaction T2.

Regards,

Chetan.

PS: Reward points if you find this helpful.