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

Screen Exit : VA02

Former Member
0 Likes
1,175

Hi

I have a scenario where client wants a popup screen every time user tries to save the field IHREZ in transaction va02..The screen will contain various database fields including the following:

All the field are display fields except for markup factor which is a field from a ztable.The number of line items can be 200.Sales price will be calculated as

qtycostmarkup factor(custom field).

There are two additional fields Labor and Hours which are to be entered by the user and then some calculation will be done to get the total price invested in repairing. This total price should be updated in a custom condition pricing for repair.

Please suggest all the possible solution which I can look into.

Thanks.

Zahabia

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,009

Hi

Use modal dialog box.

Design a dialog program with a modal dialog box containing your fields.

Do the required coding in PAI.

Associate program with a tcode and call this tcode from your user exit and return.

Thanks

Dawood

Hi

I have a scenario where client wants a popup screen every time user tries to save the field IHREZ in transaction va02..The screen will contain various database fields including the following:

All the field are display fields except for markup factor which is a field from a ztable.The number of line items can be 200.Sales price will be calculated as

qtycostmarkup factor(custom field).

There are two additional fields Labor and Hours which are to be entered by the user and then some calculation will be done to get the total price invested in repairing. This total price should be updated in a custom condition pricing for repair.

Please suggest all the possible solution which I can look into.

Thanks.

Zahabia

3 REPLIES 3
Read only

naimesh_patel
Active Contributor
0 Likes
1,009

You can implement one of the following userexits in MV45AFZZ.

USEREXIT_MOVE_DATA_TO_VBAK

USEREXIT_MOVE_DATA_TO_VBAP.

If your field IHREZ is in VBAK, you can use the first one else the second one.

You can do like:

FORM USEREXIT_MOVE_DATA_TO_VBAK.
  
  IF VBAK-IHREZ = 'ZTEST'.
      INCLUDE ZTEST_99.
   ENDIF.
ENDFORM

In you INCLUDE

CALL SCREEN 9199.

Create a SCRENN 9199 with a table control to show required data

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
1,009

Hi

You should you the screen 8309 of program SAPMV45A to add custom fields for header data, and screen 8459 of program SAPMV45A for item data.

These screen are the subscreen of the additional data tabs.

In the PBO of these screen you can manage input/output attribute by LOOP AT SCREEN/ENDLOOP, for example:

IF SY-TCODE+3(1) = '3'.

LOOP AT SCREEN.

SCREEN-INPUT = 0.

MODIFY SCREEN.

ENDLOOP.

ENDIF.

<b>Reward if useful</b>

Read only

Former Member
0 Likes
1,010

Hi

Use modal dialog box.

Design a dialog program with a modal dialog box containing your fields.

Do the required coding in PAI.

Associate program with a tcode and call this tcode from your user exit and return.

Thanks

Dawood