Restrict A User From Changing A Payment Term While Adding A/R Invoice

Dear Experts,
We want to restrict our users from changing payment terms while adding A/R Invoice.
We use SAP B1 2007 b.
Thanking  you
Pradnya

Hi,
try below code in transaction notification procedure:
if (@object_type = '13') and (@transaction_type IN ('A', 'U'))
BEGIN
IF exists (select T0.DocEntry FROM OINV T0 Inner Join OCRD T1 on T0.CardCode=T1.CardCode Where T0.GroupNum  !=T1.GroupNum and T0.DocEntry =@list_of_cols_val_tab_del)
          Begin
               SET @error = 30
               SET @error_message =N'You are not authorized to change payment terms'     
          end
END
for how the transaction notification works or how to use :
check How to use Transaction Notification
Thanks,
Neetu

Similar Messages

  • How will I block/restrict the user to change the payment term in FBL5N?

    Hi All,
    How will I block/restrict the user to change the payment term in FBL5N????
    I have tried on following objects:
    F_BKPF_BLA
    F_BKPF_BUK
    F_BKPF_GSB
    F_BKPF_KOA
    F_IT_ALV
    F_KNA1_BED
    F_KNA1_BUK
    F_LFA1_BUK
    S_ALV_LAYO
    But, not succeeded.
    =>Actually user runs FBL5N, double click on a record then click on Change icon.
    =>Change Payment Term.
    Please reply ASAP. Point will be awarded.
    With Best Regards
    Dharmendra

    Hi Dharmendra,
    Please set an authorization trace in ST01 and then ask the user to execute the transaction and the steps on the same application server as the o ne on which the trace has been set (valid in case we are talking about mutiple application servers for same <SID>). After this is done switch off the trace,list it and fill all the authorization objects. That might give you the perfect idea.
    Regards.
    Ruchit.

  • How to Restrict the users from changing the Default variant of report.

    Hello everybody,
    The requirement is to restrict the users to save and overwrite  the default layout variant (Layout for higher managenet)set for the report, but at the same time they should be able to change and save the other layouts for which they are having access.
    I have written the logic in the program which is working fine for all the scenario when we execute the report. But the logic doesnt work if the user is selecting the layout on the output screen of the report.
    for e.g if the user runs the report using the layout varaint for which he is having the authorization then he gets the all 4 options so he then he can select the layout for which he is not authorized and he can overwrite.
    i have debugged and check as i have found that after the report output is shown all the layout paramater is controllled by the statndard SAP objects.
    Can anyone help me out in this issue.
    Thankyou in advance.
    *to get the default layout variant.
      w_save = 'A'.
      if p_vari is initial.
        clear disvariant.
        disvariant-report = sy-repid.
        w_variant = disvariant.
        call function 'REUSE_ALV_VARIANT_DEFAULT_GET'
          exporting
            i_save     = w_save
          changing
            cs_variant = w_variant
          exceptions
            not_found  = 2.
        if sy-subrc = 0.
          p_vari = w_variant-variant.
        endif.
      endif.
    *logic to check user authorization to change the layout setting.
      if p_vari = c_layout.
        if not sy-uname is initial.
          select single * from agr_users
                  where agr_name = c_role
                  and   uname    = sy-uname.
          if sy-subrc = 0.
            w_save = 'A'.
          else.
            w_save = ' '.
          endif.
        endif.
      endif.
    Regards,
    Satish.

    Hi Maine,
    Thanks for your reply.
    As you mentioned for your own program, you can control the parameter "I_SAVE", when calling "REUSE_ALV_GRID_DISPLAY".
    so already i have use the same logic and control the parameter through I_SAVE and here i am calling method ALV_GRID->SET_TABLE_FOR_FIRST_DISPLAY instead of "REUSE_ALV_GRID_DISPLAY".
    and it works fine when we execute the report but the logic doesnt work when the user tries to change and save the layout variant on the output screen of the report.
    Regards,
    Satish

  • Restrict changes in payment terms

    Hi All,
    We have a requirement where in we have to restrict certain users from changing the sales order payment terms. This process has to be SOX compliant also.
    This requirement is for a certain sales org.
    What are all the various ways of achieving this objective with a scalable solution.
    Thanks in advance,
    Ashish

    Hi,
    In the userexit USEREXIT_FIELD_MODIFICATION in the include MV45AFZZ...
    Check for the sales org..
    FORM USEREXIT_FIELD_MODIFICATION.
    IF VBAK-VKORG = '0100'.  " CERTAIN SALES ORG.
    disable the input for payment terms..
      IF SCREEN-NAME = 'VBKD-ZTERM'.
        SCREEN-INPUT = '0'.
      ENDIF.
    ENDIF.
    ENDFORM.
    Thanks,
    Naren

  • Restricting user from changing price in me22n after goods receipt

    i want to restrict the users from changing the price of the material in me22n after after goods receipt.
    pls tell me the userexit for it with detail.

    Okay, then let me play the role of the bad man.
    Why would you need to restrict users from changing a price after GR ?
    Do you think that users are changing prices just for fun or to mess up the system?
    Have you talked to users why they want change the price after a GR?
    do you have an alternative plan, for the case that the price really needs to be changed to be able to post the invoice?  do you want to cancel always the GR in this case? Is is possible? What if the stock is already issued? do you then want to cancel the entire chain? what if a month end closure was already done?

  • Restrict users from changing password on first login?

    Hi,
    I am doing mass user upload into UME using script import. How should I use the below functionality to restrict the users from changing password on first login?
    IUserAccount uacc =UMFactory.getUserAccountFactory().newUserAccount(uid,newUser.getUniqueID());
    uacc.setPassword("saras");
    uacc.setPasswordChangeRequired(false);
    How to implement above functionality with mass upload from script import?
    Thanks
    Srinivas
    Edited by: srinivas M on Jan 20, 2009 9:05 PM

    hi srinivas,
    try this api
    http://help.sap.com/javadocs/NW04S/current/se/com/sap/security/api/IUserAccount.html#isPasswordChangeRequired()
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40d562b7-1405-2a10-dfa3-b03148a9bd19
    this document able to retrive the password.. same positon u can disable the field
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10649c90-24af-2b10-1086-ea0667ec3655
    thanks

  • Not allowing changes to payment terms after the AR document is released to accounting

    Hi,
    Anyone know the best way to not allow a user to change the payment terms after the AR document has been created in AR? This is affecting aging because users are changing the payment terms without permission. What is the best way to control that?
    Thank you.
    AK

    Hi A K
    Frequent change in payment terms is something business should introspect. Payment term is decided and agreed upon with customer/vendor during the initial stages.
    However from IT perspective, it can be controlled keeping some system controls.
    1. Limit the Customer master change transaction to very limited users or to a manager. There should be internal approvals by management for business to make a change. Bring this into force.
    2. Regularly run the customer master change reports and provide the trend to management to restrict or limit the changes.
    3. Use Change Message control for master data by providing necessary warnings or error messages when master data is changed.
    4. In  the sales order level, there is every possibility to change the payment term. Based on the user authorization get the payment term field greyed out and provide change access to accounting or to a specific user upon approvals. This is a bit complex process but I feel this brings up controls and stops the process from exploitation.
    5. Also activate 'Sensitive fields' KNB1-ZTERM for payment term field in customer master. This brings up another layer of confirmation of change by other users.
    6. Another back route, not recommended in all cases, is to subsititute the required payment term during accounting document posting.
    Hope it helps.
    Thanks,
    Sekhar

  • Query to show Change in Payment Terms BPs

    Hi All
    Since we cannot restrict users from updating Customer Payment Terms if thay have access to BP Master Data, I would like to create a query (to set as an Alert) to show when BP Payment Terms have been updated
    Has anyone written such a Query that they wouldn't mind sharing?
    Thanks
    Peter

    To get the payment terms modified today you can use this query:
    SELECT t.CardCode, t.GroupNum New, p.GroupNum Previous,
      t.UpdateDate,t.UserSign,u.U_Name
    FROM ACRD t
      inner join ACRD p On t.CardCode=p.CardCode and t.Loginstanc-1=p.Loginstanc
      inner join OUSR u On t.UserSign=u.Internal_k
    Where datediff(d,t.[UpdateDate],getdate() )=0
       and  p.[GroupNum]!=t.[GroupNum]

  • Restrict Local Administrators from change Network property

    In my office Environment we are using Development machines on which every developer has Local Administrator rights on there system. We are using 2 Internet lines in which one line is fast speed and another one is slow one, due to slow internet speed on
    second line some peoples manually change the Gateway IP and switch from slow to Fast one, to stop this we need to restrict those users from changing IP on windows 7. Only domain Administrator can able to change that Setting. we are using Window Server 2008
    R2 as ADDS. is there any way to stop this using domain group Policy? or Local security policy?

    Hi Siddheshrsawant,
    Sorry, we can’t restrict local administrators from changing network property via Group Policy, and this is by design.
    For confirmation, the following thread also focused on the similar issue and can be referred to for information.
    Unable to lock down Network Connections settings with Group Policy
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/32045ab3-0496-4f5e-b2c2-71ba0f2ed073/unable-to-lock-down-network-connections-settings-with-group-policy?forum=winserverGP
    Best regards,
    Frank Shen

  • How to restrict the user from making any changes in Sales order- item level

    Hi to all
    How to restrict the users from making any changes in sales order at item level if the same sales order is released by senior user through status profile.
    Regards
    Anish Parikh
    Edited by: anish parikh on Jan 24, 2008 5:16 AM

    Hi Anish,
    This can be achieved through the roles and authorization.
    This can be done through the basis team. they can create user profiles and roles.
    For the roles they assign some transaction codes so that they can view the only assigned tr. codes.
    Like that ur requirement can be done.
    Also u can prevent the user to change any fields in the sales order screen (VA02). for that please modify the authorisations.
    Hope i answers.
    Reward points if useful.
    Edited by: kaleeswaran bhoopathy on Jan 24, 2008 9:57 AM

  • User should not be able to change the payment terms

    Dear All,
    My issue is that user should not be able to change the payment terms in any of the document.I have tried to do it through authorization but it is not working out.
    Mona.

    Dear Mona,
    This may only be done through SP_Transaction_Notification.
    Thanks,
    Gordon

  • Restrict users from changing roles

    Is there a way to restrict users from changing roles
    themselves? If a user goes to My Connections and then clicks Edit,
    they could, in theory, change to any group they want--except to the
    administrator group because you have to enter a password. If the
    admin isn't watching the site 24/7, the user can change their roll,
    let's say from a writer to a publisher, and publish something
    before the admin can notice.
    Is there anything that can be done to restrict that?

    You can use connection keys...this will only allow a user to
    change their name and email address (I think...I can check on this
    tomorrow). We use these at my work and it allows for a lot more
    control over who is assigned to the proper groups.

  • Release retriggering while changing the payment terms

    Dear All,
    After releasing the purchase order if anybody Changes then payment terms in me22n, release should retrigger how to configure this process
    Regards,
    Vijaybhaskar

    Hi,
    You have two option to achieve this no.1 through user exit
    refer this link
    Release strategy for PO on Payment terms..
    No. 2 through version management
    refer this link
    Restricting Purchase order's payment terms change authorization

  • Issuing a warning message while changing the payment terms in FB02

    Hi Gurus,
    The requirement is as follows:
    For a particular payment terms meant for customer only when we change the payment terms in FB02, the system should give an warning message.
    For example - A customer has the payment terms 0001in his master data and thus in the accoutning document as well after releasing billing to accounting. An user wants to change the payment terms to 0070 being in FB02. As and when he puts the payment terms 0070, the system should give an warning meesage saying 'bla bla bla ........' or the same message at the time of saving the document.
    How to make this possible. Please help.
    Rgds,
    BABA

    Mr. Tiwari,
    This is the standard feature of SAP!!!  You get below messages
    1)
    Net due date on 05.10.2007 is in the past
    Message no. F5149
    Effects on Customizing
    You can define when this system message is to be issued in accordance with your requirements.
    You do this in Customizing as follows: Cross-Application Components -> Bank Directory -> Change Message Control.
    The application area and message number can be taken from the technical documentation.
    2)
    Net due date on 05.10.2007 is in the past
    Message no. F5149
    Effects on Customizing
    You can define when this system message is to be issued in accordance with your requirements.
    You do this in Customizing as follows: Cross-Application Components -> Bank Directory -> Change Message Control.
    The application area and message number can be taken from the technical documentation.
    Terms of payment changed; Check
    Message no. F5231
    Effects on Customizing
    You can define when this system message is to be issued in accordance with your requirements.
    You do this in Customizing as follows: Cross-Application Components -> Bank Directory -> Change Message Control.
    The application area and message number can be taken from the technical documentation.
    Regards
    Santosh Hegde

  • Authorisations for Changing BP Payment Terms

    Hi Experts
    Is there any way which I can prevent certain user changing BP Payment Terms using authorisations?  Alternately, would it be possible to write a query which shows me which users have changed Payment Terms of BPs which I can then setup as a daily alert?
    Thanks
    Jon
    Edited by: Johnny Yen on Jan 28, 2010 7:11 PM

    Jon,
    You can use this query to understand the fields and the table associations
    SELECT  DISTINCT TOP 1 T0.CardCode, T0.CardName, T0.GroupNum, T1.GroupNum, T1.UserSign, T0.UserSign, T1.LogInstanc
    FROM [dbo].[OCRD] T0 INNER JOIN  [dbo].[ACRD] T1 On T0.CardCode = T1.CardCode
    WHERE T0.GroupNum <> T1.GroupNum
    ORDER BY T1.LogInstanc DESC
    Suda

Maybe you are looking for

  • Can I use the Ipad3 power adapter for the Iphone5

    Can I use the Ipad3 power adapter for the Iphone5 or vice versa?

  • Aggregate=aggravating!

    OK, so I've got my M-Audio Firewire 410 plugged in and ready to go for my first recording. (Following the Logic Pro Training book). Obviously there's no sound coming through my headphones because I spend an hour trying to figure it out myself before

  • 8 steps to load a Pantone color in Illustrator - What?

    Hi There, Illustrator's way of specifying Pantone colors has driven my colleagues and I to distraction. Firstly we go through 4 menus to select the book color, then view the swatch library as a small list, then show the find field, then search for th

  • Flash64_10_3_162.ocx crash in IE 9 (Win 7 64 bit OS)

    Can ANYONE help resolve this issue... Problem signature:   Problem Event Name: APPCRASH   Application Name: iexplore.exe   Application Version: 9.0.8112.16421   Application Timestamp: 4d762323   Fault Module Name: Flash64_10_3_162.ocx   Fault Module

  • Tables - keeping together

    Hi there,  I have previously asked for help with creating a "column" down the right hand side of a set of Minutes I am preparing.  The advice given was to use tables instead of creating columns.  However, now that I have created the table, there is a