10-07-2021 12:30 PM
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.
10-07-2021 1:10 PM
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'.
10-07-2021 12:53 PM
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.
10-07-2021 1:10 PM
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'.
10-07-2021 1:16 PM
10-07-2021 1:24 PM
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