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

module pool

Former Member
0 Likes
416

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.

3 REPLIES 3
Read only

Former Member
0 Likes
374

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.

Read only

Former Member
0 Likes
374

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.

Read only

Former Member
0 Likes
374

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