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

Regarding screen exit

Former Member
0 Likes
569

Hi Friends,

I created the sales order using VA01 and enter the payment terms and saved. But mu requirement is when i go through VA02, payment terms field must be in display mode. So, user not able to chage the payment terms value.

Please give exact solution with Screen exit name and modifications.

Thanks in advance

Regards

Govind.

3 REPLIES 3
Read only

Former Member
0 Likes
535

Hi,

The SAPMV45A , 8309 screen is the Additional Data B tab providded by SAP to add your custom fields . In order to capture the data from this custon field you can use

the user exit MV45AFZZ, USEREXIT_SAVE_DOCUMENT_PREPARE OR

USEREXIT_SAVE_DOCUMENT depening on your functionality.

If you include the field MGANR as a part of the VBRK /VBRP structure then these will be available.

step by step method to implement screen exit:

Screen exits add fields to screens in R/3 applications. SAP creates screen exits by placing special subscreen areas on a standard R/3 screen and calling a customer subscreen from the standard screen’s flow logic.

the tcode is cmod...

1.From the main screen of the Project management transaction, proceed as follows:

Select Enhancement components and choose Change.

2.Choose Edit component.

3.Choose the screen exit and double click on it

4.Create your subscreen using the Screen Painter.

5.Design your screen to be added to the standard screen and activate the particular screen and return back to the flow logic .

6.Choose the PAI and PBO to write down the logic.

7.Generate your screen and choose Back (the green arrow) to return to the Project management transaction.

8.Go to the transaction ME22 to view the customer defined screen exit.

9.Enter the purchase order number and press Enter.

10.Go to the menu header --> Details.

11.Purchase number is visible on the standard screen

Regards

Read only

Former Member
0 Likes
535

Hi

use the Exit Include program MV45AFZZ

and the FORM USEREXIT_MOVE_FIELD_TO_VBKD.

in that write the code and check

something like

if sy-tcode = 'VA02'.

if not VBKD_ZTERM is initial.

loop at screen.

if screen-name = vbkd-zterm.

screen-input = 0.

modify screen.

endif.

endloop.

endif

endif.

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

Former Member
0 Likes
535

Hi,

Thanx for quick reply.

I don't want how to implement screen exit. MY requirement is when i go through VA02, the field "payment terms" in display mode. How can i achieve this.

Thanks in advance

Regards

Govind.