GUI_DOWNLOAD: problems with table containing char length 8000
Hi
I have some problems using GUI_DOWNLOAD. Here is some of my code:
DATA: g_record TYPE Z_CHAR8000 OCCURS 0 WITH HEADER LINE.
z_char8000 is a char of length 8000
insert code to fill data in g_record
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = g_filename
filetype = 'ASC'
filetype = 'BIN'
TRUNC_TRAILING_BLANKS = 'X'
TRUNC_TRAILING_BLANKS_EOL = 'X'
TABLES
data_tab = g_record
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
An example of data in g_record:
Hans,Kruger,Berlin,Superstrass 3,0101709991,,,,,,,,,,,,
When I open the resulting file in notepad the above data is present, and that's a good thing! The bad thing is that for every entry I have in the g_record table the GUI_DOWNLOAD puts 8000 characters into the file (the data from g_record and trailing blanks so that the line becomes 8000 chars long). I dont want the trailing blanks and TRUNC_TRAILING_BLANKS dont seem to work. Have any of you had hte same problem and/or is there a solution?!
I have tried using filetype ASC and here I dont get the trailing blanks, but another problem hits me. I cant download more that 1024 characters from each entry in g_record and thats not good enough!
Regards Anders
Hi Andres,
take this itab-definition for your download:
TYPES:BEGIN OF ty_down,
line TYPE string,
END OF ty_down.
DATA wa_down TYPE ty_down.
DATA g_record TYPE TABLE OF ty_down.
regards Andreas
Similar Messages
-
I'm having a lot of problems with tables not reflecting their formatting when I open them in a browser. I've tried opening in Safari, Firefox & Camino with the same results. For example, a row with the following html content has a much larger height & aligns the text to the top when opened in a browser:
<tr>
<td height="15" colspan="3" valign="middle"><h6 align="center">Summer 2009</h6>
</td>
</tr>
If it matters, this is a row in a table nested in another table. Here's the code down to the row in question (all tags are closed properly in the remaining code):
<table width="600" border="2" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><img src="images/events.jpg" width="250" height="35"></td>
</tr>
<tr>
<td align="left" valign="top">
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td height="15" colspan="3" valign="middle"><h6 align="center">Summer 2009</h6>
</td>
</tr>
I am using a style sheet for text. Here's the code for "h6" if that matters:
h6 {
font-family: Verdana, Geneva, Arial;
font-size: 14px;
font-weight: bold;
color: #660099;
Any ideas is appreciated. This is driving me nuts. Spacing and alignment sometimes work and sometimes don't work. Dreamweaver is supposed to make such things easier!
KevinHeader tags are usually used round a bit of text, not parts of a table, and if you don't specify the margins on them, can force different amounts of space below in different browsers. Try making the bottom margin on h6 zero, and confine it to text within a cell.
Also, if you can upload your page somewhere and let us have the url it will be easier to troubleshoot. -
Problem with tables -- need help!
I am having problems with table formatting, when using
Preformatted text. The tables look fine in the WYSIWYG editor, but
have lots of extra space above and below the text when looking at
the output files.
I will attach the code from one of the HTML files from my
project, so you can see what I'm talking about.
Thanks.Well, if you're talking about the single-celled table with
the line:
<p class=Preformatted>[assembly:
Ace.AceAssembly]</p>
</pre>
... you can eliminate the <P> tags. that will give you
one line less. Otherwise, your remaining space is the result of the
<PRE> tag. It, like the <XMP> tag, gives it one line of
space beneath as well.
Your alternative beyond that would be to, when needed, wrap
up the script in Javascript. That line, for instance, wouldn't need
it. -
What could be the problem with table REGUH
Hi exprts
i developed a report . its wrking ok in developemt system
but in Quality system ,
the below query is taking more time.
in quality even i have taken slection criteria which is very less than devlopment selection.
please tell me the below query is performance wise not good or
is there any problem with table REGUH in quality system?
IF NOT ( t_bsak_aux[] IS INITIAL ).
SELECT laufd laufi xvorl zbukr lifnr rwbtr kunnr empfg"
vblnr ausfd rzawe
FROM reguh
INTO TABLE t_reguh
FOR ALL ENTRIES IN t_bsak_aux
WHERE laufd <> space
AND laufi <> space
AND zbukr = t_bsak_aux-bukrs
AND lifnr = t_bsak_aux-lifnr
AND vblnr = t_bsak_aux-augbl.
thanks in advance
regards
neeruHi,
Using SPACE against the keys (LAUFI, LAUFD - specifically LAUFD) will most likely return no results. LAUFD, being one of the keys and the date which the program is supposed to run (considering that this is settlement data - it has already run) - implies that this field will be populated. Putting " = SPACE" in your where clause is saying that you want to find records from the table where those fields are not populated. That is fine for LAUFI, considering it is the indicator for a proposal only. In my requirement, my client did not want to see proposals but only real payment runs - therefore, LAUFI = SPACE is correct.
The reason you are having poor performance while selecting form this table is because it is a cluster table like bseg. This thread explains a little bit of why cluster tables are a performance nightmare when trying to select - although it is about bseg, you will get the idea:
http://blogs.ittoolbox.com/sap/db2/archives/select-from-bsegrfblg-performance-problem-14247
I'm trying to find an alternative to get bank account information regarding payments - I will post a reply if I am lucky to find one!
Good luck -
Problems with OLE Container in QUERY
Hi all,
I have problem with OLE Container when I am trying to retrieve data from the database. Inserting is no problem and commit is done. I am doing it with
initialize_container('block.ole_object','C:\test.doc');
I have only one column of BLOB type and it is last in the block as it was suggested somewhere on the forum.
When I am trying to retrieve the already inserted data I get error with the following
Description:
FRM-40505: Oracle ERROR: unable to perform query and CTRL+F1 says the following:
ORA-00932: inconsistent data types: expected got
The forms and the database are as follow:
Forms [32 Bit] Version 6.0.8.24.1 (Production)
Oracle Database 10g Enterprise Edition Release 10.1.0.4.2 - Production
I need immediate help!!!This may be related to the 10g database, I'm not sure as there is no way for me to test it. I know that it works with a 9i database.
One thing to check is to make sure that you don't have the FORMS60_DISABLE_DESCRIBE set to 1 within the Oracle registry.
If this doesn't work, your only option might be to use a LONG RAW instead of a BLOB column type in the database. -
Hello SAP experts , im having a little problem with table MBEWH because the data i whant to extract isnt the correct one, i saw that this table stores all the prices for the materials and it groups them by year and by month but when i check to see what was the price for a specific material the price i had on that time periord inst the same as the one on the system, also i manage my material with baches and when i check to see if that batch was in that period of time it isnt so im really confused as to how the system saves the historical data on this table, thank you in advanced.
kind regardsread OSS note 193554 , it explains everything
-
Problem with Table control lines
Hi Friends,
This is the problem with table control lines:
I have screen with table control and I would like change the table control lines dynamicaly.
Exp:
In my PBO the Internal table which I am using to loop the TC is havig 7 records and its displayed with 7 records, now I have added one more record into my ITAB and now ITAB is having 8 records, when I am looping this ITAB with TC its taking the TC lines 7 only.
here is the code:
Initial values in gt_scr400 = 8
Initial values in tc_scr400 = 8
Now added one more recor into gt_scr400 , now gt_scr400 = 9.
LOOP AT gt_scr400
INTO wa_scr400
WITH CONTROL tc_scr400
CURSOR tc_scr400-current_line.
ENDLOOP.
I have used this logic :
DESCRIBE TABLE gt_scr400 LINES g_rec_300 .
tc_scr300-lines = g_rec_300.
but its not modifying the lines in my table control.
How to change the TC lines based on ITAB total records.
Thanks,
Sridharthere is a field in TableViewName-xxx
don't remember the exact field name for (total no of records)
you can check it in debug. when you add records in Internal table, u need to modify this field which is set at the first time when table control is populated. -
Problem with table paging [PDK for NET]
Hi All,
I have a problem with table paging in PDK for .NET (ver 2).
The Table has 14 visible rows.
The lead selection is set to "SINGLE"
When the user selects a row I can use
Table1.SelectedKeys(0) Mod Table1.VisibleRowCount
in order to get the info of the selected row.
If I will page using the "Prev/Next" page of the Table UI element it will also work.
However, when I press "Prev/Next" item and then select a row it chooses the wrong row.
(See picture: http://img509.imageshack.us/img509/3882/table5tq.jpg)
What can I do in order to solve the problem?
Thanks,
OmriHi Omri,
how are you doing ?
The SAPTable is similar to a DataGrid control and need to be bound to the datasource on every postback
a good idea is to keep the dataset available in the page or on the server ( so that you dont need to keep making expensive fetch operations
The selected row is affected by the recordset (dataset) and needs additional programming
A work around for the selected row issue is to save it in a server side hidden variable (or anything that will persist) and read and set the value in the page / next button handler
with respect,
amit -
Bex analyzer - internal error problem with table c_t_variable
HI All,
When ever I try to refresh a query in Bex-Analyzer ,Iam getting "internal error problem with table c_t_variable".
Please advise
Edited by: Aparna Duvvuri on Jan 13, 2010 10:53 AMHi Aparna,
try to open the query in RSRT and debug the query.the error is due to some customer exit variable so try to debug the code for the variable and rectify it.
Thanks,
Ashok -
Error "DATABASE PROBLEMS WITH TABLE MC11VA0HDRSETUP"
Hi Friends,
I got the following message when am trying to delete the setup tables.
" Error DATABASE PROBLEMS WITH TABLE MC11VA0HDRSETUP"
Am trying to delete the setup tables for application '11', but it gives me the above error. I have gone throug similar threads but it did not solve my issue.
Please can anyone provide a solution.
system detials:
R/3 release - 4.6c
PI - 2004_1_46c
SAP_BW - 30B
PI_BASIS - 2003_1_620
Any information will be appreciated
Thanks,
VBRHi Kishor,
Thanks for your reply.
I have gone through that SAP Note 456102 and it was not of much help for our issue because we are ahead of PI that is mentioned in the note.
Can you send your email id so that i can forward the error screenshots.
Regards,
VBR -
Hi experts,
After doing the upgrade system from 4.7 to 6.0 we have problems with table Teven. Trying executing RPTIME00 when the instruction update (table teven) is executed the program stay updating and never finished
Does anybody know why that happens?
Thanks a lot,
Regards,
RebecaDid you update your database statistics after the ugprade?
Try to catch an SQL Trace for the statement using ST05.
Markus -
Problem with table name lengths.
Has anyone experienced with table name length problem?
When tables are created with schema registration, and the name is longer than 14 characters, the table is created. But when I "select * from xxxx_xxxx_xxxx_xxxx" it says that the table doesn't exist.
What's the max length of a table name? Or is this a problem with XDB?
Thanks,
BenjaminFound the problem.
All table names must be all capitalized and seperated with underscore.
Is there something I need to set in oracle? or is this a bug? The tables are created but can't be accessed because of the case of table name... that doesn't make sense. -
Problem with SQL loader - "maximum length"
using SQL*Loader: Release 8.1.7.0.0
===================================
(full CTL enclosed below)
I have a problem with several rows, in which I'm getting the "Field in data file exceeds maximum length" error.
the DB field (referer) is a VARCHAR2(4000), and the field in the error rows never exceeds few hundred characters. According to Oracle docs I should be able to load fields which are no bigger than the DB field, what gives?
I tried the variation
referer CHAR "SUBSTR(:referer,1,100)"
for this field, which causes all the "referer" columns in the "good" rows to load no more than 100 characters, but the same error repeats for the same rows!
the input file is an IIS log, and the field is the REFERER field. its pure ASCII encoded, is there some character that cause Oracle to behave this way? is this a bug?
here is one "bad" row: the "bad" field starts with "ht
tp://web , is enclosed with quotes. I have replaced the client IP and other fields with xxx for privacy reasons.
after that, I have enclosed my CTL as well.
any help ?
Yoram Ayalon
BTW - I verified in the LOG file that the loader is reading my options for the columns as I described in the CTL. no problem there.
"2003-06-30 11:11:12" xxx.xxx.xxx.xxx WEBSRVXX 80 GET /xxx.xxx 200 0 778 1359 "ht
tp://web.ask.com/redir?bpg=http%3a%2f%2fweb.ask.com%2fweb%3fq%3dWhat%2bis%2bsign
al%2bcommunication%253f%26o%3d0%26page%3d1&q=What+is+signal+communication%3f&u=h
ttp%3a%2f%2ftm.wc.ask.com%2fr%3ft%3dan%26s%3da%26uid%3d032EBF1A318A100F3%26sid%3
d3d2bbe4f8d2bbe4f8%26qid%3d4B2346DA8A56C6418CB4DCB9091EEBA7%26io%3d0%26sv%3dza5c
b0db2%"
LOAD DATA
INFILE '/tmp/mod_websrvxx.txt'
APPEND INTO TABLE tmpLogs
FIELDS TERMINATED BY WHITESPACE optionally enclosed by '"'
(LogDate DATE "YYYY-MM-DD HH24:MI:SS", ClientIP, ServerName, ServerPort, ClientM
ethod,UriStem,Status,BytesSent,BytesReceived,TimeTaken,Referer CHAR "SUBSTR(:Re
ferer, 1, 100)" )Use:
readsize=3000000
or some large number to raise this limit.
Check the below link for detailed explanation
http://asktom.oracle.com/pls/ask/f?p=4950:8:380010202423963671::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:2167288643374, -
Problem with Table control & i/o field
hi experts,
i have a problem with both table control and i/o field.
2 i/o fields and 1 table control.
i/o field are common for table control data.
when i am inserting ata from here to database table, table control data are inserted successfully, but from i/o field data are not inserted.
kind regards,
debendraHi
You must create data objects in your ABAP code having same name as your screen i/o fields. Now these objects will contain the data entered in your screen. Use these objects to insert data in your db table.
Hope this helps
Regards,
Jayanthi.K -
Set_server_cookie: problem with table size above 124 lines
Hi SDN,
we are on WAS700, SRM 5.5 system. We use Internet Explorer 6.0
I have built a BSP which works fine so far. It consists of 2 pages. i am using:
CALL METHOD cl_bsp_server_side_cookie=>set_server_cookie
EXPORTING
name = 'cookie_kat'
application_name = runtime->application_name
application_namespace = runtime->application_namespace
username = usr
session_id = '666' "runtime->session_id
* expiry_date_abs = sy-datum
* expiry_time_abs = sy-uzeit
data_name = 'tab'
data_value = ig_all
expiry_time_rel = 7200.
to transfer an internal table called ig_all to the 2nd page. We noticed that, when the table contains up to 123 lines, everything works fine. When carrying 124 or more lines I get the "normal" Internet Explorer Error: Server not found. The requested page cannot be displayed...
Debugging I noticed that the method call cl_bsp_server_side_cookie=>set_server_cookie
works fine, but between the two BSP pages I get thrown out of the debugger at the following method call, which occurs in the debugger after leaving the first page coding:
4 class lcl_hr_timer implementation.
5
6 method if_abap_runtime~get_runtime by kernel module ab_kmGetRuntime
7 endmethod.
8 endclass.
Can somebody help?
Are there any special requirements or constraints for the transfer of tables using serverside cookies?
kind regards,
matthiasHi Raja and Cornelia,
thanx to u for the input.
Raja:
I unchecked the "show friendly messages" checkbox but still I just receive: Server Error - Page cannot be displayed. As I am using the German Internet Explorer, I think "kurze http-Fehlermeldungen anzeigen" (English: "show short http-error messages") is the right checkbox, which I unchecked - it is the 8th checkbox under Browsing.
I am using a tool called httpWatch - I can give you the contents of parameters like:
Headers, Cookies, POST Data, Sream...
Under POST Data, I can see all my 124 entries - in my case these are SAP Material Numbers. With these I fill an internal table which consists of 30 columns - this table is being transferred to the 2nd page.
here are the Headers from httpWatch for my Error Case - looks ok to me:
(Request-Line) POST /sap(bD1kZSZjPTMwMQ==)/bc/bsp/sap/Z_SCAN_PZN_SAP1/start.htm HTTP/1.1
Accept image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, /
Accept-Encoding gzip, deflate
Accept-Language de
Cache-Control no-cache
Connection Keep-Alive
Content-Length 2754
Content-Type multipart/form-data; boundary=----
7d8326747024c
Cookie sap-appcontext=c2FwLXNlc3Npb25pZD1TSUQlM2FBTk9OJTNhdWttc3J2MTYyX0VCVF8wMCUzYVZ6Y0VDSXZSd3NVMEM1WWZfVlU0cmhzNHVwNnhsVllWUGF4ZDBiT3UtQVRU; sap-usercontext=sap-language=DE&sap-client=301; MYSAPSSO2=AjExMDABAAxLQVNJR01BVCAgICACAAMzMDEDAAhFQlQgICAgIAQADDIwMDgwODEzMTQyMgUABAAAAAIGAAFYCQABRP8A9DCB8QYJKoZIhvcNAQcCoIHjMIHgAgEBMQswCQYFKw4DAhoFADALBgkqhkiG9w0BBwExgcAwgb0CAQEwEzAOMQwwCgYDVQQDEwNFQlQCAQAwCQYFKw4DAhoFAKBdMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTA4MDgxMzE0MjIzMlowIwYJKoZIhvcNAQkEMRYEFEFPCUKwJ5uX4Vcc3NlTInsgcSX0MAkGByqGSM44BAMELjAsAhQOFblRy354tdwDMwmLp5servx6tAIUU141AjEb0kZeeMlj5jqs294JtkQ%3d
Host ukmevit1.ukmuenster.de:8028
Referer http://ukmevit1.ukmuenster.de:8028/sap(bD1kZSZjPTMwMQ==)/bc/bsp/sap/Z_SCAN_PZN_SAP1/start.htm
User-Agent Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
and here are the POST Data from httpWatch:
htmlbevt_cnt 0
htmlbevt_frm htmlb_form_1
htmlbevt_id clicked
htmlbevt_oid B01
htmlbevt_ty htmlb:button:click:null
htmlbScrollX 0
htmlbScrollY 261
I01 https://ukmevit1.ukmuenster.de:8471/sap(cz1TSUQlM2FBTk9OJTNhdWttc3J2MTYyX0VCVF8wMCUzYVZ6Y0VDSXNudjhoR2cwYVN1ZENxYndmNXVwbXhsVllUUGF4N0ZuS3UtQVRU)/bc/gui/sap/its/bbpsc01/?OkCode=ADDI&target=_top&CALLER=CTLG&client=301&language=DE&HTTP_CONTENT_CHARSET=iso-8859-1
onInputProcessing htmlb
PZN 1000000
1000001
1000002
1000007
1000008
1000009
1000011
1000012
1000013
1000014
1000015
1000016
1000017
1000018
1000019
1000020
1000023
1000024
1000025
1000031
1000032
1000033
1000034
1000035
1000036
1000040
1000041
1000042
1000043
1000044
1000045
1000046
1000047
1000048
1000100
1000121
1000122
1000123
1000125
1000126
1000127
1000128
1000129
1000130
1000131
1000133
1000134
1000135
1000136
1000137
1000138
1000139
1000140
1000141
1000142
1000143
1000144
1000145
1000146
1000148
1000149
1000150
1000151
1000152
1000153
1000154
1000155
1000156
1000157
1000158
1000159
1000160
1000161
1000162
1000163
1000164
1000165
1000166
1000167
1000168
1000169
1000170
1000171
1000172
1000173
1000174
1000175
1000176
1000177
1000178
1000179
1000180
1000181
1000182
1000183
1000185
1000186
1000187
1000188
1000189
1000190
1000191
1000193
1000194
1000195
1000196
1000197
1000198
1000199
1000200
1000320
1001630
1001631
1001637
1001811
1002243
1002497
1003920
1003950
2000004
2000005
2000006
2000007
2000008
2000009
2000010
2000011
2000013
2000014
2000015
2000016
2000017
2000018
2000019
2000020
2000021
2000022
2000023
2000024
2000025
2000026
2000027
2000028
sap-htmlb-design
Cornelia:
Before I had tried
navigation->set_parameter( name = 'ig_all' value = ig_all )
but for some reason that did not work - I think I was guided by this forum towards the cookie solution - which so far, worked fine...
But I might check again the
navigation->set_parameter( name = 'ig_all' value = ig_all )
case
kind regards, matthias
Maybe you are looking for
-
Displaying the column values of a wizard-generated form
Hello, I created a Master-Detail page following the examples in the various Apex guides. The form is not working correctly, unfortunately. When I click the Add Row button a row is added at the bottom of the table. Once I enter data into that row and
-
Flash Player für LG 47 LM 660 s
Hallo, da ich Euer System der Forensuche nicht verstehe trage ich hier mal meine Frage ein. Englisch kann ich nicht, somit möge man mir verzeihen aber vielleich gibt jemand bei Adobe der Deutsch versteht. Also ich hab mir vor kurzem einen LG 47 LM
-
Reduce pdf file size OSX 10.9
how can I reduce the size of a pdf in Mavericks?
-
Needed Varible ND Suggestions For 7d EFS 17-55mm Lens
Hi, I'm looking for suggestions for a varible ND filter for my 7D EFS 17-55mm lens. Wanting to shoot video on the high end towards the f/2.8 range of this lens. Currently, my sweet spot without a ND is anywhere from f/14 to f/18 bright/cloudy outdoo
-
Since installing Firefox 3.6.9, can't insert images into my email.
Last Thursday, Firefox updated my system to 3.6.9. My email goes through Network Solutions. Now I cannot insert an image into the body of my email. I can still attach an image file to the email, but not make it show up in the body of the text.