R/3 to XI

Hi,
I have a requirement as below:
On my R/3 system, there is an abap program which writes the file to the local file system.
I want XI to pick up that file and write it to some where else. For this I can use file to file scenario.
But the issue is, after that abap program writes the file to the local, I want it to invoke the XI interface to pick the file.
I was trying to use Proxy to File scenario, but in that case the ABAP program should send the file to XI. But I want my abap program to just write the file to file system and then trigger XI which should be able to pick up the file.
Can anybody help me on how to accomplish this requirement.
Thank you
MLS

This is a sample code which I used for testing  .....
types: begin of tt_itab,
        data    type string,
       end of tt_itab.
data: lt_itab type table of tt_itab.
data: gw_itab type tt_itab.
data: lt_row  type zcl_string_tab.
data : l_string   type string.
Local Variables
data: lv_filename type string,   "Filename & path where file is stored
      lv_string   type string,   "String for holding data
      lv_tabix    type sy-tabix. "Table Record Number
*Outbound Proxy declarations
DATA:
       lv_out             TYPE        zcl_mt_budget_in,
       lv_bacs_payments   TYPE REF TO zcl_co_mi_budget_ob,
       lv_fname           TYPE rlgrap-filename.
data : lt_string_data    type standard table of zst_budget_query  initial size 0.
data : lw_string_data    type  zst_budget_query.
do 10 times.
  lw_string_data-row = '121231242357488568957kfvgdghfjasfgas8453675347q34567vhjvsdfhf7rwt5r6735374'.
  append lw_string_data to lt_string_data.
enddo.
lv_out-mt_budget_in-details-row = lt_row.
lv_out-mt_budget-details-row = l_string.
lv_out-mt_budget_in-header-file_name = 'Query333444_.txt'.
CREATE OBJECT lv_bacs_payments.
TRY.
    CALL METHOD lv_bacs_payments->execute_asynchronous
      EXPORTING
        output = lv_out.
  CATCH cx_ai_system_fault.
ENDTRY.
Hope this will help.
Nilesh

Similar Messages

Maybe you are looking for

  • Can't we convert itunes downloads to MP3 format anymore?

    If so how do I do it it doesn't come down in the drop down menu anymore!!

  • Reprice

    Hi All How can i do reprice for the order which are created allready? The problem is one condition type which is in pricing procedure is not appearing in sales order (in the analysys it says either the condition record is created after the sales odrd

  • XI / PI Start page problem

    Hi @all! We have recently patched our PI7.00 SP16 to PI 7.01 SP4. Everything works fine, but we are facing one strange problem. Maybe anyone can help: Start page of PI is http://<host>:5<xx>00/rep/start/index.jsp This page contains http://<host>:5<xx

  • Oracle 10g download

    I am not able to download the Oracle 10g version for Linux. It's giving me some error and asking me to redo the entire download process with a new session. Even after doing that it's still giving me the same error. Any suggestion/solution on this.

  • Mac OS X 10.4.12

    Does anyone else think that Apple should try and update older versions of OS such as Panther and Tiger once in a while? It would be great if Mac OX 10.4.12 comes out... Maybe I should start a petition or something. LOL.