2013 Sep 26 12:48 PM
hi there,
i have a ALV with a link where i can 'JUMP' into transaction MB52.
I am using CALL TRANSACTION for that issue:
SET PARAMETER ID 'MAT' FIELD gt_alv_out-matnr.
CALL TRANSACTION 'MB52' AND SKIP FIRST SCREEN.
Now to my problem: i set the field matnr for the selection screen out of the alv-line. ALL OTHER selection fields have to be EMPTY !
BUT: sometimes a parameter-id for another field (e.g. WRK for plant) is set. so the call transaction is called with matnr AND plant,
which is wrong !
how can i avoid that the call transaction is done with filled parameter-id's ? of course, i can do call transaction with variant XXX, but
there i cannot set the matnr.
br, Martin
2013 Sep 26 1:07 PM
Hi,
As there are 4 variables for which system takes the values by Get Paramater ID in MB52, it will be better if you set MATNR value for 'MAT' and keep other blank, 'WRK', 'lag', 'cha''.
SELECTION-SCREEN BEGIN OF BLOCK abgrenzung WITH FRAME TITLE text-001.
SELECT-OPTIONS:
matnr FOR mara-matnr MEMORY ID mat MATCHCODE OBJECT mat1,
werks FOR t001l-werks MEMORY ID wrk, "718285
lgort FOR t001l-lgort MEMORY ID lag,
charg FOR mchb-charg MEMORY ID cha MATCHCODE OBJECT mch1.
SELECTION-SCREEN END OF BLOCK abgrenzung.
Regards,
Zafar
2013 Sep 26 12:52 PM
2013 Sep 26 12:55 PM
Hello Peter,
well, i have thought about that.
But the selection screen has MANY fields. so i will have to set it for every single field ?
Is there no other way ?
br, Martin
2013 Sep 26 12:56 PM
Hi Martin,
I suggest that you clear the WRK Parameter ID before you call MB52.
You may insert this code before the Call Transaction
DATA: g_werks TYPE werks_d.
CLEAR: g_werks.
SET PARAMETER ID 'WRK' FIELD g_werks.
Regards,
Peter
2013 Sep 26 12:57 PM
Hi,
set all fields with PARAMETER IDs to initial values.
Regards,
Klaus
2013 Sep 26 1:07 PM
Hi,
As there are 4 variables for which system takes the values by Get Paramater ID in MB52, it will be better if you set MATNR value for 'MAT' and keep other blank, 'WRK', 'lag', 'cha''.
SELECTION-SCREEN BEGIN OF BLOCK abgrenzung WITH FRAME TITLE text-001.
SELECT-OPTIONS:
matnr FOR mara-matnr MEMORY ID mat MATCHCODE OBJECT mat1,
werks FOR t001l-werks MEMORY ID wrk, "718285
lgort FOR t001l-lgort MEMORY ID lag,
charg FOR mchb-charg MEMORY ID cha MATCHCODE OBJECT mch1.
SELECTION-SCREEN END OF BLOCK abgrenzung.
Regards,
Zafar
2013 Sep 26 2:00 PM