Upload a txt file,read that file,display po details using BAPI
hi GURUS,
CL_GUI_FRONTEND_SERVICES=>gui_upload to retrieve the file (upload the file).
HOW TO USE THIS??? GV MORE DETAILS PLEASE...I WANT TO read TEST PO DATA.txt file Can you give me example how the test data( Header data and Item level data is used to fill the test PO data.txt file )
Do i need to Use OPEN DATASET
CLOSE dATASET command?
how????
points will be rewarded
thanks
Hi Avik,
using CL_GUI_FRONTEND_SERVICES=>gui_upload in a program.
There are sample programs in the following link
http://wiki.ittoolbox.com/index.php/Upload_and_download_SAP_transport_request
Award points if useful
Thanks,
Ravee...
Similar Messages
-
The Adobe Acrobat Reader that is running cannot be used to view PDF files in a browser. Please exit Adobe Acrobat Reader and your web browser and try again.
== This happened ==
A few times a week
== Early this yearSee these KB articles:
https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox
https://support.mozilla.com/en-US/kb/Opening+PDF+files+within+Firefox -
How can i upload a image file to server by using jsp or servlet.
Hi,
I m gurumoorthy. how can i upload a image file to server by using jsp or servlet without using third party API. pls anyone send me atleast outline of the source code.
Pls send me anyone.
Regards,
Gurumoorthy.I'm not an applet programmer so I can't give you much advice there.
If you want to stream the file from the server before it's entirely uploaded, then I don't believe you can treat it like a normal file. If you're just wanting to throw it up there and then listen to it, then you can treat it like a normal file.
But again, I'm not entirely certain. You might be able to stream the start of the file from the server while you're still uploading the end of it, but it probably depends on what method you're using to do the transfer. -
To upload a PDF file in BLOB column using Oracle Forms 9i
Can anyone tell me how to upload a PDF file from client system using File dialog window and store its content in BLOB column in a table. The file to be uploaded will be in client side.
Take a look at the following :
Re: Storing a PDF in a BLOB
Re: Retrive Image from DB into Image_item
although the threads above are reffered to images and word doc... the procedure/steps are the same....
Greetings...
Sim -
Read a txt file, display a table of values, select a value to set min value for DAQMX
Hello everyone, I am having trouble with the following data importing. I want to do the following:
Open a txt file, have it be imported as a table. Allow the user in the GUI to select a value on the 2nd column, set that value as either min or max for a daqmx analog output. I'll attach the .txt file being used. I can add the code but I was basically using the read from text.vi example with no luck.
Attachments:
090414-200-800-16x.txt 1 KBThank you all, I have set up this input but I have a couple more questions. First now that I have the ability to have a mouse click to set a value, is it possible to have two events, such that the first sets a certain value and the second retains a different one?
In addition (im not sure if this would be ok to post here but for the sake of clarity and decluttering the forum I shall post it here) is it possible to switch from a constant voltage mode (in DAQMX analog output) to a waveform mode ( attacthed the binary waveform) all while maintaining a constant min value (untill updated from the table by user, which is also attached).
I have attachted a vi (Labview version 8.2) that I threw together today.
Thank you all,
DB
Attachments:
calib.csv 3 KB
Example.vi 157 KB -
When I try to open a PDF file I get this message:
"The Adobe Acrobat ?Reader that is running can not be used to view PDF files in a web browser. Adobe Acrobat/Reader version 8 or 9 is required. Please exit and try again.
I have downloaded the Adobe Reader 9.2..... but I still get this message????
Why do I keep getting this message?
Thanks for your help..
CindyUninstall Reader. Use the Microsoft Installer Cleanup Tool. They try re-installing Reader 9.2
-
The acrobat reader that is running cannot be used to view PDF files in a browser
The subject says it all. I'm unable to open a link to a pdf file.
I'm using Mozilla on a Win 2000 machine.
Version 8.1.2 worked fine. I see some people have reverted back to this version. Is that the only fix?"The Adobe Acrobat/Reader is running can not be used to view PDF files in a web browser. Adobe Acrobat/Reader version 8 or 9 is required. Please exit and try again."
Here's the simple solution:
1. Open Adobe 9
2. Select Help on main Toolbar
3. Select "Repair Adobe Reader Installation"
Yes, but make sure that all previous versions of Acrobat and Reader have been removed from your computer.
I had on Vista Acrobat Reader 5 and 9 because sometimes was problem with printouts in duplex on Acrobat Reader version 7,8 and 9.
You can have more then one version of adobe reader on your computer.
I had to uninstall this Acrobat Reader 5 and select Repair Adobe Reader Installation on Adobe Reader 9.3.3 version.
Success.
Michał -
Help with uploading an excel file to a table using an application
Hello,
Can anyone please help me out with this issue. I have apex application where in the end users upload an excel file to a table. For this I have followed the solution provided in this link
http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
Using the above solution, I was able to upload the excel data to a table "sample_tbl1" successfully with fields Id,acct_no,owner_name,process_dt. But the thing is I want accomdate a particular condition while uploading the file data, to check see if the acct_no already exists in another table say "sample_tbl2" or not. If acct_nos already exists in sample_tbl2 then give out an error displaying the list of account numbers that already exists in the database. Below is the code which I am using to upload file data to a table.
DECLARE
v_blob_data BLOB;
v_blob_len NUMBER;
v_position NUMBER;
v_raw_chunk RAW(10000);
v_char CHAR(1);
c_chunk_len number := 1;
v_line VARCHAR2 (32767) := NULL;
v_data_array wwv_flow_global.vc_arr2;
v_rows number;
v_sr_no number := 1;
l_cnt BINARY_INTEGER := 0;
l_stepid NUMBER := 10;
BEGIN
--Read data from wwv_flow_files</span>
select blob_content into v_blob_data
from wwv_flow_files
where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER)
and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);
v_blob_len := dbms_lob.getlength(v_blob_data);
v_position := 1;
/* Evaluate and skip first line of data
WHILE (v_position <= v_blob_len ) LOOP
v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk)));
v_line := v_line || v_char;
v_position := v_position + c_chunk_len;
-- When a whole line is retrieved
IF v_char = CHR(10) THEN
-- Clear out
v_line := NULL;
EXIT;
END IF;
END LOOP;
-- Read and convert binary to char</span>
WHILE ( v_position <= v_blob_len ) LOOP
v_raw_chunk := dbms_lob.substr(v_blob_data,c_chunk_len,v_position);
v_char := chr(hex_to_decimal(rawtohex(v_raw_chunk)));
v_line := v_line || v_char;
v_position := v_position + c_chunk_len;
-- When a whole line is retrieved </span>
IF v_char = CHR(10) THEN
-- Convert comma to : to use wwv_flow_utilities </span>
v_line := REPLACE (v_line, ',', ':');
-- Convert each column separated by : into array of data </span>
v_data_array := wwv_flow_utilities.string_to_table (v_line);
-- Insert data into target table
EXECUTE IMMEDIATE 'insert into sample_tbl1(ID,ACCT_NO,OWNER_NAME,PROCESS_DT)
values (:1,:2,:3,:4)'
USING
v_sr_no,
v_data_array(1),
v_data_array(2),
to_date(v_data_array(3),'MM/DD/YYYY');
-- Clear out
v_line := NULL;
v_sr_no := v_sr_no + 1;
l_cnt := l_cnt + SQL%ROWCOUNT;
END IF;
END LOOP;
delete from wwv_flow_files
where last_updated = (select max(last_updated) from wwv_flow_files where UPDATED_BY = :APP_USER)
and id = (select max(id) from wwv_flow_files where updated_by = :APP_USER);
l_stepid := 20;
IF l_cnt = 0 THEN
apex_application.g_print_success_message := apex_application.g_print_success_message || '<p><span style="font-size:14;font-weight:bold">Please select a file to upload.</span></p>' ;
ELSE
apex_application.g_print_success_message := apex_application.g_print_success_message || '<p><span style="font-size:14;font-weight:bold;color:green">File uploaded and processed ' || l_cnt || ' record(s) successfully.</span></p>';
END IF;
l_stepid := 30;
EXCEPTION WHEN OTHERS THEN
ROLLBACK;
apex_application.g_print_success_message := apex_application.g_print_success_message || '<p><span style="font-size:14;font-weight:bold;color:red">Failed to upload the file. '||REGEXP_REPLACE(SQLERRM,'[('')(<)(>)(,)(;)(:)(")('')]{1,}', '') ||'</span></p>';
END;
{code}
Can anyone please help me, how do i accomdate the condition within my existing code.
thanks,
OrtonOrton,
From your code it appears that the account No comes in the second column of the file = > v_data_array(1)
So You can put a conditional block around the execute immediate code that inserts the records
For instance
SELECT count(1) INTO ln_account_no_exists from <"sample_tbl2> where account_no = v_data_array(1);
IF ( ln_account_no_exists > 0 ) THEN
--Account No: already exists
<Do what you want to do here >
ELSE
EXECUTE IMMEDIATE ...
END IF:
{code}
Inorder to handle the account no records which exists you can
<li>Raise an exception
<li> Write record to table or insert into collection and then use a report region in the page based on this table/collection to show error records
<li> Append errored account No:s to the Success Message Variable programmatically(this variable is used by PLSQL process success/error message )
{code}
IF ( record exists)
apex_application.g_print_success_message := apex_application.g_print_success_message||','|| v_data_array(1) ; -- Comma separated list of errored account no:s
ELSE ...
{code}
Hope it helps -
I'm using Signal Express to record Load vs Displacement data and export it to a format our engineers can work with (in this case ASCII is okay). It would seem that by selecting the Next Available File Name from the drop down arrow it would do just that. For instance a typical save path for me would look like C:\....Desktop\Project Number and Description\Run_1.txt within that Run1.txt file would be all the data points for that run. When I hit record again Signal Express would (SHOULD) create a Run_2 since it's the Next Available File Name.
But instead what it does is creates a single txt file for every single sample point being read. Needless to say, If I'm recording 6 second of data at 1khz I end up with thousands of txt files!
The first thing that comes to mind is, why would anyone want this?
Second is how can I record multiple individal runs for the same project and have the file name increment?
SCXI- 1000 Chassis w/ 1346 adapter
PCI 6281 DAQ card
SCXI- 1520 Bridge Board w/ 1314 Terminal Block (x2)
SCXI- 1180 Feedthrough Panel w/ 1302 Block
Signal Express 2014.
Win7 Enterprise...and more attachments of the ASCII save path, before and after acquiring 4 seconds of data along with one of the files from that folder.
Again, this is 4 seconds of two-channel spring plot data at 100 Samples to Read @ 1k Rate (Start Run.... wait 4 seconds or two full test sample cycles... Stop Run).
~EDIT~
The .txt file would not attach (I think it's too small). Here's what it looks like if you were to open it:
Load vs Displ - Displ (inches) Load vs Displ - Load (lbs)
3.736323 273.751906
Also, for some reason it won't let me attach my project file. It's a .seproj extension but the forum thinks it's 1k in size and "empty"
Message Edited by OKors on 06-05-2009 05:57 PM
SCXI- 1000 Chassis w/ 1346 adapter
PCI 6281 DAQ card
SCXI- 1520 Bridge Board w/ 1314 Terminal Block (x2)
SCXI- 1180 Feedthrough Panel w/ 1302 Block
Signal Express 2014.
Win7 Enterprise
Attachments:
FolderBeforeSave.JPG 39 KB
FolderAfterSave.JPG 239 KB -
Uploading a text file to a server using gprs connection and http method
Hi,
I want to upload a text file from my windows mobile device( WM 6.1 version) to a server using the gprs connection and the http method. The application runs on IBM weme j9 VM.
Anybody having done anything similar to this,please post a code snippet or provide helpful resources..
Thanks in advance.
Edited by: 803691 on Oct 20, 2010 3:50 AMPlease give a response..
I want to know whether there is a feasible solution for this in java..
PLease provide code snippets for establishing gprs connection in java.. -
How to upload a multistructured file in BDC program using gui_upload?
I want to upload a multistructured file in BDC program...in which some structures are repeating for multiple records..how to do this..
BP_GEN_DATA FR0100270154 FR12345678902
BP_PAYMENT FR 0123456789 01234567890
BP_UNLOAD MARSEILLE X FR
BP_UNLOAD PARIS FR
Here BP_GEN_DATA is root structure and BP_UNLOAD is lower level structure which is repeatingResolved
-
Reading data from ERP 6.0 (using BAPI) to VBA (MS Excel)
Hi Guys,
I want to learn something about RFC called from VBA using BAPI's.
I was able to write a simple VBA makro to read data from single record, but now I would like to wirte something using GetData. Here I have problems and could not find useful information.
I have something like this:
Set boOrder = oBAPICtrl.GetSAPObject("SalesOrder")
Set oSalesOrders = oBAPICtrl.DimAs(boOrder, "GetList", "SalesOrders")
oCustomer = "1000"
oSalesOrg = "xxx"
boOrder.GetList CustomerNumber:=oCustomer, _
SalesOrganization:=oSalesOrg, _
SalesOrders:=oSalesOrders, _
Return:=oReturn
My question:
How do I access the data I have read from ERP system using GetList?
How do I check how mane record I read (accoriding to the selection criteria)?
Can somebody advise me on that?
Please not that I am using in in VBA and not VB.
regards
RafalHi,
I came across this problem aswell and it's so frustraing and little information available how to resolve this, so I decided to post this.
When you execute the transaction 'S_ALR_87013635' there are 3 options in the menu bar:-
Output parameters...
Data Source...
Extract parameters...
Go into extract parameters, click 'create extract' and enter a description.
You should then be able to run the program. Ensure that you have the correct macro settings also i.e.
1) Enable macros
2) Trust all sites with Visual Basic
Hope this helps other people with the same issue! -
Error uploading large txt file using GUI_UPLOAD
Hi everyone.
The situation is as follows: I have to process (batch input) an extremely large text file, of about 80 MB. As you can imagine, all I receive when I run my program is a dump somewhere inside the GUI_UPLOAD function routine due to excessive memory usage.
Does anybody know of a way to deal with this kind of files? Is there any function that allows partial processing or something like that?
Thanks a lot,
Fernando.If you have to process it all at once, you can have basis FTP it to your application server and then use OPEN DATASET and TRANSFER rather than GUI_UPLOAD. this would probably be the quickest solution.
Rob -
To upload an excel file from front end using GUI_UPLOAD
Hi All,
Please give me the code to upload data from front end to internal table only using GUI_UPLOAD.
Thanks,
KumarCheck this program , reward points if helpful
*& Report ZEXCEL_UPLOAD *
report ZEXCEL_UPLOAD message-id ZMSG.
tables :T001.
data : begin of ITAB occurs 0,
BUKRS like T001-BUKRS,
BUTXT like T001-BUTXT,
ORT01 like T001-ORT01,
LAND1 like T001-LAND1,
WAERS like T001-WAERS,
end of ITAB.
data : WA_T001_EXCEL like ITAB.
data : IT_T001_EXCEL like standard table of WA_T001_EXCEL.
data IT_TEXT like ITAB occurs 0 with header line.
data : IT_RETURN like standard table of ALSMEX_TABLINE,
WA_RETURN like ALSMEX_TABLINE,
WA_RETURNS like ALSMEX_TABLINE.
data : V_FILE type STRING,V_MASK(10) type C.
selection-screen begin of block B1 with frame title TEXT-001.
parameters P_FILE like RLGRAP-FILENAME .
selection-screen end of block B1.
selection-screen begin of block B2 with frame title TEXT-002.
parameter : R_TXT radiobutton group G1 default 'X' user-command C1,
R_EXCEL radiobutton group G1.
selection-screen end of block B2.
at selection-screen on value-request for P_FILE.
if R_TXT = 'X'.
V_MASK = '*TXT'.
elseif R_EXCEL = 'X'.
V_MASK = '*XLS'.
endif.
call function 'KD_GET_FILENAME_ON_F4'
exporting
PROGRAM_NAME = SYST-REPID
DYNPRO_NUMBER = SYST-DYNNR
MASK = V_MASK
changing
FILE_NAME = P_FILE.
at selection-screen.
translate P_FILE to upper case.
if R_TXT = 'X'.
search P_FILE for '*TXT'.
if SY-SUBRC <> 0.
message E011.
endif.
endif.
if R_EXCEL = 'X'.
search P_FILE for '*XLS'.
if SY-SUBRC <> 0.
message E012.
endif.
endif.
start-of-selection.
V_FILE = P_FILE.
if R_TXT = 'X'.
call function 'GUI_UPLOAD'
exporting
FILENAME = V_FILE
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = 'X'
tables
DATA_TAB = IT_TEXT.
if SY-SUBRC eq 0.
message I013 with V_FILE.
loop at IT_TEXT .
write :/ IT_TEXT-BUKRS color 4, IT_TEXT-BUTXT color 3,IT_TEXT-ORT01
color 5,
IT_TEXT-LAND1 color 2,IT_TEXT-WAERS color 1.
endloop.
endif.
elseif R_EXCEL = 'X'.
call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
exporting
FILENAME = P_FILE
I_BEGIN_COL = 1
I_BEGIN_ROW = 1
I_END_COL = 4
I_END_ROW = 2
tables
INTERN = IT_RETURN.
if SY-SUBRC eq 0.
message I014 with P_FILE.
sort IT_RETURN by ROW COL.
loop at IT_RETURN into WA_RETURNS.
WA_RETURN = WA_RETURNS.
case WA_RETURN-COL.
when 1.
WA_T001_EXCEL-BUKRS = WA_RETURN-VALUE.
when 2.
WA_T001_EXCEL-BUTXT = WA_RETURN-VALUE.
when 3.
WA_T001_EXCEL-ORT01 = WA_RETURN-VALUE.
when 4.
WA_T001_EXCEL-LAND1 = WA_RETURN-VALUE.
endcase.
at end of ROW.
append WA_T001_EXCEL to IT_T001_EXCEL.
clear : WA_RETURN, WA_T001_EXCEL.
endat.
endloop.
endif.
loop at IT_T001_EXCEL into WA_T001_EXCEL.
write :/ WA_T001_EXCEL-BUKRS color 1, WA_T001_EXCEL-BUTXT color 2,
WA_T001_EXCEL-ORT01 color 3,WA_T001_EXCEL-LAND1 color 4.
endloop.
endif. -
Upload Journal Voutures of customer master from the Excel sheet using BAPI
Hi experts,
Can U have any sample program so that it can help me for my coding.Hi,
You need write the abap program in the following manner,
1. Read the data from the excel sheet and then enforce the checks if at all any in the new program.
2. Fill all the parameters of the BAPI *BAPI_CASHJOURNALDOC_CREATE *.
3. After the above BAPI call, you need to call another *BAPI_TRANSACTION_COMMIT *.
4. Once Transaction commit bapi is successfully executed then only you will get the document number.
Please follow all the above mentioned steps then you can create the Journal Voutures migrated from an excel sheet to SAP successfully.
Thanks,
Mahesh.
Maybe you are looking for
-
thanks
-
Catalog missing captions and dates
Hi, I've been using various versions of the Organizer for about 7 years, but version 9 has my catalog all messed up. I recently installed elements 9, and when I moved in my catalog about 3000 of my 9000 or so photos are missing their dates and capti
-
Tag.setParent() method call
For simple tags implementing the SimpleTag interface, the setParent() method is only called when a tag has an enclosing parent. Is this also the case for classic tags? In other words, is the Tag.setParent() method only called when a tag has an enclos
-
How to make wave graph restart when the condition of case structure is changed?
Exp: Condition of case structure a<b ( a: control, b: constant). A wavegraph puts inside a while loop , in True condition (a<b). How can I make the wave graph restart if a is changed?
-
I have installed Cisco prime infrastructure 2.2 and configured it. Now i want Per switch Per vlan traffic and per switch per vlan session for that what i have to do please suggest me as soon as possible Switches is 2960 and 3750X. Please suggest me