Flat File automation process - limitations

Hello Everyone,
I would really appreciate any insight on the process improvement suggestions.
Background:
Currently we have around 12 territories providing a new flat file with new data on a daily basis depending on the business activity. Which would also mean that, on a given day if there is no activity would mean no flat file provided to BI for loading process.
The flat files provided need to be loaded into the BI system (PSA - DSO - InfoCube).
The flat file loading process has been automated for the daily file by implementing the logical file name for each territory.
1. The process variant in the process chain is to ensure if the flat file is available on the App server (Custom ABAP program).
2. 12 InfoPackages have been created to pick the data from the flat file on the app server and load the data over into the PSA.
3. All the InfoPackages merge into an "AND" event in the process chain before the DTP load into the DSO kicks off.
4. DSO Activation
5. Recon between the flat file and the DSO to ensure all the data from flat file has been loaded into the DSO.
6. DTP loads into the InfoCube.
7. Recon between the InfoCube and the DSO itself.
8. Moving the flat file from one folder into another.
All the above processes are automatically performed without any issues if the flat file is available on the server.
Problem / Issue:
As one of the major limitations of the above design is the flat file for sure needs to be made available on the app server in order for the whole data flow in the process chain to continue without any breakpoints.
Current workaround / process improvement in place:
Based on the above limitation and upon further research, I was able to apply the OSS Note to give us the option of maintaining multiple DTPs for the same data target with different filter values.
So, even if have individual data stream for each territory with a different DTP the issue still remains where the process variant (ABAP program to check if file exists) or the InfoPackage load if the ABAP program is removed will fail.
Which means due to the above fact, the support team is alerted about the process chain failure.
Question / Suggestions required:
The main questions or any suggestions would be welcome, if one of you can let us know an approach where the flat file check program doesn't have to give a hard failure in the process chain for the rest of the process chain to continue with the loading process. (As in order for the rest of the process chain to continue the only options we have are Error, Success, Always).
I have also looked into the Decision process variant available in the process chain, but based on the options available within I cannot utilize it for the loading process.
Error can be caused by generating an error message in the ABAP program which in turn is causing the issue of alert being sent over even if the rest of the process chain finishes.
Success would mean the flat file needs to be available. Always cannot be used in this case as it will cause a failure at the InfoPackage level.
If the InfoPackage load can be avoided without a hard error to be generated, the process chain does not have to remain in the failed state which in turn will not trigger any alert to the support team.
Please do let me know if you need more details about the above process improvement question.
Thanks
Dharma.

The main issue with this as you mentioned is that the file has to be available for sure.
We had a similar issue - we had a very critical data load that had to happen everyday , failure of the file getting loaded would mean that the reports for the day would be delayed.
We were running on UNIX and we implemented a simple UNIX command that would not complete till the file was available in the app server.
Something like
while ( the file does not exist )
delay of 15 seconds
you will come out of the while only after the while completes which means that the file becomes available.
You can write a similar ABAp program to check file availability if required and put it into your program.
we also had a failover process where we created a zero byte file with the same name if the file did not come beyond a certain number of tries and the PSA would load zero records and the data load will continue.
Edited by: Arun Varadarajan on Jan 26, 2009 10:18 AM

