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

I can not set parameter id

former_member635273
Participant
0 Likes
3,423

I want to set parameter id, but it's not work.

p_exrate TYPE tcurr-kurst DEFAULT 'IDX' MEMORY ID EXC.

1 ACCEPTED SOLUTION
Read only

venkateswaran_k
Active Contributor
0 Likes
3,035

Dear Saddam,

In your report ZMMR0001 - in the INITIALIZATION Section write as follows

get parameter ID 'WRK' field gd_plant.
get parameter ID 'MAT' field gd_material.
get parameter ID 'EXC' field gd_exrate.

Then check in your parameter variable is initial then assign these gd variables to your parameter.

IF p_exrate is initial.
p_exrate = gd_exrate.
ENDIF.

** Also put debug after get parameter and see values are being imported.

Regards,

Venkat

6 REPLIES 6
Read only

FredericGirod
Active Contributor
3,035

What do you mean by "it s not work" ?

Did you try to set this parameter ID with the transaction SU3 ? Did you check it is in the table USR05 ?

Read only

former_member635273
Participant
0 Likes
3,035

I make report that integrated to other report when double click.

METHOD handle_double_click_mat.
    DATA : ls_res LIKE LINE OF it_res.
    DATA : lv_exrate TYPE tcurr-kurst.
    CLEAR: lv_exrate.
*Reading the selected data into a variable
    READ TABLE it_res INDEX e_row-index INTO ls_res.
    SET PARAMETER ID 'WRK' FIELD ls_res-werks.
    SET PARAMETER ID 'MAT' FIELD ls_res-matnr.
    SET PARAMETER ID 'EXC' FIELD p_exrate.
    CALL TRANSACTION 'ZMMR0001' AND SKIP FIRST SCREEN.
  ENDMETHOD. "handle_double_click

But value of p_exrate can not pass to transaction ZMMR0001.

Read only

FredericGirod
Active Contributor
0 Likes
3,035

Are you sure the two fields are compatible : the p_exrate & the one use in transaction ZMMR00001

(it looks like you used a parameters id without anyrelation with currency)

Read only

venkateswaran_k
Active Contributor
0 Likes
3,036

Dear Saddam,

In your report ZMMR0001 - in the INITIALIZATION Section write as follows

get parameter ID 'WRK' field gd_plant.
get parameter ID 'MAT' field gd_material.
get parameter ID 'EXC' field gd_exrate.

Then check in your parameter variable is initial then assign these gd variables to your parameter.

IF p_exrate is initial.
p_exrate = gd_exrate.
ENDIF.

** Also put debug after get parameter and see values are being imported.

Regards,

Venkat

Read only

0 Likes
3,035

thank sir. done.
and thnks for all.

Read only

Dominik_Tylczynski
SAP Champion
SAP Champion
0 Likes
3,035

Are you sure the initial screen of custom transaction ZMMR0001 is using parameter ids WRK, MAT, EXC? Are the fields of the screen linked to the parameter ids? Are the fields marked to read the parameter ids?

Dominik Tylczynski