How to generate sequence no increased with an increment in o/p file name

Hi all,
         I am doing a file to file scenario in which my output file name consists of a sequence number which is increased by fixed increment.i  thought of proceeding with variable substitution by writing one udf involving Dynamic Configuration object (the udf describd in Micheal blog).However my problem is that i am unable to generate the sequence number with a fixed increment .plz guide me how to proceed to achieve the desired output filename with sequence number.
For ex:o/p file name:chxx.bcdtspd.00000002.<datetimestamp>.dat
                              :chxx.bcdtspd.00000003.<dattimestamp>.dat           
The scenario is FTP so we cant use addcounter.Plz help as its urgent.
Regards,
Saurabh Sharma

Hi,
What you can do is.
U have to use the counter which increment everytime ur mapping is executed.
Steps which needs to be followed.
1) Maintain one table at R3.
2) Pass the control to R3 and update the table value with one.
3) For the second time fetch the counter value from the table and add 1 to it and again update the table with the increment value.
4) pass the incremented value to XI and use that counter value for ur file name.
Here u have to always pass 1 value to R3.
The method is called as lookup.
Just go through the below weblog:
Lookup - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
Thnx
Chirag
Thnx
Chirag

Similar Messages

  • How to generate a PRBS signial with arbitrary generator HAMEG HMF2525

    hi, i need help to make the acquisition and signal generation from HFM2525 HAMEG.
    and how to generate a PRBS signial  with arbitrary generator HAMEG HMF2525?

    fafil82,
    What have you done so far?  What NI products are you using?  If you're using ELVIS how does your setup look like?  What is your overall application?
    Jonathan R.
    Applications Engineer
    National Instruments

  • How to generate sequence lile -1, 1, -1, 1, ...

    How to generate sequence lile -1, 1, -1, 1, ...

    Hi,
    If you can generate a sequence like 1, 2, 3, 4, ... then you can get the results you want by saying
    CASE
        WHEN  MOD (x, 2) = 0
        THEN  1
        ELSE  -1
    ENDTo generate the sequence 1, 2, 3, 4, ... you can use CREATE SEQUENCE and NEXTVAL, or ROW_NUMBER, or ROWNUM, or CONNECT BY and LEVEL, depending on what you want.
    Edited by: Frank Kulash on Jan 27, 2012 6:31 AM

  • When I print, a last page is printed with a summary of document printed - file name, directory, ...

    When I print, a last page is printed with a summary of document printed - file name, directory, ... Just got Windows 8. Is this something I can stop? Waste of paper and ink!!

    Hi RebeccaQ,
    Generally speaking, a summary page, document summary or document properties page is often generated based on a setting in the software application being used as opposed to the printer driver or menu setting.  For example, in MS Word you can select to print this page with each printed document.  In this case, depending on your version of Word, you can enable/disable the feature often in "Word Options", "Display", "Printing Options", "Print Document Properties".
    Does this help?  If not, which printer model and software application is being used when the summary is printed? 
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Need help with EXS24 "read velocity range from file name"

    I am trying to import 127 drum samples to a single key using the option shown here. The option says "Map to key dropped on and read velocity range from file name". I can find no documentation in the manuals on how to do this. What is the syntax required in the file name to make this work? I need to do several of these imports. The capability is cleary there, but I need help on how the file name should be formatted. My thanks to anyone who can help.

    Hi
    Not a direct answer to your question, but if you are doing a lot of sample mapping etc, you may want to check out Redmatica's KeyMap Pro or the simpler Keymap 1:
    http://www.redmatica.com
    CCT

  • When I open up an e-mail attachment a box pops up PRINT TO FILE below that line OUTPUT FILE NAME with an empty line for the file name vs. simply going to my default printer?

    when I open up an e-mail attachment a box pops up PRINT TO FILE below that line OUTPUT FILE NAME with an empty line for the file name vs. simply going to my default printer?

    Make sure that '''''Print to File''''' isn't selected in the native print dialog box ''(see screenshot below)'' middle-right, and make sure your Printer is selected at the top of that dialog box.
    ''I'm a little confused why an email attachment would need to go directly to the printer, but that's what you asked about.''

  • How to generate sequence of pulse trains with DAQmx?

    I need to generate a sequence of pulse trains with DAQmx (the card I have is a PXI-6229 card). As an example:
    - 10'000 pulses at 20kHz every 5 seconds with an initial offset of 2 seconds (let's say 10 pulse trains in total).
    If I use the CreateVirtualChannel.vi in "CO pulse ticks" mode, I can only specificy offset, high ticks and low ticks, but not that the sequence of pulses should be repeated after some time. 
    Now I thought that I could solve this problem if it were possible to multiply two counter outputs: the first counter would generate the pulses (continuously) whereas the second one would switch between low and high on a slower timescale in order to gate the first counter, thereby providing an initial offset and the "off" phases between the pulse trains.
    Is it somehow possible to multiply two outputs with DAQmx and the card I have? Or is there another solution to the problem?
    Thanks a lot in advance for any hints!

    Hi dlanger,
    what you want to do requires a little bit more work. 
    First look at the example "Gen Dig Pulse Train-Continuous.vi" from the LV example finder.
    This example generates a continuous* pulse train. As you see, you need a sample clock VI for setting the sample mode. 
    * NOTE: Generating a finite pulse train with a M-series card requires 2 counter.
    With a pause trigger (DAQmx trigger property node) you can gate the output of that counter.
    Now you have to generate a gate-signal with the the 2nd counter. That means, only if  Ctr1-out is high Ctr0-out outputs the 20 kHz-signal. 
    Maybe you have to adjust the times in my example a bit. 
    Unfortunately there is just one "small" problem: "let's say 10 pulse trains in total" 
    This is not possible, because a 3rd counter would be necessary (*). 
    As a workaround you can modify the while-loop that both tasks are cleared after 50s. This is not brilliant, but should work fine for you. 
    A more sophisticated way is to perform a correlated DIO. So you can generate custom pattern for multiple outputs. 
    A good example can you find here: 
    Retrigger and Repeat Finite Digital Pulse Train in LabVIEW
    http://decibel.ni.com/content/docs/DOC-8473 
    or here:  
    Generating More Than 2 Pulse Trains Using CompactDAQ
    http://decibel.ni.com/content/docs/DOC-2167 
    Hope this helps.
    With best wishes,
    Ralf N. 
    Attachments:
    Gen Gated Dig Pulse Train-Continuous.vi ‏38 KB

  • How to generate Sequence Diagrams for existing code

    Hi,
    I have a web application written in Java/Jsp's. I am looking to generate sequence diagrams automatically for the existing source code using this tool. I am not sure if this is possible using this tool. Can some one please explain me if that is possible using this IDE tool? If so can you please let me know how this can be done?
    Any response is greatly appreciated.
    Thanks in advance.
    Vijay

    Hi,
    Yes, you can reverse engineer operations and create sequence diagrams using Java Studio Enterprise.
    Just right-click on the operation in the UML model that has the source file associated with it, and select "Create Diagram from Selected elements" or "Reverse Engineer Operation".
    Thanks!

  • How to generate a pulse train with different pulse width and delay?

    How to generate a triggered pulse train with different pulse width. for example, after each trigger signal, let's say 2 ms, then the counter output a pulse with pulsewidth of 1 ms, and then after 3 ms delay after the first pulse, the second pulse was generated with a pulse width of 4 ms.  Next cycle when the trigger signal comes, the same two pulses will be generated and so on. Is it possible to achieve this by using 6601 counter card? and if yes, how to achieve this? Thanks!

    Unfortunately you can not create a hardware timed pulse train with different widths on each pulse from a counter. Whilst it can be changed on the fly using software, since you require a hardware triggered signal getting the software involved will not give a huge amount of accuracy when the pulse will actually change.
    So in short you can't use your 6601 card (or a counter timer) to achieve this
    There are three possible Alternative solutions
    1 You could use a high speed digital IO device such as the (6533/34) to generate your variable signal which would require setting up the pulse train as a series of states based around the burst transmission mode where the clock would give you your specific timing.
    2 A timed analogy output (for example on a MIO card with a clock (PCI-6220 / 62xx), i.e. Not the 6704 style static analogy output cards)
    3 A high speed digital waveform card such as the (, 656x , 655x, 654x, 6534, 6533 (http://www.ni.com/modularinstruments/find_right.ht​m) ) this could then be scripted to work with your triggering and also there is a digital waveform editor which will enable you to set up the pattern you wish to generate (http://sine.ni.com/nips/cds/view/p/lang/en/nid/135​55) 
    Hope that helps
    Tim Matthews
    NI (UK)

  • How to generate sequence

    hi
    how to generate the sequence ?
    my requirement is like this hp1
    hp2
    hp3
    hp4
    hp5
    regards
    prathyush

    You can still use an Oracle sequence you just have to append the characters you want as shown below:
    SQL> CREATE SEQUENCE TEST_SEQ;
    Sequence created.
    SQL> SELECT 'hp' || TEST_SEQ.NEXTVAL FROM DUAL;
    'HP'||TEST_SEQ.NEXTVAL
    hp1
    SQL> SELECT 'hp' || TEST_SEQ.NEXTVAL FROM DUAL;
    'HP'||TEST_SEQ.NEXTVAL
    hp2
    SQL> SELECT 'hp' || TEST_SEQ.NEXTVAL FROM DUAL;
    'HP'||TEST_SEQ.NEXTVAL
    hp3You could either do this directly in your INSERT code or write a trigger to do it for you.
    HTH!

  • How to generate a certificate request with more than one OU?

    We're using Sun Java System Web Server 6.1 SP4. The Corp. has it's own CA and organize their certificates in a hierarchical rule with more then one organization unit (OU) in a chain.
    So what we need is generate a certificate requeste with more than one OU, but the Web Server wizard has only one text field for it. We've already tried to fill in this field the complete chain of OUs like "ou=orgX, ou=deptY, ou=secZ" and didn't work either.
    Thank's in advance,
    Jeff!

    Do you have tried with the command line "certutil" ?
    #<SERVER-ROOT>/bin/https/admin/bin/certutil

  • How to generate sequence in grid

    I have 1 page
    and order like this
    level 0 MYHeader_table
    level1 scroll area MYHeader_table
    level2 grid MYDetail_table
    How i gerenate sequence to MYDetail_table.seq in RowInsert

    you would add code to your rowinsert peoplecode.
    example:
    MyDetail_table.seq.value=MyDetail_table.seq.value+1;
    also why do you have myheader_table in both level0 and level1, thats a bad design.

  • How to generate SNP planned order with different category

    Our SNP system receives Forecast and Salse Order from DP system.
    and we'd like to generate SNP planned order with different category..for example, 'AI' for Forecast Demand and 'AL' for Sales Order..
    currently, If we run CTM, system generate SNP planned order with the
    same category 'AI'..
    another system(APS) in Our company receives planned order from SNP
    and they want to receive planned order for forecast and planned order for sales order seperately..

    It is not directly achievable however can be done through BADIs and two CTM profile. I am assuming that sales orders are planned ahead of Forecast demands. So have two CTM profiles - one for Sales Orders (regenerative mode) and the other for Forecast Demands (net change mode). You may have to invoke two BADIs in the first run for Sales Orders - one that changes master data by putting a temperory Forecast Horizon in SNP2 tab (BADI /sapapo/ctm_matloc). The other BADI (BADI /sapapo/ctm_orders) changes the ATP category just before saving. in the second run though you just need to run the latter BADI by saving it in the ATP category required. BADIs can be invoked based on CTM profiles used.

  • How do I save an image with an incremented filename?

    I am new to LabVIEW and am working on acquiring and saving many 12 bit images.  So far I have a File Dialog box to allow me to select the path to save the file. After I select the path, how can I make each image acquisition filename after that increment by an integer and save automatically (i.e. image1, image2, image3, etc)?

    jpyung wrote:
    Thanks Warren for the VI. I'm new to labview so please bear with me. Just to make sure I understand what's going on in this VI, the first time the program runs, the "error" case structure runs, and then subsequently, the "No Error" diagram runs?
    The error case should only run if there has been an error.  I've attached a demo program (LV v7.1.1). Put it into the same folder as the "Generate Next Filename" vi and run it or watch it run. If you don't change it any before running it, the first time it is run it will create a subfolder in the folder containing the VI and then add 10 sequentially-numbered text files to it. The next time it is run, it will add the next ten files in the sequence and so on.
    Message Edited by Warren Massey on 03-13-2006 01:46 PM
    Attachments:
    Demonstrate next-file-name generation.vi ‏44 KB

  • How do I compress a string with  java.util.zip - not a file ?

    How do I compress a string with java.util.zip?
    Is possible to compress something else except a file?

    Of course, compression works on bytes, not some higher level constructs like Strings or files.
    You can use the ZipOutputStream or DeflaterOutputStream for compression.
    And the javadoc for Deflater even has a code example of compressing a String.
    Edited by: Kayaman on May 22, 2011 5:04 PM

Maybe you are looking for

  • Had anyone worked with 23.976 fps video?

    It's the new hi def video frame rate that is supported in Logic 8, but I'm having some problems. I also have a Canopus ADVC110 firewire to analog video out and the video is glitchy and crash prone. I don't know if the Canopus really supports 23.976.

  • Cfscheduler does not trigger

    I have a daily scheduled task to backup up databases to a remote ftp site. The scheduled backup runs once at the scheduled time (after the task is initiated or reinitiated) and then never runs again. The scheduler.log, coldfusion.log and application.

  • Function module to get the configuration of Individual objects

    Hi all, Is there is any std function module to get the data of individual object configuration. In table COM_TA_R3_ID, I can able to get the PRODUCT_GUID (for material and serial number) and I dont know how to get the configuration of the product by

  • How can I Delete Adobe Download Assistant on Safari?

    I want to delete the Trial Adobe Download Assistant. I have Safari on my Macbook Air.

  • Delete statements

    hi all, i have 2 tables . table A have 700,000 + records. table B have 5,000 + records. delete from table_A aa where aa.be_pol_no not in ( select pi_pol_no from table_B) its takes more than 30 mins. how i can fine tune my SQL ? tks in advance.