R3 to FTP

Hi ,
IF my itab has more than 10 records,
it is not transferred to ftp.
what is the problem.

Hi ,
Here is my code :
*& Report  ZPY_SCALE_ITEMS
REPORT  ZPY_SCALE_ITEMS_FTP.
data:c_dest LIKE rfcdes-rfcdest VALUE 'SAPFTP',
     c_key TYPE i VALUE 26101957.
data: g_slen type i,
      g_handle type i,
*      g_filename_tmp(40) value 'new9.txt',
      cblob type i value 120,
      lin type i.
data: begin of itab occurs 0,
        v_text(120),
      end of itab.
data: begin of itab2 occurs 0,
        v_text(100),
      end of itab2,
      v_cmd(20).
data : v_knumh type konp-knumh,
       stabix type sy-tabix,
       v_value(10),
       v_file(40),
       v_inc type p decimals 0,
       v_inc1(10).
data: begin of itab1 occurs 0,
        werks type marc-werks,
        matnr type mara-matnr,
        ean11 type mara-ean11,
        scagr type wlk2-scagr,
        matkl type mara-matkl,
        maktx type makt-maktx,
        kbetr type konv-kbetr,
      end of itab1.
SELECTION-SCREEN begin of block b1 WITH FRAME TITLE text-001.
  select-options : s_werks for itab1-werks,
                   s_matnr for itab1-matnr.
  parameters: p_user(30) default 'rxpadm',     "obligatory,
              gftppwd(30) ,
              g_ip(64) default '172.23.4.212'. "obligatory.
*              folder(20) default 'IB'.
selection-SCREEN end of block b1.
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF screen-name = 'GFTPPWD'.
      screen-invisible = '1'.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
start-of-selection.
TRANSLATE p_user to LOWER CASE.
translate gftppwd to LOWER CASE.
select a~matnr
       a~matkl
       a~ean11
       b~werks
       into corresponding fields of table itab1
       from mara as a inner join marc as b
       on a~matnr = b~matnr
       inner join wlk2 as c
       on c~matnr = a~matnr
       and  c~vkorg = '5544'
       and  c~vtweg = '20'
       and  c~scagr = '01'
       where b~werks in s_Werks
       and   a~matnr in s_matnr.
end-of-selection.
g_slen = STRLEN( gftppwd ).
loop at itab1.
  stabix = sy-tabix.
  CALL FUNCTION 'CONVERSION_EXIT_MATN2_INPUT'
    EXPORTING
      INPUT         = itab1-ean11
   IMPORTING
     OUTPUT        = itab1-ean11.
  select single maktx from makt into itab1-maktx
    where matnr = itab1-matnr.
  select single knumh from a071
    into v_knumh
    where matnr = itab1-matnr
    and   werks = itab1-werks
    and   vkorg = '5544'
    and   vtweg = '20'
    and   kschl = 'VKP0'
    and   datab <= sy-datum
    and   datbi >= sy-datum.
  if sy-subrc = 0.
    select single kbetr from konp
      into itab1-kbetr
      where knumh = v_knumh.
  endif.
  modify itab1 index stabix.
  clear stabix.
  clear itab1.
  endloop.
sort itab1 by werks.
  loop at itab1.
    v_inc = v_inc + 1.
    v_inc1 = v_inc.
    condense v_inc1.
    v_value = itab1-kbetr.
    condense v_value.
    concatenate v_inc1 ',' itab1-ean11 ',' itab1-matkl ','
                v_value ',' '0,0,0,0,0,0,1,0,0,' itab1-maktx ',0'
                into itab-v_text.
    append itab.
    clear itab.
    at end of werks.
CALL FUNCTION 'HTTP_SCRAMBLE'
EXPORTING
SOURCE = gftppwd
sourcelen = g_slen
key = c_key
IMPORTING
destination = gftppwd.
*2. Connect FTP
data: g_rfcdes_rfcdest LIKE rfcdes-rfcdest VALUE 'SAPFTP'.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
user = p_user
password = gftppwd
host = g_ip
rfc_destination = g_rfcdes_rfcdest
IMPORTING
handle = g_handle
EXCEPTIONS
not_connected = 1
OTHERS = 2.
IF sy-subrc  <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
*    3. Transfer file
    concatenate 'ScaleItems' itab1-werks '.txt' into v_file.
