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.

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

  • Customer Quality notification for multiple batches

    Hi All,
    Is there any way I can reference multiple Batches to single quality notification?
    Present solution Proposed -  Using user exit insert New Zfields to notification to enter Batch nos manually.
    is there any other standard enhasment where multiple batch entry can be done!
    Thanks in advance!
    Jay

    Dear Sadan,
    There is a chance of happening this due to that field is marked as mandatory.
    I hope this would happen, when Pm guy was making settings for the notification fields.
    He might have made this filed mandatory w/o any reference of Notification type (Influencing in spro filed selection), If he doesnt select Influencing and Notification type, that field Mandatory will effect all the Notification types.
    So please check with ur PM guy and change the field setting for Notifications and ask him to use Influencing - Notification type and desired notification type.
    Regards,
    Praveen

  • 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

  • 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

  • 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

  • Outgoing Payment Transaction notification...

    Hi all,
    I designed the following Transaction notification for outgoing payment.It is working well If doctype is 'C' or 'S'. I want to do this for Doctype 'A'. But not successful....
    Waiting for your replies..
    IF @transaction_type = 'A' AND @object_type = '46'
    BEGIN
    --If exists (SELECT T0.docentry  FROM OVPM T0 where t0.docentry = @list_of_cols_val_tab_del and T0.cashsum>=20000000)
    --     begin
    --          SET @error = 10
    --          SET @error_message = N'You cannot Pay Cash More than Rs. 2000/-'
    --     end
    If not exists (SELECT T0.docentry  FROM OVPM T0  where t0.docentry = @list_of_cols_val_tab_del and
    (((t0.cardcode like '%%VDLI%%' or t0.cardcode like '%%CDLI%%' ) and t0.Series = '61' and (t0.doctype = 'S' or t0.doctype = 'C'   ))
    or ((t0.cardcode like '%%VAHD%%' or t0.cardcode like '%%CAHD%%' ) and t0.Series = '64' and (t0.doctype = 'S' or t0.doctype = 'C'  ))
    or ((t0.cardcode like '%%VMUM%%' or t0.cardcode like '%%CMUM%%' ) and t0.Series = '63' and (t0.doctype = 'S' or t0.doctype = 'C'  ))
    or ((t0.cardcode like '%%VLDH%%' or t0.cardcode like '%%CLDH%%' ) and t0.Series = '66' and (t0.doctype = 'S' or t0.doctype = 'C' ))
    or ((t0.cardcode like '%%VKOL%%' or t0.cardcode like '%%CKOL%%' ) and t0.Series = '62' and (t0.doctype = 'S' or t0.doctype = 'C' ))
         begin
              SET @error = 11
              SET @error_message = N'BP Code,Location ,Series ,Tax code combination does not match'
         end
    END
    Regards
    Deepak tyagi

    Hi Deepak,
    Try this way:#
    if @object_type='46'
    BEGIN
          IF @transaction_type='A' OR @transaction_type='U'
          BEGIN
                DECLARE @OPCHDocEntry int
                DECLARE @OPCHDocType nvarchar(1)
                 SET @OPCHDocEntry = CAST(@list_of_cols_val_tab_del as int)
                SET @OPCHDocType = (SELECT DocType FROM OPCH WHERE DocEntry=@OPCHDocEntry)
            IF @OPCHDocType in ('S','C')
                BEGIN
                    If not exists (SELECT T0.docentry  FROM OVPM T0  where t0.docentry = @list_of_cols_val_tab_del and
                                  (((t0.cardcode like '%%VDLI%%' or t0.cardcode like '%%CDLI%%' ) and t0.Series = '61' and (t0.doctype = 'S' or t0.doctype = 'C'   ))
                                  or ((t0.cardcode like '%%VAHD%%' or t0.cardcode like '%%CAHD%%' ) and t0.Series = '64' and (t0.doctype = 'S' or t0.doctype = 'C'  ))
                                  or ((t0.cardcode like '%%VMUM%%' or t0.cardcode like '%%CMUM%%' ) and t0.Series = '63' and (t0.doctype = 'S' or t0.doctype = 'C'  ))
                                  or ((t0.cardcode like '%%VLDH%%' or t0.cardcode like '%%CLDH%%' ) and t0.Series = '66' and (t0.doctype = 'S' or t0.doctype = 'C' ))
                                  or ((t0.cardcode like '%%VKOL%%' or t0.cardcode like '%%CKOL%%' ) and t0.Series = '62' and (t0.doctype = 'S' or t0.doctype = 'C' ))
                        begin
                                            SET @error = -1000
                                            SET @error_message = N'BP Code,Location ,Series ,Tax code combination does not match'
                        end
                END
             IF @OPCHDocType ='A'
             BEGIN
               If not exists  (SELECT T0.docentry FROM OVPM T0 INNER JOIN VPM4 T1 ON T0.DocEntry = T1.DocNum and t0.docentry = @list_of_cols_val_tab_del and
                                                 (t1.acctcode like '%%ADLI%%' and t0.Series = '61' and  t0.doctype = 'A' and T1.LocCode = '1' )
                                                 or (t1.acctcode like '%%AAHD%%' and t0.Series = '64' and  t0.doctype = 'A' and t1.LocCode = '2' )
                                                 or ( t1.acctcode like '%%AMUM%%' and t0.Series = '63' and  t0.doctype = 'A' and t1.LocCode = '3' )
                                                 or ( t1.acctcode like '%%ALDH%%' and t0.Series = '66' and  t0.doctype = 'A' and t1.LocCode = '5')
                                                 or ( t1.acctcode like '%%AKOL%%' and t0.Series = '62' and  t0.doctype = 'A' and t1.LocCode = '4')
                BEGIN
                            SET @error=-1001
                            SET @error_message = N'BP Code,Location ,Series ,Tax code combination does not match'
            END   
          END
    END
    END
    Thanks,
    Neetu

  • Notification for the Blocked Queues

    Hi,
    My environment is PI 7.0 and in my monitoring transaction (SXMB_MONI) getting the messages has Scheduled for Outbound Processing (The Icon is like (>) ).
    I checked my SMQ2 of my XI/PI system and I can see some of the messages got blocked in the Queue. The Queue message is XBT0*******. Manually unlocked the messages and activated my Queues and refreshed the queue cleared in couple of mins.
    The problem was caused by the PI**USER got locked and unlocked the user few days back.
    I want to know is their any possible way to get a notification for the Scheduled for Outbound Processing messages (>).
    Other then Scheduled for Outbound Processing (>) messages we can get the notifications. We can get for notification for the Red Flag, Green Flag, and White Flag). What about the Scheduled for Outbound Processing messages (>) Flag????
    Give your ideas to monitor this kind of errors by notification.
    Thanks,
    GM.

    Hi, GM:
    This can be achieved by setting CCMS alert to monitor the status of the queue, please check the link:
    http://help.sap.com/saphelp_nw70/helpdata/en/f0/02a63b9bb3e035e10000000a114084/frameset.htm
    Also check the How-To guide:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/0b4580be-0601-0010-d3ad-bd6ce51ae916
    Liang

  • How I know if there notification for each transaction in each module

    dear Consultant's
    How I know if there notification for each transaction in each module and if it's enabled or need to enable
    For example:
    In AP:
    When I create, transaction is there any notification send
    When I create payment term is there any notification send
    How I know what the standard oracle notification create for each module
    thanks for caring

    I can't believe there's still no proper answers for this question . I'm now struggling with the same issue as the original asker. It seems that at least with the newest version of Nokia Drive you can delete the maps saved (without the need to remove the whole application). You can do that even one by one. But the question is: "If I delete a particular map and load it again, will that be the newest version of the map? Or is there still a need to delete the whole Nokia Drive application, as said in the instructions linked earlier in this thread?"
    Anyway, even deleting one map and loading it again sounds very frustrating without knowing if there actually is a new update or not. We should know exactly which is the current version of each map and wheter there is a newer version.
    Many things are gone worse after Symbian. On Symbian phones, you could easily update all the maps with Ovi Suite. Now, with Zune, you can update the firmware, but not the maps which was a disappointment to me. I don't have WiFi connection, so, for me, it would be cheaper to download huge amounts of data with my computer's wired connection (with my phone connected to it via USB). Don't want to waste my monthly data limit to download again possibly the same map versions just to be sure...
    But please, moderators and others, give us some comments and answers...
    Loyal Nokia owner

  • SP Transaction Notification - what object type number to use for BP Activity

    Have to re-post it, the previous one has been accidently marked as answered.
    I'm trying to add some script into SP Transaction Notification and want to make it
    run when user add a new "BP Activity" into B1.
    What object type number should I use in SP Transaction Notification stored
    procedure?
    BTW, following this article:
    SAP Business One Form Types and Object Types
    http://scn.sap.com/community/business-one/blog/2013/07/09/sap-business-one-form-types-and-object-types
    I tried 103, but it seems like doesn't work.
    103 ActivityTypes object
    Thanks.

    Found my answer here, object type should be 33. Strange, this is inconsistent with article in my original post
    Object code for Activity (OCLG)

  • Writing a Batch Input or Call Transaction program for transaction code MMAM

    Hi All,
    I'm writing a Batch Input or Call Transaction program for transaction code MMAM (Changing Material Type). The program was able to run but somehow I was not able to capture the log of the output after running MMAM. The log was not part of the SY-MESSAGE so adding in MESSTAB into call transaction doesn't help while BDC session logs shows only the transaction was processed.
    Anyone has encounter such problems before?
    Regards,
    Ramu.

    Hi
    Overview of Batch Input Session
    The first batch input method is to create a batch input session. It is the processing of this batch input session that updates the database, not the execution of the batch input program. i am giving you example for Change Vendor you practice for ur tcode
    For our example, we will use the “Change Vendor” transaction (“FK02”) to add a street address to an already existing vendor.
    Step #1
    Use “SystemStatus” menu path to determine online program name (SAPMF02K), screen number (0110)
    Step #2
    Use “F1” key and “Technical Info” pushbutton in each screen field to be filled to determine the field name.
    Step #3
    Determine how to proceed in the transaction
    (save the record by clicking on the ‘Save’ pushbutton or pressing the ‘F11’ key).
    The process flow of CALL TRANSACTION
    A program that uses CALL TRANSACTION USING to process legacy data should execute thefollowing steps:
    Prepare a BDCDATA structure for the transaction that you wish to run.
    Prepare a internal table to store error messages Tab_Mess like structure of BDCMSGCOLL.
    With a CALL TRANSACTION USING statement, call the transaction and prepare the BDCDATA structure. For example:
    CALL TRANSACTION ‘MM01' USING BDCDATA MODE 'A' UPDATE 'S'. MESSAGES INTO TAB_MESS.
    IF SY-SUBRC <> 0.
    <Error_handling>.
    ENDIF.
    Overview of Batch Input Session
    The first batch input method is to create a batch input session. It is the processing of this batch input session that updates the database, not the execution of the batch input program

  • How do I turn on the notification for pop-up blocker? I accidentally clicked the option saying "do not show this notification again." I want the notification so I have the option of seeing the pop-up or not, but don't know how to turn this back on.

    How do I turn on the notification for pop-up blocker? I accidentally clicked the option saying "do not show this notification again." I want the notification so I have the option of seeing the pop-up or not, but don't know how to turn this back on.

    Type "about:config" in the location bar.
    Filter for "privacy.popups.showBrowserMessage"
    Change this to true by double clicking the preference (or right click and choose Reset)

  • F4 help for the batch field in VL02N transaction

    We have upgraded our system from 4.6 to ecc 6.0 .In 4.6 the f4 help for the batch had " Batch selection via plant/Material/Storage location/Batch " which is not there in ECC 6.0.
    Please tell us the procedure to add in the existing  search help H_MCHA in ECC 6.0
    Thanks
    Aruna

    Hi Aruna.
      Create ur own search help using se11 tcode for required fields.
      Thanks & Regards,
    Kiran.
    Plz give rewards if and only if it is helpfull.

  • LEAVE TO TRANSACTION error in BDC batch input FOR LT06 TCODE

    Hi,
    Iam running CALL TRANSACTION method for creating Material Document numbers for MB1B Tcode .
    On capturing the document numbers created in the above process Iam trying to run LT06 tcode to create Transfer orders using session method .
    All this process is in a single program .
    Here it is creating the transfer orders but with LEAVE TO TRANSATION is not allowed in batchinput error and hence the status of the session is INCORRECT .
    It would be helpful if i get the earliest responce .
    Thanks

    self

  • Transaction Notification Considering Old transaction as well

    Dear Experts,
    If (@transaction_type = 'A' AND @Object_type = '140000009')
    begin
    if exists (SELECT T0.DocEntry FROM OOEI T0 WHERE (T0.U_ModVatCatg = 'N' AND T0. Series = 34) or (T0.U_ModVatCatg = 'M' AND T0. Series = 40) and T0.DOCENTRY = @list_of_cols_val_tab_del)
    select @Error = 1, @error_message = 'Wrong Series Selected for the given MODVAT Category'
    end
    The above transaction notification is written to check the series with a UDF. It was working fine till a few days back.
    However, a historical transaction was needed to be updated in a way that the condition in the transaction notification was not met.
    After having updated the transaction, this notification blocks all further documents even though the condition is satisfied.
    It seems the transaction notification is also considering the historical transaction and hence blocking the new transactions. However, this is not the way transaction notifications are meant to work.
    Kindly advise on how to over come this issue.
    Regards,
    Jimit

    Hi Jimmit,
    Seems you have 3 condition here
    1. (T0.U_ModVatCatg = 'N' AND T0. Series = 34)
    2. (T0.U_ModVatCatg = 'M' AND T0. Series = 40)
    3. T0.DOCENTRY = @list_of_cols_val_tab_del
    You place OR between 1 and 2, and place AND between 2 and 3, but no bracket to group condition 1 and 2.
    Seems fishy, try this
    if exists
    SELECT T0.DocEntry FROM OOEI T0
    WHERE ((T0.U_ModVatCatg = 'N' AND T0. Series = 34) or (T0.U_ModVatCatg = 'M' AND T0. Series = 40))
                  and T0.DOCENTRY = @list_of_cols_val_tab_del
    Hope this help.
    Best Regards,
    Hendry Wijaya

Maybe you are looking for

  • Windows Vista or XP for Bootcamp?

    Does it matter what version of Windows Vista I can use?  I found Vista Ultimate, Home Basic, Business, Home Premium. I want the cheapest one that will work fine. I only want to run some basic Window's programs, internet.  Nothing extensive like music

  • Logging in to Verizon residential brings me to wireless??

    I can't get to my verizon residential account, it logs me into wireless...what's up with that?!

  • How do you fix a screen with colored lines going down left side

    my HP DV6 notebook has a dark spot going half way down screen and red,green,blue lines on left side of screen,how do I fix this, some have said I could maybe replace cable in the hinge area on left side, I am a senior citizens, is there a utube showi

  • Config.msi error when upgrading to ITunes10.1.2

    When updgrading to ITunes10.1.2 I receive, "Error writing to file: D:\Config.Msi\a78ee.rbf. Verify that you have access to that directory." Knowing I have admin rights to my PC, what could be the problem? I tried downloading and installing at the sam

  • Conditional Criteria Search

    I have a form which uses Get to post fields to another page which list real esate results. the form works fine it searches Area Property Type: Min Price: etc by pasing the form fields where I have an sql query that processes the results. The client w