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 issue

Former Member
0 Likes
1,619

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

1 ACCEPTED SOLUTION
Read only

former_member182379
Contributor
0 Likes
1,383

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

6 REPLIES 6
Read only

PeterJonker
Active Contributor
0 Likes
1,383

TRY

SET PARAMETER ID 'WRK' FIELD SPACE.

Read only

0 Likes
1,383

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

Read only

peter_ruiz2
Active Contributor
0 Likes
1,383

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

Read only

Former Member
0 Likes
1,383

Hi,

set all fields with PARAMETER IDs to initial values.

Regards,

Klaus

Read only

former_member182379
Contributor
0 Likes
1,384

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

Read only

0 Likes
1,383

Thanks Zafar, i have set the 3 other fields to blank