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: 

SET/GET Parameter not working? pls hlp

Former Member
0 Kudos
1,085

hi i am using a transaction variant on transaction LT01 - create transfer order. using the transaction variant i have greyed out 3 fields on the initial screen. for the greyed out fields i am passing the values using a SET PARAMETER. This is working fine for 2 fields but it does not work for the third field. any idea where i am going wrong?? the first field is warehouse number which is working fine. the second field is movement type and the third field is storage location. the first 2 works fine and the data gets populated in the greyed out field but the storage location field does not work. The field has a parameter id. pls help its urgent.

promise will reward points if its resolved

9 REPLIES 9

Former Member
0 Kudos
251

Hi,

Are you using the parameter id LAG for this?

Can you try setting the parameter for Plant (WRK) as well, there might be some linkage (just a guess).

Regards,

Ravi

0 Kudos
251

hi yes i am using LAG for storage location and also BWL for movement type. As u suggested i tried passing WRK as well but it didnot work. anyother options?

0 Kudos
251

Hi,

I just looked into the program and unfortunately on the screen for the STORAGE LOCATION field in the attributes the SET / GET parameters check boxes are not checked.

Also, I search for a SET PARAMETER statement for that field and could not find one, check if any OSS notes are available for the same.

Regards,

Ravi

Note :Please mark the helpful answers

0 Kudos
251

it seems, GET parameter doesnt work for CREATE transactions. even we are facing the same problem for IW21 transaction.

do let me know, if anyone finds the solution?

below is the piece of code. parameters are getting set (can be checked in debug mode). however, its not getting replicated in the transaction.

data: l_nottyp type char2.

data: l_eqnr type equnr.

data: l_not type qmnum.

l_nottyp = 'M1'.

SET PARAMETER ID 'QMR' FIELD l_nottyp.

break-point.

CALL transaction 'IW23'." AND skip first screen.

break-point.

clear l_nottyp.

get parameter id 'QMR' field l_nottyp.

break-point.

do let me know, if anyone finds the solution?

Former Member
0 Kudos
251

Hi,

Check whether field in set and get are declared

with same reference field.

data l_lgort like mard-lgort.

set parameter id 'LAG' field l_lgort.

get parameter id 'LAG' field l_lgort.

Regards,

Amole

0 Kudos
251

i m using the correct paramter IDs. i have checked that already.

any other clue.

Former Member
0 Kudos
251

Hi,

I just checked IW23 the field is riwo00-qmnum

and parameter id for this 'IQM' .

check below code

data l_qmnum like riwo00-qmnum value '10000184'.

set parameter id 'IQM' field l_qmnum.

call transaction 'IW23' and skip first screen.

Regards,

Amole

0 Kudos
251

hi

thanks for ur effort.

i m using IW21 transaction, the field that i m using is "Notification Type" whose Parameter ID is "QMR".

However, in transaction IW23, there is no such field.

my peice of code is:

data: l_nottyp type char2.

l_nottyp = 'M1'.

SET PARAMETER ID 'QMR' FIELD l_nottyp.

CALL transaction 'IW21'." AND skip first screen.

According to me, above code should be able to set the value for "Notification Type". however, its not working.

Former Member
0 Kudos
251

Hi american,

1. but the storage location field does not work.

In such cases, we have to follow another approach.

(CALL TRANSACTION USING BDCDATA

2. Just copy paste in new program.

(it will populate the STORAGE LOCATION field)

3.

report abc.

*----


data : bd like table of bdcdata with header line.

*----


bd-program = 'SAPML03T'.

bd-dynPRO = '0101'.

bd-dynbegin = 'X'.

append bd.

CLEAR BD.

bd-fnam = 'LTAK-BWLVS'.

bd-fval = 'AAA'.

append bd.

bd-fnam = 'LTAK-LGNUM'.

bd-fval = '015'.

append bd.

*----


STORAGE LOCATION

bd-fnam = 'LTAP-WERKS'.

bd-fval = 'AAA'.

append bd.

*----


CALL TRANSACTION 'LT01'

USING BD.

regards,

amit m.