I have created a customer subscreen to be included in a Quality notification. The field that I have added is a Purchase Order number.
I want to code the double click event for this field, such that when I double click the PO number it navigates to the Display PO transaction.
As it is a subsreen, I cannot use the user command 'PICK'.
I tried capturing the sy-ucomm and entering the following commands:
IF sy-ucomm = 'AZOB'.
SET PARAMETER ID 'BES' FIELD viqmel-zzponumber.
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
However, this gives a problem because there is already a Purchasing Doc field in the notification and it navigates to the wrong PO.
Can anyone give me alternate suggestions to navigate to the customer PO field?