2009 May 21 11:46 AM
Hi,
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,
gokulnath
Edited by: Gokulchelvan on May 21, 2009 12:47 PM
Hi,
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,
gokulnath
Edited by: Gokulchelvan on May 21, 2009 12:47 PM
2009 May 21 12:05 PM
2009 May 21 12:58 PM
hi gokul,
try using 'GET CURSORFIELD' command to get the value of the cursor field. If
it referr's to the return PO, just display the return PO; otherwise display the original PO.
Regards,
Rethish..
2009 May 21 1:08 PM
Hi,
try this way...
me23n is for change and display that means PO need to valid..then only you can go to inside the transaction..
IF sy-ucomm = 'AZOB'.
select single * from ekpo where ebeln = viqmel-zzponumber.
if sy-subrc = 0.
SET PARAMETER ID 'BES' FIELD viqmel-zzponumber.
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
else.
message 'enter valid PO' type 'E'.
endif.
ENDIF.
Prabhudas
2009 May 25 9:06 AM
hi prabudas,
thanks for the suggestion, i have solved the issue.
Regards,
Gokul.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |