Transaction Notification for Restrict user to delere row but new item addition will allowed in Production Order

Dear All Experts,
My client having some custom requirement in Production Order.
1) When Production Order will created and its status will released then it will allowed user to update any quantity of any items or add any new items but it will not allowed to delete any items from row level.
2) When any item will be deleted then our transaction notification will be raised.
I created one Transaction Notification Code but it will restricted to update anything or delete.
IF (@transaction_type = 'A' or @transaction_type = 'U') AND @object_type = '202'
BEGIN
Declare @VisOrder1 nvarchar(255)
Set @VisOrder1=(SELECT Top 1 T1.VisOrder+1 FROM OWOR T0 INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry 
WHERE (T0.Status = 'R' and T1.VisOrder=(select TOP 1 VisOrder from wor1 where DocEntry=@list_of_cols_val_tab_del order by VisOrder Desc)))
  If @VisOrder1 >0
  begin
  SET @error = 231
  SET @error_message =  'You have not rights to delete any Item - Please Contact System Administrator ' + @VisOrder1
  end
END
Please help me for solve this problem.
I wait for your warm replay.
Thanks & Regards,
Nishit Makadia

Hi,
Please check these threads. Let me know your feedback.
http://scn.sap.com/thread/3518208
http://scn.sap.com/thread/3545101
Thanks & Regards,
Nagarajan

