Skip to Content
0
Former Member
Jan 27, 2009 at 06:36 PM

How to go to a transaction on double click of a customer subscreen field

578 Views

Hello,

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.

ENDIF.

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?

Thanks,

Rugmani