Skip to Content

this all ready explain mozzam , in my explanation with out authorization group hiding some specific condition values



Business Requirement:

Sometime client asks for hiding some specific condition value like VPRS etc from condition tab of sale order or invoice. This is not possible in standard.  All process has been described step by step in this note. I am just explaining it with screen shots .

Now you need to add these includes in program LV69AFZZ. Here you have to take help of your ABAPER for implementing this Enhancement. Once its implemented, you can add your coding in it. Go to T-Code SE38 give program LV69AFZZ and click on display button.


&*

*&      Form  USEREXIT_FIELD_MODIFICATION

*&———————————————————————*

*       text

*———————————————————————-*

*  –>  p1        text

*  <–  p2        text

*———————————————————————-*

“””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””$”$\SE:(1) Form USEREXIT_FIELD_MODIFICATION, End                                                                                                             A

*$*$-Start: (1)———————————————————————————$*$*

ENHANCEMENT ZZ_FLOOR_PRICE_AUTH1.    “active version

        INCLUDE ZZ_FLOOR_PRICE_AUTH.

ENDENHANCEMENT.

*$*$-End:   (1)———————————————————————————$*$*

endform.                               ” USEREXIT_FIELD_MODIFICATION


include ZZ_FLOOR_PRICE_AUTH.logic


*&———————————————————————*

*&  Include           ZZ_FLOOR_PRICE_AUTH

*&———————————————————————*

    DATAlt_user_list   TYPE STANDARD TABLE OF tvarvc,

           lw_user_list   TYPE tvarvc,

           lr_user        TYPE RANGE OF syuname,

           lw_user        LIKE LINE OF lr_user.

**Get list of users who are allowed to See

    SELECT * FROM tvarvc

      INTO TABLE lt_user_list

      WHERE name = ‘ZSD_FLOOR_PRICE_AUTH’

        AND type = ‘S’.

    IF sysubrc = 0.

      LOOP AT lt_user_list INTO lw_user_list.

        lw_usersign = lw_user_listsign.

        lw_useroption = lw_user_listopti.

        lw_userlow    = lw_user_listlow.

        lw_userhigh   = lw_user_listhigh.

        APPEND lw_user TO lr_user.

        CLEAR lw_user.

      ENDLOOP.

    ENDIF.

    IF syuname NOT IN lr_user.

      IF ( komvkschl eq ‘ZBPP’ or komvkschl eq ‘ZBFP’ or komvkschl eq ‘ZFPA’ or

           komvkschl eq ‘ZPPA’ or komvkschl eq ‘ZEPA’ ).

        IF                ( SCREENNAME = ‘RV61A-SELKZ’

                            OR   SCREENNAME = ‘KOMV-KAWRT’

                            OR   SCREENNAME = ‘RV61A-AWEIN’

                            OR   SCREENNAME = ‘KOMV-KBETR’

                            OR   SCREENNAME = ‘RV61A-KOEIN’

                            OR   SCREENNAME = ‘KOMV-KPEIN’

                            OR   SCREENNAME = ‘KOMV-KMEIN’

                            OR   SCREENNAME = ‘KOMV-KWERT’

                            OR   SCREENNAME = ‘KOMV-KWERT_K’

                            OR   SCREENNAME = ‘KOMV-KUMZA’

                            OR   SCREENNAME = ‘RV61A-MEINS’

                            OR   SCREENNAME = ‘KOMV-KUMNE’

                            OR   SCREENNAME = ‘RV61A-KMEI1’).

          SCREENACTIVE = 0.

        ENDIF.

      ENDIF.

      MODIFY SCREEN.

    ENDIF.


include this logic and maintain the user ids in STVARV t code level varint name like this ZSD_FLOOR_PRICE_AUTH

here you maintain the which user ids display the condition values , those user only see the condition type values .


dear experts pl comment on this



To report this post you need to login first.

3 Comments

You must be Logged on to comment or reply to a post.

Leave a Reply