Application Development 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: 

User exit in VA01 for changing the status profile

Former Member
0 Kudos
1,178

Hi Experts,

I want a user-exit in VA01 wherein i can change the status profile (Screen field name = JOSTD-STSMA ) based on some logic.

Thanks in Advance:-

Santosh

1 ACCEPTED SOLUTION

Former Member
0 Kudos
251

Hi Santosh,

You can check this sub-routine USEREXIT_FIELD_MODIFICATION in the include MV45AFZZ. Hope it will solve your problem.

Regards,

Ravi

3 REPLIES 3

Former Member
0 Kudos
252

Hi Santosh,

You can check this sub-routine USEREXIT_FIELD_MODIFICATION in the include MV45AFZZ. Hope it will solve your problem.

Regards,

Ravi

0 Kudos
251

Hi Shano,

Thanks for the quick reply, i tried putting break-point in that user-exit, but here i am not getting the relevant field in which i have to pass the modified field content.

Thanks

Santosh

0 Kudos
251

Hi, Santhosh,

You can use function module "STATUS_PROFILE_CHANGE"

see the code,

CALL FUNCTION 'STATUS_PROFILE_CHANGE'

EXPORTING

OBJNR = XVBAK-OBJNR

STSMA = G_STATUS

  • NO_CHECK =

EXCEPTIONS

OBJECT_NOT_FOUND = 1

NO_STSMA_CHANGE_POSSIBLE = 2

STSMA_NOT_FOUND = 3

OTHERS = 4

where G_STATUS is your new status profile. It will update in your screen also.

Hope this will help u.