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

User Exit ?

Former Member
0 Likes
985

Hi Gurus,

We have two companies in the system both using similar Sales Order Type T.Code VA01. We have two sales organisation one for each.

Presently while raising sales order (T.code VA01) Req. Deliv. Date (Field Name: KETDAT) defaults to system date.

New Requirement: There is a new requirement from business where one company wants Req. Deliv. Date to be defaults to BLANK (Empty). This is possible by creating new sales order type but business wants to keep the sales order type same.

Can you please let me know which User Exit we can use to make this happen? We have One order type and two different sales organisation to distinguish the process.

Many Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
753

form userexit_field_modification in MV45AFZZ will let you change the value of screen fields.



  case screen-name.

    when 'RV45A-KETDAT'.

would let you blank the value for the approariate value in VBAK-VKORG

4 REPLIES 4
Read only

Former Member
0 Likes
754

form userexit_field_modification in MV45AFZZ will let you change the value of screen fields.



  case screen-name.

    when 'RV45A-KETDAT'.

would let you blank the value for the approariate value in VBAK-VKORG

Read only

0 Likes
753

form userexit_field_modification in MV45AFZZ will let you change the value of screen fields.

But that's not the purpose of that user exit and you shouldn't use it that way.

USEREXIT_MOVE_FIELD_TO_VBAK would be the better choice, although you're still stuck with a solution that doesn't change the date until it's already been rendered on the screen at least once because you can't guarantee the sales org until that time. You would need to change the value of VBAK-VDATU and RV45A-KETDAT. I would also blank the value of TVAK-DATVO. This is the order type level field that determines that the RDD is calculated from the current date.

Read only

Former Member
0 Likes
753

Please use proper subject for the thread.

--

Reddy

Read only

Former Member
0 Likes
753

Thanks guys,

resolved by USEREXIT_MOVE_FIELD_TO_VBAK