2007 Dec 21 9:16 AM
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
2007 Dec 21 9:31 AM
Hi Santosh,
You can check this sub-routine USEREXIT_FIELD_MODIFICATION in the include MV45AFZZ. Hope it will solve your problem.
Regards,
Ravi
2007 Dec 21 9:31 AM
Hi Santosh,
You can check this sub-routine USEREXIT_FIELD_MODIFICATION in the include MV45AFZZ. Hope it will solve your problem.
Regards,
Ravi
2007 Dec 21 10:02 AM
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
2007 Dec 21 12:02 PM
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.