Application Development 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: 

ALV Hotspot Problem

former_member331934
Participant
0 Kudos

Dear Experts,

I have a clicking problem. I created an ALV report for MM and user wants to click PO no (EBELN field).

When clicked ME23N screen should open with clicked PO number.

I wrote this code but it doesn't work, could you please check?

FORM user_command USING r_ucomm TYPE sy-ucomm
     rs_selfield TYPE slis_selfield.

  CASE rs_selfield-fieldname.
    WHEN 'EBELN'.
      "set PARAMETER ID 'EBELN' field space.
      SET PARAMETER ID 'EBELN' FIELD rs_selfield-value.
      CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
      READ TABLE gt_ind INTO DATA(wa_ind) INDEX rs_selfield-tabindex.
      "SET PARAMETER ID 'EBELN' FIELD ''.
      SET PARAMETER ID 'EBELN' FIELD wa_ind-ebeln.
      CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
    WHEN OTHERS.
  ENDCASE.

ENDFORM.
1 ACCEPTED SOLUTION

LaurensDeprost
Contributor

You're using the wrong parameter ID.
Use 'BES' instead of 'EBELN'.

When in doubt, you can check the parameter ID as follows:
Open the transaction and position the cursor on the field. Press F1 and choose 'Technical Information'.

4 REPLIES 4

former_member598787
Participant

Hello,

By does not work, do you mean when you click on PO no., its does not redirect to me23n screen.

I had a faced similar issue, sometime back, the solution we figured out was we were setting wrong parameter id for me23n . Try below code:

set parameter id 'BES' field <field name>
call transaction ME23N and skip first screen.

LaurensDeprost
Contributor

You're using the wrong parameter ID.
Use 'BES' instead of 'EBELN'.

When in doubt, you can check the parameter ID as follows:
Open the transaction and position the cursor on the field. Press F1 and choose 'Technical Information'.

luis_sismeiro
Participant

Hello,

Check the parameter Id.

former_member331934
Participant
0 Kudos

Dear Luis Thank for teaching me how to find parameter id because i found 'EBELN' in TPARA table

I really appreciate you for your detailed answer