Authorization for va01 and va02

Hi all,
I have a requirement to add an authorization for certain fields (not for editing) in va01 and va02. If i create an authorization object for the same, is it possible to integrate auth object to roles and What will be the fields of auth object ?. Anyone can put comments.
Thanks and regards
Jijo

Hi,
This is my code in so include program...
AUTHORITY-CHECK OBJECT 'ZSO_SCHED'
         ID 'ACTVT' FIELD '02'.
CASE SCREEN-NAME.
   WHEN 'RV45A-ETDAT' OR 'VBEP-WMENG'.
     IF SY-SUBRC  EQ  0.
       SCREEN-input = 1.
     ELSE.
       SCREEN-input = 0.
     ENDIF.
ENDCASE.
Now, i have to connect role to auth. object 'ZSO_SCHED'. Any idea how to do it?
Thanks and Regards
Jijo

Similar Messages

  • I am posting data for va01 and va02 using BDC session,what happens if

    Hi,
    I am posting some data for va01 and va02 using BDC session,but what happens  if i try to post same data using call transaction.

    Hi,
    That is just another method. You can post the data using Call Transaction as well.
    Just give it a try and in case you face some problem revert back with your issue.
    We will help you to solve the same.
    Hope this helps!!!
    Regards,
    Lalit

  • User Exit for VA01 and VA02 transaction codes

    Hi,
    I am writing a userexit for PO number checking for VA01 and VA02 transaction codes.The PO number should be unique in the table (vbkd-bstkd).Duplicate PO number entries can be checked with Sold-to Party.If anybody written something like this....please advice me...
    Thanks in advance.
    fractal

    Hi Fractel,
    Why are you looking for a user exit to do this duplicate PO check?
    This can be achieved through configuration of your sales order document type and message control. Follow the path below for configuration of the document type.
    Implementation Guide for R/3 Customizing (IMG)
    -->Sales and Distribution
       -->Sales
          -->Sales Documents
             -->Sales Document Header
                -->Define Sales Document Types
    Once you execute this node, you will see all the available document types. Select the one you are interested in and click the details icon. In the subsequent screen, under "General Control" section, there is a field "Check purch.order no". Pick the value 'A' from the drop-down list.
    Once you do this, system will check for duplicate PO numbers whenever you are creating or changing the sales order with that document type. If duplicate, it issues a message.

  • Average response times for VA01 and VA02 transactions

    Hi,
    we have some users complaining about response times, more specific for VA01 and VA02 transactions. We would like to compare our average response times to those of other companies in order to get an idea of what is acceptable to most companies. If you are willing to contribute, can you please send a few hours of STAD data (only for VA01 and VA02 transactions) of an average working day? Perhaps you can download the data into a spreadsheet and mail the zipped file to my account Many thanks.
    Best regards,
    Guido Van Leuven

    Hi,
    This is not the issue. We are investigating everything possible to improve our response times and we believe that that these are ok as well. We just want to build a case where we can prove that our response times are not worse than those at other companies and that we can do only by comparing those statistics.
    Best regards,
    Guido Van Leuven

  • User Exit for VA01 and VA02: Duplicate PO check

    Hi,
    I am writing a userexit for PO check in VA01 & VA02 trx.The PO number should be unique.If we enters the existing PO number it should go to Incompletion log.I am calling check_po_number form in userexit_save_document in mv45afzz. it is not working....
    what is wrong in my code?
    Thanks in advance,
    fractal.
    FORM CHECK_PO_NUMBER.
    DATA : begin of ivbkd occurs 0,
             vbeln like vbkd-vbeln,
            end of ivbkd.
    Select DISTINCT vbeln into table ivbkd from vbkd
              where bstkd = vbak-bstnk.
    Select * from vbak up to 1 rows
             for all entries in ivbkd
              where vbeln = ivbkd-vbeln and
                    kunnr = vbak-kunnr.
    endselect.
    if sy-subrc = 0.
         perform set_so_incompletion_log using 'PONM'.
    else.
       perform reset_so_incompletion_log using 'PONM'.
    endif.
    ENDFORM.
    FORM set_so_incompletion_log using value(logid) type c.
    case logid.
    when 'PONM'.
         read table xvbuv with key
         vbeln = xvbak-vbeln
         tdid = 'Z026'.
         if sy-subrc <> 0.
          XVBUV-MANDT = SY-MANDT.
          XVBUV-VBELN = XVBAK-VBELN.
          XVBUV-POSNR = '000000'.
          XVBUV-ETENR = '0000'.
          XVBUV-PARVW =  ''.
          XVBUV-TDID  =  'Z026'.
          XVBUV-TBNAM =  'FTEXT'.
          XVBUV-FDNAM =  'LTEXT'.
          XVBUV-FEHGR =  '50'.
          XVBUV-STATG =  '02'.
          XVBUV-UPDKZ =  ''.
          XVBUV-FCODE =  'KTEX_SUB'.
          XVBUV-MSGKZ =   ''.
          XVBUV-SORTF =  '9999'.
          XVBUV-LFDNR =  '0000'.
          APPEND XVBUV.
         endif.
    ENDFORM.
    FORM reset_so_incompletion_log using value(logid) type c.
      case logid.
        WHEN 'PONM'.
           delete xvbuv
           where vbeln = vbak-vbeln
           and   tdid  = 'Z026'.
         WHEN OTHERS.
    endcase.
    ENDFORM.

    Hi Fractel,
    One of the classic mistakes we make when we use the <i>'for all entries in itab'</i> option is that we don't check if there are any entries in the itab or not. As a result of an empty itab, your select will always be true, because it is going to select everything and so the issue.
    Add a sy-subrc check in your code after select from vbkd. If sy-subrc <> 0, you don't have to go any further and if sy-subrc = 0, it means the PO is already used. Why are you even going to VBAK table?
    Remember, you are working with VBAK that is in your work area, and when you do a select from VBAK, you are overwriting your workarea, if the selection is successful. That will be dangerous. Don't do the VBAK select. You don't need that.
    If the VBKD select is successful, then you have a duplicate PO and if not, you don't have a duplicate PO. Isn't that the case?
    Srinivas
    Message was edited by: Srinivas Adavi

  • Authorization Issue with VA01 and  VA02

    Dear Experts,
    I have request to restrict onl;y three users to view the "payement terms" coloum in VA01 and VA02.
    I could not able to find the relavent authorization object. please advise.
    Regards
    Suneetha

    Hi,
    This is possible with user exists. Have a look at the below thread:
    Restrict selection for Payment Terms on VA01/VA02
    Regards,
    Raghu

  • Is there a Business Object for Sales Order Create and Change VA01 and VA02

    Hi experts -
    I am looking for a business object for Sales order create and change VA01 and VA02 respectively?
    Thanks,
    Mark

    Hi Mark,
    I think this question is best answered in [SAP Solutions|/community [original link is broken]; Forums.
    - Subhodeep
    Edited by: Subhodeep on Aug 29, 2009 11:14 AM

  • How to grey out or deactivate the Conditions tab in VA01 and VA02

    Hi gurus,
    Is there a way I can grey out or deactivate the Conditions tab in VA01 or VA02?  Our objective is to attach the pricing conditons to the customer level and that no sales encoder can edit prices during encoding using t-codes VA01 and VA02?
    I also tried to solve my problem through authorization object of the user V_KONH_VKS - set to 3 (Display) but still the user was able to make revisions to the Conditions tab if he wants to.  This is an internal control issue  for our company.
    Thanks for the immediate response. 
    Frances

    Hello Francis,
    In the definition of condition types in SPRO ( T.code V/06) you can define whether a particular condition type ( example PR00) can be processed manually by the user. IF you select the option " No Manual entries" the system does not allow the users to change the condition value determined from the condition records ( Maintained in VK11).
    ALternately, if the business requirement is that of allowing a particular condition type ( example PR00) to be processed manually by the user in certain business scenarios and in others the value should not be editable then you can use the user exit in MV45AFZB " USEREXIT_SAVE_DOCUMENT". In this you can write the required logic with the help of a technical consultant.
    Hope this helps
    Warm Regards
    Prashant Joshi.

  • While saving the sales order through Va01 and Va02 and email has to send

    Hi Experts,
    My requirement is to send an email with PDF formatted display of the Sales order to the sold to party's email id while saving the Salesorder through Va01 and Va02.
    I need the following .
    How to send an email with PDF formatted attachment of Salesorder display ? (we have done the formatting of display through SMARTFORMS )
    I think we can do it by userexits program name is MV45AFZZ while saving the document.
    Please suggest me the best possible way.
    Thanks ,
    Saritha

    Hi, there is no need for a customer devlopment on this. A standard smartform output will do with output medium '5' (external send). Then the smartform output will be send as PDF to the e-mail address in the output partner. Have a look at transaction NACE.
    Regards Jack

  • Price condition display in VA01 and VA02

    Hi Friends,
    In our organization, we want that some of the users could not change the price conditions in t. code VA01 and VA02.
    Please help us.
    Thanks
    Ganesh

    Dear Tiwari,
    As Lakshmipathi mentioned, if you want to restrict the access to all users, then goto V/06; there you uncheck the value field.
    If you wan to restrict the access to specific users, then make use of the authorization objects available in the Tcode SU21 (preferably, V_KONH_VKS). or create the custom one; check with your basis team and your ABAPer to do the same.
    thanks
    Venkatesh SP

  • Disabling Profit center in VA01 and VA02

    Hi geeks,
    I have a requirement where i need to disable the profit center column for some specific sales document types in VA01 and VA02.
    Please guide me with the User-exit to complete the requirement.
    -Jiyaaaa

    Hi Prabhu,
    i want to gray out completely without being able to input.
    the following is the code i hav written in exit "userexit_field_modification" of the include "MV45AFZZ"
    enhancement 1  zprofitcenter_enhancement.    "inactive version
    case screen-name.
          when '*VBAP-PRCTR'.
            if sy-tcode = 'VA01' or sy-tcode = 'VA02'.
              screen-input = 0.
              modify screen.
            endif.
        endcase.
    *IF ( SCREEN-NAME = 'VBAP-PRCTR' ).
    *SCREEN-INPUT = 0.
    *ENDIF.
    endenhancement.
    In debugging,i have checked it is calling this enhancement.but in the output,it is not greying out.
    kindly,let me know where iam going wrong.
    -jiyaaa

  • VA01 and VA02 Change Search Help

    I need to add extra field in the search help of the ORDER in SALES ORDER (VA01, VA02). I want to see both the ORDER and the DESCRIPTION in the search help of ORDER field.
    I ask for this in existing thread but it was marked as Answered: [ Re: VA01 and VA02 Search Help Mitigation]
    The main problem is that after i create search help in se11, I do not know what to do after that. Where is the place to say this search help is for this field. I search for exits but no results. Some advises will help.
    Thank you.

    I try this and learn a lot. But i think that this is not the exact way. It do not work. The table is VBAP and the field AUFNR (Order Number). It has not search help. It has only the standard one field. When I press F4 on it it shows only its list and I need the description. When I press F4 and see the technical data it show table AUFK and field AUFNR. The description is in AUFK-KTEXT.
    I think i miss something small to do it. I think that I do not need collective search help or search help exit because it is for some more complex checks. May be I need only view with this two fields and elementary search help. But how to 'tell' to the field to use it.

  • How to add custoim fields on the additiondata b tab of va01 and va02

    Hi All,
       i want to add the field on the Additional data B tab of the VA01 and VA02 at header level.
        Already one field is there now i want to add one more field.How to proceed.
       I think i have to go with screen exits.Can you help me in proceeding further and where should i write the code.
       It is urgetn.Please help me

    I have to move the updated fields to the vbak table
    The code is like this
    If      VBAK-ZZGrswgh   less than    ZTRKLMT-ZZweight OR
            VBAK-ZZCubTot    less than    ZTRKLMT-ZZCube   OR
            VBAK-ZZPaltot      less than    ZTRKLMT-ZZPallet   
                  CLEAR VBAK_ZZTRKLMT.
    Else
                  MOVE ‘X’ TO VBAK_ZZTRKLMT.
    End if
    should i write this code in the USEREXIT_MOVE_FIELD_TO_VBAK of program MV45AFZZ ?
    This user exit should trigger when
    VBAK-AUART Equals 'ZWH' OR
        VBAK-AUART Equals 'ZFV'
    Reply soon

  • Authorization for Infotypes and Actions

    Hi Experts,
    In my project i have a requirement to give authorization to individual infotype level and also give authorization for each and every PA40 actions .
    Please give me a solution if any.
    thanks..
    Avik

    Hello:
    For authorization to individual infotype, use object P_ORGIN, authorization field INFTY. In here you can specify individual infotypes, and also authorization level on field AUTHC:
    R - Read access
    W - Write access
    M - Matchcode access
    E, D - Enqueue, dequeue access (Asymmetrical double verification principle)
    S - Symmetrical (Symm. double verification principle)
    For authorization for each and every action, use:
    INFTY: 0000 (Actions infotype)
    SUBTY: ## (Specific actions)
    This is done with basis team cooperation in transaction PFCG.
    Hope this helps
    Regards.

  • Want to find the screen exits in VA01 and VA02

    Hi All,
      I want to find the screen exits in VA01 and VA02.
      How to find these screen exits.
      Actually i wnat to add a new custom field to the Additional data B tab on the header of VA01 transaction code.
    Now intially i want to know whether there are screen exits in VA01 transaction code ?If yes please provide the names?
    Please help me regarding this.

    Please check this
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    The SAPMV45A , 8309 screen is the Additional Data B tab  to add your custom fields . To capture the data from this custon field you can use
    the user exit MV45AFZZ, USEREXIT_SAVE_DOCUMENT_PREPARE OR
    USEREXIT_SAVE_DOCUMENT depening on your functionality.
    Thanks
    Vinod

Maybe you are looking for

  • N81 is not getting started.

    my mobile n81 has some problem as while charging it give only white li8 and it is not getting on after a long time of chargin. can u tell wht is the problem in it and how can it be ressolved????????????

  • Adobe Air for iOS compiling error

    I have a dilemma I hope someone can help me understand. I have a sports app that is currently live in the appstore and I am trying to revamp it. The app has a section for all 30 teams of that sport. The way I'm making the app is by adding code for 5

  • DSO Activation Fails after adding navigational attribute

    hi Gurus I have created a object A using Object B as reference and added Object A into Object C as navigation attribute. Now my object D which is referenced to Object C also has this object A as attribute and i change to navigational attribute here.

  • Please help me to solve screen shot errors...

    HI All, Please find the attached screen shot. Please assist me to solve screenshot errors. I am really struggling to solve errors. Thanks for your help in advance. Regards Durai S Attachments: Screen shot.PNG ‏40 KB

  • Deploying adf faces

    Is it possible to deploy an EAR containing multiple web modules without having to include the adf-faces-implxx.jar, standard.jar and jsf-impl.jar? Especially with multiple WARs, because those libraries take up 4MB. I tried adding all of the war files