‎2006 Sep 04 9:29 AM
Hi All,
Please Kindly any one help me on this topic.
I developed one Module pool program.In that,
I have a field in second screen(Order Number).when the the user<b><u> doubble click</u></b> on it ,it has to tkae the user to the VA02 Transaction(Change Sales Order).
Can any one help me how to do this.
Thanks In Advance.
Thanks & Regards.
Ramu.
‎2006 Sep 04 10:07 AM
In the module pool screen, check the check box (Respond to double click in the Display) which is in the properties of that field. Check the SY-UCOMM. In the PAI Event, for example SY-UCOMM = 'AZOB'.
SET the parameter AUN with the sales order number u want to display and using CALL Transaction 'VAO3' and skip first screen, call the VA03 transaction.
Regards,
Prakash.
‎2006 Sep 04 10:10 AM
Hi,
Goto the attributes of the Screen field Order Number and Tick the check box `Respond to double click`. Put the FCODE as `DBLE`.
In the PBO,
SET PF-STATUS `ZAB`.
Double click on PF-Status and assign `DBLE` fcode to F2 button. Note you should only assign it to F2 button.
Now in the PAI.
l_okcode = sy-ucomm.
CASE l_OKCODE.
WHEN `DBLE`.
if not ORDER_NUMBER is initial.
submit `SAPMV45A` VIA SELECTION-SCREEN WITH VBAK-VBELN = order_number.
else.
*display error message here
endif.
ENDCASE.
Best regards,
Prashant
ENDCASE.
‎2006 Sep 04 10:55 AM
Hi
In the PAI of second screen,
At SY-UCOMM, use the following statement.
call transaction 'VA02' and skip first screen.
Reward points if helpful.
Regards
Swathi