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

classical report

Former Member
0 Likes
1,619

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 .

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,599

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 .

12 REPLIES 12
Read only

Former Member
0 Likes
1,599

Hi Bhavesh,

You can SET PARAMETER ID on each of the fields click..

Regrds

Mansi

Read only

0 Likes
1,599

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

Read only

Former Member
0 Likes
1,599

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

Read only

Former Member
0 Likes
1,599

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

Read only

0 Likes
1,599

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

Read only

Former Member
0 Likes
1,599

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

Read only

Former Member
0 Likes
1,599

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

Read only

0 Likes
1,599

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

Read only

Former Member
0 Likes
1,600

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

Read only

Former Member
0 Likes
1,599

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

Read only

Former Member
0 Likes
1,599

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

Read only

Former Member
0 Likes
1,599

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.