Quantcast
Channel: ABAP Development
Viewing all articles
Browse latest Browse all 948

Make your own SE16N with "Client-dependent" selection

$
0
0

hi,


There are many  excellent features when using SE16N.

 

Take a look at this thread http://scn.sap.com/community/abap/blog/2014/08/08/do-you-know-your-se16n

 

But there are also many "nice" hidden functionalities within SE16N that you can not see if you do not have the right authorisation or SAP don't want you to see/use.

 

But there is a easy way to make these features visible by making a copy of the function group SE16N to your own.

 

After copying the function group SE16N you can modify the code in the include: XXX_SE16NO01 (my called LZN_SE16NO01).

 

To make "Client-dependent selection" visible

 

Replace this code with the below code:

 

*.if not client dependent, do not bother user with client choose

*** Comment this code block
*  if gd-clnt <> true or
*     gd-no_clnt_anymore = true or
*     gd-no_clnt_auth = true.
*     loop at screen.
*        if screen-group4 = 'CLT'.
*           screen-invisible = 1.
*           screen-input     = 0.
*           modify screen.
*        endif.
*     endloop.
*  endif.

*** And replace with this one
  if gd-clnt ne true.
     loop at screen.
        if screen-group4 = 'CLT'.
           screen-invisible = 1.
           screen-input     = 0.
           modify screen.
        endif.
     endloop.
  endif.

 

Make the "Maintain entries" visible


Just comment this code block.


*.if table is editable, allow to switch it off

  "if gd-tabedit <> true.
   "  loop at screen.
   "     if screen-group4 = 'EDT'.
*          screen-invisible = 1.
   "        screen-input     = 0.
   "       modify screen.
   "     endif.
   "  endloop.
  "endif.


Step-by-step.

 

1. Start trans. SE80 and type i the function group SE16N

       Make af copy of function group SE16N to your own like ZXXX_SE16N

 

2. Modify the include  XXX_SE16NO01

3. Create a new ABAP  program and call the function module you have copied.

4. Create atransaction code ZN and call the program.


You can make your own transaction code like "ZN" og "YN" then call the function module you have just copied.

 

Please find the attached document to see in more details.




Viewing all articles
Browse latest Browse all 948

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>