‎2005 Dec 11 10:38 AM
Dear SAP Gurus;
Mentioning below concern lines of code; this code is to extract data from SAP and export in XML format. With this data is getting exported when record are few (less than 50000 Characters) once exceeds XML getting created with errors.
My question is there a way to define table with bigger size than 65534 Characters?
Sample:
<b>Data Declerations:</b>
TYPES: BEGIN OF ttab,
record(50000) TYPE c,
END OF ttab.
DATA: xmltable TYPE TABLE OF ttab.
DATA: xml_out TYPE string,
length LIKE sy-tabix.
<b>XML Conversion</b>
CALL TRANSFORMATION id
SOURCE output = it_pernr
RESULT XML xml_out.
APPEND xml_out TO xmltable .
<b>Download</b>
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = <i><length>???</i>
filename = fullpath
filetype = 'BIN'
IMPORTING
filelength = <i><length>???</i>
TABLES
data_tab = xmltable
FIELDNAMES =
EXCEPTIONS
Reward points are certain...
Best Regards,
Aslam Riaz
‎2005 Dec 11 11:36 AM
create the xmltable like below.
data: xmltable type standard table of string .
this way you should not have problem. i have used this in the past without any problem.
Regards
Raja
‎2005 Dec 11 11:36 AM
create the xmltable like below.
data: xmltable type standard table of string .
this way you should not have problem. i have used this in the past without any problem.
Regards
Raja
‎2005 Dec 11 11:44 AM
Hi Raja,
Getting a short dump when using this...
data: xmltable type standard table of string .
That's I moved to code yesterday;
TYPES: BEGIN OF ttab,
record(50000) TYPE c,
END OF ttab.
DATA: xmltable TYPE TABLE OF ttab.
Thanks & Regards,
Aslam Riaz
‎2005 Dec 11 11:53 AM
what is the short dump analysis says! which version of WAS you are on.
Regards
Raja
‎2005 Dec 11 12:09 PM
Thanks Raja,
Our WAS 6.20
Please find;
Error analysis
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class 'CX_SY_CREATE_DATA_ERROR', was
neither
caught nor passed along using a RAISING clause, in the procedure
"PUT_CHAR_LINEBUFFER" "(FORM)"
.
Since the caller of the procedure could not have expected this exception
to occur, the running program was terminated.
The reason for the exception is:
CREATE DATA should be used to create a data object of the type "C" with
the length
106542. The value 106542 does not lie within the valid range.
Valid range for the length declaration:
Type C, N, X: 1 .. 65535
Type P: 1 .. 16
Best Regards,
Aslam Riaz
‎2005 Dec 11 12:14 PM
we are on WAS6.40 and it works fine. let me look for a alternative method and get back.
Regards
Raja
‎2005 Dec 11 12:23 PM
do you have the following OSS note applied in the system. If not it looks like that this will prevent the error you are mentioning from happenning.
882285
Regards
Raja
‎2005 Dec 12 12:31 PM
Dear Raja,
Thanks a lot... if truth be told man you are a GEM...
Applying this note fixed the problem...fantastic...
Keep-up the good work. <b>God bless you</b>.
I personally would like to call you and thank... was not aware is it ok with you... Hence please except my gratitude.
Best Regards,
Aslam Riaz
‎2005 Dec 12 12:57 PM
Glad to hear that.
You can call/mail me anytime.
You can find my contact details , in my business card.
Regards
Raja