cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate length and width in another column in VA21 Standard screen

asim_sap
Explorer
0 Kudos

Hi Experts,

Can anybody help me how to calculate when user is inputs the value in length and width column then it's should calculate automatic and value shows in another column in va21 (Quotation) standard screen. Kindly find the attached screen which I inputs the values in length , width and LM should calculate automatic by multiplying length * width.

Accepted Solutions (1)

Accepted Solutions (1)

sez41
Active Contributor
0 Kudos

You should probably use user exit MV45AFZB, form USEREXIT_CHECK_VBAP.

asim_ahmed
Explorer
0 Kudos

Hi Kivanc,

How should I found this User Exit MV45AFZB.


Regards,

Asim

sez41
Active Contributor
0 Kudos

Asim this is a program.

asim_sap
Explorer
0 Kudos

I Got this and it's works. Thanks Kivanc.

Answers (2)

Answers (2)

DoanManhQuynh
Active Contributor
0 Kudos

You can try USEREXIT_MOVE_FIELD_TO_VBAP in include MV45AFZZ.

SimoneMilesi
Active Contributor
0 Kudos

Hi Mohammad,

check in the screen if there is any field module active and set an enhanceement there.

Or rely on MV45FZZ include, in SAVE_DOCUMENT_PREPARE form to calculate and fill the value when the quotation is checked/saved

asim_ahmed
Explorer
0 Kudos

Dear Simone,

I have this BADI. Shall I change in this? Under this SAVE_DOCUMENT_PREPARE its have small program.

method IF_EX_BADI_SD_SALES~SAVE_DOCUMENT_PREPARE.
* define local structures
data:
ls_fxvbkd type vbkd.

loop at fxvbkd into ls_fxvbkd
where sepon <> space.
endloop.

check sy-subrc = 0 and fvbak-rplnr is not initial.

message i012(sd_sepa).
f_subrc = 4.

endmethod.

Regards,

Asim