UP LOAD a flatfile
hi
can any one tell how to upload a flat file using 2FMS f4_filename and gui_upload with help of parameters in selection screen
Hi \
see this program
*& Report ZSD_EXCEL_INT_APP
REPORT ZSD_EXCEL_INT_APP.
parameter: file_nm type localfile.
types : begin of it_tab1,
f1(20),
f2(40),
f3(20),
end of it_tab1.
data : it_tab type table of ALSMEX_TABLINE with header line,
file type rlgrap-filename.
data : it_tab2 type it_tab1 occurs 1,
wa_tab2 type it_tab1,
w_message(100) TYPE c.
at selection-screen on value-request for file_nm.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
PROGRAM_NAME = SYST-REPID
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = ' '
STATIC = 'X'
MASK = ' '
CHANGING
file_name = file_nm
EXCEPTIONS
MASK_TOO_LONG = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
start-of-selection.
refresh it_tab2[].clear wa_tab2.
file = file_nm.
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = file
i_begin_col = '1'
i_begin_row = '1'
i_end_col = '10'
i_end_row = '35'
tables
intern = it_tab
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.
loop at it_tab.
case it_tab-col.
when '002'.
wa_tab2-f1 = it_tab-value.
when '004'.
wa_tab2-f2 = it_tab-value.
when '008'.
wa_tab2-f3 = it_tab-value.
endcase.
at end of row.
append wa_tab2 to it_tab2.
clear wa_tab2.
endat.
endloop.
data : p_file TYPE rlgrap-filename value 'TEST3.txt'.
OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
*--- Display error messages if any.
IF sy-subrc NE 0.
MESSAGE e001(zsd_mes).
EXIT.
ELSE.
*---Data is downloaded to the application server file path
LOOP AT it_tab2 INTO wa_tab2.
TRANSFER wa_tab2 TO p_file.
ENDLOOP.
ENDIF.
*--Close the Application server file (Mandatory).
CLOSE DATASET p_file.
loop at it_tab2 into wa_tab2.
write : / wa_tab2-f1,wa_tab2-f2,wa_tab2-f3.
endloop.
<b><REMOVED BY MODERATOR></b>
Message was edited by:
Alvaro Tejada Galindo
Similar Messages
-
Mappping to load a flatfile -- Please Help!!!!
Hi,
I am new to OWB and trying to create a simple mapping to load a flat file into a table. My Version of OWB is 9.2.0.2.8 on an Oracle 9i DB. Below is the warning I get when I validate my mapping. When I proceed to generate I get the same warning and when I proceed to deploy it fails with the same error.
VLD-2398: No data file specified. Generated code will use the sampled file name and the file location 'SOURCE_FILES_MANUAL'.","To specify a data file configure the mapping, add a node under 'Source Data File', type in the file name and select the file location."
In the above warning,'SOURCE_FILES_MANUAL' is the location I created which corresponds to a physical location on my Hard disk.
What am I doing different!! Please help.
Thanks,
Srinivas.hi guys,
i have the same problem (VLD-2398). this warning doesnt effect the successful deployment of my design - so i can ignore it at first - , but it leads to problems later on, because i think there isn t the valid pointer to the flatfile.
in the AWM (analytic workspace manager) viewing the data of a dimension, which is filled with data from the flatfile, it gives the error:
"BIB-9509 The Olap Service did not create cursor.
oracle.express.ExpressServerExceptionError class: OLAPI
Server error descriptions:
DPR: Unable to create server cursor, Generic at
TxsOqDefinitionManager:... and so on"
so can anybody please help me.
i did try to use a external table instead of the flatfile->table mapping, but although the validation is successful, doesnt work. in the external table properties in tab "file" i only see the file name, but couldnt choose the record. maybe this is the prob?
grateful for any hint.
greetings
s8472 -
Loading a flatfile to the database.
Hi,
In my application i have to update a table montly or weekly based on the data sent to me in a flat file.
My application is a ASP application with Oracle7 as the database and WindowsNT as the operating system.
Can anybody please suggest how to do this.
Is it better to use SQL* Loader or do i have to write a stored procedure.
Thanks a lot for your time.
Regards,
Hima.
nullThis discussion forum is for questions related to the new feature in Oracle8i called Internet File System. It does not handle the type of questions you mention.
However, since I can't find any other forum which might be able to help you, I would recommend you use SQL*Loader to load the data into a temporary table, and then use a PL/SQL procedure to do the updates from the temporary table to the table with your basic data in it.
I'm sorry, but this forum is not an appropriate place for further discussion of this subject. -
Flatfile loading-info packager settings
hi guys,
Im trying to load one flatfile into infocube.
when Im doing settings in infopackage,I came across a tabstrip with name EXTERNAL DATA....in that I didnot understand
1.
the two options they gave where I have to choose one.Can u explain the meaning of it.
File is..Data file or Control file......
what does these to options mean and where do we use them in real time...
2.
Currency conversion for external system ....what will happen if i choose this option...in which scenarios do we use this in real time....
3.In DATA TARGETS tabstrip,there are some options to choose...
a.Update in all targets for which active rules exist
b.delete entire content of datatarget..
what will happen if i choose these options.....where do we use them in real time....
thanks and rgds
Surekha
Edited by: SChandx200 on Jul 3, 2009 5:47 AM1.File is..Data file or Control file......
In this we have to choose Data File
Please refer
http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6567e07211d2acb80000e829fbfe/frameset.htm
2.
Currency conversion for external system ....what will happen if i choose this option...in which scenarios do we use this in real time....
This is important when we do flat file and there are Amounts with Currency.There are many currency related settings calculations that need to performed like determining the No of Decimal places for a Currency.
For Eg.
Whenever the amount 123 KRW is loaded in BW, it checks the TCURX table for the KRW currency. After finding the entry in TCURX table, it stores the amount value in target as 123 / {10** (2 u2013 (0))} that is 1.23 KRW. (The amount is divided by 100)
For this to happen, we have to make a specific setting in the InfoPackage thru which we schedule the loads. The checkbox for u201CCurrency Conversion for External Systsu201D should be ticked as shown below -
Error in flatfile load - date not compliant with user date settings
Hi,
I want to load a flatfile into BI 2004s.
so i created a flatfile datasrource, transformation etcetc.. all fine so far.
the file contains 2 dates in format YYYYMMDD and are loaded in DATS infoobjects (also yyyymmdd).
but when i load the data into the PSA it immediatly dumps with error message "19771009 does not match the user-dependent date format --> long text"
the long text sais 19771009 does not correspond to the date format that is assigned to the current user BIWREMOTE. which is correct.. cos there date is DD-MM-YYYY
when i change the date format in the user settings to YYYY-MM-DD it works fine...... in the forground. In the background,whatever i do, it dumps with this errormessage.
so i have 2 questions:
since when is, while loading to the PSA, the date format linked&checked with the date format in the user setting? i cannot recall ever having this issue.
did anyone encounter this problems.
grtz
rogierHi ,Ronald Silberst,R. Poelmann,
I am facing similar kind of problem, Could u please tell me how you overcome this problem. How to set and adding the RSDAT convesion routine into the datasource definition.
Appreciate your help . Can any one have some idea please share.
Regards
Ramesh -
Get Error in source system when loading flatfile from application server
Hi
I'm loading data from flatfiles on the application server. In the datasource if I display the sample data. It shows fine.
But when I execute the infopackage I get an error when it is loading the data to PSA.
The error is
Error in source system
Message no. RSM340
There is no further information
But if I load from my machine it works fine.
Any help will be greatHi,
As you can view display the sample data. It shows fine.
It mean there is no issues in BW (File path is correct, Data in Flat file is correct).
Then definetely its with the source system, which is resisting to pass IDOC to BW.
Now.we need to know the its problem with File on App serv or App serv itself?
Just check trying to Load another Flatfile in App serv.
Let me know.
Regards
Hari -
Problem loading Flatfile from application server to DSO
Hello,
I've a little problem while loading a Flatfile (csv) from the application server to a DSO. The Flatfile has only one data record and a header.
But in the DSO are always two data records, the right one and one empty record.
If I use the same Data Source and the same DTP and switch it to upload from the workstation there is just one data record. (What would be right).
I'm using the upload without PSA in Full-Update-Mode.
I tried to create a new Data Source, but same effect.
Thanks in advance,
TG
System: SAP EHP 1 for SAP NetWeaver 7.0Not sure about it, and in absence of sufficient information I can only guess.
But somehow it looks like the well-known problem of files being changed in transfer between Unix (your application server I guess ) and Windows (your workstation I guess ).
Try to find out correct transfer method, asc or bin, or whatever you call it.
I hope this helps.
And in case my advice is nonsense: Don't blame me. -
In BW I load a flatfile CSV, to a datasource.
I am loading from a flatfile with fields wich contain especially the symbol squar '²' in a textfield.
The field in the datasouce is of type CHARACTER (60) and allows lowercase characters.
After loading the file and checking the PSA the symbol '²' is not present. The string 'AAa m² aaa' in the flatfile is loaded
as 'AAa m aaa'.
I don't understand why the symbol is missing, can anyone help?
TNX
Edited by: Chiel74 on Nov 11, 2011 12:07 PMHi,
This would either be a problem where the system doesn't support Unicode or the character is not supported in the system code page so you would end up with a character that it doesn't know how to handle so you get the space in its place.
Regards,
Ryan Crosby -
How to Load a Flat File into BW-BPS Using a Web Browser
Hello,
I'm using the upload functionality described in the how to guide.
When we want to have this functionality available for 12 different Planning levels. Do I have to create the Web Interface (as described in the how to guide) for each Planning Level separately, or can i pass a parameter in the URL (wenn calling the File Upload functionality) to determine which Planning level and Function it is.
This pice of coding i want to have a bit more flexible
*Execute planning function
CALL FUNCTION 'API_SEMBPS_FUNCTION_EXECUTE'
EXPORTING
i_area = 'ZIPM0001' " <<<< ADJUST
i_plevel = 'ZCAPB006' " <<<< ADJUST
i_package = '0-ADHOC' " <<<< ADJUST
i_function = 'ZEX00001' " <<<< ADJUST
i_param = 'Z0000001' " <<<< ADJUST
IMPORTING
e_subrc = l_subrc
TABLES
etk_return = lt_bapiret.
Does someone have an idea ?
Thank you
DieterHi Dieter,
you should be able to grab the variable value by the following statement (e.g. in this case 'area' is being passed along, works for whatever you want to send) is:
data: l_area type upc_y_area.
l_area = request->get_form_field( 'area' ).
in this case the calling URL looks like:
<normal URL>?area=example_area
example_area will then contain your value.
Then depending on the value execute your different SEM functions
Note that if you want to load different flatfile formats, more has to change in the functions as indicated in the white paper,
Hope it helps,
Regards,
MArc
I got it from the following document I found on SAPNet or SDN (forgot..) some time back:
How To Call a BPS Web Interface with Predefined Selections -
Error when loading a flat file from Application server.
Hi,
I am trying to load a flatfile from the application server, and I am getting the message
Error while accessing the application server file
Message no. RSDS_ACCESS002
I checked for notes and found only one:
Note 1033978 - Correction: Loading Unicode files from application server
but we have 19 SP level, and the note says it needs 13 SP level, so I think it would not be of any help.
does anybodie know what to do??
thanks for the help.
MauricioError in accessing while application server file..
when i am trying load the data to psa
when i am taking the file name: text-type file from app server
plz reslove me for this problem??
another question
when i am saving the file with using * in the filename in .CSV file its not saving,
whats the reason????
ASHOK -
Flat FIle loading - 80Million Records at atime
Hi Folks
Our Requirement is to load a flat file with 80 million records at one time.Now,what could be the best way to load the data in this case?
We have to report based on Region : (East,West,North n South)
i have two ideas n please correct me if i am wrong :
1. Create Infopackages for each region and load the flatfile to one Infocube
2. Create four infocubes one for each region and build a multiprovider on it for reporting
Please suggest me if there s any other way to go for
Thanks
SrimanHi,
Dividing into 4 will also be loading approx. 20 miliion records each...is there any other char value by which you can decide the Infopackage selections?
You can load through a process chain but in this case the file needs to be placed on your App Server.
Hope this helps... -
Problem during loading, could anyone help !!!
I am trying to Load a Masterdata(flatfile) in a infoobject.
This is what i did:
I created a infoobject name 'EMPNAM' with some attributes, like [soc_sec, 0city,0country].
I created and activated communication struct , and Transfer struct.
Created my own flatfile(.csv) with some fake datas.
created infopackage and loaded the flatfile, system generated as loading successful. I checked the datas in PSA and i was able to see all the fields ['EMPNAM, soc_sec, 0city,0country] been loaded.
When i try to see the loaded data in the datatarget i.e the infoobject, i could only see the 'EMPNAM' been loaded, not the attributes[soc_sec,0city,0country].
Why is that, could anyone help me with this please.Hi,
I have read your question and all the responses. If the Infoobject is not listed in the Attribute Change Run, the only other reason could be that data is not loaded into the object itself. I read that you have loaded into PSA. Did you process the data manually into the Infoobject.. or did you just do a simulation. Simulation would not load the data. For making sure, please run Infopackage once again using Option No. 1 on the Processing tab of the Infopackage. That way you would be sure the data is processed till the data target.
rgds
naga -
Loading Hierarchy (ex : 0COSTCENTER) from different R/3 system to SAP BW
Hello,
I would like load 2 hierarchies (EX : 0COSTCENTER) from 2 SAP R/3 systems. The problem is I have the same 0NODE_NAME in the both system.
I add 0SOURSYSTEM as compouned key in 0COSTCENTER.
But I doesn't work. I don't see the 0NODE_NAME compounded with my 0SOURSYSTEM.
Could you help me ?
StéphaneHi,
you have to modify the hierarchy.
Now, there is only one way: load per flatfile and 3.x infosource.
In this forum are 1000 threads:
- http://help.sap.com/saphelp_nw04/helpdata/en/fa/e92637c2cbf357e10000009b38f936/content.htm
- http://www.tnsr.eu/fileadmin/user_upload/Documenten/PDF/How_To/How_To...Download_hierarchy_in_flatfile.pdf
=> in your abap you have to modify the nodename.
Sven -
ODI: Loading Comma Seperated Value Flat files...
We are attempting to load our flatfiles using the LKM File to Oracle (SQLLDR)...
First something that is goofy is that the SQLLDR appears to be looking for a .dat file instead of the flatfile we have given it. Our flatfiles do not have any extentions on them (ex. mmi_prem_fin, mmi_agent_contact, etc...) Is SQLLDR looking for a flatfile with an extention and if not finding one looking for a .dat file extention? Anyone run into this?
Second, after we get past that first problem then the scond one that creeps up is the SQLLDR appears to be bringing in the information into the source table without excluding the quotes around the field information. We specified that the flatfile is comma delimited and text is seperated by dbl quotes.
Any and all help will be apprecaited... Thank you in advance...
Tom CusickJUPS wrote:
Hi,
I am facing trouble in inserting comma separated list in form of single string like:
Year = '2009,2010,2011,2012'
Now i need to push each value into a VARRAY, can anyone help me on this.
Thanks,
SreekanthLOOP
Handle: JUPS
Status Level: Newbie
Registered: Aug 6, 2008
Total Posts: 201
Total Questions: 98 (59 unresolved)
so many questions & so few answers.
how sad!
Edited by: sb92075 on Sep 13, 2011 10:20 AM -
Error loading 0employee master data
Hello
I am facing some weird kind of probelm when i try to load data of 0EMPLOYEE_ATTR. im trying to load data of first 100 employes. data size is very small. in data monitor after few seconds it display the error message with caller09. it seems to me like somebody is trying to change data in ecc but i have chked it on the weekend when nobody was accessing the ecc system and tried to upload but unseccessful.
there are no trfc in the source system, i have also check the prcoess overview and job overview but nothing is helpful. in job overview in the log i just get memory parameters and nothing else. memory parameters are fine as othere datasources are loading data even with 1 milllion records but 0empoyee_attr i am facing for the first 100 records.
i have chked though slg1, rsdmd and me_del, its k.
Error message from the source system
Diagnosis
An error occurred in the source system.
System Response
Caller 09 contains an error message.
Further analysis:
The error occurred in Extractor .
Refer to the error message.
Procedure
How you remove the error depends on the error message.
Note
If the source system is a Client Workstation, then it is possible that the file that you wanted to load was being edited at the time of the data request. Make sure that the file is in the specified directory, that it is not being processed at the moment, and restart the request.Hi,
If you are loading from flatfile then check the file for the two fields Date from and date to.
Or you can see the problem with the records in PSA also...
Check whether the date format is correct and also the date to should be more that the date from..
Cheers
Siva Reddy
Edited by: Siva Reddy S on Jul 10, 2008 3:29 PM
Edited by: Siva Reddy S on Jul 10, 2008 3:30 PM
Maybe you are looking for
-
Hello, i've started to use keywords. Also i export all files back to the XMP-Format. On some files the changes are not permanent/lasting. My smart-collection tells me 5 seconds later that the meta-data should be saved again.. Do you have any suggesti
-
Touch ID does not work propery with the new software properly
After a few uses Touch ID does not accept the touch finger despite being the same.This has been observed by me only after installation of the latest software. IPhone 6 IOS 8.1.1
-
Edge Tools and Services Are Not Included in Creative Cloud Subscription?
I purchased my Creative Cloud subscription for a year. I have installed all the applications I intend to use from the Adobe Application Manager. When I run the software that is part of the Creative Suite, it prompts me to register the product with my
-
hi, what is V$ACCESS and V$HVMASTER_INFO when it will use
-
Please I Need Forms Personalization Help Reg AP invoice entry
Hi All, I am new to form personalization, my client wants do a form personalization for ap invoice entry form ,in that i need to check duplicate invoices and put those invoices into hold I got a API which puts invoices in hold : ap_holds_pkg.insert_s