Flat file data upload - happens for only 1 column
Dear Experts,
Goal: To upload data from flat file (with 3 columns-char3,language,text) to characteristic (texts).
Problem: I am doing through CSV File but when i click on preview i am able to see data only in first column, the other two columns are empty.
More details:
I have created this data source in data source tab.
Adapter - Load text type file from Workstation.
data format -Seperated with seperator (CSV).
Data Separator - ,
Escape Sign - "
File name - C:\Documents and Settings\hans\Desktop\mtype.txt
Fields
/BIC/TSMOVTYPE CHAR 3
LANGU CHAR 2
TXTSH CHAR 20
Can anyone give me idea?
regards
BI Learner
Hi,
You can try this:
1. After ESCAPE SIGN, there will be an option " Number of rows to be left". Put 1 there.
2. In your flat file, leave the 1st row blank or add anything in the first row for all the three columns.Save as CSV file. Note that the file must have the same sequence as in the data source.
3. Check your transformations. Data source fields should be mapped correctly to the right side.
try to load now. Hope it'll help.
Preet
Similar Messages
-
Flat file data upload to ODS failed
Hi guys,
While loading the flat file data to ODS, it gets fails immediately without loading single record. Error message shows ::
<b>" Error when opening the data file <file name> (origin A)."
"Error in the data request"
"Error occurred in the data selection"</b>
I am trying to load the data manually thru Infopackage and file is lying in the Application Server and full access given to it. But the important part is when we try to load the file again without doing any changes, it run fine and loads the data without any issues. This happens with every load & everyday.
Any solutions?
Regards
SanjivHi CK,
Step-by-step Analysis status are as given::
<b><Red> </b> Data request sent off ?
<b><No colour></b> RFC to source system successful ?
<b><No colour></b> Does selectable data exist in the source
<b><Red></b> Data selection successfully started ?
<b><Red> </b> Data selection successfully finished ?
<b><Red></b> Processing error in source system reporte
<b><No colour></b> RFC to Warehouse successful ?
<b><Red> </b> Processing error in Warehouse reported ?
<b><No colour></b> Processing successfully finished?
<b><No colour></b> All reported data packets received?
<b><No colour></b> All data packets complete ?
<b><Green> </b> Have all Processing Steps been Carried ou
<b><Green></b> All Data Packets Updated in all Targets?
<b><Green> </b> Inadmissable Aggregation?
Regards
Sanjiv -
Best Practice for Flat File Data Uploaded by Users
Hi,
I have the following scenario:
1. Users would like to upload data from flat file and subsequently view their reports.
2. SAP BW support team would not be involved in data upload process.
3. Users would not go to RSA1 and use InfoPackages & DTPs. Hence, another mechanism for data upload is required.
4. Users consists of two group, external and internal users. External users would not have access to SAP system. However, access via a portal is acceptable.
What are the best practice we should adopt for this scenario?
Thanks!Hi,
I can share what we do in our project.
We get the files from the WEB to the Application Server in path which is for this process.The file placed in the server has a naming convention based on ur project,u can name it.Everyday the same name file is placed in the server with different data.The path in the infopackage is fixed to that location in the server.After this the process chain trigers and loads the data from that particular path which is fixed in the application server.After the load completes,a copy of file is taken as back up and deleted from that path.
So this happens everyday.
Rgds
SVU123
Edited by: svu123 on Mar 25, 2011 5:46 AM -
Flat file data load errror for Dates
hi
i am loading data thru flat file to Cube Daily.
Data is like:
order no....date1.............date2.......amount
1122..........20090101..20090102.....100
1123..........20090101..20090102.....500
1124..........20090101.......................200
now for some values the Date2 is empty
so when i load the flat file it gives a dump....
"Incorrect value for Date2 on record no. 3"
how to correct this??
there is a good possibility that date2 will be empty for certain recordsthank you very much for your patience.....
are you sure you are on BW 3.5
i cannot do display datasource anywhere !!!!
here are my options that i see in my bw 3.5 systems
if i click on Infosource i see the option of Assign datasource but not display datasource
if i right clik on source system i can see the option of change transfer rules, delete transfer rules etc. but no option of display datasource
if i right click on infopackage i can see option of change,rename,delete etc.
in source systems tab
if i right click on Datasource , i see change transfer rule option & object overview only
when i double click on change transfer rules, i see the option of
datasource/transfer structure and Transfer rules tab only
in datasource/transfer structure i see that output length is 8 and it is characteristics
in object overview i dont see any tab of fields /format
and also communication structure -
Hello,
I am trying to load a flat file into a datasource. When I execute the infopackage, i am getting a lot of errors for diff fields in the datasource like this:
Error 'An exception with the type CX_SY_CONVERSION_NO_NUM' at conversion exit RSDS_CONVERT_NUMBER (field DATE_OF_BIRTH record 1, value 12/)
What does this mean and what do I have to do to load the data properly into the PSA?
Thanks.Hi,
This may be due to following,
1. I guess you are using some Date data in your file. First check whether in your Datasource u have defined that field with correct data type( either Calday, calmonth...).
2. If you have declared correctly, check whther you are giving the data for Date in your file in correct format: Ex: 012007, 022008....
3. Check the sequence of the fields in your file and datasource, whether its correct or not.
rgrds,
v.sen -
Export Table to flat file and upload to FTP server for external vendor
I have done some extensive searches on the forums and I think I have an idea but really need some help. Basically have a table that needs to be exported to a flat file and uploaded to a FTP server so that our vendor can get the data Monday-Saturday and automated by sysdate. This data is used to produce daily letters that go out to customers.
After doing some searching I came across the UTL_FILE package and reading more into this right now but I am not sure if it is what I should be using to create the file.
I am using TOAD right now and can see how to do it manually however really need the file to create itself and send automatically at 6 am Monday - Saturday with the date at the end of the file name making it a unique file for each day.
Thanks in advance for all of your help.As Justin and others have mentioned I wrote [XUTL_FTP|http://www.chrispoole.co.uk/apps/xutlftp.htm] so you wont find it in the Oracle documentation. It's pure PL/SQL and uses UTL_TCP and implements an integrated PL/SQL FTP client / API. One of it's many overloaded procedures FTP's the contents of a refcursor straight to a FTP server of your choice, meaning no intervening file is required. Since it is pure PL/SQL, it is trivial to schedule using DBMS_JOB/DBMS_SCHEDULER.
Any questions just ask.
HTH Chris -
How to store the flat file data into custom table?
Hi,
Iam working on inbound interface.Can any one tell me how to store the flat file data into custom table?what is the procedure?
Regards,
SujanHie
u can use function
F4_FILENAME
to pick the file from front-end or location.
then use function
WS_UPLOAD
to upload into
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
CALL FUNCTION 'F4_FILENAME' "Function to pick file
EXPORTING
field_name = 'p_file' "file
IMPORTING
file_name = p_file. "file
CALL FUNCTION 'WS_UPLOAD'
EXPORTING
filename = p_file1
TABLES
data_tab = it_line
*then loop at it_line splitting it into the fields of your custom table.
loop at it_line.
split itline at ',' into
itab-name
itab-surname.
endloop.
then u can insert the values into yo table from the itab work area.
regards
Isaac Prince -
Errors when loading flat file data
We just test to load a very simple flat file data with only two lines and the two lines of data in preview of InfoSource is correct. But when run InfoPackage to load data, the monitor of the InfoPackage shows the following errors (see in between two dashed lines below):
Error getting SID for ODS object ZDM_SUBS
Activation of data records from ODS object ZDM_SUBS terminated
Error when assigning SID (details in long text)
Error when assigning SID (details in long text)
Error when assigning SID (details in long text)
Error when assigning SID (details in long text)
Error when assigning SID (details in long text)
Error when assigning SID (details in long text)
Error when assigning SID (details in long text)
Error when assigning SID (details in long text)
Value 'Bottom' (hex. '0042006F00740074006F006D') of characteristic ZRATEPLN contains invalid characters
Value 'Dealer' (hex. '004400650061006C00650072') of characteristic ZCHANNEL contains invalid characters
Value 'Bottom' (hex. '0042006F00740074006F006D') of characteristic ZRATEPLN contains invalid characters
Value '19884/' of characteristic 0DATE is not a number with 000008 spaces
Value '/19812' of characteristic 0DATE is not a number with 000008 spaces
Value '19884/' of characteristic 0DATE is not a number with 000008 spaces
In the flat file (excel sheet saved as a CSV file), for each row of the data, there are two fields which are start_date and end_date and the date format is MM/DD/YYYY and in the Transfer Rule, we transfer the date format from MM/DD/YYYY to YYYYMMDD which is required by DATS InfoObject type in BW. If you need the excel sheet of data in order to answer our questions about the above errors, you can give us your e-mail address and we can send the simple two rows of data excel sheet file to you.
Thanks!Hi Kevin,
1.You can use lowercase letters in the values for your characteristics provided you have checked the lowercase checkbox in the general tab page of Create characteristic screen.But when you do so no masterdata tables,text tables, or another level of attributes underneath are allowed.
OR
Use only upper case letters in your characteristic unchecking the above mentioned box.
2.The date format in the CSV file should be yyyymmdd.It should have 8 characters . I guess there is something strange in your "calendardays" since I could not find 8 characters irrespective of the order.Do not forget to use zeroes.
Hope this works.
Reward if it is helpful.
Regards,
Balaji -
Flat File Data Loads to BI 7.0
Hi Experts,
Please update me what is the best approach i have to follow for the below scenario of Flat File Data Loads
I will get data in Excel ....with Two worksheets....from the user
My requirment is to place the file in Central location avaliable to the user and BW to update if any changes necessary and want to load data(full0 to bw from file if there are any changes
Please update me how to deal with this scenarion of Two work sheets,In a central location...
ThanksEasiest thing would be to use a DSO with change log to handle the changes to pass onto to any cubes and load a full every night
Then let the change log worry about any changes to the workbook
You have to be careful about the DSO keys though for this to work properly
Now to automate the loads - just how are you planning to create the infopackage as it will only read a csv and not the binary xls
Well it will read the binary xls if you maybe use a dbconnect with a jdbc driver to read the xls (that's on my next thing to do - but if you are as your user id suggests a "bw learner" then that may be a bit complicated)
The only other thign to do is to write a macro that automatically creates the csv file on the app server when the user quits the xls
Or off course you can just dump the csv each night - but then that is a manual task and in systems I design I hate manual tasks as staff go on holiday and peopel change jobs and it's not really very SoX compliant -
How to convert the flat file data into sap tables . ?
how to upload flat file data into sap table . before upload mapping is also there in some filds . any one can give me some steps how to upload and mapping . ?
Hi
See the sample code
REPORT zmmupload.
Internal Table for Upload Data
DATA: i_mara like MARA occurs 0 with header line
PARAMETERS: p_file LIKE ibipparms-path. " Filename
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Upload the File into internal Table
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = i_mara
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Upload the Data from Internal Table
MODIFY MARA from TABLE i_MARA.
Regards
Anji. -
Flat file data load - ODS - Look up data in Startroutine
Hi All,
There is a requirement that I have two ODS say 1) ABC and XYZ.
For Both ODS , We load flat file data.
First we load data to ABC for current fiscal period
During the data load to XYZ, We lookup part nos data in ABC for current fiscal period , if data there , for those part nos we load XYZ Flat file data.
My requirement is that , I need to fetch part nos data from ABC for Fiscal period < current fisacl period. Then I need to extract already loaded data for those part nos from XYZ and Mark the flag field as Non reportable .
How can we achieve this ?
Please advice
Thanks
AjayHi ,
Thanks for your reply.
I have done so. When I add lines of My Internal table data to DATA_PACKAGE, It gives the syntax error that both structures are not unique. We have several fields in XYZ ods but they are not in Communication structure.
Thats the problem. Also , if I write the code , will it be executed for each datapackage. I mean , for each datapacket process , my code will fetch whole data from ABC and then from XYZ. Repetion will be there?
Any other logic can i use ?
Thanks
Ajay -
How to Merge Flat file data and DSO Data
I have one DSO A which has more than 20 objects (5 of them are keys), which include 0comp_code,0gl_account,. I have a Flat file which has the following fields ,COMPANY CODE, GLACCOUNT and SUPERVISOR ,EXECUTIVE,ANALYST. My requirement is to get a DSO with consolidated data from DSO A and Flat File data. That means for exapme, In my DSO A , I have US01 COMPANY CODE so when I merge the data in DSO C It should diplay the data for the supervisor exe and analyst for DSO A as well
When I added with 2 DSOs A (ECC ) and B (Flat file)..C is getting the data from B and its appending the data for Flat file at the end...So I want to merge both...DSO A should match up with DSO B flat file company code and gl account and should display the remaining fields
I think its clear..Can any one let me know the solution ASAP...
Note: We are on BI7.0 not 3.5...
Thanks in advanceI have the following key fields in DSO A :
0COMP_CODE,OGL_ACCOUNT, 0CHRT_ACCT,0FISCVARNT,0FISCPER,0AC_DOC_NUMBER,0ITEM_NUM.
Here are the total fields in Flat File:
COMPANY CODE,GL ACCOUNT,SUPERVISOR,ANALYST,EXECUTIVE.
Here am taking 0COMP_CODE and 0GL_ACCOUNT as key fileds in DSO B for Flat File...
For every month there will be 5 to 6000 records for Flat file ...
Thanks -
Urgent: Transport of Flat File Data Source
While transporting flat file data source is it required to transport first in a separate request or everything can go in 1 request.
Thank you,
samHi,
In this case it can go in one request as no replication is needed. But for other datasources, you need to send the datasources first in a separate request and then replicate the datasource in BW before you send the BW changes.
Cheers,
Kedar -
Flat file data needs to be update in MM02 t-code with bdc
Hi,
I have a requirement that flat file data shoud be update in MM02 t-code in basic data view (Units of measure ) columns .
I have no access in dev. for mm02 t-code but mm03 available.
Can somebody suggest how to approach this. I know through recording (SHDB) i will do.
But can i put mm03 instead of mm02 at the time of recording?Hi,
thanks,
But i want to update these 4 fields data from flat file.
How to catch in the FM ?
MARM-MATNR MARM-MEINH MARM-UMREZ MARM-UMREN
Material UoM Numerator Denominator -
BDC (Flat File Data Validation) - Code
I am trying to validate flat file data BEFORE performing BDC (Call Trans. or Session)..
Pls help me out in below code for xk02..
DATA: BEGIN OF itab occurs 0, "ITAB having flat file data.
lifnr(16) ,
bukrs(4),
ekorg(4),
END OF itab.
DATA: BEGIN OF int_final occurs 0,
lifnr(16) ,
bukrs(4),
ekorg(4),
status(6),
message(6),
END OF int_final.
DATA: int_final TYPE TABLE OF int_final.
DATA: wa_itab TYPE TABLE OF itab.
DATA: validate_itab TYPE TABLE OF itab. "VALIDATE_ITAB having master data.
DATA: wa_validate_itab TYPE TABLE OF itab.
FORM data_validation .
SELECT LFB1LIFNR LFB1BUKRS LFM1~EKORG INTO TABLE validate_itab
FROM LFB1 INNER JOIN LFM1 ON LFB1LIFNR = LFM1LIFNR.
IF sy-subrc = 0.
SORT validate_itab BY lifnr bukrs ekorg.
ENDIF.
LOOP AT itab INTO wa_itab.
READ TABLE validate_itab WITH KEY
lifnr = itab-lifnr
bukrs = itab-bukrs
ekorg = itab-ekorg
BINARY SEARCH.
IF sy-subrc NE 0.
PERFORM f_error_log USING text-005. "Invalid Value Set
CONTINUE.
ENDIF.
ENDLOOP.
ENDFORM. " data_validation
*& Form f_error_log
FORM f_error_log USING l_message TYPE string.
CLEAR : fs_final.
fs_final-lifnr = itab-lifnr.
fs_final-bukrs = itab-bukrs.
fs_final-ekorg = itab-ekorg.
fs_final-status = text-014. "Error
fs_final-message = l_message.
APPEND fs_final TO int_final.
ENDFORM. " f_error_log
Thanks..Hi GAurav,
I have a small question in th validation.
In LFM1~LIFNR does not contian any value how u r comparing both and one more thing After getting the data using GUI_upload u will get the data into validate_tab.
Loop at Vlidate_tab into wa_itab.
SELECT LFB1LIFNR LFB1BUKRS LFM1~EKORG INTO TABLE validate_itab
FROM LFB1 INNER JOIN LFM1 ON LFB1~LIFNR = wa_itab-lifnr.
endllop.
Thanks,
Maybe you are looking for
-
Please help me...major issues with authorized repair center
I could really use the advice of those more "techie" than myself. About a month ago, my iBook G4 crashed on me. I brought it to an authorized repair center and they replaced the hard drive for $270. When I got it home, it seemed to be acting funny -
-
I cannot get Verizon to refund money that they mistakenly took out of my bank account.
I am so frustrated with Verizon, after years of being a faithful customer. A jetpack was ordered for me to try and instead I got some other equipment that I could not use. I was instructed to just send it back and I did so. Then, I received 2 diff
-
PDF book with graphics: large white stripes
Steps to get in the issue: 1) Prepare a Book 2) Focus on the background panel on the right 3) Select the first wedding graphics (the one with centered graphics) 4) Choose graphic color: white 5) Choose opacity: 100% (...anything more than 50% makes t
-
Want to add Image Dynamically...
I want to add image dynamically in my output screen..so is there any code that i can use..Please help with this...
-
Hi, One of the delta was deleted and is not saved.May I know how a failed delta can be loaded again.Please describe the steps. Regards Vijay