Image upload/retrieve turorial not working
The tutorial regarding image upload retrieval in the following link is not working:
http://developers.sun.com/prodtech/javatools/jscreator/reference/tips/2/retrieve_binary_data.html
I get the following error:
Java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.security.PrivilegedActionException : Error opening socket to server localhost on port 21527 with message : null
Thanks
Hi Sakthi,
Finally I managed to make it work with the following modifications:
(1) In the servlet jdbc/Order> jdbc/Travel
(2) The datasource names for the rowsets in the session as Travel (instead of Order)
Another observation I made is: If you bind the url of the image component (which is on the datatable column) to a (for example applicationbean) property which retruns the necessary url, it is very convinent to handle the datatable layout visually. (Otherwise if you go to the datatable layout it shows some error message popup)
Thanks.
Similar Messages
-
I am having trouble printing a PDF document. Whenever I click print nothing happens but when I am printing documents from Word, Excel etc they print without a problem. I've tried printing as image but that did not work. I uninstalled Adobe Reader XI and downloaded Adobe Reader X instead and that still doesn't work. I have Windows 7.
Hello,
Please follow the link to troubleshoot the printing issues with Adobe Reader:- Troubleshoot PDF printing | Acrobat, Reader.
Regards,
Nakul -
Hi all, Excel upload program is not working in SAP CRM 7.2 Service Pack 10 with IE 11. Same is working fine in SP08. Below is the code.
The debugger is not coming into Servervent handler method . any notes suggested ? sorry for posting the big code lines.
<thtmlb:fileUpload id="fileUpDown" />
<thtmlb:button id = "UPLOAD"
iconSrc = "ICON_XLS"
tooltip = "Upload Excel file"
text = "Upload"
onClick = "upload_file( );" />--%>
<thtmlb:textArea id = "Excel_Data"
text = " "
width = "0"
height = "0"
rows = "0" />
<%-- Registering server event--%>
<bsp:htmlbEvent name = "nameUpload"
id = "idUpload"
onClick = "SERVEREVENT"
<%-- serverEvent"--%>
p1 = "p1"
p2 = "p2"
p3 = "p3" />
<script language="javascript" type="text/javascript">
function upload_file( ){
var iRow="1",
jCol="1",
ActiveRows="0",
fileName="",
sValue=" ";
fileName=document.getElementById("<%= controller->component_id %>_fileUpDown").value;
if ( fileName == "" ) {
alert("Upload." + "\n" + " " + "\n" + "Please choose an Excel file as source.");
return;
if ( fileName != "") {
<%--alert("Upload." + "\n" + " " + "\n" + "This file is to be uploaded:" + "\n" + fileName);--%>
var r=confirm("Upload." + "\n" + " " + "\n" + "This file is to be uploaded:" + "\n" + fileName);
if (r!=true)
return;
Excel = new ActiveXObject("Excel.Application");
Book = Excel.Workbooks.Open( fileName );
ActiveRows = Book.Worksheets("Input").Range("A1.IV64000").CurrentRegion.Rows.Count;
<%--ActiveRows = Range("A1.IV64000").CurrentRegion.Rows.Count;--%>
for (iRow=1; iRow<=ActiveRows; iRow++) {
for (jCol=1; jCol<=4; jCol++) {
cData = Book.Worksheets("Input").Cells(iRow,jCol).value;
<%--cData = Cells(iRow,jCol).value;--%>
sValue = sValue.concat(cData,"\n");
sValue = sValue.concat("\n\r");
document.getElementById("<%= controller->component_id %>_Excel_Data").value = sValue;
Excel.Workbooks.Close;
<%--return statement here calls the server event SERVERVENT--%>
return nameUpload();
</script>
regards,ramaHello all,
Excel = new ActiveXObject("Excel.Application");
the above statement is not working in Service pack 10 CRM 7.2. any help is appropriated
thanks,rama -
Saving image to a folder not working on azure
I am saving image
files to a folder in my application and saving its path in database . Image uploads working fine when I am running locally
and its path is also storing.When I deployed it on azure it
gives an error that " An error occurred while processing your request ". I have two tables in my database . First one where text is saved is working fine on azure but image upload thrown this error.
I am using this code
to upload
image and its works fine when I am running locally. Need help ?Hi,
Have you made any progress ?
May I ask what application is it that you are running ? You mentioned that it works locally but not when deploying to Azure. Have you checked the connections strings?
If you are still having any difficulty in understanding the code, perhaps you could post it on the below blog.
http://blogs.msdn.com/b/onecode/archive/2014/08/28/sample-of-aug-28-how-to-store-the-images-in-sql-azure.aspx
Regards,
Mekh. -
Note: capitals are used only to highlight important words.
PLEASE, TAKE THESE COMMENTS ON TWO CRITICAL BUGS VERY SERIOUSLY BECAUSE THE BUGS DESCRIBED BELOW ARE SO CRITICAL THAT I CANNOT USE THE LATEST VERSION OF FIREFOX UNLESS THEY DO NOT APPEAR IN THE LATEST VERSION AND THEREFORE I AM FORCED TO REVERT BACK TO FIREFOX 26.
I have Windows 7 64-bit and Firefox 26. I could not install Firefox 27, 28, and 29 due to the persistent presence of the two critical bugs described below. I have 8 GB of RAM and an Intel quad-core processor and a lot of hard disk space available.
I installed Firefox 27 and then Firefox 28 a while back and these two bugs described below were still present and now I have just checked again with Firefox 29 by installing it and yet again, these two bugs described below are present!! UNBELIEVABLE THAT THESE TWO CRITICAL BUGS ARE STILL PRESENT IN FIREFOX 29 WHEN I CLEARLY INFORMED YOU ABOUT THEM IN THE HELP, SUBMIT LINK OF FIREFOX!!
I am forced to revert to Firefox 26!
First, I use Windows 7 64-bit and I always use Firefox with at least 120 tabs opened. BUT I have 8 GB of RAM, an Intel core i7 quad-core processor and more than 1 TB of hard disk space. Consequently, I do not understand why I would have these two critical bugs.
With Firefox 26, I also have at least 120 tabs opened when I start Firefox and I do not have the two critical bugs described below, therefore I do not believe that the number of tabs is the reason of the two critical bugs that are present in Firefox 27, 28, and 29.
---FIRST CRITICAL BUG:
When I open ANY web page and do File, "Save Page As", the window that is supposed to open to locate the folder where I want to save this web page does NOT open at all, even if I wait a long time to see if it opens.
Same problem happened with Firefox 27, 28, and now 29!! When I reverted back to Firefox 26, this problem did NOT happen anymore!
---SECOND CRITICAL BUG:
When I use Google Images, for instance entering model in the search field of Google Images and then pressing enter.
Then I select any picture, open to a new tab this selected picture, then open a new tab by selecting the option View for this picture. Then right-click the picture and select "Save Image As".
Again, the window that is supposed to open to locate the folder where I want to save this picture does NOT open at all, even if I wait a long time to see if it opens.
Same problem happened with Firefox 27, 28, and now 29!! When I reverted back to Firefox 26, this problem did NOT happen anymore!
---THESE TWO CRITICAL BUGS DO NOT APPEAR WHEN I USE INTERNET EXPLORER 11.
I have no idea if you will be able to reproduce these two critical BUGS but I can assure you that they are not present when I use Firefox 26 and they are present when I use Firefox 27, 28, and 29. More, be aware that I have at least 100 tabs opened but I also have this same number of tabs opened in Firefox 26 and yet I do not experience these two critical bugs when I have Firefox 26!
Once again, these two bugs touch at two vital, critical very basic functions of Firefox and therefore I will NOT be able to use any version above 26 if these two bugs are still present, as they are present in Firefox 27, 28, and now 29!!!
Please, make it a priority to solve these two critical bugs. Thanks.
I did read a post related to the same issues “Firefox stops responding when trying to "save page" or "save image" | Firefox Support Forum | Mozilla Support” at https://support.mozilla.org/en-US/questions/991630?esab=a&as=aaq
I am still reading it again to try to figure out exactly what the person did to make his problems be solved, as the post is not clear at all on what solved the problems!
In any case, all the suggestions proposed in this post do not work and I surely cannot do a system restore when it is obvious that the two bugs do not appear in Internet Explorer.First, I sent an email to the author of PhotoME to inform him of the serious issues his addon caused with Firefox latest versions.
Now, for those of you who do not have the PhotoME addon and yet experience the same problem that I had and that I described above, I suggest the following strategy.
As PhotoME did cause these problems with Firefox latest versions, I am pretty covinved other addons probably might cause these problems too. Therefore, adopt the following method.
Test one addon at a time to see if this particular addon is behind your Firefox issues like the ones I had.
So, disable one addon only at a time. Then close your Firefox and restart it from scratch and see if you still have your Firefox problems. You must restart the Firefox browser from scratch. If you still have these Firefox problems, re-enable the disabled addon, restart your Firefox (again!) and repeat the same method for every single addon that you have.
Try to be selective by choosing first addons that are more likely to cause your Firefox problems such as not very well-known or not very popular addons (like it was the case for the PhotoME addon).
If this method works or if it does not work, report it on this web page so that others can be helped with your comments.
I hope this method will help you because I was really upset that I had these Firefox problems and I first thought it was the fault of Firefox, only to discover later that this PhotoME addon was the culprit and had caused me such upset. -
Trouble saving the image, save as button not working
i'm having trouble in saving the image in PNG format, it seems that the "save as" button is not working properly, what should i do?
Save from what program? On what system? In any case, ask in the product forum of whatever program you are referring to...
Mylenium -
File upload custom renaming not working with {KT_ext}
Hi,
I used many times custom renaming with file upload, and used {KT_ext} for file's extension, but in first ADDT project is not working. I use this:
$uploadObj->setRenameRule("{GET.id_cd}_{track}.{KT_ext}");
Does anybody know if {KT_ext} is broken in ADDT?
Thank you,
RubenHi Günter,
{track} and {id_track} are both table fields, and setRenameRule worked right with both, but it didn't with {KT_ext}.
I've changed {track} with {id_track} in first page, and it stills fail to put extension.
But maybe is this, in first page the column for Update Transaction is like this
$upd_cds_peces->addColumn("mp3", "FILE_TYPE", "POST", "mp3");
and in the second page (where it works right) is
$upd_cds_peces->addColumn("mp3", "FILE_TYPE", "FILES", "mp3");
Althought in both cases the file is uploaded and DDBB field is filled, maybe in first case the TNG doesn't expect a file and cannot find its extension.
I'll try to change it,
thanks,
Ruben
Edit: Yes, it was this... Now it works. Thank you Günter for your help! -
Russell Brown " Image Processor Pro " does not work under CC
I just switched from Photoshop CS 6 to CC and use Russell Brown "Image Processor Pro". Unfortunately does not work that under CC. I also want to install the fix but we probably only applied to CS6.
Does anyone have a solution to the problem.
Here the German error message: https://dl.dropboxusercontent.com/u/12684660/CC_IPP.jpg
Post translated with google Translater from the German.I installed Image Processor Pro quite some time ago. I extracted the extension package and just copied the two files "Image Processor Pro.xml" and "Image Processor Pro.jsx" into Photoshop's versions Presets\Scripts. I normally install things I add to Photoshop into my own folders outside any Adobe installation folder. Image Processor Pro is an exception because I did not want to modify X's code. Image Processor Pro is coded in a way to find which version of Photoshop is being run from and looks for its default xml file in that version Presets\scripts\ folder.
The script may save your modficaions to its defalt xml file into you user ID application data areas. And you can save you own Image Processor Pro presets configurations.
I run Windows not Mac though. -
Background image stretch in html not working if 'never remember history' is choosen
I have a problem that did not exist in previous mozilla versions. I found the problem after installing the most recent version and after setting firefox to "never remember history"
The problem is related to the CSS code for stretching a background image to fit the screen. The background image does stretch if "never remember history" is NOT set. Only part of the image is displayed and the rest of the background is black. I first noticed it with my website www.missionbayhighalumni.com and later found that the same problem also occurred with this website:
http://www.htmlite.com/faq022.php or http://www.htmlite.com/faqEX004b.html
I created several test cases with very simple code, all had the problem. The background image stretch code tests all work for other browsers and even firefox if "never remember history" is not selected. It also appears to be intermittent.Looks fine to me and all containers have a height:100%, so that is also correct
You can remove all data stored in Firefox from a specific domain via "Forget About This Site" in the right-click context menu of an history entry ("History > Show All History" or "View > Sidebar > History") or via the about:permissions page.
Using "Forget About This Site" will remove all data stored in Firefox from that domain like bookmarks, cookies, passwords, cache, history, and exceptions, so be cautious and if you have a password or other data from that domain that you do not want to lose then make sure to backup this data or make a note.
You can't recover from this 'forget' unless you have a backup of the involved files.
It doesn't have any lasting effect, so if you revisit such a 'forgotten' website then data from that website will be saved once again.
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
*Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
*Do NOT click the Reset button on the Safe Mode start window
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes -
Latest USB Image (2009.08) does not work
So I downloaded the archlinux-2009.08-netinstall-i686.img USB image and UNetBootin for Windows, and it did not install the image correctly to my USB drive.
I have plenty of space (it's an 8GB drive), and I have successfully put a number of other distros on the drive, and all while using UNetBootin on Windows.
I even tried installing it on my linux machine using the dd command and the instructions on this page: http://wiki.archlinux.org/index.php/Ins … _USB_stick
Anyone else having these problems?
Can't have fun trying Arch out if I can't even put it on my install mediaAshren wrote:
Try downloading the image again it may be corrupt. Have you checked md5sum?
You can also try the testing builds found here: http://bbs.archlinux.org/viewtopic.php?id=94687
or tpowa's images: http://bbs.archlinux.org/viewtopic.php?id=95503v
I tried the April 19th image, which according to what I read replaces the .img USB image. It worked with unetbootin, but once I booted into it, there was some error (can't remember it, gonna have to try it again to see the actual error).
tomk wrote:How exactly did this not work? Was there an error message? What was the output in response to the dd command?
Can't remember, didn't write it down...but it is inconsequential as the image wasn't working with any method. -
The pinch open and close (enlarges screen and images via trackpad) function on my Macbook Pro does not work. It worked with the previous version of firefox.
I'm not happy trying to add fixes to new version firefox. Please tell me how to get rid of this new version and reinstall the previous.Some gestures have been removed in Firefox 4.
You can restore the zoom feature by changing the values of the related prefs on the <b>about:config</b> page.
browser.gesture.pinch.in -> <b>cmd_fullZoomReduce</b>
browser.gesture.pinch.in.shift -> <b>cmd_fullZoomReset</b>
browser.gesture.pinch.out -> <b>cmd_fullZoomEnlarge</b>
browser.gesture.pinch.out.shift -> <b>cmd_fullZoomReset</b>
browser.gesture.pinch.latched -> <b>false</b>
To open the <i>about:config</i> page, type <b>about:config</b> in the location (address) bar and press the "<i>Enter</i>" key, just like you type the url of a website to open a website.<br />
If you see a warning then you can confirm that you want to access that page.<br />
You can use the Filter bar at to top of the about:config page to locate a pref more easily. -
Get Images from jar. getResource() not working
I've read some of the posts in the forum and I've tried the solutions but still cant get the images in my program.
I'll write all the things I've tried (All of them works fine when I run them from bluej):
1- The code used in the jar files in demo folder of jdk:
/** Inside the main class: */
private static ResourceBundle resources;
static {
try {
resources = ResourceBundle.getBundle("resources.Recursos", Locale.getDefault());
} catch (MissingResourceException mre) {
JOptionPane.showMessageDialog(new JFrame(), "ResourceBundle not found","Error",JOptionPane.ERROR_MESSAGE);
System.exit(1);
public String getResourceString(String nm)
String str;
try {
str = resources.getString(nm);
} catch (MissingResourceException mre) {
str = null;
return str;
public URL getResource(String key)
String name = getResourceString(key);
if (name != null)
URL url = getClass().getResource(name); // Here is the exception
return url;
return null;
public ImageIcon loadImage(String image_name)
URL image_url = null;
try
image_url = getResource(image_name);
if (image_url != null)
return new ImageIcon(image_url);
else
return null;
}catch(Exception e)
JOptionPane.showMessageDialog(new JFrame(), e.getMessage() + "In load Image","Error",JOptionPane.ERROR_MESSAGE);
return null;
/** Inside the constructor */
abrirButton = new JButton(loadImage("open"));
}//End of the class}
The ResourceBundle is a file named: Recursos.properties and it's in a folder inside the folder of my *.class and *.java And have this information:
Title=Recursos
ElementTreeFrameTitle=Elements
ViewportBackingStore=false
open=resources/open24.gif
save=resources/saveAs24.gif
cut=resources/cut24.gif
copy=resources/copy24.gif
paste=resources/paste24.gif
analisis=resources/bean24.gif
This one, runs with the jar, but the images are not in the buttons and I get the Dialog message telling me that there was an error in loadImage. Check that method. I used this dialogs to track the error and the exception it's generated by:
URL url = getClass().getResource(name);
in public URL getResource(String key) method.
2- I also tried to follow the instructions of this article that describes how to get resources from jars:
http://www.javaworld.com/javaworld/jw-07-1998/jw-07-jar-p2.html
This is the first page of the article:
http://www.javaworld.com/javaworld/jw-07-1998/jw-07-jar.html
And I did something like this:
/** Inside constructor */
abrirButton = new JButton(new ImageIcon(getImageFromJAR("Imagenes/open24.gif")));
/** Inside of my main class */
public Image getImageFromJAR(String fileName)
try{
if( fileName == null ) return null;
Image image = null;
Toolkit toolkit = Toolkit.getDefaultToolkit();
image = toolkit.getImage( getClass().getResource(fileName) );
return image;
}catch(Exception exc){
JOptionPane.showMessageDialog(new JFrame(), "Exception loading the image","Error",JOptionPane.ERROR_MESSAGE);
return null;
...The images in this one are in the folder Imagenes inside the folder of my *.class and *.java
This one work fine in bluej too, but the jar... It doesn't even start.
3- And the last one.
abrirButton = new JButton(new ImageIcon(getClass().getResource("Imagenes/open24.gif"));Works fine in bluej, not running in jar.
Am I doing something wrong? Please somebody help me.
thanks in advanceAre you putting the image files inside the jar? If you are, then use "jar tf jarfile.jar" to display the contents of the jar and make sure the files are there and inside the right directory. If you are not, then you can not use getClass().getResource() from a jar file because it will look inside the jar file.
If you are getting an error message, please post it. -
Background Image in Nav Bar Not Working in IE 6 (but ok in 7 and Firefox 2)
Hi gang,
I'm having a bit of a problem with a background image for a navigation bar not appearing in IE 6. I've also tested it in IE 7 - it works perfectly, as it does in Firefox 2.
http://www.iainmoran.com/update/test.html
The really strange thing is the part of the bar after "Contact" IS fine in IE 6.
Also, is there any way to remove unused styles (in an external CSS) in DW? Just it would be a pain to go through and remove the styles I've tried, but then later decided not to use.
Thanks again,
Iain.Have you contacted Project VII support or searched their knowledge base?
http://www.projectseven.com/support/index.htm
Also, is there any way to remove unused styles (in an external CSS) in DW? Just it would be a pain to go through and remove the styles I've tried, but then later decided not to use.
Not exaclty a DW answer, but I've used the free FireFox add-on to help me find unused selectors. Point it to a sitemap.xml and it can spider the whole site (as listed in that xml file).
https://addons.mozilla.org/en-US/firefox/addon/5392
But be careful with it. It apparently doesn't read JavaScript and your PMM triggers are actually used.
Mark A. Boyd
Keep-On-Learnin' :-)
If you are reading this via email, be aware that it may not be an accurate representation of my message. Login to read the actual message and/or to reply. -
File upload with DAD not working
Hi all,
I have an application which uses the file upload function, similar to the sample http://otn.oracle.com/products/database/htmldb/howtos/howto_file_upload.html
During the development I was not using a DAD and it was working perfectly. Now I have changed the application to use a DAD and now the file upload fails with a HTTP 404 - File not found error
[DAD_din]
connect_string = deccasm01os.na.decoma.com:1521:DIN
;password =
;username =
;default_page =
document_table = wwv_flow_file_objects$
document_path = docs
document_proc = wwv_flow_file_mgr.process_download
;upload_as_long_raw =
;upload_as_blob =
;name_prefix =
;always_describe =
;after_proc =
;before_proc =
reuse = Yes
;connmax =
;pathalias =
;pathaliasproc =
enablesso = No
;sncookiename =
stateful = STATELESS_RESET
;custom_auth =
response_array_size = 128
;exclusion_list =
;cgi_env_list =
bind_bucket_widths = 32,128,1450,2048,4000
bind_bucket_lengths = 4,20,100,400
;error_style =
;nls_lang =
BTW, it is on HTMLDB v1.6 on 9iDB (9.2.0.4)
thxRob,
The File Browse item type does not require upload table WWV_FLOW_FILE_OBJECTS$. The POST for the File Browse item type is intercepted by modplsql and is inserted into the Document Table as defined by the Database Access Descriptor.
You could ultimately create your own DAD with your own Document Table. The Document Table would have to contain the minimum definition as described at:
http://download-west.oracle.com/docs/cd/B14099_03/web.1012/b14010/concept.htm#i1005880
This way, users of the application using the Basic Database Authenticated DAD would be uploading directly into your table and not the HTML DB one. A word of caution, though, is that you would never want to use this DAD with HTML DB development itself...you would need to use the DAD that specifies upload into WWV_FLOW_FILE_OBJECTS$ for HTML DB development.
I hope this helps.
Joel -
Flat file upload program is not working
Hi Experts,
I am using following code to upload a flat file from my local PC to SAP
The code is NOT inserting records in zassum, /bic/pzassum and /bic/tzassum. zassum is SAP BW infoobject. I have run debugger and found that data is getting populated correctly for ztable_data and ztable_text.
The program is getting compiled / activated successfully. I am even getting message " ZASSUM got updated successfully ". However the issue persists.
I am new for ABAP. I might have committed some mistake any where in the code.
Also pls let me know whether statement "PERFORM update_alv_grid_display" is really needed.
Thanks
Smith
FORM upload_batches.
DATA : wf_title TYPE string,
lt_filetab TYPE filetable,
l_separator TYPE char01,
l_action TYPE i,
l_count TYPE i,
ls_filetab TYPE file_table,
wf_delemt TYPE rollname,
wa_fieldcat TYPE lvc_s_fcat,
tb_fieldcat TYPE lvc_t_fcat,
rows_read TYPE i,
p_error TYPE char01,
l_file TYPE string.
TYPES : BEGIN OF test_struc,
/bic/zassum TYPE /bic/oizassum,
txtmd TYPE rstxtmd,
END OF test_struc.
DATA : test_upload TYPE STANDARD TABLE OF test_struc.
DATA : wa_test_upload TYPE test_struc,
ztable_data TYPE TABLE OF /bic/pzassum,
ztable_text TYPE TABLE OF /bic/tzassum,
wa_upld_text TYPE /bic/tzassum,
wa_upld_data TYPE /bic/pzassum,
wa_actbatch TYPE /bic/pzassum.
wf_title = text-026.
CALL METHOD cl_gui_frontend_services=>file_open_dialog
EXPORTING
window_title = wf_title
default_extension = 'txt'
file_filter = 'Tab delimited Text Files (*.txt)'
CHANGING
file_table = lt_filetab
rc = l_count
user_action = l_action
EXCEPTIONS
file_open_dialog_failed = 1
cntl_error = 2
OTHERS = 3. "#EC NOTEXT
IF sy-subrc <> 0.
EXIT.
ENDIF.
LOOP AT lt_filetab INTO ls_filetab.
l_file = ls_filetab.
ENDLOOP.
CHECK l_action = 0.
IF l_file IS INITIAL.
EXIT.
ENDIF.
l_separator = 'X'.
wa_fieldcat-fieldname = 'test'.
wa_fieldcat-dd_roll = wf_delemt.
APPEND wa_fieldcat TO tb_fieldcat.
CLEAR wa_test_upload.
Upload file from front-end (PC)
File format is tab-delimited ASCII
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = l_file
has_field_separator = l_separator
TABLES
data_tab = i_mara
data_tab = test_upload
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
EXIT.
ELSE.
LOOP AT test_upload INTO wa_test_upload.
CLEAR : p_error.
DESCRIBE TABLE test_upload LINES rows_read.
IF wa_test_upload-/bic/zassum IS INITIAL.
p_error = 'X'.
MESSAGE s153 WITH wa_test_upload-/bic/zassum sy-tabix.
CONTINUE.
ELSE.
IF sy-subrc = 0.
ENDIF.
ENDIF.
wa_upld_text-txtmd = wa_test_upload-txtmd.
wa_upld_text-txtsh = wa_test_upload-txtmd.
wa_upld_text-langu = sy-langu.
wa_upld_data-/bic/zassum = '11'.
wa_upld_data-chrt_accts = 'abc'.
wa_upld_data-co_area = '1234'.
wa_upld_data-/bic/zbhpbcsg = 'uv'.
wa_upld_data-objvers = 'A'.
wa_upld_data-/bic/zass_mdl = 'pqr'.
wa_upld_data-/bic/zass_typ = 'I'.
wa_upld_data-/bic/zdriver = 'defg'.
MOVE-CORRESPONDING wa_test_upload TO wa_upld_data.
MOVE-CORRESPONDING wa_test_upload TO wa_upld_text.
APPEND wa_upld_data TO ztable_data.
APPEND wa_upld_text TO ztable_text.
ENDLOOP.
CALL FUNCTION 'MESSAGES_INITIALIZE'.
IF ztable_data IS NOT INITIAL.
CALL FUNCTION 'RSDMD_WRITE_ATTRIBUTES_TEXTS'
EXPORTING
i_iobjnm = 'ZASSUM'
i_tabclass = 'M'
TABLES
i_t_table = ztable_data
EXCEPTIONS
attribute_name_error = 1
iobj_not_found = 2
generate_program_error = 3
OTHERS = 4.
COMMIT WORK.
IF sy-subrc <> 0.
CALL FUNCTION 'MESSAGE_STORE'
EXPORTING
arbgb = 'Zmy_prg'
msgty = 'E'
txtnr = '054'
msgv1 = text-033
EXCEPTIONS
OTHERS = 3.
CALL FUNCTION 'MESSAGE_STORE'
EXPORTING
arbgb = sy-msgid
msgty = sy-msgty
txtnr = sy-msgno
msgv1 = sy-msgv1
msgv2 = sy-msgv2
msgv3 = sy-msgv3
msgv4 = sy-msgv4
EXCEPTIONS
OTHERS = 3.
MESSAGE e054(z_myprg) WITH 'ZASSUM'.
ELSE.
CALL FUNCTION 'MESSAGE_STORE'
EXPORTING
arbgb = 'Z_BM_BPS'
msgty = 'S'
txtnr = '053'
msgv1 = text-033
EXCEPTIONS
OTHERS = 3.
MESSAGE s053(z_myprg).
IF ztable_text[] IS NOT INITIAL.
CALL FUNCTION 'RSDMD_WRITE_ATTRIBUTES_TEXTS'
EXPORTING
i_iobjnm = 'ZASSUM'
i_tabclass = 'T'
TABLES
i_t_table = ztable_text
EXCEPTIONS
attribute_name_error = 1
iobj_not_found = 2
generate_program_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
CALL FUNCTION 'MESSAGE_STORE'
EXPORTING
arbgb = 'Z_myprg'
msgty = 'E'
txtnr = '055'
msgv1 = text-033
EXCEPTIONS
OTHERS = 3.
CALL FUNCTION 'MESSAGE_STORE'
EXPORTING
arbgb = sy-msgid
msgty = sy-msgty
txtnr = sy-msgno
msgv1 = sy-msgv1
msgv2 = sy-msgv2
msgv3 = sy-msgv3
msgv4 = sy-msgv4
EXCEPTIONS
OTHERS = 3.
ENDIF.
ENDIF.
ENDIF.
COMMIT WORK.
ENDIF.
ENDIF.
CALL FUNCTION 'RSDG_IOBJ_DEQUEUE'
EXPORTING
i_objnm = 'ZASSUM'
i_scope = '1'.
PERFORM update_alv_grid_display.
CALL FUNCTION 'MESSAGES_SHOW'.
ENDFORM. " upload_batches.
Maybe you are looking for
-
Azure Site to Site VPN with Cisco ASA 5505
I have got Cisco ASA 5505 device (version 9.0(2)). And i cannot connect S2S with azure (azure network alway in "connecting" state). In my cisco log: IP = 104.40.182.93, Keep-alives configured on but peer does not support keep-alives (type = None) Gro
-
Automatic archiving FI invoices while printing
Hi guys ! I need to build an "archiving system" for FI documents. The overall requirement is to archive all invoices in pdf format in external system (let's call it ES), and then link those documents to SAP FI module My initial concept was to save PD
-
The time will stay correct for an hour or so, then jump backwards for no reason. I have tried setting the time manually and automatically and still get the same problem, and have tried with wifi on and off and it still does it. All my software is up
-
I get an Error: "The system cannot find the file specified" when trying to print to PDF w/ Acrobat 9.5 using Windows 7. This just started happening after upgrading to MS 2013 suite and also installed Adobe Reader at that same time. I had problems in
-
Hey, I tried hooking up a lcd monitor to my ibook. I can't seem to get each monitor, the lcd on the ibook and the lcd panel to show a diiferent display. I don't know how to have two independant displays. I know ther is a button to take it out of mirr