Inbound File Sequence Number

Hi,
I have a requirement and request your expertise.
PI will need to pick up a file from FTP server and would be passed on to SAP via idoc. We have a unique requirement where the SAP would need to check whether the previous file is processed or not by PI.
How can PI make sure whether the previous file has been processed without using BPM. Also if the logic can be handled in SAP, it will be still good.

Hi Krish,
Shabz suggestion really best one to, take help from ABAP team to create a function module in SAP, using RFC look-up
insert file name in to tables and get response back true or false.
RFC logic is it should check all input with available previous processed file names.
or
you can implement the same logic in SAP ECC level , but you shuld process IDoc/RFC using back ground program and pass file name to any of the field in IDoc/RFC.
Background program should check against SAP Table before processing the IDoc/RFC,
Regards,
Raj

Similar Messages

  • FILE SEQUENCE NUMBER PROBLEM

    Our requirement is to generate file sequence number using FTP adaptor so that we acheive the following pattern
    for eg.,
    VAP001.xml
    VAP002.xml
    VAP003.xml
    VAP010.xml
    VAP011.xml
    i.e., the sequence number will be a fixed length and it should be lpadded with zeroes.
    We tried to the following
    VAP%SEQ%.xml
    then BPEL generated as
    VAP1.xml
    VAP2.xml
    VAP10.xml
    We also tried this i.e.,
    VAP00%SEQ%.xml
    bpel generated
    VAP001.xml
    VAP002.xml
    VAP0010.xml
    Pls guide us with a solution. THis is very urgent and important for our business.
    Regards

    Our requirement is to generate file sequence number using FTP adaptor so that we acheive the following pattern
    for eg.,
    VAP001.xml
    VAP002.xml
    VAP003.xml
    VAP010.xml
    VAP011.xml
    i.e., the sequence number will be a fixed length and it should be lpadded with zeroes.
    We tried to the following
    VAP%SEQ%.xml
    then BPEL generated as
    VAP1.xml
    VAP2.xml
    VAP10.xml
    We also tried this i.e.,
    VAP00%SEQ%.xml
    bpel generated
    VAP001.xml
    VAP002.xml
    VAP0010.xml
    Pls guide us with a solution. THis is very urgent and important for our business.
    Regards

  • File sequence  number in a Flat file

    Hi,
    I am working on Idoc to file scenario wherein my output file will have a sequence number assigned to each level.
    there are 4 levels and hence 4 sequence number to be genearted and its values should also have the same sequence number.
    i am doing this just by using Counter function.
    But when i am getting  a multiple detail records, for each detail record(0040) level its keep incrementing.but it should have the same value what its level has.
    for ex:
    ALPHAMER AS2 E5 710 20114806124829 01.00   
    0000 00000000 20100102 V3.0 SORD CZ1
    0010 00000001 76767 123 100 WER Constant BNG 560011 RAJ WERR     560011    BTM   X EN RT
    0020 00000001 TYUIOP
    0040 00000001 8765 6532 200 45 10 WE 20 AG
    0040 00000002 8765 6532 200 45 10 WE 20 AG
    0040 00000003 8765 6532 200 45 10 WE 20 AG
    0040 00000004 8765 6532 200 45 10 WE 20 AG
    9999 99999999
    It has to be like this.
    ALPHAMER AS2 E5 710 20114806124829 01.00   
    0000 00000000 20100102 V3.0 SORD CZ1
    0010 00000001 76767 123 100 WER Constant BNG 560011 RAJ WERR     560011    BTM   X EN RT
    0020 00000001 TYUIOP
    0040 00000001 8765 6532 200 45 10 WE 20 AG
    0040 00000001 8765 6532 200 45 10 WE 20 AG
    0040 00000001 8765 6532 200 45 10 WE 20 AG
    0040 00000001 8765 6532 200 45 10 WE 20 AG
    9999 99999999
    Can someone help me in achieving this.
    Regards

    Hi there,
    Just to try out from a different view, the following case could be implemented if the pre-requiisites are satisfied:
    Pre-requisites:
    1) The element that carries a primary factor, let us say, '8765' from your example.
    2) Functionally there is an element in your header item that relates the line items under it.
    My understanding of your example:
    1) Line items present for 00, 10, 40
    2) Line item 30 absent in the series
    Proposal:
    Map source field (the one that is arelating factor, here the one that carries '8765') -> INDEX (start by 0, increment by 1) -> multiply by one.
    INDEX standard function property: Donot Reset for every context;
    Srikanth Srinivasan
    Edited by: Srikanth Srinivasan on Jan 10, 2011 11:02 AM

  • Slideshow file sequence number

    Most of my slideshows use a text box displaying file # and total # of files.
    Used to work fine with 1.0, shows only blanks with LR 1.1.
    Whath used to display text like :
    "Photo 1 of 25", now comes up as "Photo of "
    Do I need to change something ?
    I tried to re-create new text box with LR 1.1, without success. I can't seem to get this fairly basic feature to work.
    I am running Windows XP SP2 on a small Dell Laptop.

    I am having the same problem on the same OS (although I have spoken to someone who has the problem on OS 10.4). It seems all the values for Image# and Total# are empty, so no matter what combo of tokens are used it comes up empty.
    I have tried it with both Folders and Collections.
    Can anyone get these values to show?

  • Sequence Number in File Name

    Hi All,
    I have a requirment where the Output file name should be appeneded with a sequence number which needs to be in sync with the number of records processed.
    Each time this sequence has to be started from the previous number where it ended.
    The soultion at the moment we have used it to store each time this counter in a file and read is back and update when done. Other solution is to meke use of the Tabe on ECC side
    Is there any solution with in the map it self to maintain this number.
    Any help will be appreciated.
    Thanks
    -Kulwant

    Hi Kulwant,
    Within Mapping you cannot save the counter as container and even global variables are flushed once the mapping is executed for the message, so i think we cannot do it using mapping.
    Also, dont know if you have tried OS commands feature provided by SAP for file adapter explained in link below:
    [/people/santhosh.kumarv/blog/2008/07/27/glimpse-at-os-command-yet-another-scenario]
    We can first create the file on some temporary location of the application server and then execute a batch file which would contain the code to fetch previous count(variables in OS commands can hold this value) and increment the same and copy the flie thus created by communication channel by appending the count to file name and also delete the file created by communication channel.
    Hope this helps !
    Regards,
    Amit

  • File name generation with sequence number

    Hi All,
    My scenario is, File to File.  I need to generate the filenames at the target side like File1.xml, File2.xml..File9999.xml for each file triggered from source system. The interface tiggesrs multiple times in a day.
    For example, for the first time, 5 files triggered, need to generate File1.xml,File2.xml..File5.xml. After some time the interface might trigger with 10 files, then need to generate files as File6.xml,File7.xml....File15.xml . Once the file count reaches 9999 then need to generate the files from  1 (File1.xml)again.
    Could you please suggest me the possible solutions. For this any Lookups required?
    Regards,
    Praveen Kumar

    Hi Praveen,
    Case 1: If a field in source data carries the information regarding the sequence.
                 You can map this value ( Directly .. or using some transformation ) in some temporary field in the target and then use a Variable substitution at the receiver communication channel.
    Case 2. If the source file name carries the sequence information. then you can enable the Adapter specific settings in the Sender communication channel , and then get the information of the source file name using the Container object in the mapping. Then assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    Case 3 : If Case 1 and Case 2 are not applicable ... then you have to use a  Ztable  to store the sequence number , a function module to fetch the number , and then use a UDF  in which you will implement the  RFC call logic.Then the same process ....      assign the sequence number to a field in the target , use a Variable substitution at the receiver communication channel.
    BR,
    Sushil.

  • Sequence number/counter in File name using FTP

    Hi
    I have to add sequence number in the file name. How can i do that? everytime file generates it should pick up the latest file number.
    Example File1 File2 File3. 1,2 and 3 are the sequnce number.
    Regards

    Hi ria,
             You can do this by dynamic file creation. Use this following code and cretate an UDF. The map the required file format to the target header structure as below;
    UDF
    sequence number:
    IDENTIFIER is the parameter
    Import com.bp.xi.util.*;
    Code:
    return ServiceUtil.getSequenceValue( IDENTIFIER, container, false );
    Dynamic file:
    Key & Value is the parameter
    Code:
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get( StreamTransformationConstants.DYNAMIC_CONFIGURATION );
    DynamicConfigurationKey confkey = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File",  Key );
    conf.put( confkey, Value );
    return "";     
    Input parameter "Key" is given a constant value"FileName"
    Second parameter "Value" is the file pattern
    Mapping
    Constant(File)concat function sequence numberUDF ==> Dynami File udf ==>target header record.
    In the receiver communication channel check the adapter specific function, filename
    points if useful
    regards,
    Murugavel

  • Sequence Number By Date Option For File Naming

    I would like to see Lightroom have the option to have the sequence numbers be reset when the date changes and increment accordingly. For example, I have the file naming set to use Date (YYYYMMDD) Sequence Number (0001) and the sequence number starting at 1. As Lightroom is now I will end up with 200909010001, 200909010002, 200909020003, 200909020004, 200909030005 200909030006 etc. and what I would like to see is the option for 200909010001, 200909010002, 200909020001, 200909020002, 200909030001 200909030002.
    This would make it much faster for renaming or import when using this combination of date and sequence in file names.

    Hi
    For the Transport Protocol "File Transfer Protocol (FTP)" files are always processed in ascending alphabetical order
    If you want the file to be processed in sequence then you can use Quality of Service EOIO in the sender adapter.
    The files are processed in the sequence they are picked up.
    otherwise use BPM for File Sequencing..
    Refer the following Threads
    FTP Sender Adapter - Processing Sequence
    Processing Sequence issue of FTP protocol
    Regards
    Abhijit
    Edited by: Abhijit Bolakhe on Nov 4, 2009 10:32 AM

  • Reg : I need to generate a file name sequence number.

    Dear All,
    I need to generate file name in sequence number. Now i have generated file in specific folder. In that folder file i am reading one by one and generating. Problem is folder file some names having special characte those names are not generating while reading 'Cat' Caommand in shell script. Instad of that i want to generate files in 1.ldt,2.ldt to etc..
    Please guide me how to generate in specific folder.
    Thanks in advance.
    Best Regards,
    Velu.

    First, LabVIEW 7 allows you to pass string and path data types directly into the Matlab script node. Otherwise, in LV <= 6.1 you can do the following:
    In LabVIEW, convert the string to an array of U8s using the String to Byte Array function. Then pass the U8 array into the Matlab script node as a Real Vector type. Finally, in Matlab, convert the Real Vector to a string using the char() function. For example:
    stringAsString = char(stringAsRealVector)
    Attached is an image that shows how to do this.
    Good luck,
    -Jim
    Attachments:
    Matlab_Script_Node_String_Input.GIF ‏6 KB

  • How I can log Sequence File version number to database?

    Hi,
    As in the subject.
    How I can log Sequence File version number to database?
    There is nothing like that under Logging object.

    Do you need it in a separate field in the databse?
    One option is to just add it as an additional result in a step in your sequence file. 
    RunState.SequenceFile.AsPropertyObjectFile.Version
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • Sequence number  problem in control file

    hI,
    I have table called mast_route which contains route,seq_no fields.
    I need to load the data using sql loader.while loading i have to reset the sequence based on the route.
    that means whenevr a different route is encountered the sequence number should be set 1.
    I have to load the data as shown below.
    ROUTE               SEQ_NO
    10B,               1
    10B,               2
    10B,               3
    10B,               4
    10B,               5
    10B,               6
    10B,               7
    10B,               8
    10B,               9
    10B,               1
    10B,               1
    10B,               1
    10B,               1
    10B,               1
    10B,               1
    10B,               1
    10C,               1
    10C,               2
    10C,               3
    10C,               4
    10C,               5
    10C,               6
    10C,               7
    10C,               8
    10C,               9
    10C,               1
    10D,               1
    10D,               2
    I used the following loader script,but its not working
    load data
    infile 'routedest_master.csv'
    append      into table mast_route
    fields terminated by "," optionally enclosed by '"'     
    TRAILING NULLCOLS
    ( route,
    seq_no ?? here i need to insert the sequence number based on route ,
    any idea pls
    cheers
    RRK

    hi,
    I have another field called "Destination" in my table.
    under one route there may be several destinations.
    Here the sequence number indicates the unique destination number under a route.
    the sample data looks as follws.
    ROUTE,          DEST,          SEQ_NO
    10B,          204,          1
    10B,          223,          2
    10B,          242,          3
    10B,          290,          4
    10B,          303,          5
    10B,          513,          6
    10B,          521,          7
    10B,          539,          8
    10B,          577,          9
    10B,          60,1          0
    10B,          626,          11
    10B,          725,          12
    10B,          839,          13
    10C,          1011,          1
    10C,          369,          2
    10C,          377,          3
    10C,          384,          4
    10C,          388,          5
    10C,          56,               6
    10C,          689,          7
    10C,          87,               8
    10C,          888,          9
    10D,          354,          1
    10D,          360,          2
    10D,          398,          3
    10D,          495,          4
    10D,          501,          5
    10D,          66,               6
    10D,          66,               7
    10D,          765,          8
    10D,          765,          9
    10D,          837,          10
    10D,          899,          11
    10D,          906,          12
    10E,          205,          1
    10E,          306               2
    10E,          34,               3
    10E,          348               ,4
    I guess ,now u can understand the prob.
    cheers
    RRK

  • How to pass the sequence number of current loop in a for loop in FPGA vi to the host

    PCI-7830R
    LV 8.2
    What I was trying to do is to use multiple DIO to generate pulse at different sequence. Mode one is to automatically sweep from DIO1 to DIO20; mode 2 is several DIOs generate pulse simoutaneously.  So I use a case structure to make the selection, in the mean time, I set up two for loop in each case so that I can use multiple pulse generations. For example, in scanning mode, if I set 2 exposures, it sweeps from 1 to 20 then do it again.  
    Then I need to get the loop sequence number, i of each scenario. So I put an indicator within the first loop, and create a local variable of it and put in the second one.  Running the FPGA vi alone, I can see the indicator change in each case from 0 to N-1, N being the for loop time.But in the host vi, I tried to add this indicator as an element in the read/write invoke method, in the debugging mode, I could only see it directly jump to N-1 without all the changes I saw in FPGA vi. 
    Is it possible to get this number passed correctly from FPGA vi to the host vi? Thanks

    Thanks for the reply Jared.
    Excuse me if it looks incorrect, but I'm new to FPGA programming, so I would have to look into the FIFO you referred to.  I used local variables because for one thing I have several different cases containing for loop in each of them, and I only want one indicator for the "i".  If I put the indicator out of any for loop, it's only gonna show the last number which is N-1.  For the other thing, it seems like property nodes are not allowed in FPGA vi.  And by doing this, I can see the i number changing from 0 to N-1 in each case, well, in FPGA vi's front panel.  But while I ran the host vi with everything, the indicator in host vi's front panel only showed the last number N-1. It may be the reason you said, it happened too fast before the indicator in host vi can catch it.
    What I want to realize is to group the data I collect in host vi, for example, when I choose multiple exposure in each mode, and the FPGA runs 1 through 20 then do it again, I want the data stored in two groups using the loop sequence number as the seperator in file name.  So it goes like 1-1, 2-1.......20-1; then 1-2, 2-2,.....20-2.

  • Inbound Files Create Sales Order With Reference To Quotation

    Dear All,
    I am working one Assignments For Sales Order Creation Through Inbound Files and Its working fine.
    But I have one Issue during creation of Sales Order through inbound files ( Which Contains Quotation Number Which Already Exist in SAP ) and Quotation Number updated in PO Number (BSTKD) filed in Sales Order.
    And My Problem is How we can update Quotation in Document Flow during creation of Sales Order through inbound files..
    Any Help or Suggestion will very helpful for me.
    Thanx in Advance.
    Regards
    Vijay Maurya

    Dear All,
    I am working one Assignments For Sales Order Creation Through Inbound Files and Its working fine.
    But I have one Issue during creation of Sales Order through inbound files ( Which Contains Quotation Number Which Already Exist in SAP ) and Quotation Number updated in PO Number (BSTKD) filed in Sales Order.
    And My Problem is How we can update Quotation in Document Flow during creation of Sales Order through inbound files..
    Any Help or Suggestion will very helpful for me.
    Thanx in Advance.
    Regards
    Vijay Maurya

  • Batch rename with minimum numeber of digits in sequence number

    I'm pretty sure I remember this working how I wanted in previous versions of Bridge, but at least since cs4, it has not worked as I would like. I've tried searching for an answer or a setting that I'm missing, but have come back empty-handed.
    Here's my situation. Let's say I'm renaming 18 files. Each file has a sequence number. I want the sequence numeber for the first 9 to be one digit, and for the second nine to be 2 digits.
    i.e. image_1.jpg, image_2.jgp, image_3.jpg...image_10.jpg, image_11.jpg...
    The best way I've found that I can do this is to select all 18 images, and assign a 2-digit sequence number. Then, once that is complete, select the first 9 and repeat, but with a 1 digit number.
    In the past, I could select all 18 images, and choose a 1 digit number, and after 9, it would switch to 10, instead of going back to zero. Is there still a way to do that? I know it's only one extra step, but that one extra step is actually kind of two, because each time I have to reset tho starting number back to 1 or 10, and switch the setting from 2-digits to 1-digit and back again. And I usually have to rename multiple groups of files at once, so it does add up. Granted, much better than renaming one at a time, but not as convenient as I feel it could be, and as it once was.
    Am I missing something?
    Thanks,
    iLan

    While I certainly can understand the way in which computers work, I also understand that in a program as complex as any of the components in Adobe's Creative Suite, there is most certainly a way to override the computer's numerical logic so that it can remove the initial "0" from a 2-digit number. Granted, that may not be possible in the current version of Bridge, theoretically it is "Possible". And I'm quite sure it functioned that way in previous versions, although I really don't know which version I was using when it worked that way. Maybe cs2?
    As a developer, the whole reason for this question is to avoid having to create extra code in my applications to add an unnecessary "0" to digits 0-9 in any filenames of any files I want to load. Although it looks as though adobe changed the default behavior of the batch rename function, and removed (or in some peoples' minds improved) some functionality without an option to get it back.
    Unfortunately for me anyways...
    Thanks for the help,
    ilan

  • System Extract - Incrementing a sequence number in detail record layout

    I have a system extract for a bank that requires a file header, batch header, detail, batch trailer and file trailer record. The detail record is at the run result level as I am looking to choose all records for a particular deduction (savings bonds) and I also have to put employee ssn and full name. This is working fine. I also have to put a sequence number, ie. detail record layout is record type, length 2, string, record sequence number, 5, ?????, employee SSN, length 9, field, employee full name, length 9, field. I need to increment the record sequence number by one for each detail record in the file. Ie. detail record 1 has record sequence number of 00001, detail record 2 has record sequence number of 00002.
    What type of data element would I set up? For this particular field, I don't need to go against a database field, I only need to keep track of the previous record's sequence number so that I can keep incrementing by 1 until all detail records have been written. The batch trailer has a record count of the number of detail lines and that works fine because I've set that up as a type 'total' with a 'count' of the detail records. I also have in the batch trailer a sum of the pay values from each of the detail records and that works fine as subtrailers allow total data elements where detail records do not.

    You can use any of the below mentioned 2 options in the ctl (Control) file:
    1. SEQUENCE(1,1)
    2. "xxcust_autoinv_seq.nextval"
    where xxcust_autoinv_seq is a database sequence.
    Thanks,
    Angelica.

Maybe you are looking for

  • How to get SSO username in a JSP

    Hi, How can i get the value for SSO username in my JSP which is being called after the Single Sign On is done. Can anyone help on this? Thanks in advance Unmesh

  • Acrobat XI crash with Referenced pages

    unfortunately the latest version of Acrobat XI (and also previous Acrobat X version) could crash when opening a PDF file which have reference pages. For example a PDF/X-5g complaint PDF. The following conditions must be true: Acrobat and Adobe Reader

  • Replacing An Object In Flash

    I purchased some Flash game templates from a company. I am not experienced in Flash and need to replace an object that came with the template with my own. The object is a space ship that shoots missles. Is there a way to paste in the new graphic into

  • Por que minhas listas no itunes estão duplicadas?

    Muitas listas no iTunes estão aparecendo duplicadas, por quê?

  • IBooks for iPad 1st generation

    I just tried to download iBooks on my 1st generation iPad and it says that iOS7 is required. Since I can't upgrade to iOS7, does this mean I can't use iBooks?