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

Sales Order - Adding Screen and Updating Table Data

Former Member
0 Likes
942

Hi Experts,

Please provide details of User Exits for adding screen in Additional Tab B at Item Level and how to update the data into table level and also before updating

the data into table how to validate the fields.

Please share information if any available.

Regards,

Mohammed

1 ACCEPTED SOLUTION
Read only

gurunathkumar_dadamu
Active Contributor
0 Likes
874

Hi Rafi,

go to report 'SAPMV45A' --> go to screen 8459.add the fields in this screen before adding the fields in screen add in VBAP table.

for PBO use this include MV45AOZZ

here write the following logic.

loop at screen.

if sy-tcode = 'VA03'.

check the screen group1 = 'your screen group '.

screen-input = 0.

modify screen.

endif.

endloop.

For PAI: in include 'MV45AFZZ'

FORM USEREXIT_MOVE_FIELD_TO_VBAP.

Endform.

use the above user exit to move the data from screen to VABP table.

validations:if you want raise any messages develop your code in this include MV45AIZZ.

for the above add the following line of code in the 8459 screen.

field vbap-zzxxx module zzxxxx..

module zzxxxx.

data:lv_msg(38) type c.

check the vbap-zzfield is initial.

concatenate 'zzfiled value is not maintained' into lv_msg.

message:lv_msg type 'E'.

endmodule.

Regards,

Guru



Hi Experts,

Please provide details of User Exits for adding screen in Additional Tab B at Item Level and how to update the data into table level and also before updating

the data into table how to validate the fields.

Please share information if any available.

Regards,

Mohammed

2 REPLIES 2
Read only

gurunathkumar_dadamu
Active Contributor
0 Likes
875

Hi Rafi,

go to report 'SAPMV45A' --> go to screen 8459.add the fields in this screen before adding the fields in screen add in VBAP table.

for PBO use this include MV45AOZZ

here write the following logic.

loop at screen.

if sy-tcode = 'VA03'.

check the screen group1 = 'your screen group '.

screen-input = 0.

modify screen.

endif.

endloop.

For PAI: in include 'MV45AFZZ'

FORM USEREXIT_MOVE_FIELD_TO_VBAP.

Endform.

use the above user exit to move the data from screen to VABP table.

validations:if you want raise any messages develop your code in this include MV45AIZZ.

for the above add the following line of code in the 8459 screen.

field vbap-zzxxx module zzxxxx..

module zzxxxx.

data:lv_msg(38) type c.

check the vbap-zzfield is initial.

concatenate 'zzfiled value is not maintained' into lv_msg.

message:lv_msg type 'E'.

endmodule.

Regards,

Guru



Read only

bastinvinoth
Contributor
0 Likes
874

Hi Rafi,

This question was asked by many times in SCN.

http://wiki.sdn.sap.com/wiki/display/SI/Implementation+of+SAPV45A+User-exit+Screen

see the above link ,their explained STEP by STEP how to proceed with adding fields in

additional data b.

Regards,

Bastin.G