Pipe separated flat file upload

Hi ALl,
Can any one tell me how to upload a flat file (field separator is pipe |) using the FM GUI_UPLOAD.
And than how to split the fields into there corresponding table-fields.
Thanks in advance.
regards
satish.

Upload the flat file into a flat itab using the GUI_UPLOAD.
Types: Begin of ttab,
       rec(1000) type c,
       end of ttab.
data: itab type table of ttab with header line.
After you have the data in the flat itab.  Loop thru it and split at the pipe(|).  Update another itab with your data.
data: Begin of itab2 occurs 0,
      field1(10) type c,
      field2(10) type c,
      field3(10) type c,
      endo of itab2.
Loop at itab.
split itab-rec at '|' into itab2-field1
                           itab2-field2
                           itab2-field3.
append itab2.
endloop.
Regards,
Rich Heilman

Similar Messages

  • Problem in Flat File Uploading

    Hi everyone
    During a flat file uploading, I get a message for each record of my SKU (Stock Keeping Unit), for eg for SKU 1017023, I got a message
    <b>Value '1017023 ' for characteristic PISKU is in external format     RRSV     9</b>
    PISKU is the field name.
    The whole extraction is failing.
    Kindly provide me some suggestions as soon as poosible!!
    If possible mail me at
    [email protected]
    Regards
    Gajendra Singh

    Hi,
    It seems there is a space in the value '1017023 '.You have to edit in PSA and then send it again else delete the request and change the flat file entry and reload the data.
    Hope this helps
    Assign points if useful
    Regards,
    venkat

  • How To guide...for Flat File upload for User-Defined variables

    Has anyone got link to the guide that describes how to do a flat file upload for populating User-Defined Variables ?
    Any assistance will be appreciated.
    Uche

    SAP BW Business Planning and Simulation "How To" Guides
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/ab9fd590-0201-0010-2590-be78eb70015c
    How to Upload User-Specific Variable Selections in BW-BPS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to upload user-specific variable selections in bw-bps.pdf
    this is what you are looking for ?
    Message was edited by: Murali

  • BPS  Flat File Upload Error Messages

    Hi,
    I am using the BPS flat file upload and am getting error messages. These error messages are coming from the user exit in the characteristics relationships. Unfortunately the message does not indicate which line on the upload file the error is for. In the user exit it does not pass the line no of  the flat file that is being processed.
    Does anyone have any ideas how the message could be enhanced to indicate the line in error or if there is another exit I could perform the validation in?
    regards
    Paul Cairncross

    Hi Sai,
    The issue is not the particular message. The message is in fact my message in the user exit in the characteristic relationships. The issue is when using the flat file upload the message does not indicate which line in the file the message apply's to. Looking at the userexit no line number is passed. This is not a problem in the web as the specific line is highlighted when the user is keying in the data.
    Regards,
    Paul Cairncross

  • Create a flat-file upload for a BO XAI Inbound Service?

    Hello all,
    If we don't have a schema defined for a BO XAI Inbound Service, how can we create the XSL and the flat-file upload schema file for it.
    Any advice?
    Regards,
    Kerr

    I don't have problem to create the XSLT mapping.
    But because it is to create a flat-file upload for a Business Object XAI Inbound Service, it doesn't have a schema on the server as to the thread Create Schema for Business Object to use for XAI Inbound Service?
    And I can't create that flat-file upload without a schema on the server.
    Or I can use the BO XAI Inbound Service WSDL instead to create the mapping for the flat-file upload.
    Regards,
    Kerr

  • Flat file upload error message

    Hi Friends
    I have designed an infocube and when i try to load data after selecting the option of flat file upload, i get the following error message," You have no authorization for basic types(activity 03)". Please clarify what it means.
    regards
    kris

    hi Kris,
    it may due to lack of authorization, please run transaction su53 and capture the info to your basis team to add you the needeed authorization.
    hope this helps.

  • FLAT FILE UPLOAD INTO BI

    Hi,
    What kind of questions are needed to be asked (from client) for requirements gathering for a flat file upload (from legacy system) to BI? Basically what are all the questions that i need to ask them to make sure I have all information for designing a flat file extractor?
    Thanks

    I would ask them what do they want to report on from the legacy system and is data already in R/3?  I would also ask what kind of data is stored in the legacy system .... inventory, financial data, sales, etc ... Once I knew that, I would ask what do they want to report on .... stock quantities/costs, gl account data, revenue, deliveries, etc....
    Then I would ask, do you want this to be seperated from the R/3 datastream?  More than likely this will be yes, if not, fight to keep it seperated and possible in it's own cube/ODS and combine in a multiprovider (you need to use the same 0material, 0customer, 0vendor, 0gl_account info objects if you want to combine nicely on a multiprovider).
    If the database the legacy system is on is either SQL Server or Informix or Oracle, you may want to consider DBConnect and connect directly to their tables.
    In all cases, I try to avoid bringing everything in "just because we may need it".  If the system is legacy and it's been a legacy for 2 years, see what people keep going back for and grab that data only.  If someone claims to need data, but have not sought it out for 2 years, then the probably don't need it.
    Also, check the granularity of the data.  Do they need individual documents for legal reasons?  Can you summarize the data?  What are they going to use the data for?
    Brian

  • BPC delta flat file upload possible?

    Hi experts,
    Ive been trying to find an answer of whether or not it is possible to retain member data on manual flat file upload into a dimension. We have created a dimension (employee) and have created some dummy nodes member data and would like to determine if it is possible to then keep this manual member data while manually loading further member data through flat file load. Is this sort of manual flatfile delta load possible? If so how? What is best practice here?
    Also, is it possible to load data into a dimension using two methods IE manual upload file and then another form (IE BW load) without overwriting data? Im assuming this is where the merge data option comes in to play.
    Any guidance would be much appreciated.
    Regards,
    Danielle

    Hi Danielle,
    While uploading data, if you have added dimension members manually, then, it never gets deleted untill and unless you specify for it.
    In your scenario, you have created dummy members and want to upload data thru flat file. Then, the data will be uploaded only for those members for which you want to upload data, rest of the members will display the old data.
    As you rightly said earlier, while running data manager package, you need to select MERGE option instead of REPLACE & CLEAR data values. This keeps the old data intact and adds the new ones as well.
    Hope this clarifies further.
    Rgds,
    Poonam

  • Flat file Upload BSP page

    Hi Marc,
    I am following the July version of how-to. When generating the BSP page, I am told checkbrowser.htm and js.htm are not available. When I create a checkbrowser.htm and point the include to js3.htm, which is one of the page fragment available, there are a few other errors coming out. What am I missing?

    Do you already know if the flat file upload is possible from a multi planning area? Because I get the error message that my multi planning area does not exist when executing the function.
    Thnx.

  • Beginner - Flat file upload error Help Please

    Hi Everyone,
    I am trying to upload a flat file [.csv] for the first time.
    I created Info objects  Material Id, Material Name , Price as keyfigure.
    Material Id holds Material Name and Price as attributes and is With Text and With Master Data.
    For the Keyfigure, Price, I have selected Amount and defined as USD.
    In the flat file, i have Material id, Material Name, Price, Description for Text, its something like this
    Mid         M-Name   Price      DESCRIPTION
    10001     A              99.99     AA
    When I create an Application Component and thereafter create a data source for master data attributes for Material
    and select the flat file and upload it, then the data types for Keyfigure PRICE changes to FLTP Length 16, its no longer as DEC and i get some werid data for Price field, something like
    "99.990000000001E+02" instead of 99.99.   Why am I having this problem and how could this be resolved ?
    I thought i would start off with my best foot forward but it didnt work. Any kind of help would be highly appreciated. Thanks guys..Byee

    hi,
    these are the BI.7 steps
    BW 7.0
    Uploading of master data
    Log on to your SAP
    Transaction code RSA1u2014LEAD YOU TO MODELLING
    1. Creation of Info Objects
    u2022 In left panel select info object
    u2022 Create info area
    u2022 Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    u2022 Create new characteristics and key figures under respective catalogs according to the project requirement
    u2022 Create required info objects and Activate.
    2. Creation of Data Source
    u2022 In the left panel select data sources
    u2022 Create application component(AC)
    u2022 Right click AC and create datasource
    u2022 Specify data source name, source system, and data type ( master data attributes, text, hierarchies)
    u2022 In general tab give short, medium, and long description.
    u2022 In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    u2022 In proposal tab load example data and verify it.
    u2022 In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    u2022 Activate data source and read preview data under preview tab.
    u2022 Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    u2022 In left panel select info provider
    u2022 Select created info area and right click to select Insert Characteristics as info provider
    u2022 Select required info object ( Ex : Employee ID)
    u2022 Under that info object select attributes
    u2022 Right click on attributes and select create transformation.
    u2022 In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    u2022 Activate created transformation
    u2022 Create Data transfer process (DTP) by right clicking the master data attributes
    u2022 In extraction tab specify extraction mode ( full)
    u2022 In update tab specify error handling ( request green)
    u2022 Activate DTP and in execute tab click execute button to load data in data targets.
    4. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. Alternatively monitor icon can be used.
    BW 7.0
    Uploading of Transaction data
    Log on to your SAP
    Transaction code RSA1u2014LEAD YOU TO MODELLING
    5. Creation of Info Objects
    u2022 In left panel select info object
    u2022 Create info area
    u2022 Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    u2022 Create new characteristics and key figures under respective catalogs according to the project requirement
    u2022 Create required info objects and Activate.
    6. Creation of Data Source
    u2022 In the left panel select data sources
    u2022 Create application component(AC)
    u2022 Right click AC and create datasource
    u2022 Specify data source name, source system, and data type ( Transaction data )
    u2022 In general tab give short, medium, and long description.
    u2022 In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    u2022 In proposal tab load example data and verify it.
    u2022 In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    u2022 Activate data source and read preview data under preview tab.
    u2022 Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    7. Creation of data targets
    u2022 In left panel select info provider
    u2022 Select created info area and right click to create ODS( Data store object ) or Cube.
    u2022 Specify name fro the ODS or cube and click create
    u2022 From the template window select the required characteristics and key figures and drag and drop it into the DATA FIELD and KEY FIELDS
    u2022 Click Activate.
    u2022 Right click on ODS or Cube and select create transformation.
    u2022 In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    u2022 Activate created transformation
    u2022 Create Data transfer process (DTP) by right clicking the master data attributes
    u2022 In extraction tab specify extraction mode ( full)
    u2022 In update tab specify error handling ( request green)
    u2022 Activate DTP and in execute tab click execute button to load data in data targets.
    8. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. There are two tables in ODS new table and active table to load data from new table to active table you have to activate after selecting the loaded data . Alternatively monitor icon can be used
    if it is helpful assign points
    cheers
    sivaRaju

  • Flat file upload

    Hi
    when i m uploading a flat file in csv format, I m getting a problem.
    In the file field value is having (,) between the words Eg. Field Name :- Text Medium
        Value      :- Bachelor of Sci,Computer Sci
    Value is having the , between the words so when I m uploading the file by specifying Data Seperator as , and Escape sign as ; in schedular.. It is breaking the value in two parts like it consider "Bachelor of Sci" as the value for one field and "Computer Sci" as the value for another because of seperator ,. But i want the value in the same field.
    Please suggest me.
    Thanks & Regards
    Pankaj Angra

    Hi,
    Use a separate data separator and do the same in your flat file , since you have , as the data separator and the same value in your flat file, its treating the , as it should, i.e as a data separator and splitting the values into 2 different fields.
    Cheers,
    Kedar

  • Flat file upload in BW

    Hi expert,
    I'm using BI7 and I have got to upload a flat-file inside an ODS. The problem is that the file is for some fields Textual and for other fields Hexadecimal (Packed format).
    For example for this file structure:
    Field1 NUM 2
    Filed2 PAKED 5
    The first row can be:
    in textual:
    45
    in Hexadecimal:
    34 35 02 00 F8 20 1F
    In what way can I read this file? Binary mode? Textal mode?
    In what way do I need to set my datasource?
    Thanks

    Uploading of master data
    Log on to your SAP
    Transaction code RSA1—LEAD YOU TO MODELLING
    1. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( master data attributes, text, hierarchies)
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    3. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to select Insert Characteristics as info provider
    • Select required info object ( Ex : Employee ID)
    • Under that info object select attributes
    • Right click on attributes and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.
    4. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. Alternatively monitor icon can be used.
    BW 7.0
    Uploading of Transaction data
    Log on to your SAP
    Transaction code RSA1—LEAD YOU TO MODELLING
    5. Creation of Info Objects
    • In left panel select info object
    • Create info area
    • Create info object catalog ( characteristics & Key figures ) by right clicking the created info area
    • Create new characteristics and key figures under respective catalogs according to the project requirement
    • Create required info objects and Activate.
    6. Creation of Data Source
    • In the left panel select data sources
    • Create application component(AC)
    • Right click AC and create datasource
    • Specify data source name, source system, and data type ( Transaction data )
    • In general tab give short, medium, and long description.
    • In extraction tab specify file path, header rows to be ignored, data format(csv) and data separator( , )
    • In proposal tab load example data and verify it.
    • In field tab you can you can give the technical name of info objects in the template and you not have to map during the transformation the server will automatically map accordingly. If you are not mapping in this field tab you have to manually map during the transformation in Info providers.
    • Activate data source and read preview data under preview tab.
    • Create info package by right clicking data source and in schedule tab click star to load data to PSA.( make sure to close the flat file during loading )
    7. Creation of data targets
    • In left panel select info provider
    • Select created info area and right click to create ODS( Data store object ) or Cube.
    • Specify name fro the ODS or cube and click create
    • From the template window select the required characteristics and key figures and drag and drop it into the DATA FIELD and KEY FIELDS
    • Click Activate.
    • Right click on ODS or Cube and select create transformation.
    • In source of transformation , select object type( data source) and specify its name and source system Note: Source system will be a temporary folder or package into which data is getting stored
    • Activate created transformation
    • Create Data transfer process (DTP) by right clicking the master data attributes
    • In extraction tab specify extraction mode ( full)
    • In update tab specify error handling ( request green)
    • Activate DTP and in execute tab click execute button to load data in data targets.
    8. Monitor
    Right Click data targets and select manage and in contents tab select contents to view the loaded data. There are two tables in ODS new table and active table to load data from new table to active table you have to activate after selecting the loaded data . Alternatively monitor icon can be used

  • Flat file upload: constans in TRs?

    Hi,
    I am having a flat file, which has only limited fields, where as the requirement is to upload all the fields which are relevant!
    However,  for the remaing fields which are relevant are all constants!
    In a case such as the above said, can we have some of the fields from flat file and some as a constans in transfer rules?
    or in other words, can we have constants in flat file info source with out being physically present in the falt file?
    will the uplaod successful with these transfer rules?
    Thanks,
    Ravi

    Hi,
    OK now i got understood the problem!
    problem is with the 0CALMONTH field! some times it has values like 062007 072007. but as we know in excel all leading zeroes will disappear when you save it! and those fields are appearing as 62007 and 72007.
    now i have a note pad which has correct format of date field values as follows!
    210010      112006     -1663000
    210010     122006     4544
    210010     042007     4544
    210010     052007     11360
    second column is the date field.
    what should i declare in data separator and escape signs in scheduler?
    it is not allowing me to have blank values in data seperator.
    Thanks,
    Ravi

  • Error in flat file uploading

    Hi
    II upload a flat file with datas like "Order No" whitch is stored as De/12/Ce/1435, and "Date" stored as 1999-02-12. But when I look a preview I see "Order No" converted to number something like 000000001000000234 and "Date" is cut to only 1999-02-
    The file is a .csv separated with comas.
    After uploading it is in DSO and DAtaCube that way. How to solve that?

    Hi,
    The problem may be with the flat file. Just have only one record in the flat file. Open the CSV flat file in Notepad see what is the data displayed. If mappings are done correctly, the data displayed in notepad output will be loaded exactly into data target.
    Just try with one record.
    Regards
    Akhan

  • SemiColone (;) separated flat file

    I Have a flat file which is semi colone separated.
    Test;Test2;Test3
    32;23;23
    When passthruing it to ftp it failed to send to ftp . 
    Other files gets uploaded to ftp successfully.
    Is there any specific reason for this.
    Regards
    Ritu Raj
    When you see answers and helpful posts,
    please click Vote As Helpful, Propose As Answer, and/or Mark As Answer

    Few things you could try are as:
    Try to create a File send port and send this same file to a folder location.
    Try to upload this same file to the FTP location using comamnd prompt instead using the FTP send port. Do this from the same BizTalk Server 
    I agree with others here, File content should not make any difference. You can enable logging to see more. 
    Greetings,HTH
    Naushad Alam
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or
    Mark As Answer
    alamnaushad.wordpress.com

Maybe you are looking for