Fixed length in flat file Datasource
Hi,
While creation of flat file data source we have noticed the option Fixed length in place CSV , Can any one explain about that with one scenario.
Thanks,
Sankar
Hi,
for process wise Loading CSV,Fixed length file is the same but file format is different, however you can check the below link
http://help.sap.com/SAPHELP_NW04S/helpdata/en/43/01ed2fe3811a77e10000000a422035/content.htm
check from point :f
Regards,
Satya
Similar Messages
-
Please, need help urgently!!!
I have a flat file with AMOUNT field without any currency field, because there is FIXED currency in flat file.
In DataTarget (InfoCube) I have AMOUNT with CURRENCY.
Got error while creating transformation between Flat File DataSource and InfoCube - Currency must be assigned.
How can I point in Transformation FIXED CUREENCY. It is stupid but I don't see 0CURRENCY in Target object list, just in rule details for AMOUNT. What's why I can't assign CONST currency to the 0CURRENCY object...
Should I somehow create and fill Currency field in DataSource?
or
Somehow point fixed currency value during transoframtion??Hi,
Write a transfer rule for currency unit make it as constant like 'INR'
r 'USD'..........etc...
hope it will help u........... -
FLAT FILE Datasource SERIOUS Problem
Hi
I want to read a header information in csv file to fill the FLAT FILE DATASOURCE structure.
I cannot read it by default as I have to IGNORE THE HEADER ROW otherwise it wont come up correctly along with otherdetail data that is below header row during extraction of CSV file.
How can i do that or How can I CALL A Function module or any other to fetch that header row ?
PLEASE HELP URGENTLY.
Thanksyou cannot read the header row only. But you can do a start routine within the transfer rules. There you can do whatever you like.
Perhaps you might have some troubles getting your data that far. Your header row must comply to the rules defined in your datasource like size or data type. So you might need to change some definitions of your datasource. -
I created a Flat File DataSource.
In the DataSource, I enetered InfoObject 0OUTAGTARGT in the Fields tab ->InfoObject Template column. I want this InfoObject to be mapped
into field KTWRT (Target Value) in R/3 table EKKO.
However, when I enter the the InfoObject 0OUTAGTARGT and hit Enter key, system prompts me to copy the properties. I choose Copy.
And then it says:
Reference field 0DER_CURR was added automatically.
Now I have ORDER_CURR entered in the Field column, with InfoObject Template 0ORDER_CURR.
In the Field column, I replaced the field ORDER_CURR with WAERS (Currency field from R/3).
When I save it, I hit the following:
Missing currency field / unit field ORDER_CURR
System expect the field ORDER_CURR to be entered in the Field column. But in my source file, there is no field call
ORDER_CURR. It is actually WAERS.
How can I overcome this?Maintain 0ORDER_CURR as it is needed by 0OUTAGTARGT.
Next, simply map WAERS to the ORDER_CURR field.
But it doesnt allow me to change. In DataSource ->Fields tab, I try to replaced the field ORDER_CURR with WAERS. When I click on Activate, I
hit the following:
Missing currency field / unit field ORDER_CURR
Please help. -
Infopackage Routine in flat file datasource
Hi,
There is a requirements to load the data from multiple flat files in folder into BI which source data is coming from other system. Each flat file has it own naming convention.
There are around more the 200 flat file (CSV.file) in folder,data source is flat file datasource.
Could any one help me in above issue.
Regards
RAMI assume they'll be using FTP to send the files... You have the layout defined and naming convention as well...
One option would be to create a user and folder in the BW server for the FTP to use it and put all files in the same place... From here you can define different Infopackages to read those files at specific times during the day or whatever schedule you guys agree...
A thing with the naming convention... Try to avoid using timestamps on the names and keep the names to be always the same... That way you just overwrite the existing files, the space usage won't grow much and you can make the loads automatic with the same file names...
Just some ideas... -
Mapping Quantity keyfigure in BI 7- Flat file datasource
Hi Guys,
I have a problem in creating transformations for Quantity key figure for flat file datasource. In my csv file quantity is just a number. i created a datasource and Infopackage and loaded data into PSA without any problem.
In cube i have quantity key figure of QUAN type with 0UNIT unit of measure. So when I try to map Quantity in datasource with quantity InfoObject, 0UNIT is empty. So I am unable to activate transformations.
Can somebody suggest me how to proceed with htis problem? Should I define Quantity key figure as just number?
Thank you in advanceHi Sneralla,
you can take one more field on you flatfile.. as units(ex: KG or CM.. like that) beside of the quanity filed.. and now load it into PSA and now create transformations... and now map this units filed to newly added field...
you can try this option.. becasue.. when you are loading Quantity field data from flat file means we need to mention the units also..
regards
@jay -
Flat File DataSource doesn't load properly.
Hi all,
we have a data file, which is tab delimited, saved as CSV and text versions. i have created a flat file datasource, mapped all fields.
I can load CSV version fine, but when use it on text version, it doesn't like it and can only return column one with the rest of the column blanked in the preview tab.
Setting:
In the "General" tab, everything is unchecked.
In Extraction tab, Adapter - "Load Text-Type File from Local Workstation"
Character settings - "Default setting"
Data format - "Separated with Separator"
Data separator - tab (00BB Hex)
Escape Sign - CR (00B6 Hex)
Number format - Direct entry
Thousand Separator - ","
Decimal point - "."
i have tried different setting, change number format to "User Master Records".
With the text version, the result in Preview can only display first column and Proposal preview can only shows one column. There is no error returned from the text version.
The CSV version can display all data and they are aligned as well.
what do i miss? is the text file not saved correctly? i can see all tabs and CR in the text version. it seems to be the tab is not detected properly or something.
RegardsHi,
Have a look at the below link:
Loading Text Files(.TXT) into BW with HEX option -
Hi gurus,
I have created a flat file datasource and it is activated successfully. but when i am trying to load data to that datasource. in the info package i am not able to see any fields in the dataselection and also it is giving me error when i am loading the data that data selection error. all the settings i did at datasource. can u pls suggest me to solve this problem.
and when i am trying to see load example data it is giving me
Option=1. Problem during file upload from Work-Station --> Long Text
thanks,
sridhar
Edited by: sridhar on Dec 11, 2008 1:02 PMIt is giving me
1 = FILE_OPEN_ERROR
2 = FILE_READ_ERROR
3 = NO_BATCH
4 = GUI_REFUSE_FILETRANSFER
5 = INVALID_TYPE
6 = NO_AUTHORITY
7 = UNKNOWN_ERROR
8 = BAD_DATA_FORMAT
9 = HEADER_NOT_ALLOWED
10 = SEPARATOR_NOT_ALLOWED
11 = HEADER_TOO_LONG
12 = UNKNOWN_DP_ERROR
13 = ACCESS_DENIED
14 = DP_OUT_OF_MEMORY
15 = DISK_FULL
16 = DP_TIMEOUT
17 = NOT_SUPPORTED_BY_GUI
18 = ERROR_NO_GUI
19 = OTHERS
Procedure
Check the option number to know the possible reason of error and correct the problem. -
Error in DTP creation for a flat file datasource
Hi SDN friends,
Please if somebody can give me a help with this, it will be very appreciate.
I have a DTP to load attributes master data into an infoobject. The master data comes from a flat file (data source flat file) .
The extraction mode is full, when I try to modify any selection in the "Update" tab, a message "Enter valid value" shows, but it doesn't give me any hint about which is the wrong value that must be checked.
The message ID is 00 002 and the and the text is the following
Enter a valid value
Message no. 00002
Procedure
Display the allowed values with F4 and correct your entry.
I think it may be something related to the flatfile datasource. Are there any special considerations to create a DTP to upload master data from a flat file?
Thanks so much for your attention and best regards,
KarimHi Karim,
I suspect that you might be entering values that are not in correct format as defined in BI DTP. Eg: date it could be DD.MM.YYYY in BI you might be giving MM.DD.YYYY similary you may be entering the wrong format for master data you are giving it in selections.
Hope it helps...
Best Regards,
Madhu -
Export data as fixed length ASCII text file
Hi,
Can someone tell me how to export query data or the data in a table as a fixed length text file. I use PL/SQL developer to query the data.
Many thanks,If you use SQL*Plus, you could try the following.
http://download-west.oracle.com/docs/cd/B10501_01/server.920/a90842/ch7.htm#1007441 -
Hai
Im loading the data from flat file to DSO in BI-2004s.
I have a flat file like below
ZEMP ZEMPNAME ZAMOUNT
10 London 100
20 India 200
Im trying to create the DataSource. But in 'Proposal' tab imgetting all three infoobjects in row instead of three rows . Like below
Im getting like
ZEMPZEMPNAMEZAMOUNT as a one value .
why it is like this
Pls tell me
kumarHi Ravi,
Hope this helps -
Loading Text Files(.TXT) into BW with HEX option
proposal tab
FIELDS TAB
http://help.sap.com/saphelp_nw04/helpdata/en/8e/dbe92341c84242be2c7d3917f1c197/frameset.htm
Bye... -
Dear All.
I have created one planning cube in which i have laoded the data through CSV file, after completing all the work, i need to move this on Production system but when i transport the only cube and aggregation level got transport not the transformation and the data source.
out production system in not open for change so i can not create the File datasource in it.
Please advice how can i move the transformation and the datasource to Production.Oops my mistake i was not choosing the Source System while transporting
-
Defaulting fixed length file fields to 'blank'
Hi,
I am currently working on an outbound interface which results in the construction of a fixed length record flat file. At the moment I am having to deal with each field in person to ensure that either a value,or a blank is mapped to the target field as each field is mandatory. Is there an easier way to do this such as using the 'default' setting in the data type definition with some special character to represent a blank so that I dont have to worry about missing values in my message.
Regards,
PeteHi
I have the same problem, and didn't find any way to default the fields.
It helps to use the function "mapWithDefault", but you still have to deal with each field.
Br,
Elling -
Flat File Hierarchy Datasources
We are creating several flat file hierarchy datasources. The datasources will be maintained in an external database.
I am familiar with the creation of flat file datasources for master and transactional data, but don't have good documentation for how the external flat file hierarchy is to be formatted.
We have reviewed the 2004 Netweaver Document "How to Download Hierarchies in BW" and have used the program referenced there, Z_SAP_HIERARCHY_DOWNLOAD, to download our hierarchies to then test the upload.
However, this has not worked.
Does anyone have the record layout that the flat file must be in to upload a simple 2-level hierarchy (for example groupings of 0vendor)?
Thanks, DougI think the URL you mention is http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm.
This contains the record layout instructions as follows.
5. Maintaining the hierarchy:
Choose Hierarchy Maintenance, and specify a technical name and a description of the hierarchy.
PSA Transfer Method: You have the option here to set the Remove Leaf Value and Node InfoObjects indicator. As a result, characteristic values are not transferred into the hierarchy fields NODENAME, LEAFFROM and LEAFTO as is normally the case, but in their own transfer structure fields. This option allows you to load characteristic values having a length greater than 32 characters.
Characteristic values with a length > 32 can be loaded into the PSA, but they cannot be updated in characteristics that have a length >32.
The node names for pure text nodes remain restricted to 32 characters in the hierarchy (0HIER_NODE characteristic).
The system automatically generates a table with the following hierarchy format (for sorted hierarchies without removed leaf values and node InfoObjects):
Description
Field Name
Length
Type
Node ID
NODEID
8
NUMC
InfoObject name
INFOOBJECT
30
CHAR
Node name
NODENAME
32
CHAR
Catalog ID
LINK
1
CHAR
Parent node
PARENTID
8
NUMC
First subnode
CHILDID
8
NUMC
Next adjacent node
NEXTID
8
NUMC
Language key
LANGU
1
CHAR
Description - short
TXTSH
20
CHAR
Description - medium
TXTMD
40
CHAR
Description- long
TXTLG
60
CHAR -
Hi Experts,
I need to load date from flatfile. In flatfile the date format is hh:mm:ss.
I have an infoobject with type TIMS which can store only 6 CHAR length.
How is it possible to read 8 characters length in file with this info object ??
Two solutions i have is to ask for a file in hhmmss format or
the second one is to read the date with a new infoobject and write a routine to convert date to the required format in the transforamtion.
Is there any better way to handle this situation with out asking for a change in file ??Hello Narasimha,
You can perform a conversion from 8 characters to 6 characters in the transfer rules of your flat file datasource.
In the transfer rule of the infoobject (with type TIMS), do the following:
1) Create an ABAP rule code
2) Select the 8 char field in the list of source fields
3) write the following ABAP code. This converts the data from the 8 char field to 6 chars:
concatenate trans_structure-<your 8 char field here>(2) trans_structure-<your 8 char field here>+3(2) trans_structure-<your 8 char field here>+6(2) into RESULT.
Hope this helps.
Maybe you are looking for
-
Multi-choice question - go back and re-answer?
Hello there, cp5. Request was to build an activity where learner is presented 4 questions each with two options. After answering the question, return to the list of 4 questions where their responses are measured accumulatively. After seeing the sum
-
How to correctly remove/install iBook battery plus battery problem
My iBook G4 (14 inch screen, late 2005 model) battery may need replacing. Lately when using only battery power, the computer has shut down suddenly when the power gets down somehere below 50%. If I were to get a new battery, what is the correct way t
-
Custom Styles in TextEdit - Background Highlighting
Hi, I defined a custom/'favorite' style for use in TextEdit which applies yellow background highlighting to selected text. (The style was added to the GlobalPreferences.plist file, as I'm on Snow Leopard). The issue is that when I highlight text and
-
Downloadin​g Multisim
I'm having trouble starting the multisim program that I recently purchased. It will download, but the setup commands located inside the program give me various error messages. One is a non-compatible error and the other is a fatal error. I need some
-
No "Windows 8 touch" button in any version of FF.
I use Asus Transformer T100TA with a touchscreen and Windows 8.1 on board. I really want to try Metro mode for Firefox, but I can't find the necessary button in the menu as described in the article: https://support.mozilla.org/en-US/kb/quick-guide-fi