‎2008 Jan 21 3:33 PM
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.
‎2008 Jan 21 3:42 PM
1). Set parameter will work with initial screen and i have not found any material number in ME51N screen
a®
‎2008 Jan 21 3:42 PM
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
‎2008 Jan 22 5:45 AM
Max, Can you send me the sample coding...
Edited by: Justin.S on Jan 22, 2008 6:48 AM
‎2008 Jan 21 3:45 PM
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
‎2008 Jan 21 3:46 PM
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.
‎2008 Jan 21 3:52 PM
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.
‎2008 Jan 22 5:52 AM
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
‎2008 Jan 22 6:14 AM
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