describe table itab lines cblob.
    CALL FUNCTION 'FTP_R3_TO_SERVER'
    EXPORTING
    handle = g_handle
    fname = v_file
*    blob_length = CBLOB
    character_mode = 'X'
    TABLES
       text = itab
    EXCEPTIONS
       tcpip_error = 1
       command_error = 2
       data_error = 3
    OTHERS = 4.
    IF sy-subrc <> 0.
*    p_retcd = 3. "Put file fail
    else.
      write:/ 'File has been created on FTP Server'.
    endif.
   CALL FUNCTION 'FTP_DISCONNECT'
    EXPORTING
      handle = g_handle.
    CALL FUNCTION 'RFC_CONNECTION_CLOSE'
    EXPORTING
      destination = g_rfcdes_rfcdest
    EXCEPTIONS
    OTHERS = 1.
     clear: itab, v_inc, v_file.
     refresh itab.
    endat.
   endloop.
*   CALL FUNCTION 'FTP_DISCONNECT'
*    EXPORTING
*      handle = g_handle.
*    CALL FUNCTION 'RFC_CONNECTION_CLOSE'
*    EXPORTING
*      destination = g_rfcdes_rfcdest
*    EXCEPTIONS
*    OTHERS = 1.

Similar Messages

  • Delete file from an FTP folder

    Hi expert,
    I wanna know if it's possible delete with abap command a file from a FTP folder.
    I mean, there is a ftp folder periodically filled with excel files. An ABAP program read this folder and the files content must be moved in a SAP Table. Aftre this, I must delete excel files with an abap command write in the same abap program.
    Thanks a lot
    Michele Garofalo

    1) read directory with fm EPS_GET_DIRECTORY_LISTING
    2) process table dir_list
    and 3) finally delete files with
    abap command:  DELETE DATASET dsn.
    hope that helps
    Andreas

  • Delete file from FTP server

    Hi All, 
    I have a requirement where I need to delete a file from the FTP server. How do I do that?
    Thanks in Advance.
    Regards
    Jaspreet

    Hi,
    refer this link,
    [ABAP solution to implement FTP transactions |http://wiki.sdn.sap.com/wiki/display/Snippets/ABAPsolutiontoimplementFTP+transactions]
    Regards,
    Vijay

  • How to ASR 9k auto backup to external FTP server

    How to take auto  running configuration backup when use commit command in asr9k  .Our asr9k sofware Version 4.0.1[Default] .I usse the commands
    ftp client password encrypted 050D121F345F4B1B4
    ftp client username cisco
    ftp client source-interface GigabitEthernet0/0/0/14
    ftp client anonymous-password cisco
    (Password information changed)
    configuration commit auto-save filename ftp://10.10.10.3/ASR9K/asr_conf
    But auto backup not happening .following errror showing after every COMMIT command.
    ( Error:Couldn't save file /ftp://10.10.10.3/ASR9k/asr_conf.
    Error:'CfgMgr' detected the 'warning' condition 'Operation is temporarily suspended.' )
    Manually I able to take Running-configuration backup through ftp int same lacation (
    ftp://10.10.10.3/ASR9K/asr_conf ) .But automatically not happening .Please help .

    I have not personally seen this issue before but you may find verifying your config helpful.
    SUMMARY STEPS
    1. configure
    2. show running-config
    3. describe hostname hostname
    4. end
    5. show sysdb trace verification shared-plane | include path
    6. show sysdb trace verification location node-id
    7. show cfgmgr trace  
    8. show configuration history commit
    9. show configuration commit changes {last | since | commit-id}
    10. show config failed startup
    11. cfs check --> Verifies the Configuration File System (CFS)
    However I did notice the following:
    Error:Couldn't save file /ftp://10.10.10.3/ASR9k/asr_conf.  Notice the preceeding '/'?
    Thanks

  • How can i do scheduled automatic backups to an ftp server in ios xr?

    Hello guys! As the title says im looking forward to automatically back up my running config on a cisco CRS-1 to an FTP server. I was only able to find this config example:
    Configuration commit auto-save filename ftp://A.B.C.D/myconfig.txt
    This allows me to save my config to an ftp server everytime i use commit on the device. Now i want to know if there's a way to automatically save my configs everyday at 00:00  and also include the date and time in the name of the file so i don't overwrite the existing files in the ftp server.
    I dont want to use any tool i just wanna know if what im asking is possible via CLI commands. I would greatly appreciate your help with this subject.
    Regards,
    David

    Not sure if this script will work on a CRS, but try this:
    archive
    log config
    logging enable
    hidekeys
    path tftp:///$h-
    write-memory
    time-period 10080
    Explaination: 
    There are two ways to save your config to your remote station:
    1.  When someone saves the config; and
    2.  At an alloted time period, expressed in 10080 (weekly for me). 

  • Error when scheduling WEBI report to FTP server

    Hi
    We are getting error "destination directory error. CrystalEnterprise.Ftp: 550 Requested action not taken" while scheduling WEBI report to FTP server.
    Any help would be appreciated
    Regards,
    Anisa

    Hi All,
    I want a run my report once by scheduling, so i provide a time interval for scheduling a report
    start date/ time : 11:38:AM 10/30/2011
    end date/time : 11:43:AM 10/30/2011
    after completion of end time....report is failed and fetching an error
    Error : Object could not be scheduled within the specified time Interval
    Any solution for resolving this error

  • Error while FTP ing BI Publisher Report

    The following Error is occured while FTPing a BI publisher report. The scheduling was running fine for the lase 1 year .But this error is occuring in production schedule of the ftp for the last 2 days.When I do the FTP by 'Run Immediately' manually it works fine.
    oracle.apps.xdo.servlet.scheduler.ProcessingException: [ID:4621] Document file to deliver not found : /u01b/obiee/OracleBI/oc4j_bi/j2ee/home/applications/xmlpserver/xmlpserver/xdo/cache/xmlp7057786.tmp
         at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1131)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:478)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

    Duplicate post.
    Error is occured while FTPing a BI publisher report
    Error is occured while FTPing a BI publisher report
    "BI Publisher" is the appropriate forum for such questions.
    Thanks,
    Hussein

  • Error while delivering a report using FTP

    Hi,
    I am facing an error when i am trying to schedule a BIP Report to a FTP location on a FTP Server.
    The error i am getting is shown below :
    java.io.IOException: STOR semd data failed.
    at oracle.apps.xdo.delivery.ftp.FTPMainConnection.closeDataConnection(Unknown Source)
    at oracle.apps.xdo.delivery.ftp.FTPClient.closeDataConnection(Unknown Source)
    at oracle.apps.xdo.delivery.ftp.FTPDeliveryRequestHandler.submitRequest(Unknown Source)
    at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(Unknown Source)
    at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToFTP(DeliveryServiceImpl.java:527)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1481)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:496)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    I am able to ping the FTP host ip and access the FTP. In the BIP Admin--> Delivery ---> FTP
    I have given my FTP Server name , HOST , and the Port
    Can anybody help me in solving this error? Its a high priority requirement from the Client side.

    Can you manually, as in command line, connect to the ftp site? Is it ftp or sftp? Single or double authentication?

  • Error while delibvering a report using FTP

    Hi
    I am trying to publish my report on a shared folder by using FTP server delivery. When the schedule gets run I can see following error displayed in the Publisher:
    java.io.IOException: Invalid status of current connection: 0
         at oracle.apps.xdo.delivery.ftp.FTPMainConnection.checkUTF8Support(Unknown Source)
         at oracle.apps.xdo.delivery.ftp.FTPClient.connect(Unknown Source)
         at oracle.apps.xdo.delivery.ftp.FTPDeliveryRequestHandler.submitRequest(Unknown Source)
         at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(Unknown Source)
         at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToFTP(DeliveryServiceImpl.java:519)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1417)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:478)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Status of teh job is comung as Failed - IO error.

    Can you manually, as in command line, connect to the ftp site? Is it ftp or sftp? Single or double authentication?

  • Error while deploying a process with FTP Adapter

    Hi All,
    I am using JDev 10.1.3.3 and SOA 10.1.3.3
    I am using FTP Adapter to get a file from a remote location in a empty Process.
    I have checked delete files option and using logical directory.
    While deploying i am getting the below error.
    A problem occured while connecting to server "XXXX" using port "XXXX": bpel_APACSHPREQ940PassThroughBPELOB_1.0.jar failed to deploy. Exception message is:  ORABPEL-09903
    Could not initialize activation agent.
    An error occured while initializing an activation agent for process "APACSHPREQ940PassThroughBPELOB", revision "1.0".
    Please ensure that the activation agents are configured correctly in the bpel deployment descriptor (bpel.xml).
    oracle.tip.adapter.fw.agent.jca.JCAActivationAgent: java.lang.reflect.InvocationTargetException
    Please help me out....
    Regards
    PavanKumar

    Hi Krishna,
    Not Working
    <definitions
    name="GetPSOJapanPassThroughFile"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/GetPSOJapanPassThroughFile/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/ftp/GetPSOJapanPassThroughFile/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
    xmlns:opaque="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns:pc="http://xmlns.oracle.com/pcbpel/"
    xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/ftp/"
    >
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/" location="ftpAdapterInboundHeader.wsdl"/>
    <types>
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns="http://www.w3.org/2001/XMLSchema" >
    <element name="opaqueElement" type="base64Binary" />
    </schema>
    </types>
    <message name="Get_msg">
    <part name="opaque" element="opaque:opaqueElement"/>
    </message>
    <portType name="Get_ptt">
    <operation name="Get">
    <input message="tns:Get_msg"/>
    </operation>
    </portType>
    <binding name="Get_binding" type="tns:Get_ptt">
    <pc:inbound_binding />
    <operation name="Get">
    <jca:operation
    FileType="ascii"
    LogicalDirectory="GETPSOPTFILE"
    ActivationSpec="oracle.tip.adapter.ftp.inbound.FTPActivationSpec"
    DeleteFile="true"
    IncludeFiles="PSO.*\.dat"
    PollingFrequency="6"
    MinimumAge="0"
    OpaqueSchema="true" >
    </jca:operation>
    <input>
    <jca:header message="hdr:InboundHeader_msg" part="inboundHeader"/>
    </input>
    </operation>
    </binding>
    <service name="GetPSOJapanPassThroughFile">
    <port name="Get_pt" binding="tns:Get_binding">
    <jca:address location="eis/Ftp/APACFtp" UIincludeWildcard="PSO*.dat" />
    </port>
    </service>
    <plt:partnerLinkType name="Get_plt" >
    <plt:role name="Get_role" >
    <plt:portType name="tns:Get_ptt" />
    </plt:role>
    </plt:partnerLinkType>
    </definitions>
    Working
    <definitions
    name="GetPSOPassthroughFile"
    targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/GetPSOPassthroughFile/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/ftp/GetPSOPassthroughFile/"
    xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:jca="http://xmlns.oracle.com/pcbpel/wsdl/jca/"
    xmlns:opaque="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns:pc="http://xmlns.oracle.com/pcbpel/"
    xmlns:hdr="http://xmlns.oracle.com/pcbpel/adapter/ftp/"
    >
    <import namespace="http://xmlns.oracle.com/pcbpel/adapter/ftp/" location="ftpAdapterInboundHeader.wsdl"/>
    <types>
    <schema targetNamespace="http://xmlns.oracle.com/pcbpel/adapter/opaque/"
    xmlns="http://www.w3.org/2001/XMLSchema" >
    <element name="opaqueElement" type="base64Binary" />
    </schema>
    </types>
    <message name="Get_msg">
    <part name="opaque" element="opaque:opaqueElement"/>
    </message>
    <portType name="Get_ptt">
    <operation name="Get">
    <input message="tns:Get_msg"/>
    </operation>
    </portType>
    <binding name="Get_binding" type="tns:Get_ptt">
    <pc:inbound_binding />
    <operation name="Get">
    <jca:operation
    FileType="ascii"
    LogicalDirectory="GetPSOFile"
    ActivationSpec="oracle.tip.adapter.ftp.inbound.FTPActivationSpec"
    DeleteFile="false"
    IncludeFiles="PSO.*\.dat"
    PollingFrequency="6"
    MinimumAge="0"
    FileModificationTime="FileSystem"
    ModificationTimeFormat="4,18,yyyyMMddHHmmSS"
    OpaqueSchema="true" >
    </jca:operation>
    <input>
    <jca:header message="hdr:InboundHeader_msg" part="inboundHeader"/>
    </input>
    </operation>
    </binding>
    <service name="GetPSOPassthroughFile">
    <port name="Get_pt" binding="tns:Get_binding">
    <jca:address location="eis/Ftp/APACFtp" UIincludeWildcard="PSO*.dat" />
    </port>
    </service>
    <plt:partnerLinkType name="Get_plt" >
    <plt:role name="Get_role" >
    <plt:portType name="tns:Get_ptt" />
    </plt:role>
    </plt:partnerLinkType>
    </definitions>

  • Ftp prioritised over http etc

    We are a small office network of 3 macs. We are having problems lately - when we try and ftp we are unable to use email or the internet at all. The ftp seems to hog the entire bandwidth. We have found that switching from transmit to cyberduck has been a temporarily solution as it allows us to choke the upload bandwidth to 200 Kbps and we can get internet etc. This has not, however, been an issue in the past - we have been able to use transmit & email, web etc simultaneously. I have checked on the router preference pages and there is nothing that says a certain protocol is given priority. We recently had someone attach a Netgear 10/100/1000 m switch to our router (Netgear DGN 2000) so are wondering whether this has anything to do with anything. Macs plugged directly into the DGN 2000 however also have this issue. If anyone can offer advice that would be really helpful! Would this be a router, ftp software or OS issue?
    Thanks very much!

    Try connecting through a regular FTP client and see
    if that works. If not, it is most likely your network
    settings. Are you connecting to the correct
    portnumber? Are you blocked by a firewall by any
    chance?Thanks for the reply !
    I'am able to connect to the FTP Server using CuteFTP, which enables us to select Proxy Type, to be either HTTP Proxy or FTP Proxy.
    When i select HTTP Proxy in CuteFTP it seems to work fine, but when i select FTP Proxy ,i get the same Connection timeout exception, which is what i get when using (Jakarta FTPCommons ) FTP Client, which is inturn uses Socket to open a connection.
    I'am unable to know what difference dose Proxy type has when a Connection is made ?
    Regards
    jagz.

  • Can we do a Secure FTP for an XML file from ABAP when firewall is enabled?

    Hi all,
    I have a requirement to send an XML file to an External FTP Server which is out of our corporate network and our firewall is enabled.
    I have to send an XML file with Purchase Order details. I completed that with the help of this blog https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2657. [original link is broken] [original link is broken] [original link is broken]
    Now I need to FTP the XML file that is generated. How should I be doing this? Can some of help me with this?
    I need to do a Secure FTP to the external non SAP server which is out of our corporate network and our firewall is enabled. Can some one tell me if SFTP is possible in ABAP.
    This is not a web service. I am working on dropping an XML file in an external FTP serveru2026 I have searched the forums but still in a confusion if weather Secure FTP is possible in ABAP  or not when our company firewall is enabledu2026
    If some one encountered this situation earlier please help,,,..any help will be highly appreciated.
    Regards,
    Jessica Sam

    Thanks a lot for your valuable suggestions Richu2026
    I agree with you Rich that web services would be a better option. But I need to send this file to an external third party and they dont have web services.
    They are telling us that either we can send them an XML file or a CSV file in the format that they want. We decided to go with XML file format.
    I am done with formatting the Purchase Order details in the format that they want. Now the challenge is that I need to send this FTP file to them and it should be a Secure FTP when our fire wall is enabled,
    When you say
    1) Run an ABAP program to generate the XML file and put it on the local PC
    2) Log into the FTP site via some FTP client, could simply be windows as well.
    3) Manually cut/paste the file from the PC to the FTP site.
    For Step 1 running ABAP Program can I schedule a batch job?
    For Step 2 and Step 3 can I automate it in any other way..if not in ABAP?
    Can I advice my company to follow any alternate method in which they can automate this step 2 and step 3u2026if not in ABAP can it be possible in any other way as the third party does not have web services I now have no other alternative.
    Please Helpu2026
    Regards,
    Jessica Sam

  • FTP Error

    Hi Experts,
    I am using the below FM
    CALL FUNCTION 'ZSMQ_SEND_FILE'
         EXPORTING
           zmqifacena                       = 'ZCAR'
          l_parameter_1                    = fname
          l_filename                          = ws_dsn
          r_parameter_1                    = fname
        EXCEPTIONS
          interface_not_found                  = 1
          interface_not_outbound            = 2
          logical_filename_not_found       = 3
          dataset_not_found                   = 4
          ftp_failed                                 = 5
          OTHERS                                = 6
            IF sy-subrc <> 0.
              MESSAGE e398(00) WITH
                  'MQ XFER for ACT failed RC = sy-subrc.
            ENDIF.
    I am getting FTP FAILED error,  What could be the problem
    pls suggest
    Thanks
    sai

    Hello Saikar Sai,
                              The FM 'ZSMQ_SEND_FILE' that you are mentioning is a custom function Module and not the SAP standard one. So you need to debug the code for understanding the cause.
    Thanks,
    Greetson

  • FTP & Logical Filename

    Hi Experts,
    We have an FTP program, that will pick up the file on application server, will remane the file & send it to the specified destination.
    My query is, I need to created one more file & that needs to renamed to other name, how can I achieve this?
    Earliset reply is highly appriciated.
    Regards,
    S R

    Syntax Group will tell the system that given file path is of which syntax.
    E.g. You have different syntax for UNIX and WINDOWS NT.
    You can find out the existing syntax groups in the same transaction.
    Regards,
    Naimesh Patel

  • Filename for flat file using J2EE FILE FTP Receiver adapter

    Hi there,
    I am struggling to do the following:
    I have a J2EE File receiver that sends a file with a specific name to a FTP destination. I define the target filename in my graphical mapping using certain criteria and a incremental number. In my adapter I use variable substitution to select that value in the payload as the filename. Up to this point everything works fine.
    The problem is that I convert the payload to a flat structure using xslt before writing it out and because of that the adapter cannot find my value as defined in the variable I use for the name.
    Now, obviously if I move the xslt module after the CallAdapter module, the file won't be converted to a flat structure.
    Can anyone give me advice on how I can do the flat conversion <u>and</u> the specific filename from the payload?
    Thanks in advance,
    Johan

    Hi,
    Instead of using variable substitution, use adapter specific identifiers to set the file name in mapping.
    Ref:/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    Regards,
    Jai Shankar

  • Getting filename in FTP Adapter in BPEL

    How to retrieve the filename read by the FTP adapter in ora-bpel?

    Just figured out how to do this.
    1. Create a variable of type 'InboundHeader_msg' defined in 'ftpAdapterInboundHeader.wsdl'.
    2. Reference this in the 'Adapters' tab of the FTP adapter receive activity.