Similar Messages

  • Transaction Notification For User Defined Object

    Dear Expert,
    I want to create a transaction notification for my user defined form. I have a matrix on my form which has a field as 'Code'. I want that this field (On Row Level) should have unique values all the time while adding or updating the form.
    Object Type: MaterialMaster
    Table Name: MaterialDetails
    FieldName: U_Code
    Plz help me to get this notification.
    Regards

    Hi Amit,
    Please check below query.
    IF @object_type = 'MaterialMaster' AND @transaction_type IN('A','U') and @error = 0
    BEGIN
    IF ( SELECT COUNT(*)
    FROM MaterialDetails A
    WHERE A.U_Code IN (SELECT U_Code FROM MaterialDetails WHERE  U_Code = @list_of_cols_val_tab_del)
    GROUP BY A.U_Code
    HAVING COUNT(*) > 1
    ) >1
    BEGIN
      set @error = -10
      set @error_message = 'You can not Add Dublicate Code'
    END
    End
    Hope this help
    Regards::::
    Atul Chakraborty

  • I want to add transaction code for one user.

    Hi abapers,
    My requirement is;
    I want to add transaction code for one user.
    EX: zsdf to kanne.
    Can any body tell me the procedure step by step.
    With regards,

    If you want to give authorisation to an user for a particular tcode, you need to first include the transaction code in an authorisation Role and then assign the authorisation role to the user id in the transaction code SUIM.
    A Basis guy will be able to help you to do this and anyway this is not the job of an ABAPer.
    Hope this helps you.
    Reward if this helps you

  • SHD0 -- Transaction variant for specific users

    Dear All,
    I want to change label text for VA02 using GUIXT.
    I have created Group ZGROUP1 and the transaction variant is ZGROUP1VA02. Then I have activated the variant. It is supposed to change the label for the users belong to ZGROUP1 but it is changing for all users.
    Please advice and thanks in advance.
    Regards,
    Maysara Salah

    Hi after creating the group and  variant , you need to add the users in that group under user assignment tab and after entering the user name just click assign and then click set proposal.
    Note: Do not activate the variant. (If you activate it , the changes will be affected for all users)
    Thanks & Regards,
    Madhumahesh.

  • To stop email notification for a user regarding PR release in workflow

    Hi All,
    I am new to workflow.
    I need to stop an email notification for a user who receives it for PR release.
    I checked earlier posts which stated some send email steps in workflow and extended notifications.
    But I am not aware of any of this things.
    Can you all please help me in resolving this? As i hardly know anything about workflow.
    How can i check where this email notification gets triggered or from where it picks the user id?
    Your help would be appreciated.
    Thanks.

    Hi Dharmin
    Identify which workflow is for PR:
    Go to T Code SWI2_FREQ
    Select the appropriate date range
    Work item Type should be (Sub-)Workflow
    Execute
    You will get the list of ALL workflows triggered during the given time interval
    Hopefully, the developers in your system have maintained the correct Work item text and you can identify the PR workflow . Pick the WSxxxxxxxx number from the "task" Column for the PR Workflow
    Go to SWDD and analyze this workflow, check for steps which are sending the emails.
    (simplest possibility)
    Once you find the step, see if this can be blocked for a given user or not (or will it block for everyone).
    Reach there and give us the details of the email step and we shall work out a way.
    BTW - did you try to ask for the Functional and Technical Specs for this ?
    It should contain some details to help you.
    Regards,
    Modak

  • BADI for MIGO for restricting User to entered other MVT types?

    Hi All,
    BADI for MIGO for restricting User to entered other MVT types?
    I want to restrict some of user not to use 501 Movement type ..I already created a Ztable for checking User for 501 type.
    Please let me know any Enhancement to be used to restrict user ?
    Thanks and Regards
    Steve

    Hi Steave,
    You can use this enhancement exit MB_CF001, this exit will be called every time before posting, you can use your logic in this exit. see its documentation first before implementing.
    Regards
    Ahsan

  • HT4906 I want to download the new updates I think to the 10.9 but our mac was given to us and when it comes to the last page it asks for the user name and password but this mac was wiped clean. How do I find out this info so I can get iPhoto?

    I want to download the new updates I think to the 10.9 but our mac was given to us and when it comes to the last page it asks for the user name and password but this mac was wiped clean. How do I find out this info so I can get iPhoto? To be honest I'm not even sure what type of Mac I have and don't know how to find out what kind it is
    I'd also like to make address labels and don't know where to find that either

    You would make address lables with the Contacts app.
    If you don't have the user name and password used to set up the machine then you need to purchase the apps for yourself.

  • I had a belkin keyboard for my old iPad.  I have upgraded to an iPad air.  Can I get a new case that will allow be to use my old keyboard?  How?

    I had a belkin keyboard for my old iPad.  I have upgraded to an iPad air.  Can I get a new case that will allow me to use my old keyboard?  How?  Where?

    You might look for generic cases. They're not as sturdy or durable as custom made ones - they tend to use elastic to hold in the iPad and keyboards - but that elastic does give them some flexibility.
    Or see if Belkin has anything.
    Or you may simply be out of luck with the compatibility. My Keyboard is in a case custom built for my 2 and I know whatever tablet I replace my iPad with I'll be getting a new keyboard as well because it most likely won't fit in a new case.

  • Use SP Transaction Notification for trigger on user defined table

    Hi i need some help. I have a user defined table in sap (@LAU_ACCT) .
    I need way to catch the event on the table (update , delete , add).
    I heard about SP Transaction Notification , but how use it with udt ?
    Thanks!

    Hi Pavel,
    it is only possible if the UDT is registered as part of an object ( UDO ) - further info http://scn.sap.com/thread/3277846 . So for pure UDT actions you have to find another way ( SQL trigger, UI API, periodic query ).
    regards,
    Maik

  • How to authorize a transaction code for a user?

    Hello,
    How can I authorize the user for a specific transaction code and how can I block it?
    I would appreciate if you can give some insight.
    Thank you.
    Hakan

    Hi Hakan,
    We can achieve this by using two T.Code SU01 and SUIM.
    First check in SUIM,the T.Code that you want to block  T.Code is belongs to which role.
    For finding it Click on roles.Click on transaction assignment.Enter your T.code and execute.
    After finding this goto SU01 and unassign that role for that user.
    In this way we can block the user to use one particular T.Code.
    For providing authorisation,add the role to the user id in SU01 T.Code.
    Run SU53 T.Code after running the failure T.Code to know all the errors.
    Please contact your BASIS person for all these.
    Regards,
    Krishna.

  • Transaction Variant for particular users

    Hi all,
        I have to hide Qty field in ME22. i created a transaction variant for this.
        But i want that to be activated only for specific users.
       I created a variant group and assigned users to that group.
    But that is not working. the variant is getting activated for all users.I dont know which part  i  missed.
    Help me in this regard.
    Regards,
    Viswanath babu

    Hi  Viswanath,
    Have you followed the naming convetion -
    Check the doumentation in SHD0 ( Utilities -> Application Help ).
    <b>How are the variant groups maintained?
    You can enter the group names on the "Variant Group" tab and maintain variant groups with the "Create" or "Change" functions.
    The group name must be in the "correct" namespace.
    In addition, there are two Where-Used Lists:
    Which users are assigned to the group,
    For which transactions the group applies.
    Which transaction variants belong to the groups?
    The name of a transaction variant that is to belong to a group meets the following naming conventions:
    <Name of variant group><name of transaction code>. Example: A transaction variant is to be created for the XYZ transaction that belongs to GROUP1. The name of the transaction variant is then GROUP1XYZ.
    Due to this naming convention, the group name must be in the "correct" namespace.
    Transaction variants that (randomly) meet this naming convention do not necessarily belong to a group. The group assignment is activated by
    1. Creating a group
    2. Assigning users to this group
    A transaction variant that belongs to a group can also be used this way, like a transaction variant without a group.
    How are the transaction variants that belong to a group maintained?
    Transaction variants that belong to a group are maintained in the same way as all other transaction variants, they are distinguished using a naming convention (<name of variant group> <name of transaction codes>).</b>Cheers

  • Receiving notifications for other users calendar changes

    Since upgrading to ML, I receive change notifications for other icloud users calendars I subscribed to, even when "ignore notifications" of this calendars is ticked in the Calendar application.
    How can I prevent to receive such change notifications?
    Currently, I need to remove the notification in NC and I must remove the notification in the Calendar inbox as well.
    Thats really annoying.

    No one?

  • Transaction Notification for Blocking Batch

    Dear Experts,
    I am facing a critical situation. My Client wants to Block the material movement  if it is not inspected through Quality Personal. I have already Locked batches through General Settings > Inventory > Batch Status . But it only blocks the batches for Goods Issue and Receipts Transactions. It is not working in case of Inventory transfers.
    I have created UDF on GRPO called U_InspStatus where by default value is Pending once the Quality personal changes the UDF value to Completed then only the batch should be able to move through Inventory Transfer.
    Can anyone help me in creating Transaction Notification on Inventory Transfer Document  which can block batches if there status is pending ?
    Waiting for your replies.
    Regards,
    RK

    Hi Naga,
    Please find below mentioned answer to your queries -
    1. Inventory transfer done by means of posting inventory transfer document? - Yes
    2. Inventory transfer as applicable to customer not vendor. How do you select vendor in inventory transfer document? - Not selecting the customer in Inventory Transfer document not required I am moving material from one warehouse to another.
    3. How did you update inspection status in inventory transfer document - Inspection status is updated in Quality Add on and not in Inventory Transfer. But if I am transferring material from one warehouse to another without Inspection then it should block the batch whose Inspection status is pending.

  • Required the transaction code for the user exit

    Hi Abap Gurus,
            i want to find out the *sap transaction code for which the user exit belongs to  from the below code i am getting the enhancement name and the type.
    i want to know the transaction code for exit EXIT_SAPLMEKO_002 and  EXIT_SAPLFYTX_USER_001
    data: begin of it_modsap occurs 0,
            name   type modsap-name,
            typ    type modsap-typ,
            member type modsap-member,
          end of it_modsap.
    type-pools:slis.
    data:wa_layout type slis_layout_alv.
    data:it_sort   type slis_t_sortinfo_alv.
    data:wa_sort   like line of it_sort.
    parameters:p_exit type modsap-member.
    select * from modsap into table it_modsap where member = p_exit.
    read table it_modsap index 1.
    select * from modsap into table it_modsap where name = it_modsap-name.
    wa_layout-colwidth_optimize = 'X'.
    wa_sort-fieldname = 'NAME'.
    wa_sort-tabname   = 'IT_MODSAP'.
    wa_sort-up        = 'X'.
    append wa_sort to it_sort.
    clear  wa_sort.
    call function 'REUSE_ALV_GRID_DISPLAY'
      exporting
        i_callback_program = sy-repid
        i_structure_name   = 'MODSAP'
        is_layout          = wa_layout
        it_sort            = it_sort
      tables
        t_outtab           = it_modsap.

    HI
    The user exit EXIT_SAPLFYTX_USER_001 is trigered for the below transactions and also postings via IDOC.
    'ME21' 'ME21N' 'ME22' 'ME22N' 'ME23'  'ME23N' 'ME31L'  'ME31'   'ME32L' 'ME32'  'ME33L'  'ME33' 'ME38'   'ME39'  'VL31N'  'VL32N' 'VL33N'.
    This is basically used for tax calculation purposes.
    The user exit EXIT_SAPLMEKO_002 is trigerred for multiple transactions of purchansing scenario.
    Also use user exit for your business scenario.
    Br
    Vijay V

  • SP Transaction Notification For Service Type Documens Only

    Hi All,
    Just a little help here please.
    I have a query in my Transaction Notification that I only want to run for service type documents however when I put the code in I am getting an error.
    Below you will see my query and the part I put in for service type documents is the first part of the WHERE clause.
    Please explain to me how to do this correctly.
    /*Check for Cost Center On Marketing Documents*/
    IF ((@transaction_type = 'A'
           OR @transaction_type = 'U')
         AND (@object_type = '13'
                OR @object_type = '14'
                OR @object_type = '18'
                OR @object_type = '19'
                OR @object_type = '20'
                OR @object_type = '22'))
        BEGIN
              SELECT @table = CASE @object_type
                                    WHEN '13' THEN 'INV'
                                    WHEN '14' THEN 'RIN'
                                    WHEN '18' THEN 'PCH'
                                    WHEN '19' THEN 'RPC'
                                    WHEN '20' THEN 'PDN'
                                    WHEN '22' THEN 'POR'
                                  END
              SELECT 1 cnt
              INTO   #temptable15
              WHERE  1 = 0
              SET @sqlstr = ' insert into #temptable15
                                  SELECT     1 AS cnt
                                  FROM         [' + @table + '1] INNER JOIN
                                              [O' + @table + '] ON [' + @table + '1].DocEntry = [O' + @table + '].DocEntry
                                  WHERE     ([O' + @table + '].DocType = S) AND ([' + @table + '1].OcrCode IS NULL) AND ([' + @table + '1].DocEntry =  ' + @list_of_cols_val_tab_del + ')'
              EXECUTE( @sqlstr)
              SET @CostCenter = (SELECT TOP 1 cnt
                                   FROM   #temptable15)
    DROP TABLE #temptable15
              IF (@CostCenter = 1)
                   BEGIN
                        SELECT @error = 1
                        SELECT @error_message = 'Please fill in Cost Center!!!'
                   END
         END
    Any help will be greatly appreciated.
    Regards,
    Quinn

    Hi Quinn Verburgt ,
    Check This...
    This SP make Cost Center field mandetory for Service Type Document.
    If @object_type in ('17','22','14','18','19','20') and @transaction_type='A'
    BEGIN
    If Exists (Select T0.DocEntry from ORDR T0 Inner Join RDR1 T1
    On T0.DocEntry=T1.DocEntry
    Where T1.OcrCode Is Null and T0.DocType ='S'
    And T0.DocEntry = @list_of_cols_val_tab_del)
    (Select T0.DocEntry from OPOR T0 Inner Join POR1 T1
    On T0.DocEntry=T1.DocEntry
    Where T1.OcrCode Is Null and T0.DocType ='S'
    And T0.DocEntry = @list_of_cols_val_tab_del)
    (Select T0.DocEntry from ORIN T0 Inner Join RIN1 T1
    On T0.DocEntry=T1.DocEntry
    Where T1.OcrCode Is Null and T0.DocType ='S'
    And T0.DocEntry = @list_of_cols_val_tab_del)
    (Select T0.DocEntry from OPCH T0 Inner Join PCH1 T1
    On T0.DocEntry=T1.DocEntry
    Where T1.OcrCode Is Null and T0.DocType ='S'
    And T0.DocEntry = @list_of_cols_val_tab_del)
    (Select T0.DocEntry from ORPC T0 Inner Join RPC1 T1
    On T0.DocEntry=T1.DocEntry
    Where T1.OcrCode Is Null and T0.DocType ='S'
    And T0.DocEntry = @list_of_cols_val_tab_del)
    (Select T0.DocEntry from OPDN T0 Inner Join PDN1 T1
    On T0.DocEntry=T1.DocEntry
    Where T1.OcrCode Is Null and T0.DocType ='S'
    And T0.DocEntry = @list_of_cols_val_tab_del)
    BEGIN
    Select @error = -1,
    @error_message = 'Please fill in Cost Center!!!'
    End
    End
    Thanks,
    Srujal Patel

Maybe you are looking for

  • Error While defining the content server

    Dear Folks, We are trying to define the content sever in our sever. It is required for integration of SAP with documentum. We are trying to define in below path. Cross-Application Components - Document Management - General data - Settings for storage

  • Kernal_Task running constantly since upgrade to Mavericks

    I too am having an issue with Kernal Task". Memory should not be an issue on my Mac Pro Tower, as I have 48 GB of ram. It is running all the time and slows down all the basic functions of my MAC- like saving documents and opening files in the finder.

  • W_ACCT_BUDGET YTD Amount

    Hi all, I am using BI Apps version 7.9.6.3 - Financial Analytics and I was wondering why the fact table W_ACCT_BUDGET which carries only budget GL Balances doens't have a column carrying the As of Date (YTD) amount of the GLs?Is this column exists wi

  • Client copy Only data

    Hi,    We have a copy of production client in Quality system.    This client copy was done few months back, can we update the client in quality with the data which was updated in production after the client copy. Or will I have to do entire client co

  • 11.1.7 on Windows 2008 R2 - Error TNS:protocol adapter error

    I am getting the error on Windows 2008 R2 ORA-12560: TNS: protocol adapter error. Even I applied the patch: 9166858 Installed the software and created the Database with Database Configuration Assistant. Even I started all the Oracle Services. Same pr