Trigger a File

Hi all,
I need to trigger a empty file Trigger.txt if and only if the files are transported to the destination folder. Its mere a file to file scenario. How can i do that? pls explain me.
Regards,
Kanda

Hi,
Simply do by pass scenario it will work out easily. Follow below steps
1. Configure SLD objects like product, component, technical & business system.
2. No need IR objects
3. Create ID objects and take channels.
for ID configuration find below link for more help.
How to send any data (even binary) through XI, without using the Integration Repository

Similar Messages

  • Batch Code to trigger bat file whenever there is an error in Eventvwr log error

    Batch Code to trigger bat file whenever there is an error in Eventvwr log error

    Hello,
    You can create a windows service which can look into EventVwr and update you accordingly
    Sample code:
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    namespace EventViewer
        class Program
            static void Main(string[] args)
                //logType can be Application, Security, System or any other Custom Log.
                string logType = "Application";
                EventLog ev = new EventLog(logType, System.Environment.MachineName);
                int LastLogToShow = ev.Entries.Count;
                if (LastLogToShow <= 0)
                    Console.WriteLine("No Event Logs in the Log :" + logType);
                // Read the last 2 records in the specified log.
                int i;
                for (i = ev.Entries.Count - 1; i >= LastLogToShow - 10; i--)
                    EventLogEntry CurrentEntry = ev.Entries[i];
                    Console.WriteLine("Event ID : " + CurrentEntry.EventID);
                    Console.WriteLine("Entry Type : " + CurrentEntry.EntryType.ToString());
                    Console.WriteLine("Message :  " + CurrentEntry.Message + "\n");
                    Console.ReadKey();
                ev.Close();
    Alternative way is to use below link
    http://blogs.technet.com/b/jhoward/archive/2010/06/16/getting-event-log-contents-by-email-on-an-event-log-trigger.aspx
    Thanks
    Abhishek

  • Interface Should Trigger the File at Perticular time in a day

    Hi Experts,
                     I cam across the different requirement in my company.
    I am trigger the file to client twice every week. is it possible to trigger the file like that with the interface, can any one please guide me what are the necessary steps to be taken for this type of interface.
    Is it possible to send the file to receiver after one year with the interface.
    Regards,
    Nissi

    Hi Nissi,
    You dont need to do any additional configuration in the communication channels.
    According to your requirement you need to make use of the option of  Availability Planning in Runtime Workbench.
    You need to go to the runtime workbench and goto Component Monitoring.Once inside it, you need to select an adapter engine. Once you click Status tab , you need to go to ommunication channel monitoring .Once there then choose the option Availability Time Planning in the communication channel monitor.
    Inside you can find options which will guide you on how to go further..............
       Goto Availability Time field and select the  interval for the new availability time and then choose Create.
          In the Details tab page, you can make the necessary time specifications,
          You can select the communication channels for which you want to schedule the availability time, in the Communication Channels tab page.
    I hope this info will be helpful to you.For any further clarifications you are welcome.
    regards,
    Rohit

  • Trigger flat file extraction

    Hello developers,
    Situation is as follows:
    External system prodcues flat file on the BW server on a daily basis always with the same name. BW should read the file if it is there and delete it after successful processing.
    We want to avoid to schedule on a fixed time, but we want to synchronize the extraction batch job with the external batch that is creating the file.
    Thanks for any input.
    Kind regards

    The solution is fine. Here are some details.
    Create the Process Chain. Trigger should be an external event. You can create events in SM62.
    The function module RSSM_EVENT_RAISE lets you trigger the event. It is RFC able so you should be able to trigger it from other non-SAP systems too.
    The filename should be fixed so you are able to load the file. You can then delete the file with an ABAP of your own. In its most simple form it looks like
    REPORT  Z_DELETE_FILE.
    parameters: filename type RSFILENM.
    delete dataset filename.
    Now create a variant for Z_DELETE_FILE and put it into the process chain.
    Best regards
       Dirk

  • BPM design for trigger based file from Oracle

    Hi
    We have one requirement as follows:
    1. We need to receive trigger file from Oracle.
    2. As soon as we recieved trigger file, it needs to activate all other 10 JDBC adapter channels.
    3. once reciever all 10 RFC channels completed, it needs to pass that trigger file.
    Please suggest design.
    Thanks
    Siva

    Hi Siva,
    1. We need to receive trigger file from Oracle.
    define a sender CC (FILE) which polls a directory every N seconds.
    The receiver of this message should be your BPM.
    2. As soon as we recieved trigger file, it needs to activate all other 10 JDBC adapter channels.
    in your BPM, trigger your 10 sender CC (JDBC). See sap help and blog to know how to trigger externally a CC. Easy to do.
    3. once reciever all 10 RFC channels completed, it needs to pass that trigger file.
    Then always in your BPM, you have to do a correlation on the 10 SQL responses (that's crazy!). Several blogs and threads on this subject.
    And after that, in BPM what do you do of these 10 SQL responses (thats' crazy!) ? do you have to merge data ?
    Welcome to the birthday of a future monster... for dev and maintenance... Sincerely simplify your flow!
    Question: do you really need to have 10 SQL? for your needs, is it not possible to create a stored procedure in database which will do the 10 SQL (with Join tables)... if yes do it, by tis way you will have only one Sender CC (JDBC) to trigger, and no correlation in a BPM. That will greatly simplify your flow.
    Regards
    Mickael

  • Use ABAP to trigger .bat file

    Hi Experts,
    I am as new to ABAP as a baby to the world so please bear with my ignorance
    I want to have an ABAP program to trigger a .bat file in an external Microsoft Environment that will trigger Microsofts Scheduler to start extracting data from SAP through their SAP Connector.
    How on earth can I do this?
    I hope you guys can assist me
    Thanks in advance,
    Cas

    Hi,
    Is this file on your frontend. You can try EXECUTE method. Don't know if this works with .bat file
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>EXECUTE
      EXPORTING
         DOCUMENT               = 'C:\Documents and Settings\Rajvansh\Desktop\cl_salv.txt' "Filename
    *    APPLICATION            =
    *    PARAMETER              =
    *    DEFAULT_DIRECTORY      =
    *    MAXIMIZED              =
    *    MINIMIZED              =
    *    SYNCHRONOUS            =
    *    OPERATION              = 'OPEN'
      EXCEPTIONS
        CNTL_ERROR             = 1
        ERROR_NO_GUI           = 2
        BAD_PARAMETER          = 3
        FILE_NOT_FOUND         = 4
        PATH_NOT_FOUND         = 5
        FILE_EXTENSION_UNKNOWN = 6
        ERROR_EXECUTE_FAILED   = 7
        SYNCHRONOUS_FAILED     = 8
        NOT_SUPPORTED_BY_GUI   = 9
        OTHERS                 = 10
    IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards

  • Trigger jsxbin file using Vbscript

    Hi,
    I have tried the below code for run the jsxbin file under the Script Panel folder for InDesign CS6 using vbscript. The Indesign launch properly but the script does not execute. Also it is working fine in InDesign CS4 and CS5.
    Set myInDesign = CreateObject("InDesign.Application.CS6")
    myInDesign.MenuActions.Item("test.jsxbin").Invoke
    Please provide the solution.
    Thanks
    Satish

    set docXML = CreateObject("Microsoft.XMLDOM")
    docXML.Async = False
    docXML.Load(manifestName)
    Set nodes = docXML.documentElement.selectNodes("//PACKAGE/APPLIST/APP/SHORTCUTLIST/SHORTCUT")
    for each n in nodes
    n.setAttribute "LOCATION", "%CSIDL_PROGRAMS%\App-V Applications"
    Next
    docXML.save(manifestName)
    WSCRIPT.Echo manifestName &" got updated."
    ¯\_(ツ)_/¯

  • Creating a "map Key" to trigger a file... how would you do this

    Is there a way to map a keystroke to open and play a file, (sound affect)?

    you can use a 3rd party application launcher for that. lots of them around: Quciksilver, Butler, Spark, Quickeys, iKey.
    another way would be to make an automator workflow that opens that file, save it as a service and make a shortcut to that service using keyboard system preferences.

  • EDI, mass trigger upload files.

    Hi,
      I've customized EDI to upload a file into SAP. I'm using T-Code WE16. This transaction allows me, using the path and file, to upload the selected file. Is there a standard report, that i can use to schelude the upload of all the files stored in a specific directory ?
    Regards,
    Pedro Castro

    Thanks Ferry,
    Like in WE16, in report RSEINB00, i have to indicate the file name. If the name file is generated dynamically, it changes all the time, and the report cant be schedulle (job) for the same variant. Does the name of the file have to be allways the same ?
    Regards,
    Pedro Castro

  • Trigger File adapter

    Hi,
    I’m new to XI. I have a problem with the handling of the File Adapter.
    In my scenario a third party system puts a data file into the directory. The directory and file are configured in the file adapter. XI should not transfer the File until the third party system sends a trigger.
    How is it possible to start the transfer in XI by an Abap program ? {Which class is necessary to activate the adapter by program ?}
    Is there a better way ?
    Many Thanks in advance.
    Berthold
    Message was edited by: Berthold Latka

    Hi Berthold
    File adapters can only poll for files using a predefined time interval. There is no way to trigger a file adapter to look for a file.
    So files will always send to XI as soon as they appear, and the poll interval is passed.
    What you can do is build a business process which collects the file and waits for the trigger from R/3. There are some examples in XI SAP BASIS which explains the use of trigger messages.
    Kind regards,
    Christiaan Schaake.

  • How to trigger an "open file" dialog box

    I am using forms 10g. Does anyone know of codes to trigger "open file" dialog box in a button object?
    My goal is that the user may be able to select a file from his terminal by clicking a button.
    Thanks in advance.

    As aweiden suggests, there are additional setup steps that have to be completed on your workstation as well as the Forms server so you can use the WebUtil library. If you are using Forms 10g R2, then I recommend you conduct a search of the Forms Help system (Search tab) on "WebUtil" and select the "Configuring WebUitl" topic. If you are on Forms 10g R1 (9.0.4), then you had to download and install WebUtil on your workstation. I recommend you read the Web_Util.pdf in the "DOC" folder an follow all of the steps in Chapter 2 : Configuring WebUtil.
    Craig...

  • Writing trigger event time to file

    I am new to LabVIEW.  I have been modifying the acq_graph_voltage_dig.vi that I found to trigger recording using a digital trigger with a set number of pretrigger and posttrigger samples being recorded.  I have added VIs to open, write to, and save a tdms file with this data.  I want to be able to record when the trigger actually occurred, either as a separate channel or just as an event to mark when the trigger occurred in the file.  I know that I can figure this out based on the pretrigger sample number, but this is something I will likely be changing as I record.  I will only have one trigger per file.  Anyone have suggestions on how I could record the trigger instance?
    Thanks!
    Solved!
    Go to Solution.

    Hi shelby,
    I assume that you just want the timestamp of when the trigger occurred and then you'll write this value to file. If so, you can change the read position to the reference trigger, read one sample, and the record the timestamp of that sample to the end of your file. A picture is shown below as well as an edited version of the VI you were using. I didn't add any file I/O to the example as I assume you already have this part figured out. I hope that helps!
    Message Edited by lion-o on 10-21-2008 02:23 PM
    Mike Lyons
    National Instruments
    http://www.ni.com/devzone
    Attachments:
    reference_trigger_read_position.jpg ‏42 KB
    acq_graph_voltage_dig.vi ‏92 KB

  • Calling report from form and after parameter form trigger

    Hi, I've also posted to this to the reports forum but because it works from Reports Builder it may be a forms issue which is why I'm x-posting. Apologies.
    I have a report that creates a file, desname is set in the after parameter form trigger (it uses one of the parameter values).
    The problem is file is not created using the path and filename set in the trigger, the file is created in the bin folder with the name account_by_service_type.txt (account_by_service_type.rdf is the report definition).
    If the desname is set in the before parameter form AND a field with the source=desname is added to the parameter form then the file will be created with the correct path and name however it won't have the relevant parameter incorporated into the file name obviously.
    I've noticed in other reports that where the desname is being set in the after parameter form that I've had to pass the desname from the form but obviously I cannot do that here either.
    Am I missing something obvious?
    Regards
    Sean

    Hi Frank,
    It's WebForms. Below is the code:
    -- call from menu item
    run_report_object_proc(TRUE,'accounts_by_service_type.RDF',null,FILE,'delimited','paramform=yes');
    -- run_report_0bject procedure
    PROCEDURE run_report_object_proc (p_screen IN BOOLEAN,
                        p_report_filename IN VARCHAR2,
                        p_desname IN VARCHAR2,
                        p_destype IN NUMBER,
                        p_desformat IN VARCHAR2,
                        p_paramform IN VARCHAR2)IS
    v_report_id     report_object;
    v_report     varchar2(100);
    v_job_id     varchar2(100);
    v_url          varchar2(1000);
    rep_status     varchar2(20);
    hidden_action     VARCHAR2(2000)     :='';
    BEGIN
    v_report_id := find_report_object( 'report2');
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_FILENAME,p_report_filename);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESNAME,p_desname);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESTYPE,p_destype);
    SET_REPORT_OBJECT_PROPERTY(v_report_id,REPORT_DESFORMAT,p_desformat);
    hidden_action := hidden_action||'&report='||GET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_FILENAME);
    hidden_action := hidden_action||'&destype='||GET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESTYPE);
    hidden_action := hidden_action||'&desformat='||GET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_DESFORMAT);
    hidden_action := hidden_action||'&userid='||GET_APPLICATION_PROPERTY(username)||'/'||GET_APPLICATION_PROPERTY(password)||'@'||GET_APPLICATION_PROPERTY(connect_string);
    if p_desname is not null then
    hidden_action := hidden_action||'&'||p_paramform||'&desname='||p_desname;
    else
    hidden_action := hidden_action||'&'||p_paramform;
    end if;
    hidden_action := '/reports/rwservlet?_hidden_server=rserv1'||hidden_action;
    SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_OTHER, 'pfaction='||hidden_action||' '||p_paramform);
    -- SET_REPORT_OBJECT_PROPERTY(v_report_id, REPORT_OTHER, 'paramform=no');
    v_report := run_report_object( v_report_id);
    IF p_screen THEN
         v_job_id := substr(v_report,instr(v_report,'_',-1)+1);
    rep_status:=report_object_status(v_report);
    while rep_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED')
    loop
         rep_status:=report_object_status(v_report);
    end loop;
    if rep_status='FINISHED' THEN
         v_url := '/reports/rwservlet/getjobid'||v_job_id||'?server=rserv1';
              web.show_document(v_url,'_blank');
    else
         message(rep_status||' error running report');
    end if;     
    end if;
    END;
    -- report after parameter form trigger
    function AfterPForm return boolean is
    begin
    :desname := 'c:\service_type_'||:p_service_type||'_'||to_char(sysdate,'DDMMYYYY')||'.xls';
    return (TRUE);
    end;

  • File Open failed Error in Process Chain

    Hi,
    Our process chains are failing at the last step of event trigger.The file is not getting created in the directory as a result of which the BO reports are not getting triggered.Kindly help.
    Regards,
    Shalaka

    Pl find the below code:
    DATA mesg(80) VALUE 'BW load complete. Ready for BOBJ Refresh. File Created on : '.
    DATA fname(60).
    DATA pc_flag TYPE rspc_state.
    * Get the folder and file name from parameter
    PARAMETERS p_fname TYPE string LOWER CASE.
    AT SELECTION-SCREEN.
    START-OF-SELECTION.
       fname = p_fname.
    *Add the system date into the file.
       CONCATENATE mesg sy-datum INTO mesg.
       CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
       EXPORTING
    * PROGRAM =
      activity = 'DELETE'
      filename = fname
      EXCEPTIONS no_authority = 1
             activity_unknown = 2
             OTHERS   = 3 .
       IF sy-subrc = 0.
    *Delete the file if it is already existing
         DELETE DATASET fname.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ELSE.
         MESSAGE i051(rsar) WITH 'No Authorizations to delete the file'.
       ENDIF.
       WAIT UP TO 65 SECONDS.
    *Set the flag for the process chain to read if file deletion fails.
       IF sy-subrc <> 0." The ABAP program failed
         pc_flag = zcl_abap_bobj_event_trg=>failed.
       ELSE. " The ABAP program was successful
         pc_flag = zcl_abap_bobj_event_trg=>success.
       ENDIF.
       CALL FUNCTION 'AUTHORITY_CHECK_DATASET'
         EXPORTING
           activity         = 'WRITE'
           filename         = fname
         EXCEPTIONS
           no_authority     = 1
           activity_unknown = 2.
       IF sy-subrc <> 0.
         MESSAGE i051(rsar) WITH 'No Authorizations to Write to file'.
       ELSE.
    *Create the file based on the input from variant including folder and file name.
         OPEN DATASET fname FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
    *Set the flag for the process chain to read if file creation fails.
         IF sy-subrc <> 0.
           MESSAGE i051(rsar) WITH 'File open failed.'.
           pc_flag = zcl_abap_bobj_event_trg=>failed.
         ELSE. " The ABAP program was successful
           TRANSFER mesg TO fname.
           pc_flag = zcl_abap_bobj_event_trg=>success.
         ENDIF.
         CLOSE DATASET fname.
       ENDIF.
       EXPORT e_state FROM pc_flag TO DATABASE indx(bo) ID
       zcl_abap_bobj_event_trg=>status_idx_id.

  • Mail Adapter to trigger a process

    Hi,
    We have a scenario to do quarterly updates whenever there is an email notification from service partners. Is it possile to trigger an File>XI>r/3 scenario by using the mail adapter whenever we receive an email...I have read about the sender mail adapter configuratins. But my main question is it possible to trigger an XI process based on an incoming mail ( address and content)..
    -Teresa

    This would typically be done through a scheduled task. Write your code to query for the departure date. If someone meets your criteria for an action to occur, you can either use the addProcessTaskInstance which has an adapter attached to it to send the email, or in your code, send the email.
    The details that need to be considered though is where the departure date is stored. Is it on a process form, or is it on the user's OIM profile. Do you want to disable the user or revoke the object instance at this departure date? You could use the notification tab of these existing tasks if so.
    -Kevin

