Application Development and Automation 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: 
Read only

Call transaction - SET/GET parameter

Former Member
0 Likes
1,117

Hi all,

I have the following problem.

We have written an own transaction 'XYZ'. This transaction calls different other transactions.

We use the statement "call transaction <xyz> and skip first screen" with set/get parameters.

But when the users are in the transaction 'XYZ' with two or more modus the set/get parameter are wrong and the called transactions were showing wrong values.

How can I avoid this?

regards

3 REPLIES 3
Read only

Former Member
0 Likes
624

Hi,

try like this.

set parameter id 'ANR' for <field>.

call transaction <xyz> and skip first screen.

Regards,

Vijay

Read only

Former Member
0 Likes
624

Hi,

first in your transaction 'xyz' you need to lock your table entry with primary keys.So that other user cant open with same record.

second when you set the id set it with that primary key combination, so that it will be unique when user gets the same.

sample code

concatenate vbeln bukrs into p_string.

set parameter id   p_string field v_pgmname 

other program

get parameter id p_string field v_pgmname .

regards

Sajid

Edited by: shaik sajid on Jul 16, 2009 11:26 AM

Read only

Former Member
0 Likes
624

Try using SUBMIT satement as follows

for eg

SUBMIT rm07mlbd "prog name

WITH SELECTION-TABLE it_rspar EXPORTING LIST TO MEMORY

AND RETURN.

Fill it_rspar depending on the selection screen of called program

x_rspar-selname = 'WERKS'.

x_rspar-kind = 'S'.

x_rspar-sign = 'I'.

x_rspar-option = 'EQ'.

x_rspar-low = "VALUE to be passed"

CONDENSE x_rspar-low.

APPEND x_rspar TO it_rspar.

CLEAR x_rspar.