2007 Nov 18 2:41 PM
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
2007 Nov 19 12:22 PM
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
2007 Nov 18 2:47 PM
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.
ENDFORMIn you INCLUDE
CALL SCREEN 9199.Create a SCRENN 9199 with a table control to show required data
Regards,
Naimesh Patel
2007 Nov 19 5:28 AM
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>
2007 Nov 19 12:22 PM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |