Flatfile conversion with output file has a NAMING CONVENTION

Dear SAP experts,
I need some advise regarding my scenario.
I am converting a message into flatfile. (customized .csv)
But, the output .csv flatfile must have a naming convention.
E.g.    Globus_20071020   (Customer name_YearMonthDate)
Can somebody give me ideas/inputs on what will I configure in File Receiver (FCC) in order to have an output file having a naming convention indicated above.
Or do i need additional configurations?
Please advise.
Thank you very much in advance.
Fred

Hi,
You could pass this kind of File name from mapping at runtime or
You could use the variable substitutions to create the fiel neame as per naming convention as adding date .
With reference to Variables youcould set file name as Globus_%payload.<Date>%
Pass the value in date field of payload 
Refer
Variable Substitution
How to use Variable substituion
/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
how to use attributes in variable substitution???:(
Dynamic file name
/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i --> Dynamic File Name using XI 3.0 SP12 Part – I
/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii --> Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II
Dynamic File name in File adapter
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
1. In the sender file adapter , select Adapter Specific Attributes --> FileName.
2. Use the code in this link to read the filename inside a UDF in your mapping.
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(
“http://sap.com/xi/XI/System/File”,
“FileName”);
String filename = conf.get(key);
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
Thanks
Swarup

Similar Messages

  • Someone has nomenclature (naming conventions) for oracle data integrator?

    Someone has nomenclature (naming conventions) for oracle data integrator?

    You should really move this question over to the Oracle Data Integrator forum(Data Integrator for a more expedient response.

  • Error with output file code in utl (v_out_file)

    v_out_file := utl_file.fopen (r_dca.directory_name, 'GradChallenge' || TRIM(TO_CHAR(SYSDATE,'YYYYMMDD')) || '.txt', 'W');
    I was just wondering guys, the error occurs 'r_dca.directory_name'. There is an issue with r_dca, I am just stuck on what to name to put to replace it.
    the complete code is specified below
    Create or replace
    PROCEDURE Grad_Five
    IS
    v_out_file UTL_FILE.FILE_TYPE;
    v_out_directory all_directories.directory_path%type;
    v_out_filehandle UTL_FILE.FILE_TYPE := NULL;
    v_out_buffer varchar2(32767);
    v_header VARCHAR2(32759 BYTE);
    r_users varchar2(32759 BYTE);
    r_dca number;
    BEGIN
    -- Output file
    v_out_file := utl_file.fopen (r_dca.directory_name, 'GradChallenge' || TRIM(TO_CHAR(SYSDATE,'YYYYMMDD')) || '.txt', 'W');
    -- Header
    v_header := sysdate;
    utl_file.PUT_LINE(v_out_file,v_header,TRUE);
    FOR r_users IN
    ( SELECT
    USERS.ID,
    USERS.LOGINNAME,
    USERS.FORENAME,
    USERS.SURNAME
    FROM USERS
    LOOP
    BEGIN
    UTL_FILE.PUT_LINE (v_out_file,
    r_users.ID|| ',' || r_users.LOGINNAME|| ',' ||r_users.FORENAME|| ',' ||r_users.SURNAME);
    END;
    END LOOP;
    FOR r_users in
    ( SELECT COUNT (ID) from Users )
    LOOP
    BEGIN
    UTL_FILE.fclose (v_out_file);
    END;
    END LOOP;
    COMMIT;
    END GRAD_FIVE;
    Would appreciate help, Thank you again.

    Here's something that might help:
    (Example 1)
    http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/u_file.htm
    You need to:
    1. Create a directory:
    CREATE DIRECTORY EXAMPLE_DIR AS '<OS_DIR_PATH>';
    Eg: CREATE DIRECTORY EXAMPLE_DIR AS '/temp';
    2. Reference the previously created directory:
    v_out_file := utl_file.fopen ('EXAMPLE_DIR', 'filename.extension', 'W');
    My guess is that r_dca.directory_name does not point to a directory object (Step 1) but to an absolute OS path.
    Also make sure you grant the appropriate rights on you directory:
    Eg:
    GRANT READ ON DIRECTORY EXAMPLE_DIR to <your_user>;
    Edited by: RMi on Feb 2, 2012 6:07 AM

  • No error generated if batch process load file uses wrong naming convention

    Another interesting one...
    When using the batch processing functionality of FDM, which can be executed by either:
    - FDM Workbench (manually)
    - Hyperion FDM Task Manager (scheduled)
    - upsShell.exe (scheduled and executed from a batch script)
    ..., one has to name the data file (to be loaded) using a specific file naming convention (i.e. "A~LOCATION~CATEGORY~PERIOD~RA.csv" format, for example). However, if one does not name the file correctly and then tries to process the file using batch processing functionality using any of the above three methods, FDM happily moves the file out of the OpenBatch folder and into a new folder, but the file is not loaded as it does not know where to map it to (as expected). However, there are no errors in Outbox\Logs\<username>.err to inform the user, so one is non the wiser that anything has gone wrong!
    When using FDM Workbench, an error is displayed on the screen (POV - "Batch Completed With Errors, ( 1 ) Files Contained Errors"), but this is the only indication of any error. And normally, one would be scheduling the load using upsShell.exe or Hyperion FDM Task Manager anyway...
    Has anyone else noticed this, or am I doing something wrong here? :-)

    Yes, as per my original post the only feedback on any POV errors appears to be when using the FDM Workbench Batch Processing GUI.
    Regarding the "Batch Process Report in FDM" you mentioned, are you referring to Analysis | Timeline accessible via FDM web client? Unfortunately this does not appear to provide much in the way of detail or errors, only general events that occurred. I cannot locate any batch process report, other than the log output I defined when calling upsShell.exe. However, this contains no POV errors...

  • Issue in conversion of output file from alv to csv file using GUI_DOWNLOAD

    hi,
    I am using GUI_DOWNLOAD to convert the internal table that am getting as the output of an alv into a csv(comma separated file) file.I am using the following code but its not generating a csv file instead it is generating a normal space delimited file.
    The code is as follows:
    data : lv_fname type string.
    lv_fname = 'C:\Users\pratyusha_tripathi\Desktop\status8.csv'. " Provide the file path & file name with CSV extention
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    filename = lv_fname " File name including path, give CSV as extention of the file
    FILETYPE = 'DAT'
    WRITE_FIELD_SEPARATOR = '#' " Provide comma as separator
    tables
    data_tab = ITAB " Pass the Output internal table
    FIELDNAMES =
    EXCEPTIONS
    OTHERS = 22
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Kindly let me know what changes can be made to make my code work.Also can GUI_download be used for batch processing and storing the output in application server?
    Thanks ,
    Pratyusha

    Hi,
    the short text description for WRITE_FIELD_SEPARATOR is "Separate Columns by Tabs in Case of ASCII Download", so why do you expect a comma?
    Try SAP_CONVERT_TO_CSV_FORMAT and then download.
    And no, GUI_DOWNLOAD is only for download via SAP GUI to a users computer.
    Best regards,
    Oliver

  • Aperture 3 bad raw conversion with Canon files

    Hi, Aperture is converting my 6400 iso raws into images I can't work with to my satisfaction. For pleasure I shot a staged disco dance event with some fun colorful lighting. When imported into Aperture via card reader the previews look somewhat similar to the Rebel's LCD jpg rendition.
    One example, the stage light beams which are enhanced by smoke machines have one light with blue and another with magenta. When I click on that preview, the spinning wheel appears as usual saying loading which I believe is applying Aperture's interpretation algorithms. The results are stripping all the magenta and no matter what I do with the controls such as enhancement I can't get back the correct color. Remember the first loaded preview are similar to what I see in camera.
    I rarely shoot this high of iso and I'm finding adjustments with highlights to be extremely sensitive with a much lower threshold of adjustment. On most of the previews I attempted adjustment I preferred the look before Aperture converted them. Clicking "M" for master does not revert back to what I first saw before selecting it. I can't get back to that original first imported look. I can see the differences in the previews side by side, one I click on and a similar shot I didn't.
    I have never had this criticism before with this camera at 100 iso though it is recently acquired by a few months and never had this complaint with any of my NEF Nikon files. At first when beginning import the preview widow scrambled the order of the files where some images sat besides other images taken at an entirely different time. I closed everything and restarted and at first it did it again then corrected the order to which I hit the import button. I kept the images on the card and now will reload them directly onto my HD first. I'm reluctant to load into Aperture directly until I figure out what is going on.
    I did download Canon's DPP processor and it did hold onto the colors that you see with the thumbnails you see to the left of the selected image. Go figure. I have not touched any of the import settings in preferences.
    Your suggestions appreciated.
    John

    So what you're seeing initially at import is the JPEG that the camera generates as a preview for the image. All RAW files have this; the JPEG is what's used by the camera itself to give you the preview on the back of the camera.
    When Aperture imports, it will initially show you the JPEG. Then, once it renders its own version, based on the raw converter built into OS X, it will show you that updated preview (which is also a JPEG). From that point on, that's what you'll see, and you can't get the RAW-embedded JPEG again.
    If you use Canon's DPP, you're going to get a rendering that looks like what you saw on the camera, because they have access to their algorithms that they use for RAW->JPEG conversion. Apple doesn't have access to this; they make their own raw converter.
    It may be possible that there are issues with Apple's raw converter in specific circumstances (i.e. high ISO images on a certain camera with heavy magenta or odd lighting). You don't say what version of Aperture and OS X you're using, but it looks like it is not Aperture 3.6 + Yosemite. It may be worth upgrading to see if  it's something that's improved (an easier way is if you have access to a machine with Yosemite, just open one of the RAW files in Preview, as that uses the same raw converter, to see if it's better).

  • RFEBBECODA00 problem with output files

    Hello
    We are implementing Belgian payments. We make use of CODA 2.1, so RFEBBECODA00 should be the correct program. When running this program with a valid statement file the system doesn;t generatei the UMSATZ.TXT and AUSZUG.TXT on my given path. Everything seems ok, I get a correct list.
    What can be wrong? Anything with Unix perhaps?
    Regards
    DT123

    We are working with SAP version 6.0
    Edited by: M. Semmelink on Sep 30, 2010 1:43 PM

  • Ntsc to pal conversions with small file sizes

    I'm trying to convert a file from NTSC to PAL, which I have done successfully in the past. However, the file needs to be under 200MB (the video is 3.40) and I can not seem to get it any lower than 346 MB using the dv-pal setting and everything as low as possible and the sound set to mono. Any suggestions?
    Thanks,
    Christy

    DV PAL is a set data rate - 3.56 MB/s when run at 25 fps.
    If you want a smaller file size you have two choices -
    1. convert the file to another codec that allows for smaller frame sizes, slower frame rates and increased intra and inter frame compression.
    2. If it must be DV/PAL, cut the length of the video to reach your 200mb limit.
    Of course there is the third choice of simply giving them the larger file because that's what an un-compromised DV/PAL version of the file will be.
    x

  • Losing 0x0D in Content Conversion of a file receiver communication channel

    Hi everyone,  I have a file to file scenario in which I receive an XML like this:
    <MT_IDOCS>
    <IDOCS>
    <IDOC>E2EDK14                       10000000000000000010000020000010200600
    E2EDK14                       10000000000000000010000030000010200712
    </IDOC>
    </IDOCS>
    <MT_IDOCS>
    Actually this is just to give you an idea, but inside the IDOC tag I have a whole IDoc with the flat file structure that is going to be processed by with program RSEINB00. The incoming file has characters 0x0D and 0x0A between both lines, which is correct and is the desired format for program RSEINB00.
    But when I download this XML using content conversion, the resulting file has lost the 0x0D character, it still has the 0x0A, but all 0x0D are gone.
    The content conversion is set like this
    Recordset structure IDOCS
    IDOCS.fieldSeparator     $$$$$$
    IDOCS.endSeparator     '0'
    (I don't know exactly why they did it that one...anyway only 1 IDOCS tag is expected). The I have to extract the exact bytes from inside the IDOC tag and download them to a file. Is it possible to handle it from the content conversion? Thanks!

    Hi Pablo,
       maybe the problem relates to the file encoding you have specified in the Communication Channels. Maybe the file is being picked up from a Windows system which uses Carriage Return (CR) in conjunction with the line feed character ( LF) to indicate
    the end of an ASCII text file. The hex code 0D0A. Whereas the receiver system maybe a Unix systems which uses only LF (0A).
    The module
       ConvertCRLFfromToLF
    using parameter value
      LFtoCRLF
    may resolve this
    e.g.,
    see the 'Example' SAP online help -
    [Adapter Framework Module Interfaces|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/32/43d84072378031e10000000a1550b0/content.htm]

  • Blur edges in stacked image output file

    Hi,
    I'm using the auto align and auto blend feature to stacked images for increased DOF. My source files are clean no ghosting, blur or what ever. After I run the files through the auto align and then auto blend  I flatten  the stack of layers. The final output file has blurring around the edges. I use the blended output files for creating panorama's. Notice the two bands of blur
    Does anyone know how to eliminate the blurred boarders in the out files or a btter way to get the result I'm looking for?
    thanks

    That's a lot of conversions. On top of that, iDVD takes your MP4 and makes an MPEG2. So you have a VHS file that was transfered to DVD (VOB file)? Then from DVD to MP4, from MP4 to MPEG2. Each conversion loosed something. On top of the Long GOP compression (DVD, MP4, MPEG2) means most frame information is thrown away. Long GOP looks at one frame (I-Frame) then records only the motion difference between that I-Frame and the next 14 frames (or so). So fast motion is difficult for any MPEG encoder, including iDVD. For more info on long GOP on a DVD:http://en.wikipedia.org/wiki/MPEG-2
    To improve the quality, I would try to go back to the original VHS material and import that as a DV file, NOT a VOB or otherwise compressed file. VHS to DV. After that, I would then split the 95-minute program into two movies for two DVDs. Getting the content under 60-minutes will allow for a higher bit rate on the DVD. And the only way to improve motion scenes is to use a higher bit rate (and less conversions!).
    Mike

  • Email conc program output file by using printer driver

    Hi ,
    we have one interface program which has been scheduled every week.
    My req is that after completing successfully/error the interface program i need to send an email to the given email address with output file as attachment.
    This should be happened through priter driver.
    Could anyone please help me on this.
    Thanks,
    Malla

    Hi Bhaskar,
    I appreciate for your reply.
    What I am looking for is that without writing any shell script is there any possible solution.
    Now I am getting an email without writing shell script but attachment is not coming with the email.
    My current process is that
    I am registering a printer and when create a driver for this i am giving parametes for command mode as
    $ uuencode $PROFILES$.FILENAME $PROFILES$.FILENAME_out|mailx -s $ $PROFILES$.FILENAME [email protected]
    I am able to get the email but no attachment.
    So Could you please tell me how to do that.
    Thanks,
    Malla

  • Removing message type tag in output file

    Hi guys,
    I'm new to XI. I have done an xml file to xml file scenario. It is working successfully
    The output file has a format
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:mt_xml_receiver xmlns:ns0="http://xml2xml">
         <DETAILS>
              <ID>111</ID>
              <NAME>Varun</NAME>
              <LOCATION>India</LOCATION>
              <ADD>Bangalore</ADD>
              <MOBILE>46572727</MOBILE>
              <EMAIL>[email protected]</EMAIL>
         </DETAILS>
    </ns0:mt_xml_receiver>
    I want to remove the additional tag present for the message type and i want the output in the format
    <?xml version="1.0" encoding="UTF-8"?>
         <DETAILS>
              <ID>111</ID>
              <NAME>Varun</NAME>
              <LOCATION>India</LOCATION>
              <ADD>Bangalore</ADD>
              <MOBILE>46572727</MOBILE>
              <EMAIL>[email protected]</EMAIL>
         </DETAILS>
    Can any one help me on how to achieve this???
    Pl help me on this guys
    Regards
    Varun

    HI Varun,
    This will help you..
    In the message type <b>mt_xml_receive</b>r there is a box where the namespace name is specified.
    Simply delete the same and activate the message type.
    In your case what you can do is as you dont want the message type name also.
    you can create the message type name as DETAILS instead of mt_xml_receiver.
    Regards,
    Sumit
    ps : reward points if tht helped u.

  • Using Timestamp [TS] in the output file name

    Hello Everyone,
    i am trying to get the timestamp into the output file generated by the store file atom. Since my Outbound channel is void i thought i could use:
    [TS]
    or
    [yyyy][mm][dd][hour][min][sec]
    My File Specification is: C:\Temp\Out\blabla[TS].xml and unfortunatelythe outputfile are named: blabla[TS].xml
    What am I doing wrong? Can i not use those placeholders in an atom?
    Help is greatly appreciated
    Best regards
    Simon

    Hi Simon,
    Now I see, you're trying to maintain the timestamp in the SLD FILO section and not in a store file atom of an integration scenario.
    In this case, please check the following help document:
    filePattern
    To define the outbound file pattern, define the directory and the file specification. Enter the full path. The integration framework supports Microsoft Windows UNC (Universal Naming Convention) names. The directory you enter must exist in the file system. The user for directory access must have the necessary rights in the file system.
    You can use the following special characters and variables:
    Character/
    Variable
    Description
    To introduce  numbering in the file directory use ?.
    If you enter  for example data????.xml, the integration framework creates an outbound file called data0000.xml, if the directory is empty. If a file, following this naming  convention, already exists in the outbound directory, the next generated file  name is data<last  number>+1.xml. If data0000.xml already exists in the directory, the next file in the directory  is data0001.xml.
    [vbiu]
    This is a placeholder for a value you can  define in scenario package processing. If you use the value, add the b1im_filename attribute directly in the outbound payload.
    <xsl:template  name="transform">
          <xsl:attribute  name="b1im_filename">myName</xsl:attribute>
    </xsl:template>  
    [TS]
    To add a  timestamp to the file name, use the variable. This gives you another  possibility to define unique file names.
    [yyyy]
    Adds the  current year in four digits to the file name
    [yy]
    Adds the  current year in two digits to the file name
    [mm]
    Adds the  current month to the file name
    [dd]
    Adds the  current day to the file name
    [hour]
    Adds the  current hour to the file name
    [min]
    Adds the  current minute to the file name
    [sec]
    Adds the  current second to the file name
    You can also combine the variables. For example file[TS]??.[hour][min].txt
    Here is a screenshot of my SLD FILO definition and from the result:
    Best regards
    Bastian
    P.S.: just in case you need to define a filename in the integration step for the store file atom, here is a screenshot:

  • File has turned to question mark and info now lost

    i created a file and put it in my dock to hold all of my go pro videos before conversion.  the file has now turned to a question mark and won't open and i cannot find it in finder. i have tried plugging the go pro back in to see if it would work then but it won't. please help!!! this folder has all of my wedding videos in it!!!

    I have followed the instructions you performed:-
    Created a new folder on the desktop.
    Dragged it to the right hand side of the Dock. In the area that has the Trash and Downloads area, it will not go into the Applications area i.e. Mail, Safari etc, I did not expect it would.
    The important thing to note is that the New folder remained on the Desktop.
    I then dragged files into the folder in the dock, all OK so far, but note they were also in the same folder on the Desktop, i.e the Dock Icon was just an alias of the folder on the Desktop.
    I then trashed the folder on the Desktop and I was able to still access the files and add new ones even though the folder was in the Trash, i.e. the alias followed where I put the original file.
    I then emptied the Trash and tried to access the folder in the Dock, I got the Question mark.
    So did you trash the folder you had created on the desktop and then subsiquently emptied the Trash?
    If so that would follow exacty the test I did.
    If this is what as occurred you may be able to find some file recovery software that will get some/all of your photos back, I have no suggestions on what software to buy.
    If this is not what you did, I a sorry but I am out of ideas.
    Hope you get them back.

  • BPEL naming convention

    Hi Folks,
    I am looking for Oracle BPEL naming convention and coding standards. Tried to search at oracle site as well as on internet but didnt find anything.
    Could you please help me with some document/link for naming convention and coding standards.
    Thanks
    Amit

    Hi Amit,
    Was able to pull this info from my inrenal repo..thanks to the people who made this :)
    Naming Convention: ActivityDescription_suffix_
    * ActivityDescription should use camel casing.
    copyLeadInfo_asgn
    Process Activities      
         Services      
         ESB Services      
    Item      suffix      Item      suffix      Item      suffix
    Assign      asgn      AQ Adapter      aq      Routing Service      rs
    Compensate      cmpnst      Database Adapter      db      SOAP Service      ss
    Decide      dcd      Decision Service      dsvc      Custom Adapter      ca
    Email      eml      EJB Web Service      ews
    Empty      ept      File Adapter      fl
    Fax      fax      Java Web Service      jws
    Flow      flw      JMS Adapter      jms
    FlowN      flwn      MQ Adapter      mq
    Human Task      hmntsk      Oracle Applications      oraapps
    Invoke      invk      Partner Link      pl
    Java Embedding      jvEmbd      FTP Adapter      ftp
    Pager      pgr
    Pick      pck
    Receive      rcv
    Reply      rply
    Scope      scp
    Sequence      sqn
    SMS      sms
    Switch      swth
    Terminate      trmnt
    Throw      thrw
    Transform      xfrm
    Voice      vc
    Wait      wt
    While      whl
    Sensor Actions      snrctn
    Sensor Activity      snsrcvt
    Sensor Variable      snsrvrbl
    Fault Sensor      snsrflt
    Also, you can refer : http://my.oracle.com/portal/page/myo/emea/Communities/Technology/EMEA_SOA_Integration/KA
    Hope it helps!
    Regards
    Anirudh Pucha

Maybe you are looking for