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

issues with subsreen

Former Member
0 Likes
628

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

4 REPLIES 4
Read only

Former Member
0 Likes
588

hi, try

transaction me23 ...this will work

regards,

safel

Read only

Former Member
0 Likes
588

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

Read only

Former Member
0 Likes
588

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

Read only

0 Likes
588

hi prabudas,

thanks for the suggestion, i have solved the issue.

Regards,

Gokul.