Field in Flat File 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.
Similar Messages
-
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. -
Fields in Flat File are separated by special characters
hello every one,
fIf fields in Flat File are separated by special characters
and If Flat File is given in Excel sheet , how to handle this kind of issues.
to Upload data into R/3 system, in BDC.
If u have sample program ,please send it ot me and explain ?
others give me hints...Hi,
you can use the function module ALSM_EXCEL_TO_INTERNAL_TABLE .
Check this sample code.
hi,
use the FM ALSM_EXCEL_TO_INTERNAL_TABLE.
PARAMETERS:
P_INFL like RLGRAP-FILENAME.
DATA:
BEGIN OF T_DATA1 OCCURS 0,
RESOURCE(25) TYPE C,
DATE(10) TYPE C,
DURATION TYPE P DECIMALS 2,
ACTIVITY(25) TYPE C,
B_NBILL(1) TYPE C,
END OF T_DATA1,
T_DATA TYPE ALSMEX_TABLINE OCCURS 0 WITH HEADER LINE,
BEGIN OF T_FINAL OCCURS 0,
RESOURCE(25) TYPE C,
DATE(10) TYPE C,
DURATION(15) TYPE C,
ACTIVITY(25) TYPE C,
B_NBILL(10) TYPE C,
END OF T_FINAL.
DATA : HEADER TYPE XSTRING.
Work Variables Declaration.
CONSTANTS:
W_Y TYPE C VALUE 'Y',
W_N TYPE C VALUE 'N'.
Work area.
DATA:
WA_DATA LIKE T_FINAL.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_INFL.
PERFORM GET_FILENAME CHANGING P_INFL.
START-OF-SELECTION.
PERFORM UPLOAD_DATA_FROMEXCEL.
FORM UPLOAD_DATA_FROMEXCEL.
Downloading the data from presentation server
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = p_infl
I_BEGIN_COL = 1
I_BEGIN_ROW = 2
I_END_COL = 8
I_END_ROW = 1000
TABLES
INTERN = T_DATA
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " upload_data_fromexcel
*& Form process_data
text
FORM PROCESS_DATA .
T_FINAL-RESOURCE = 'Resource'.
T_FINAL-DATE = 'Date'.
T_FINAL-DURATION = 'Duration'.
T_FINAL-ACTIVITY = 'Activity'.
T_FINAL-B_NBILL = 'Billable'.
APPEND T_FINAL.
SORT T_DATA BY ROW COL.
LOOP AT T_DATA.
CASE T_DATA-COL.
WHEN 3.
T_DATA1-RESOURCE = T_DATA-VALUE.
WHEN 4.
T_DATA1-DATE = T_DATA-VALUE.
WHEN 5.
T_DATA1-DURATION = T_DATA-VALUE.
WHEN 6.
t_data1-activity = t_data-value.
WHEN 7.
T_DATA1-B_NBILL = T_DATA-VALUE.
ENDCASE.
AT END OF ROW.
COLLECT T_DATA1.
ENDAT.
ENDLOOP.
LOOP AT T_DATA1.
T_FINAL-RESOURCE = T_DATA1-RESOURCE.
T_FINAL-DATE = T_DATA1-DATE.
T_FINAL-DURATION = T_DATA1-DURATION.
T_FINAL-ACTIVITY = T_DATA1-ACTIVITY.
T_FINAL-B_NBILL = T_DATA1-B_NBILL.
APPEND T_FINAL.
ENDLOOP.
ENDFORM. " process_data
*& Form get_filename
FORM GET_FILENAME CHANGING P_FILENAME.
CALL FUNCTION 'WS_FILENAME_GET'
EXPORTING
DEF_FILENAME = SPACE
DEF_PATH = P_FILENAME
MASK = ',. ,..'
MODE = 'O' " O = Open, S = Save
TITLE = BOX_TITLE
IMPORTING
FILENAME = P_FILENAME
EXCEPTIONS
INV_WINSYS = 1
NO_BATCH = 2
SELECTION_CANCEL = 3
SELECTION_ERROR = 4
OTHERS = 5.
CASE SY-SUBRC.
WHEN 1.
MESSAGE I999 WITH
'File selector not available on this windows system'(046).
WHEN 2.
MESSAGE E999 WITH
'Frontend function cannot be executed in background'(047).
WHEN 3.
MESSAGE I999 WITH 'Selection was cancelled'(048).
WHEN 4.
MESSAGE E999 WITH 'Communication error'(049).
WHEN 5.
MESSAGE E999 WITH 'Other error'(050).
ENDCASE.
ENDFORM. " get_filename
<b>Kindly Reward points if you found the reply helpful.</b>
Cheers,
CHAITANYA. -
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. -
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... -
Ignore unwanted field in flat file
Hi experts,
If I am loading a flat file but one of the field has to be ignored. Do I need to add it in Datasource and not map in transformation.You would need to add the field to the DataSource, so that reading the Flat File in would be correct. From that point forward, there would be no need to map it to target InfoProviders.
Edited by: Dennis Scoville on Nov 4, 2009 12:28 PM -
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... -
Short dump while reading a currency field from Flat file into internal tabl
Hi,
I am getting a short dump........saying number conversion dump (while reading a currency value into field in internal table from a fixed lenght flat file).........
Do I need to use a string variable to get the value from flat file or how ??
Please suggest.Santosh,
Thanks for your inputs,
But my internal table type is of DEC (5,2) , I am getting that... it needs to be of type 'C'. Can you suggest.
Ex :
MOVE wa_temp-infile_string+106(8) TO wa_item-QT_PERCENT
This didnt work
so i tried moving into a seperate variable
MOVE wa_temp-infile_string+106(8) TO v_percent.
and then write to
WRITE v_percent to wa_item-QT_PERCENT. -
Selecting fields for flat file input
I've built a scenario that uses the File adapter to load a flat file into SAP and fully understand the concepts. My problem is that I have fixed length file I need to load which has 50+ fields per row. I only need 10 fields per row and those fields are spread throughout the row. Using fieldFixedlengths I specify the length of each field - and it appears they must be consecutive fields. How can I specify the fields that I need.
For example my input file may be as follows
AAAAAAABBBBBBBCCCCCCCDDDDDDEEEEEEE
I only need AAAAAAA CCCCCCC and EEEEEEE. Is there a way to do this?Hi Robert,
I don't know why you want to upload all junk data there apart from importing only relevent fields. if i am concered to do so, i'll do this in outside the XI BOX. If that file is in come fixed format or lets say its in csv format, just open that file into excel and then try to remove the row you don't want and then save it again to the same file format. and then import and map inside XI it will be simple.
Also if you don't wanna to do this, then tell us what logic you wanna use to find which rows you don't want. I don't think if you are not sure or you already know what rows/fields u want.
Regards
Aashish Sinha
PS : reward points if helpful -
Hi All,
My scenario is Proxy to file, After testing my scenario the flatfile is getting generated without any errors.
I can able to see all the fields in receiver communication channel payload. But some fields are missing in flatfile which is generated after conversion.
This is my structure below
Record
---Header
a
b
e
g
---Trailer
c
d
---Details
e
f
And here is my content conversion below
Header.fieldFixedLengths 2,4,6,7
Header.endSeparator 'nl'
Trailer.fieldFixedLengths 3,5
Trailer.endSeparator 'nl'
Details.fieldFixedLengths 6,7
Details.endSeparator 'nl'
Actually in header there are nearly 34 fields, I can able to see all the 34 fields in reciever CC, But in generated flat file I can able to see only first 30 fields remaing 4 are missing in flat file.
it is like in the above structure In Header there are a,b,e,g fields.I am getting a, b fields e and f are missing in flatfile.
Thanks in advance.
Please suggest me the solution.
Thanks & Regards,
SatishHi Satish
As you said 4 fields values are missing out of 34. Are those fields values are coming as blank in the file or not at all coming.
Ex:
you have 4 fields a,b,e,g and in channels you have defined length as 2,4,6,7
If values for fields a,b,e,g are coming as 1,22,33,44444 respectively then the flat file is generated as
1-22--33----4444--- (Consider - as space here)
Now if you say e and g value then is the flat file generated as
1-22---------------
or
1-22--
Regards
Osman -
Need to read a field from flat file
Hi All,
In flat file i have one field which may contain 100 enteries separated by delimanator ',' (comma). There can be 1 , 10 or 100 enteries. I need to put them in the internal table . Please suggest me .
I have used the below logic .
i split the field in 100 variables and then appending the internal table . the problem here is even if there is only one entry , the logic will append 99 blank enteries . so can any one suggest , is there any other way do it . any Functon Modules available .
Thanks.Hi Chetan,
If i understand your requirement it is as below,
Flat file.
1,2,3,4,5,6,7,8,9,....
1,2,3,4,5,6,7,8,9,....
1,,,,,,,,,,,,,,,,,,,,
Now you read the first line and split into an itab of type string, and you are worried about the third line where not all the fields have values and end up creating blank entries. to fix this, simply
Sort the Itab, and use delete itab statement with the where clause as where column is ''.
This should solve it.
types: begin of t_data,
line type string,
end of data.
data: li_file_line type standard table of t_data.
split l_file_line at ',' into li_file_line.
delete li_file_line where line = ''. -
I ve date filed in flat file, like this
5/5/2007 12:00:00 AM
1/1/2007 12:00:00 AM
HOW could i take above date characteristic in my time dimension.
I m new to bw.
thanks
KSHi,
The date format should be YYYYMMDD in flat file.
IF the date format is not the above mentioned way, then you can change setting.
Going to System in Menu
System->User Profile->Own data.
Under Owndata you can change the date format to your requirement.
Check the below link also for detain info of coding:
Mandatory for Date field
Reg
Pra -
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
Maybe you are looking for
-
2011 Macbook pro painfully slow, but CPU usage is almost nothing
I brought this macbook almost a year ago now and expect that my warranty has almost run out. At first the computer was fine and i could run almost every program on the computer without effecting performance, the almost suddenly the computer became sl
-
Can I stream video to my wifi TV with Windows 8.1 on a Retina MBP
I was able to do it once. I was able to play video on my Sony HD TV from windows 8.1 in my 15" Retina MBP. The next day, that option disappeared. How can I do it again? What do I need to do? I know I can do it with my Apple TV with itunes. But I w
-
For today's random glitch.. incorrect responses are all gone.
After working through a problem with the results page continue button not working, I now have a full quiz (10 questions, no breaks) that is missing the incorrect answer captions. I KNOW I didn't delete these.. and I can't find any way to restore the
-
I am familiar with the certificates page when attempting to pull up AKO. Today the security risk caution popped up, I pressed the add exception button followed by Get Certificate. The window then informed me the site has a valid certificate but still
-
Display exception of function module on report
I am trying to explode BOM using the function module given below. Is it possible that i can display the exact exception that i get on screen. call function 'CS_BOM_EXPLOSION' exporting datuv = li_datuv mktls = 'X' mehrs = 'X' mmory = '1' mtnrv = li_m