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

Regarding SET PARAMETER ID

Former Member
0 Likes
1,471

Hi,

I am doing a classical report. In this report in the initial list i am displaying material number and some other details. If i am double clicking the marterial it should call the t-code ME51N and display the material number defaultly.

I have done this through

SET PARAMETER ID 'MAT' field gt_out-matnr.

CALL TRANSACTION 'ME51N'.

the t-code is calling but no material is displaying.. and one please help me out.

8 REPLIES 8
Read only

former_member194669
Active Contributor
0 Likes
1,129

1). Set parameter will work with initial screen and i have not found any material number in ME51N screen

a®

Read only

Former Member
0 Likes
1,129

Hi

U make sure there an input/output field using that ID parameter.

If the field or program don't used it, it's useless you initialize it by statament SET PARAMETER ID.

So you make sure the program does the GET PARAMETER ID: it isn't enough the parameter id is assigned to the data element of the field (in your case MATNR).

The trx ME51N uses a table control to insert all items of requisition, so I don't think it does the GET PARAMETER statament.

Max

Read only

0 Likes
1,129

Max, Can you send me the sample coding...

Edited by: Justin.S on Jan 22, 2008 6:48 AM

Read only

Former Member
0 Likes
1,129

Hi,

Use call transaction 'ME51N' and skip first screen.

Also check in debug whether you require to remove leading zeros.

Hope it helps.

Regards,

Siddhesh S.Tawate

Read only

Former Member
0 Likes
1,129

Hi

form user_command using r_ucomm like sy-ucomm

rs_selfield type slis_selfield.

  • Check function code

case r_ucomm.

when '&IC1'.

  • Check field clicked on within ALVgrid report

if rs_selfield-fieldname = 'MATNR'.

  • Read data table, using index of row user clicked on

read table itab into wa_display index rs_selfield-tabindex.

  • Set parameter ID for transaction screen field

set parameter id 'MAT' field wa_display-MATNR.

  • Execute transaction me51n, and skip initial data entry screen

call transaction 'ME51N' and skip first screen.

endif.

endcase.

endform.

rEGARDS,

MOhan.

Read only

0 Likes
1,129

Set parameter ID for transaction screen field

set parameter id 'BAN' field wa_display-BANFN.

Execute transaction me53, and skip initial data entry screen

call transaction 'ME53' and skip first screen.

Read only

Former Member
0 Likes
1,129

Hi ,

For creating transactions SET parameter id will not work . The same will work for change and display transactions.

Recently I have faced the same probelm with Notification create IW21 transaction.

so you cant set parameter id for creating transaction.

Reward if useful

Thanks,

Nageswar

Read only

Former Member
0 Likes
1,129

Hi,

Your logic is wrong, if you need materil details,use t.Code MM03. Tcode ME51n is purchase requisition transaction.ME51n will show details of purchase requisition .So you need purchase requisition number and then use this me51n. this is correct way.

L.Velu