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

ALV Hotspot Problem

former_member331934
Participant
0 Likes
2,652

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
Read only

LaurensDeprost
Contributor
2,528

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'.

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

4 REPLIES 4
Read only

former_member598787
Participant
2,528

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.
Read only

LaurensDeprost
Contributor
2,529

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'.

Read only

luis_sismeiro
Participant
2,527

Hello,

Check the parameter Id.

Read only

former_member331934
Participant
0 Likes
2,527

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