Maybe you are looking for

  • Need help diagnosing kernel panic error-10.7.5 2006 Mac Pro

    The kernel panic went away when I removed my external firewire and usb drives. Thank you very much. Sat Jan 25 17:47:28 2014 panic(cpu 2 caller 0x2ceabf): Kernel trap at 0x01c7338c, type 0=divide error, registers: CR0: 0x8001003b, CR2: 0x72abbb00, CR

  • HT1451 How do I download my music from my iphone to another itunes library account on my computer?

    Hi, Can anyone help, the music on my iphone was loaded from a itunes library that I no longer have access to.  Does anyone know how to download the music from my iphone to a new itunes library account on my computer?

  • What can be used to connect Panasonic Full HD SD/SDHC Camcorder to the iPod

    I am thinking of buying the Panasonic Full HD SD/SDHC Camcorder which uses the new SDHC/SD Memory Card to store the movie clips. What I would like to know is there anything in the iPod accessories range, that I can connect to a Fifth Generation iPod

  • TAXES ON SALES AND PURCHASE

    Dears I have one scenario where user is releasing billing to accounting but system is giving below message. "No taxes on sales/purch.are allowed for account 301903 9000, ZL is not allowed" Kindly note ZL is Tax code Regards KAPIL MORE

  • Creating new reports

    Is there a way to create new reports in Solution Manager 4.0 without doing ABAP development or customization? The reports in SOLAR_EVAL are not enough and we will require new ones.