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

Problem with calling Transaction LS24

Former Member
0 Likes
783

Hi Experts,

I have a requirement, in which double clicking on a particlualr field in a ALV report should take me to the transaction LS24. Now, the problem is I am able to pass the values of WareHouse No , Material and Plant, but for fields in Selection Criteria i am not able to pass corresponding values.The Piece of code which I am using is :

IF rs_selfield-fieldname = 'VERME'.

CLEAR : wa_output,

wa_input.

SORT i_input BY aufnr.

READ TABLE i_output INTO wa_output INDEX rs_selfield-tabindex.

READ TABLE i_input INTO wa_input WITH KEY aufnr = wa_output-aufnr BINARY SEARCH.

IF sy-subrc = 0.

SET PARAMETER ID 'LGN' FIELD wa_input-lgnum. " Ware House No

SET PARAMETER ID 'MAT' FIELD wa_input-matnr. " material

SET PARAMETER ID 'WRK' FIELD wa_input-werks. " Plant

SET PARAMETER ID 'LGT' FIELD wa_input-lgtyp." Storage TYpe

SET PARAMETER ID 'LGP' FIELD wa_input-lgpla. " Storage Bin

ENDIF.

CALL TRANSACTION 'LS24'.

Here the values of Ware House No , material and Plant are reflected but the values of Storage type and Storage Bin is not reflected. Moreover, I also want to pass GR no, but it is not having any associated Patameter ID. So, Please suggest me how to fullfill my requirements.

Help will be appreciated.

regards

Sourabh

perhaps first use event

AT-LINE-SELECTION

and then do your SET PARAMETER ID

2 REPLIES 2
Read only

Former Member
0 Likes
613

perhaps first use event

AT-LINE-SELECTION

and then do your SET PARAMETER ID

Read only

Former Member
0 Likes
613

Hello,

for some fields on a screen you see according data dictionary a parameter id->but the usage whether the program is using it or not is not defined.

you can use a call transaction like this

CALL TRANSACTION 'LS24' using bdcdata mode <mode> messages into message_tab.

<Mode> can have values A, N, E (see SM35)

pass in bdcdata the values (matnr, lgnum and so on.)

Rgds,

JP