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

Set Parameter ID F02...?

Former Member
0 Likes
1,685

Gurus,

What does the parameter ID F02 signifies...?

I had written a BDC program for parking and there were some user options settings that i took into consideration.one of the parameter id was F02...

Can any of u educate me in this please...

Thanks

Sam

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,030

F02 Parameter id - it is related to screen group.

it will have screen group name during program execution,based on screen group ,you can write the other logic too

Look at TPARA Table

Thanks

Seshu

Hello Sam,

Check the below program :

When you double click on material number then it calls MM02 Transaction.

here Parameter id will have Current selected record ..(MAT is parameter id for material)

tables : mara.

data : begin of i_makt occurs 0,

matnr like makt-matnr,

maktx like makt-maktx,

end of i_makt.

start-of-selection.

select matnr maktx from makt into table i_makt up to 100 rows.

loop at i_makt.

write:/ i_makt-matnr,i_makt-maktx.

hide : i_makt-matnr.

endloop.

end-of-selection.

at line-selection.

set parameter id 'MAT' field i_makt-matnr.

case sy-ucomm.

when 'PICK'.

call transaction 'MM02' and skip first screen.

endcase.

Thanks

Seshu

3 REPLIES 3
Read only

Former Member
0 Likes
1,031

F02 Parameter id - it is related to screen group.

it will have screen group name during program execution,based on screen group ,you can write the other logic too

Look at TPARA Table

Thanks

Seshu

Read only

0 Likes
1,030

Thanks for the rply...Can u provide me an example of how to use this parameterID...i mean what is screen group name and where do we use it...

Thanks

Sam

Read only

0 Likes
1,030

Hello Sam,

Check the below program :

When you double click on material number then it calls MM02 Transaction.

here Parameter id will have Current selected record ..(MAT is parameter id for material)

tables : mara.

data : begin of i_makt occurs 0,

matnr like makt-matnr,

maktx like makt-maktx,

end of i_makt.

start-of-selection.

select matnr maktx from makt into table i_makt up to 100 rows.

loop at i_makt.

write:/ i_makt-matnr,i_makt-maktx.

hide : i_makt-matnr.

endloop.

end-of-selection.

at line-selection.

set parameter id 'MAT' field i_makt-matnr.

case sy-ucomm.

when 'PICK'.

call transaction 'MM02' and skip first screen.

endcase.

Thanks

Seshu