Similar Messages

  • Flat File Automation

    Hi Friends !
    1) We have the flat files which will be monthly stored in the folder "e:\bitrans\" & the file name will be 20111101.csv & 20111201.csv.
    2) We need to automatic this process so that we can schedule the process chain.
    3) I was thinking to put the routine into the datasource & infopackage. Code is shown below:
    DATA : YEAR(4)       TYPE C,
             MON(2)        TYPE C,
             DATE(2)       TYPE C,
             RESULT(8)     TYPE C,
             STR1(11)      TYPE C,
             STR2(4)       TYPE C,
             STR_FINAL(30) TYPE C.
      YEAR = SY-DATUM+0(4).
      MON  = SY-DATUM+4(2).
      DATE = SY-DATUM+6(2).
      CONCATENATE YEAR MON DATE INTO RESULT.
      STR1 ='e:\bitrans\'.
      STR2 = '.csv'.
      CONCATENATE STR1 RESULT STR2 INTO STR_FINAL.
      P_FILENAME = STR_FINAL.
    Below code gives the path name correctly "e:\bitrans\20111121.csv" but when I am checking the preview, it showz the error "Syntax error in , row 34 (-> long text)
    Message no. RG102
    Diagnosis
    Field "" is unknown. It is neither in one of the specified tables nor defined by a "DATA"   ...
    Any advise or any other way to do?
    With Regards
    Rekha

    Hi Rajini,
    Ask UNIX team to write a code for file watcher which can wait till the file arrive into the unix folder. Once the code is ready, create a OS command in SM69 and define the system command and parameters like below
    Operating system command : sh
    Parametrs : /var/xx/xx/<xx>.sh (path of the unix code)
    Now the create process chain and call the OS command process type and provide the execution details like :
    System command : Name of the system command which you have created in SM69
    Additional Parameters : File patch name which include file name / time of intervels / till what time it waits
    If it success, keep schedule a infopackage process type else exit.
    Hope it would helps you.
    Please let me know if you need some more clarification while implementing.
    Regards,
    Venkata

  • How often in the real time projects extract data from flat files n process

    I am going thru teh BODS data integrator, and trying to understand the demand of ETL services extract data from a flat file, is that really impt in teh real time jobs.
    Thank you very much for the helpful info.

    Hi,
    As per the inputs given by you guys i started loading data from flat file.
    I try to load 28 files from i which i was able to load 24 files succesfully.For the other 4 i got this error messages
    1) Error 'Enter period in the format __.YYYY...' at conversion exit CONVERSION_EXIT_PERI6_INPUT (field CALMONTH record 1, value DUMYTRA)
    Message no. RSDS012
    2)  a) Error 'The argument '1,008.00' cannot be interpreted as anumber' on assignment field QUANT_B record 11714 value 1,008.00
    Message no. RSDS013
       b) Error 'The argument '1,110.00' cannot be interpreted as anumber' on assignment field QUANT_B record 15374 value 1,110.00
    Message no. RSDS013
    3) a) Error 'The argument '1,140.00' cannot be interpreted as anumber' on assignment field QUANT_B record 1647 value 1,140.00
    Message no. RSDS013
       b) Error 'The argument '2,028.00' cannot be interpreted as anumber' on assignment field QUANT_B record 4625 value 2,028.00
    Message no. RSDS013
    4) Error 'The argument '1,151.00' cannot be interpreted as anumber' on assignment field QUANT_B record 7808 value 1,151.00
    Message no. RSDS013
    I'am unable to trace out what is the error exactly.
    I checked this values in files they are perfect.
    can anybody please guide me on this issue.
    With Regards,
    Pradeep.B

  • Simples for IDOC - Flat files (Formated) process

    Hi all,
    I m looking for same exemple showing how to create formated flat files from a standard IDOC.
    Thanks in advance,
    Fouad,

    hi,
    have a look at this :
    https://websmp102.sap-ag.de/~sapdownload/011000358700001795162005E/HowToIDocXMLToFlat.pdf
    abap mapping from IDOC to flat file
    all the code is inside the pdf
    or you can generate a file from R3 directly
    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • PROCESS CHAIN and flat file

    hi xperts,
       I tried to load the flat file to ODS  in the process chain.
    I got this error:
    An upload from the client workstation in the background is not possible
    ,can anybody tell me how to solve this error.What are the proper settings for loading a flat file in process chains.

    Hi,
          in the process chain at the background, u cannot load the data using the option Client Workstation instead you would need to select the option Application Server and then save it , go to the schedule tab of the IP scheduler and then click on the start button and then go to monitor screen, u willt hen see the records being extracted.
    1. change the option to Application Server
    2. Save
    3. under schedule tab in Infopackage scheduler , select "Start to load data immediately" and then click on Start button.
    4. after u see "Data was requested" at the status bar of the Infopackage scheduler then you click on Monitor icon and see the records being extracted.
    Do let me know if it was successfull or not.

  • Can SAP XI AS2 Adapter process flat files? Pl. tell me how to configure it

    I have a requirement to read and write delimited ASCII flat files using the AS2 adapter in SAP XI. The AS2 adapter should be able to read from delimited ASCII Flat files and also write to delimited ASCII flat files. Kindly let me know how to configure the AS2 adapter so that it can read and write delimited flat files. I badly need to know this configuration for a client requirement which requires file processing by the AS2 adapter in XI 7.0. Thanks in advance

    Hi,
    Is the requirement is to just read the flat file and process it ? if so, u can use File Adapter provided , ur source system provides u the data in the file format in the some directory
    following thread discussions may help u -AS2 adapter-
    Seebuger AS2 adapter for XI as sender for multiple messages
    Seeburger AS2 Adapter
    Hope this helps,
    Regards,
    Morthy

  • EJB +FLAT FILE READ options

    Hi Form
    I know it's really Against the policy to read a FLAT File in EJB env,
    But On a classic scenireio , When one has to use a 3rd party tool with Flat file Read / Write complications arise How dos one Cope with this manner
    With regards
    Karthik

    Hi Form
    Yes Some day's ago In did post the form , but returned without results,So hence re posting the form
    I am working on NLS [ Natural Language Processing ] String sequence and would like to use the same along with EJB's ]
    There is a 3rd Party ( JWNL ) Package avaliable on Web which uses the FLATFILE Read capability and Free one in it's env.
    For the JWNL to work ,it has to read some FLAT Files for processing
    Synonyms,Cordinate terms...
    It this is the classic Scenerion to use within the EJB HOW TO HANDLE??
    Plz help
    With regards
    Karthik

  • I don't know why it takes too long time to sample flat file.

    I don't know why it takes too long time to sample flat file.
    OWB Client 10.1
    While importing a flat file of fixed width ,
    in the screen "Flat File Sample Wizard" shows the text box number of rows with default value 200.
    I want to extend this value to 700,000.
    But, it takes too long time (over 5 hours) to sample it.
    Do you know why it is happend? or How can i fix this problem?
    Thanks in Advance.
    Regards,
    JWS.

    Hello,
    Actually flat file sampling process’ goal is to capture the structure of the file. That’s why initially the sample size is set to 200 lines.
    The question is why you are trying to perform sampling by 700000 rows? Are you expecting some change in structure beyond this mark?
    If so, and you want to capture the fact that your source file is multi – typed, your better prepare small file for sampling outside the OWB.
    Sergey

  • Error while creating process chain for flat file loading

    Hi All,
    I had Created a process Chain to load Transactiion data(Full load) form flat file which is in my computer.
    start>Load>DTP>DeleteIndex>DTP loading CUBE--> Create Index
    but the system is throwing an error as "An upload from the client workstation in the background is not possible."
    I dont know why this error is coming?
    Can some one help me
    Regards
    Mamta

    Hi Mamta,
    Basically if you want to load the DS through FF using process chain, the FF has to be placed in Application server. We cant load the FF when it is located in the client local workstation(FF On your PC).
    So better you remove the Infopackage step from the PC. Load the IP manually. Once it is completed you can start the process chain with the following steps:
    start>DTP>DeleteIndex>DTP loading CUBE> Create Index
    Hope it is clear & helpful!
    Regards,
    Pavan

  • Error while trying to process multiple Recordsets in Flat file.

    Hi All,
    I am working on Flat File to Flat File scenario and my structure is as follows.
    Recordset
         Record1
              Field1
              Field2
         Record2
              Field3
              Field4
         |
         Record9
              Field5
              Field6
         I am going to receiver multiple Recordsets from my input and need to pass them as output flat file after doing some manipulations in mapping(I am using Java mapping).
         In Moni I am able to see multiple Recordset XMLs created but the message is failing in receiver communication channel with error
    "Failed to process message content. Reason: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure '' found in document', probably configuration error in file adapter (XML parser error)' (Software version: 3.0.1)"
         When I am trying to pass Single Recordset I am able to see the output, but when I am trying with multiple Recordsets it is throwing error.
         Can anybody help me in finding the root cause to this problem.
         My Receiver channel Content conversion is as follows.
         RecordsetStructure: Record1,Record2, -- - - ,Record9
              Record1.fieldFixedLengths     
              Record1.fieldNames
              Record1.endSeparator so on till Record9
    Regards,
    Jayaram.G

    You might want to check the following things
    Are u specifying field names,separators for Record1,Record2..Record9.
    Is you occurence repeats after record1..record9 again?
    Change your  structure occurence as per the runtime data you provide..
    See whether your java mapping modifies the structure that does not match with fcc configuration. You might want to pay attention over there too.

  • Idoc to flat file using Integration process does not show up at all

    Hello All,
    I created a scenario IDOC to Flat File using Integration Process and one without IntegrationProcess. I am able to execute the one without Integration Process easily.
    However when I send the IDOC from SAP then the Integration Process scenario just does not work.
    I Checked SXMB_MONI  There is no entry for the Integration Process.I can see entry for other without Integration Process.
    SXI_CACHE : I can see my Integration Process active
    SWEQADM :  I have activated the Event Queue and Background job
    SWF_XI_ADM_BPE :  ALL BPE is showing green status.
    All syntax check on IP are fine.
    There is no Basis Help for me so  there could be some additional basis steps which need to be configured.  Has anyone faced such an issue with Integration Process?
    Regards
    Prashanta

    Hope this might help you. when u configure an IDoc as Sender with BPM this is how you proceed.
    <b>1<b>. let us split the scenario into two</b>.</b>
    a. <b>Sender to BPM</b> ( Integration Process).
    b. <b>BPM to Receiver</b>.
    <b>2. First let us configure the first Sender to BPM.</b>
    a. Sender Agreement( <b>Not required</b> ).
    b. Receiver Agreement( <b>NOT Required</b>).
    c. Receiver Determination( Sender Service, Outbound Interface, Receiver Service(<b>Integration Process</b>).
    d. Interface Determination( Inbound Interface(Sender Abstract Interface), Message Mapping(NOT Required if your using transformation stepin Integration Process)).
    <b>3. Now let us configure the Second BPM to Receiver.</b>
    a. Sender Agreement( <b>NOT Required</b>)
    b. Receiver Agreement( Sender Service(<b>Integration process</b>), Receiver Abstarct Interface,Receiver service, Inbound Interface).
    c. Receiver Determination( Sender Service(Integration Process), Receiver Abstarct Interface,Receiver Service).
    d. Interface Determination( Inbound Interface, Message Mapping(<b>NOT Required</b>)).
    So Finally we have <b>One Receiver Agreement</b>, <b>Two Receiver Determinations</b>, <b>Two Interface Determinations</b>.
    Please let me know if you have any more queries.
    Regards
    Gopi

  • Error Processing a line in Flat File ActiveSync

    We are using IDM 5.5 running on Websphere 6.0.2.3.
    We are feeding a caret seperated flat file to IDM which in turn writes to Sun One Directory Server.
    A sample format of the caret seperated file is
    ssocorrespondlanguage^ssouid^mail^cn^sn^givenname^appaccess^uid^ssostatus
    ^A1C1C423-71F0-138F-CB8C-BCC3BAAF484F^[email protected]^Luigi Marra^Marra^Luigi^portal^[email protected]^A
    ^3DCC1E95-4E7D-113A-BFC0-AAA3BA195331^[email protected]^adhi asokan^asokan^adhi^portal^aadhees^A
    We are facing an issue where IDM is not able to process a line.
    I suppose its because of the "@" or "." character in the uid field as higlighted. Not sure though.
    But am not able to figure it out how to aviod this.
    The error which we are getting is
    2005-12-02T15:31:11.152-0500: Error Processing Line: {gessouid=A1C1C423-71F0-138F-CB8C-BCC3BAAF484F, sn=Marra, cn=Luigi Marra, uid=[email protected], gessostatus=A, gegcfappaccess=portal, mail=[email protected], givenname=Luigi, gessocorrespondlanguage=, diffAction=create}
    com.waveset.adapter.iapi.IAPIException: Item Resource:uniteam.it@GECF_B2B_FF(id=null) was not found.
    Have someone seen this issue.
    Or someone have any idea on this.
    Thanks.

    Thanks for the reply.
    Sorry! I was out of pocket for couple of days........
    I just double checked. I am using unique Employee ID as the "Unique key for diff" and also I have 'process diff. only' flag to set to true.
    In my tests, I modified only contractor expiry date in the incoming sap flat file and then tried processing the file. It gave me the above error. Please note that the same employee id was available in the FFA* file also.
    Interestingly, I tried the same test for another account and it worked for that account. That's what actually totally threw me off.
    Thanks once again.........
    - Lalit

  • Multiple flat files appended, is file locked until all processed?

    Hi All,
    Have a scenario in place where we are collecting multiple flat files on ECC and using append mode on the receiver file adapter to create a single file for final output. We are only interested in submitting the output to it's target after all files sent to PI have been appended.
    Does PI 7.0 lock the appended file until all files have been appended so I am sure I end up with a complete single file on output? If not, what are my options to ensure a completely appended file is output? Would it be a viable option to pass the appending file through another sender file adapter using 'msecs to wait before modification check'?
    Thanks!
    Don
    Edited by: donald.meredith on Dec 1, 2011 2:31 PM

    How many files are you collecting from ECC and appending at receiver side and how much time it is taking to complete the process?
    if its possible to schedule your business to read data from FTP after completing append then no worries, else sometimes it creates trouble.
    The option you mentioned is reliable one , but you ended up creating one more interface.
    Regards,
    Raj

  • Flat File Active Sync - Notify  admin incase of data processing errors

    Dear Friends,
    We have couple of Requirements to use OOTB flat file active sync adapter
    1. To read data from a flat file and update the records in Sun Identity Manager system
    2. Notify admin if there are any data processing errors while reading data from a flat file. The data processing errors can occur if there is an invalid data. for example, lets say the input flat file has 3 columns defined, but the file conatins records which has four values.
    firstname,lastname,email
    testfirst,testlast,[email protected],12345
    Req#1 is working fine. There are no issues with that.
    Req#2: if the file contains invalid data, i noticed that the active sync adapter throws an Array Index out of bound exception. so, we need to send an email notification to the admin whenever data processing errors occurs.
    I noticed that whenever the data processing exception occurs, the active sync adapter stops processing records and the active sync input form was not triggered. Unless active sync form was triggered, it's very difficult to determine whether the data was read successfully or not.
    Please let me know if there are any configurations/customizations to me made on OOTB flat file active sync adapter to handle data processing errors and send email notifications to administrators.
    Appreciate your help
    Thanks
    Vijay

    Hi,
    We have same requirement that
    "Notify admin if there are any data processing errors from a flat file.
    The data processing errors can occur if there is an invalid data or account is locked etc..."
    In short notify admin if any error logged in Active sync Log file while active sync runs.
    Yes,I noticed same that whenever the data processing exception occurs, the active sync adapter stops processing records and the active sync input form was not triggered. Unless active sync form was triggered, it's very difficult to go ahead to meet the requirement.
    Please let me know if there are any configurations/customizations to me made on flat file active sync adapter to send email notifications to administrators.
    Thanks,
    Sudheer

  • Flat file upload in Process Chain error!

    Dear Expert:
       We wirte routine in infopackage and use ftp upload flat file from BW Application server(AL11--> can open the file), I manually upload, it can sucessful upload, but in Process chain, it always deal with the process and display yellow light. I must manually stop the job.
    any sugession for me? thank you very much!
    Best Regards
    Bessie

    Dear all:
        I found the way to slove this problem. in the Routine, i create a  TCP/IP connection. I adjust it manually in SM59.
      At "Technical Setting" Tab:
    Set Activation Type: Start on Application Server.
    Set Start type of External Program: Remote Execution
    That's OK!
    Thank you for your feedback!
    Bessie

Maybe you are looking for

  • Unable to view data in the dataform

    I'm trying to update some forecast info & ran into an issue. I needed to update Contract Labor in the Lab Hierarchy, but the line was missing on the input form. I tried adding it back, and was able to get the line to show up , but it's showing all ze

  • Not Required Field in Form

    I'm trying to create a registration form with required and not required fields, but I'm getting a data base error (Column 'city' cannot be null) in those fields that I leave in blank. I noticed that in the Data base palette (DW CS6) all the table's r

  • Fatal error while executing BDC in background for PFCG transaction

    Hello, I have requirement where I have to create or modify roles in PFCG transaction. I used BDC to do this. While executing in foreground it works fine but in background mode it is giving me runtime error as "Control Framework: Fatal error - GUI can

  • HELP -Need to record in 640x480

    I need to take Captivate 2 shots of Windows XP in 640x480 resolution. (Note: It will not help me to resize to 640x480 after recording ) XP normally allows a minimum resolution of 800x600. I've been told to choose the compatibility tab in preferences

  • HT201272 Does anybody else have uploading issues with the FB cover photo maker app?

    I purchased the FB cover photo maker from the app store, it has some glitches in it that close the app and you have to start over, but the frustrating part is that it won't upload the cover photo created to FB...............AAARRRGGGGG!