2016 May 03 9:13 AM
hello all,
in transaction IL01(above screen) , based on function location category , authorization group should be updated automatically,
is there any EXIT or BADI to update the above details...
thanks in advance...
2016 May 03 9:37 AM
Use user-exit ILOM0001
See this code. I have tested and working fine.
IF data_iflo-fltyp = 'M'.
update_data_iflo-begru = 'RE1'.
update_flags_iflo-begru = 'X'.
ENDIF.
Put this code in the include ZXLOMU01 of the above exit. 'M' is the F/Locn type and 'RE1' is the Authorization group to be updated automatically.
Good luck
KJogeswaraRao
2016 May 03 9:37 AM
Use user-exit ILOM0001
See this code. I have tested and working fine.
IF data_iflo-fltyp = 'M'.
update_data_iflo-begru = 'RE1'.
update_flags_iflo-begru = 'X'.
ENDIF.
Put this code in the include ZXLOMU01 of the above exit. 'M' is the F/Locn type and 'RE1' is the Authorization group to be updated automatically.
Good luck
KJogeswaraRao
2016 May 03 10:44 AM
sir,
thanks for u r quick and prompt reply,
thank u very much....
2016 May 03 11:34 AM
sir,
small clarification ,
1). Is there any exit which could update the data when the user user presses enter button instead of save.
2). For updating the authorization group i am selecting the data from T370B and written the code as below,
data : wa_t370b type t370b,
it_t370b type TABLE OF t370b.
data : wa_t370b1 type t370b,
it_t370b1 type TABLE OF t370b.
if data_iflo-fltyp is NOT INITIAL.
select * FROM t370b INTO TABLE it_t370b.
loop at it_t370b into wa_t370b.
if wa_t370b-begru cs data_iflo-fltyp.
APPEND wa_t370b to it_t370b1.
endif.
endloop.
delete it_t370b1 WHERE begru ns 'F'.
READ TABLE it_t370b1 INTO wa_t370b1 INDEX 1.
if sy-subrc = 0.
update_data_iflo-begru = wa_t370b1-begru.
UPDATE_flags_iflo-begru = 'X'.
endif.
endif.
instead of this long code is there any FM or BAPI to get authorization group based on function location type...
2016 May 03 11:58 AM
2016 May 03 1:07 PM