Maybe you are looking for

  • Teststand generates error ' labview has encountered a problem and needs to close'

    Hi, I am using Teststand 3.1 and Labview 7.1. My problem is that I have a 1D array of 6 elements in Labview that I need to receive from Teststand. If the array size is set to variable in Labview there is no problem but if I set it to what I require (

  • Help required  to display login failed custom messages?

    Hi, Need Help, I have modified WPMessages.prop file(in IDM 6.1) to display custom login messages(Exp: Invalid user ID or Invalid password or Account locked), still I am unable to display these custom messages on user page,Whether do I need to change

  • Adobe installer message...all the time?

    Hi all, I'm using Acrobat 7.0 Standard on XP SP2. Recently I ran some Windows updates, and ever since EVERY time I start any office program, internet explorer or windows explorer, I get the Adobe installer window popping up...it runs a quick routine

  • .MOV file unreadable in QuickTime

    Hi! I am trying to open and read a .mov file on my computer (late 2008 2.4 Ghz Macbook running the latest Snow Leopard) and QuickTime X won't open it, telling me that it's not a format recognised by QuickTime and that I might have to download additio

  • Non functional alpha numeric pad.

    The numeral portion of my alpha numeric pad stopped inputting. Only the numerals don't work other symbols are still functioning. Older iMac Intel, Bluetooth keyboard.