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

update authorization group based on function location category in IL01

former_member185116
Active Participant
0 Likes
1,320

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...

1 ACCEPTED SOLUTION
Read only

jogeswararao_kavala
Active Contributor
0 Likes
1,220

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

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...

5 REPLIES 5
Read only

jogeswararao_kavala
Active Contributor
0 Likes
1,221

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

Read only

0 Likes
1,220

sir,

thanks for u r quick and prompt reply,

thank u very much....

Read only

0 Likes
1,220

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...

Read only

0 Likes
1,220
  • This might be possible through an implicit enhancement point in the program SAPMILO0 . You need to search for a suitable include to code it.
  • Otherwise there won't be any option other than working with access key to modify the PBO of the related standard screen, which is never recommended.
Read only

0 Likes
1,220

sir,

thanks for u r reply,

i will try as u said...