2009 Feb 05 6:23 AM
in classical report i have 3 fields matnr , maktx , ebeln
when i click on matnr it goes to mm02 , when i click on maktx it goes on mm03 and when i click on on ebeln thenit should be go on me51
how i ll do multiple connectivity in single screen .
plz tell me .
2009 Feb 05 6:53 AM
Hi,
Look at the below example,
DATA: w_matnr TYPE matnr,
w_lifnr TYPE lifnr.
DATA: w_field TYPE char20,
w_val TYPE char20,
w_line LIKE sy-lilli.
w_matnr = 'IM60TEST2'.
w_lifnr = 'ABC123'.
WRITE: w_matnr, w_lifnr.
CLEAR: w_matnr, w_lifnr.
AT LINE-SELECTION.
GET CURSOR FIELD w_field VALUE w_val.
CASE w_field.
WHEN 'W_MATNR'. "Here you can use the field you displayed
SET PARAMETER ID 'MAT' FIELD w_val.
CALL TRANSACTION 'MM03'.
WHEN 'W_LIFNR'.
SET PARAMETER ID 'LIF' FIELD w_val.
CALL TRANSACTION 'XK03'.
ENDCASE.Regards,
Manoj Kumar P
in classical report i have 3 fields matnr , maktx , ebeln
when i click on matnr it goes to mm02 , when i click on maktx it goes on mm03 and when i click on on ebeln thenit should be go on me51
how i ll do multiple connectivity in single screen .
plz tell me .
2009 Feb 05 6:24 AM
Hi Bhavesh,
You can SET PARAMETER ID on each of the fields click..
Regrds
Mansi
2009 Feb 05 6:31 AM
hi mansi ,
plz cal u gve me some code exapmle of set get
i dont no how to use it .
if u will gve me expample that will be better for me
regards
bhavesh
2009 Feb 05 6:28 AM
Hi,
See in reports you have to mention all the tables from which you are taking your fields. So in report, fields will refer from those tables only.
Check proper table names.
Hope this will help you.
regards:
Alok
2009 Feb 05 6:28 AM
Hi,
You can use the hotspot functionality for them.
You can either use GET CURSOR or SET PARAMETER ID
Hope it will help you.
Regards
Natasha Garg
2009 Feb 05 6:35 AM
hi natasha ,
plz cal u gve me some code exapmle of set get
i dont no how to use it .
if u will gve me expample that will be better for me
regards
bhavesh
2009 Feb 05 6:34 AM
hi
write your code in AT LINE-SELECTION event.
DATA: w_fsel LIKE sy-ucomm, " Determination of screen field
GET CURSOR FIELD w_fsel.
CASE w_fsel.
when
...............
when
...............
when
...............
endcase.
Regards
Madhu
2009 Feb 05 6:39 AM
Hi,
Just copy this code into ur program u will get your desired output.
Create a PF status whick contains the fields MATNR,MAKTX and EBELN.
data
t_bdc type standard table of bdcdata.
end-of-selection.
write:/'Hai'.
set pf-status 'YH1315'.
at user-command.
case sy-ucomm.
when 'MATNR'.
call transaction 'MM02' using t_bdc mode 'A'.
when 'MAKTX'.
call transaction 'MM03' using t_bdc mode 'A'.
when 'EBELN'.
call transaction 'ME51' using t_bdc mode 'A'.
endcase.
Regards
Kiran
2009 Feb 05 6:47 AM
hi kiran ,
i want to go with their values
by using this methode i can go on this screen bt not pass value
regards
bhavesh
2009 Feb 05 6:53 AM
Hi,
Look at the below example,
DATA: w_matnr TYPE matnr,
w_lifnr TYPE lifnr.
DATA: w_field TYPE char20,
w_val TYPE char20,
w_line LIKE sy-lilli.
w_matnr = 'IM60TEST2'.
w_lifnr = 'ABC123'.
WRITE: w_matnr, w_lifnr.
CLEAR: w_matnr, w_lifnr.
AT LINE-SELECTION.
GET CURSOR FIELD w_field VALUE w_val.
CASE w_field.
WHEN 'W_MATNR'. "Here you can use the field you displayed
SET PARAMETER ID 'MAT' FIELD w_val.
CALL TRANSACTION 'MM03'.
WHEN 'W_LIFNR'.
SET PARAMETER ID 'LIF' FIELD w_val.
CALL TRANSACTION 'XK03'.
ENDCASE.Regards,
Manoj Kumar P
2009 Feb 05 6:55 AM
hi,
you can use the following code as a guide,
data: FILD_NAME(15) type C,
f_value(15) type C,
lv_matnr like ekpo-matnr.
display of data
write:/ matnr hotspot, maktx hotspot, ebeln hotspot.
AT LINE-SELECTION.
GET CURSOR FIELD FILD_NAME VALUE F_VALUE.
if f_value NE ''.
CASE FILD_NAME.
when 'MATNR'.
SET PARAMETER ID 'MAT' FIELD F_VALUE.
CALL TRANSACTION 'MM02' and SKIP FIRST SCREEN.
when 'MAKTX'.
lv_matnr = SY-LISEL+0(12)
SET PARAMETER ID 'MAT' FIELD LV_MATNR.
CALL TRANSACTION 'MM03' and SKIP FIRST SCREEN.
when 'EBELN'.
SET PARAMETER ID 'BAN' FIELD F_VALUE.
CALL TRANSACTION 'ME51' and SKIP FIRST SCREEN.
endcase.
hope it can help.
Regards,
Mon Magallanes
2009 Feb 05 6:58 AM
Hi ,
hOPE THE FOLLOWING CODE WILL HELP YOU .
AT line-selection.
get cursor field w_fld.
case w_fld.
when 'MATNR' .
CALL TRANSACTION 'MM02'.
WHEN ....
..
WHEN ...
.
.
.
ENDCASE.
Regards
Pinaki Mukherjee
2009 Feb 05 7:20 AM
Hi,
Hope this may be useful
DATA: w_matnr TYPE mara-matnr,
w_maktx TYPE maktx,
w_ebeln type ekko-ebeln.
DATA: w_field(20) TYPE c,
w_val(20) TYPE c,
AT LINE-SELECTION.
GET CURSOR FIELD w_field VALUE w_val.
CASE w_field.
WHEN 'W_MATNR'.
SET PARAMETER ID 'MAT' FIELD w_val.
CALL TRANSACTION 'MM02'.
when 'W_EBELN'.
SET PARAMETER ID 'BES' FIELD w_val.
CALL TRANSACTION 'ME51'.
ENDCASE.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |