Duplicate check and alert.

Hi,
I need to merge 4 files into single file.
input files.
1.abc.out.<timestamp>
2.abc.out.<timestamp>
3.abc.out.<timestamp>
4.abc.out.<timestamp>
output file
abc.out
Scenario: I have created 4 Communication Channels and used BPM fork for collecting all the 4 files and merge and generate the files.
Case1 :channels are scheduled.
Case2: BPM need to wait for all the 4 files are collected , if in the particular time any one of the file i smissing stop the process. This was achived using fork and it is working fine.
Case 3: If there are any duplicate files
    eg:  1.abc.out.<timestamp>
            2.abc.out.<timestamp>
            3.abc.out.<timestamp>
            4.abc.out.<timestamp>
            2.abc.out.<timestamp>
2.abc.out.<timestamp> is repeated twice , if there are any duplicate files in the directory , i need to stop the process.
How can i achive the case 3 using BPM.
Thanks in advance

Hi,
check this link :-
http://wiki.sdn.sap.com/wiki/display/XI/DifferentwaystokeepyourInterfacefromprocessingduplicate+files
You can try to use the the standard predefined  BPM patterns SAP has delivered that are very helpful for developing the design for integration process. You can use these patterns or combination or part of these patterns to achieve your requirement. These patterns are available under software component SAP BASIS ..............Check the below links,they will give a better picture .You can use the patterns - BpmPatternCollectMultiIf ,  BpmPatternCollectMultiIfCondition
/people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-1
/people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-2
If  you are using PI 7.1, then you can use the  user decision step to meet your req.
Regards,
Rohit

Similar Messages

  • Duplicate check via BAS (ADDRESS_SEARCH)-- how to handle non-crm customer?

    Dear all,
    I'm implementing a duplicate check and using the BADI Address_search. Within this BADI I use the method "Address_Search" for calling a third party software tool with customer information. This tool checks whether the entered customer is already available in CRM AND in other system in our company holding.
    The method provides me a list of all found duplicates (incl. non-crm customers)
    My problem is that I need to fill a export table "ex_t_search_result" (type adkey_indx_tab) of this method which expects ADRC number. For the CRM customer it is not a problem. I can figure them out by table BUT020 and the customer number. But for the non-crm customer I do not have a ADRC number.
    I know there are some methods for creating addresses in BAS (function group SZA0), but actually Im not sure how to handle them.
    Does anybody of you had faced a similar issue?
    Thanks for your help
    Firat C.

    hello,
    BP is BDT (Business Data toolset) enabled (you can check it by adding break point in FM BUS_PBO and executing BP transaction). You can add your check directly to standard view (the check will be executed each time when user pushes enter) or you could add you check to appropriate action (during saving etc.) there are number of actions which you could use it depends on your requirements. You can find a lot of info about BDT (if you are not familiar) in Wiki.
    br,
    dez_

  • SOAP -- XI -- RFC , Duplicate check . BPM is Mandatory??

    Hi All,
    I haven't worked on BPM's.One of the consultant has developed this scenario by using BPM. Kindly let me know whether we can acheive it without using BPM.
    Scenario:
    We will be receving the messages from the webservice through SOAP adapter and we should not allow the duplicate messages into XI and we need to intimate back to webservice stating that we received duplicate entry.
    Solution:
    Right now they enabled the conversion parameters "use encoded parameters" and "Use Query string" in SOAP sender adapter. By this we are making use of MsgID and send the response back to webservice stating as " Message ID DE612012E63848B3DD1111DBA2295676 for pipeline CENTRAL, version already exists in system ".
    My Scenario is like
    Webservice -> XI -RFC(Request&Response)---->BW
    BPM :
    start ->Receive(Request)> Transformation(Responsemap)>Send(SendtoBW)->Send(Send Response) ---> stop.
    Questions:
    1. Is it mandatory to use BPM for these kind of scenarios.
    2. Request message has message Interface as "Outbound" with mode as "Synchronous". Is synchrous mode is enough to send the response back or do we need to create the separate channel in configuration. ??
    3. we did not use any separate channels to send back the response. Does the Synchrous mode will take care of sending back response? because we haven't configured separate channel to send back the response.
    4. Can I acheive this kind of duplicate check and sending response without using BPM?
    Kindly let me know if anyone has answers for the above questions.
    Thanks & Regards
    Deepthi.

    Hi Rajeev,
    >> For Webservice -
    > XI -
    RFC scenario, BPM is not required. But if based on >> the RFC response you have to decide to send the message to BW, then BPM will be required.
    I think you got my scenario wrongly. I need to send the request message to BW through BAPI and I will receive the response from the same BAPI which I need to send back to Webservice.
    - When I configure the Request mode in Synchronous then will the response go back to webservice since it is in Synchronous mode ? or I need to configure seperate channel to send back to webservice.?
    One more question , how I can I stop the duplicate messages from these SOAP messages which I receive from the webservices.?

  • Temporarily disabling Duplicate Check

    All,
    We're in the middle of DEMO's for our CRM 7 project in QA.  Currently when we create a new customer via the Web UI, we get a long response time.  After doing some analysis I noticed that when the save function is executed in the Web UI, the program /FLDQ/SAPLAD_DUPL_CHECK_SEARCH is launched in DIALOG and runs for a long-long time.   It will eventually complete, but in some instances it times out.
    We've elected to go with BOBJ-DQM for duplicate searches, etc, instead of using TREX.  However, the DQM functionality only exists in our DEV system, not in QAS yet (long story why).  In order to set an appropirate user expectation, we'd like to disable the duplicate checks in QAS temporarily while we get DQM-QA going; just for DEMO purposes.  Does any one know how to do this?  To me, it seems this would be configuration somewhere, by the functional guys are looking to me (BASIS) to help them out.
    Any suggestions would be appreciated.
    Thanks in advance,
    Jose

    Hi.
    To deactivate duplicate check go to spro>sap netweaver>application server>basis services>adress management>duplicate check.
    There choose customazing option Activate Duplicate Check and Determine Limit for BAPIs and uncheck index for BUT000.
    Regards.

  • Business Partner Duplicate Check - Threshold Configuration

    Hi,
    I had setup the duplicate check for Business Partner in CRM system.
    In SPRO -> SAP NetWeaver -> Application Server -> Basis Services- > Address Management -> Duplicate Check -> Activate Duplicate Check and Determine Limit for BAPIs, I understand the "Threshold BAPIs" is the percentage that determine which duplicate business partner similarity to be display in the Dialog Box.
    E.g: If I set 80 in this box, then only business partner with similarity greater than or equal to 80% will display in the dialog box.
    But, in SPRO -> SAP NetWeaver -> Application Server -> Basis Services- > Address Management -> Duplicate Check -> Set Limit for Duplicate List in SAP Dialog Boxes, I don't understand the value in "Threshold SAP Dialog Box" is configure for. The value that I had setup in here make no difference for me.
    Does anyone understand how this threshold works in duplicate check? If yes, kindly please provide me an example for better understanding.
    Thank you.
    Regards,
    Edison Wang

    Hi,
    Anyone that have experiences in BP Duplicate check, can help?
    Thanks
    Regards,
    Edison

  • Customize Alert messages for checking duplicate value and Success alert

    Hi All,
    I want to show two alert against the same "Submit" button to--
    1. Alert messages for checking duplicate value and show the Duplicate value found alert and
    2. Success Alert if the form is success to commit and no duplicate value found.
    I did all thing but when alert-1 shows and i pressed the ok button of the alert then the second alert also shows which i don't want to show.
    Which i can do in this issue? Have there anyone to help me!
    Arif

    Hi Manu,
    I have placed the following code
    1. against the Submit button--
    if error_code=40508 then
         commit_form;
    elsif :USERDELETION.CANCELLATION_USERID is not null then
    do_key('COMMIT_FORM');
    else null;
    end if;
    2. Code against the key-commit trigger in the form level--
    commit_form;
    DECLARE
    vAlert NUMBER;
    BEGIN
    set_alert_property('ALERT_TO_VERIFY',ALERT_MESSAGE_TEXT, 'Your Form has successfully submitted and your Reference id is '||:USERDELETION.REF_NO);
    vAlert:=SHOW_ALERT('ALERT_TO_VERIFY');
    END;
    3. Code against the on-error trigger in the form level--
    DECLARE
    vAlert NUMBER;
    BEGIN
         if ERROR_CODE = 40508 then
    set_alert_property('ERROR_ALERT',ALERT_MESSAGE_TEXT, 'This user deletion request has already submitted of the user named '||'"'||:USERDELETION.FULLNAME||'"');
    vAlert:=SHOW_ALERT('ERROR_ALERT');
    elsif
              ERROR_CODE = 40202 then
    set_alert_property('ERROR_ALERT',ALERT_MESSAGE_TEXT, 'Existing userid must be filled-up !');
    vAlert:=SHOW_ALERT('ERROR_ALERT');
    else
                   message(error_type||to_char(error_text)||': '||error_text);
    end if;
    END;
    If there have any confusion, please ask me.
    Arif

  • Configuration Settings for Postal Adress Validation and Duplicate Check

    Hi,
    What are The Configuration settings for Postal adress validation and Duplicate Check for Accounts(BP'S) in CRM 7.0 version
    Can some one send me the configuration settings for Postal Adress validation and Duplicate Check
    Thanks & Regards
    Kishor Kumar

    Hi kishore kumar,
    For the Postal code Validation you need to install and configure the following
    Outside of your SAP system:
    1. Install Data Services and the Address Directories.
    2. Install Data Services Component.
    3. Install the RFC Server.
    On your SAP system:
    4. Install the BAdIs from the previous version of this product.
    5. Install the BAdIs support package from this version.
    6. Run the post-installation tasks required of a new installation of the BAdIs.
    7. Activate the IC WebClient, if desired.     
    Thanks
    Jayakrishnan Nair

  • New video blog: Address Validation and Duplicate Check in IC

    Hello Everyone,
    Here is a short video discussing "Address Validation and Duplicate Check in the Interaction Center" for CRM 7.0 from Renee Wilhelm of SAP product management.
    [http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/70e18a60-efc9-2c10-01ae-c4626f673a53]
    Best regards,
    John
    P.S. Please share your thoughts, ideas, or concerns!  Thank you.

    Hi,
    in the video, you say that the user (logged into the system as IC Agent), can choose to merge the BPs once identified that a duplication exists.
    By the way, into SAP OSS note "1565230 - dump after merging of BPs in IC webclient" it is written that it is not supported to integrate Business partner merge functionality to IC webclient.
    Here below, an extract from the Note:
    Reason and Prerequisites:
    It is not supported to integrate Business partner merge functionality to IC webclient. Technically after the merging of Businss partners, the buffers of business transaction will be initalized at API layer directly, instead of by Genil layer. It is not possible to synchronize the buffer to BOL layer. Once you access to the business transaction which has been initialized during the merging of Business partners, the dump will occur.
    Solution:
    It is required to move the functionality to the business roles for
    backoffice scenario, for example, SALESPRO etc.
    What do you think about? Am I missing something?
    Thanks in advance and Best Regards,
    Andrea

  • Check duplicate invoice and amount

    Hi All,
    Can anyone help me with this issue.
    In T.code FB60 (invoice input field), I want the system to check the duplicate invoice and amount (If invoice number and amount are same) and it should not allow the user to proceed further.
    Please help..
    Regards,
    Vinay

    Thank you...
    But this is not an automatic posting.  Using FB60 manual posting.  Also in the vendor master if we check the double invoice field it will give a warning and proceed further and allows user to post entries.
    But my concern is "If the amount and invoice number matches the system shouldn't allow user to proceed further"  hope i am clear now.....
    Regards,
    Vinay

  • Add duplicate check on MIRO and MIR7 by modfying a user exit

    Hi ABAP / SAP Gurus,
    Good day!
    For transaction code MIRO and MIR7, I need to add a check if there are invoice with the same details of VENDOR, CURRENCY, DOCUMENT DATE and AMOUNT on table RBKP. And If there are same invoice, a warning message should be issued.
    I have modified an include program (ZXM08U14) in FM EXIT_SAPLMRME_003. Unfortunately, the warning message is being triggered after the "SAVE" button is clicked.  In other words, the "Warning Message” might be considered as something useless since the document will still be created without the user being informed of the "duplicate".
    I need the duplicate check's warning message to be triggered even before the "SAVE" button is clicked.
    In this light, i have some questions:
    <b>(1) For MIRO, where can I put the duplicate check that will trigger a warning message (if a duplicate has been found) even bofore clicking the save button?  Kindly give the User Exit / Program.
    (2) For MIR7, where can I put the duplicate check that will trigger a warning message (if a duplicate has been found) even bofore clicking the save button?  Kindly give the User Exit / Program.
    (3) Can I use BADI for the said functionality? If yes, kindly provide a simple instruction on how to proceed.</b>
    Thanks in advance!
    And don't worry, I will give appropriate points for helpful answers.

    Hi,
    Check the following Exits and BADI for both MIRO and MIR7:
    LMR1M001        User exits in Logistics Invoice Verification
    LMR1M002        Account grouping for GR/IR account maintenance
    LMR1M003        Number assignment in Logistics Invoice Verification
    LMR1M004        Logistics Invoice Verification: item text for follow-on doc
    LMR1M005        Logistics Inv. Verification: Release Parked Doc. for Postin
    LMR1M006        Logistics Invoice Verification: Process XML Invoice
    MRMH0001        Logistics Invoice Verification: ERS procedure
    MRMH0002        Logistics Invoice Verification: EDI inbound
    MRMH0003        Logistics Invoice Verification: Revaluation/RAP
    MRMN0001        Message output and creation: Logistics Invoice Verification
    Business Add-in
    INVOICE_UPDATE   Business Add-In: Logistics Invoice Verification
    reward if useful
    regards,
    Anji

  • Approval procedure to check and pop up alert when Inventory transfer

    HI Experts,
    I want to do an approval procedure to check and pop up alert when Inventory transfer To warehouse 01 by Query.how to query for the following statement in Approval Procedure?
    Regards,

    Hi,
    This query is also used in the approval procedure of inventory transfer created:
    if (SELECT $[$5.1.0]) = '01'
    select 'true'
    it will gives alert after document approved or requesting approval.
    Rgds,

  • Duplicate checking based on the content of the incoming file

    Hi,
    We have a requirement where in we have to check whether a file has been duplicated or not based on the contents of an incoming file.The threads which I have seen in SDN deal with the duplicate checking based on the filename of the incoming file.
    The incoming file has the following structure :
    Recordset                                     Occurance-1
           |....... Idoc                              Occurance 1...unbounded
                       |...... segment             Occurance 1
    We are required to make a check based on certain fields which occur in the segment.There are about 4 fields which we will have to take from the incoming file and carry out the check.These 4 fields exist in different segments.We will have to update a ztable with these 4 fields and then perform an rfc lookup to check for the contents of the incoming files with this table,and reject or process the file based on whether the entries exist in the table or not.
    Please let me know if there is any way this can be achieved.
    Appreciate if anyone could help me on this.
    Thanks and Regards,
    Induja

    SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups
    Use this crazy piece for any RFC Mapping Lookups!
    The specified item was not found.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5877---- [original link is broken] [original link is broken] [original link is broken]
    Imp
    SAP NetWeaver Process Integration 7.1: Mapping Enhancements Blog Series
    SAP PI 7.1 Mapping Enhancements Series: Mapping Enhancements Demo
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the  Lookup API
    The specified item was not found.
    The specified item was not found.
    Making CSV File Lookup Possible In SAP XI !!!
    SAP PI 7.1 Mapping Enhancements Series: Parameterized Message Mappings
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1888-----Imp [original link is broken] [original link is broken] [original link is broken]
    Triggering XI Alerts from a User Defined Function
    Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part II

  • Duplicate check on one column in only one datablock

    hi all,
    i have a database block with three columns.
    X Y Z
    X is a display item and not navigable. Y has to be a unique number therefore no duplicate number can be added before commit is done and Z is check box.
    i have written a code for this in the pre-update trigger but the issue is when i update the checkbox it looks as if the Y clumn has been changed. could some please tell me a better method to check for duplicate check.
    any advice would be really helpful. thanks in advance.

    I saw your other thread asking how to prevent duplicate keys on a database.
    I am not sure what code you wrote in the pre-update trigger, but it sounds like you are checking for a duplicate record in the database, but NOT excluding the present record. You can add: AND ROWID <> :this_block.ROWID
    to your where clause, and it should bypass the present record when checking for a duplicate. (Change "this_block" to the name of your forms block.) Also, did you write a similar pre-insert trigger? It would be better to write the code for both insert and updates in a when-validate-record trigger (see below).
    However, after saying all that, you can do all sorts of checks in your form, but none of them will trap the situation where a second user inserts or updates a record with the same key at the first user. The only thing you can do to prevent duplicates and be 100% sure is to create a unique constraint on the database table. Then you will need to write code in the form to check when the error is raised. Here is a thread where that method is discussed:
    Re: Question about Unique Table Columns - How to Handle Alerts
    Also, in your other thread, you asked about using a record group to prevent duplicates. You can read this thread:
    Re: Hi all, Very interesting problem to tackle,..help me
    Here is code for a when-validate-record trigger to check for duplicates:
    Declare
      dummy varchar2(1);
    Begin
      -- check if inserting OR changing key:
      If :System.record_status = 'INSERT'
      or :System.record_status = 'CHANGED'
        and :this_block.key_item
        <> get_item_property('THIS_BLOCK.KEY_ITEM',database_value) then
        begin
          Select 'X' into dummy from table where key_item = :this_block.key_item;
        exception when no_data_found then null;
        end;
        If dummy='X' then
          Message('  Record already exists on the database');
          Raise form_trigger_failure;
      End if;
    End;For small tables (those with maybe less than a thousand rows) you can use the famous Kevin Clarke duplicate summary function to trap for duplicates within the block. But this method depends on your always fetching all rows into the block every time you query.
    You can see a description of the method in the following threads:
    Duplicate key prevention
    Re: checking for same rows in a tabular
    Re: duplicate records in  a multi record block

  • Duplicate check on search term for BP creation in CRM

    HI,
    I want to do a duplicate check on search term for BP creation in CRM.
    i found one BADI ADDRESS_SEARCH. But the method address_search is not getting called.
    Is there any other BADI available? how can I handle this issue?

    hello,
    BP is BDT (Business Data toolset) enabled (you can check it by adding break point in FM BUS_PBO and executing BP transaction). You can add your check directly to standard view (the check will be executed each time when user pushes enter) or you could add you check to appropriate action (during saving etc.) there are number of actions which you could use it depends on your requirements. You can find a lot of info about BDT (if you are not familiar) in Wiki.
    br,
    dez_

  • I downloaded pictures onto my iPhone from computer twice by mistake now when i uncheck/sync then check and sync again  i keep getting two lots of pics..how can i get just the one set again? thnx

    I downloaded pictures onto my iPhone from computer twice by mistake now when i uncheck/sync then check and sync again  i keep getting two lots of pics..how can i get just the one set again? thnx

    You're welcome.
    All photos transferred from your computer are stored in the iPhone's Photo Library regardless if you select a single album or folder of photos to be transferred or multiple albums or folders. The photos on the albums or folders of photos include a pointer to the original photos stored in the Photo Library. The photos are not duplicated taking up double the storage space. This way you can view the photos in an album or folder of photos only by selecting the album or folder, or all photos in all albums or folders by selecting Photo Library.
    Makes more sense when transferring multiple albums or folders of photos which cannot be changed when transferring only a single album or folder of photos.
    The same applies with iTunes and music playlists. A song can't be in a playlist unless it is in the main iTunes library. Placing a song in a playlist does not duplicate the song.

Maybe you are looking for