2007 May 09 8:23 AM
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
2007 May 09 8:54 AM
perhaps first use event
AT-LINE-SELECTION
and then do your SET PARAMETER ID
2007 May 09 12:33 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |