More than 255 characters in background

HI,
My report width is 275 which is displaying when run in front ground. but when run in background it truncates after the 255 characters.
We have created a format using 'SPAD' of width 300, area is showing but the data is not showing after 255.
I have mention line-size 275 in report, i tried this without mentioning line-size but the result is same. it gets truncates after 255, empty area is showing after 255 if we use width 300 format...
Thanks

Hi,
After creation of the new format, run the job with the new format ie. attach the new format to your printer, and run the job.
Now take the spool number and put it as a parameters to the following program .
Hope it work fine.
Rewards points if useful.
Here is the code: 
Display spool list > 255 columns 
This is a SAP utility report to allow display of 
spool request lists with more than 255 columns in 
releases 4.6B and 4.6C (4.6D kernel must be used) 
REPORT ZRSPOSHOWLIST LINE-SIZE 80. 
PARAMETERS: RQIDENT LIKE TSP01-RQIDENT, 
FIRSTL TYPE I DEFAULT 0, 
LASTL TYPE I DEFAULT 0. 
global data from LSPOXTOP 
DATA: RC(10) TYPE C, 
ERRMSG(100) TYPE C, 
STATUS LIKE SY-SUBRC, 
DSN_TYPE(8) TYPE C. 
DATA: BEGIN OF DATA_SET_LINE, 
DATA_LENGTH(5), 
PRECOL(1), 
DATA_LINE(1000), 
DATA_LINE(5000), "MODAB 
END OF DATA_SET_LINE, 
DATA_SET_LENGTH(5) TYPE C. 
TABLES: TSP01, TST05, TSPOPTIONS. 
DATA: TEMSE_NAME LIKE TST01-DNAME, 
TEMSE_CLIENT LIKE TST01-DCLIENT, 
TEMSE_HANDLE LIKE RSTSTYPE-HANDLE, 
TEMSE_PART LIKE TST01-DPART, 
TEMSE_OBJTYP LIKE TST01-DTYPE, 
TEMSE_RECTYP LIKE RSTSTYPE-RECTYP, 
TEMSE_CHARCO LIKE TST01-DCHARCOD. 
DATA: IS_OTF. 
global data from LSPOCTOP 
DATA: BEGIN OF SPOC 
, escape 
, prtctrl 
, FIRST_BYTES(4) " collection of the first bytes of the 
" escape sequences, which I am searching for. 
, PRTCTRL_START_LENGTH TYPE I 
, PRTCTRL_TOTAL_LENGTH TYPE I 
, PRTCTRL_START(10) 
, SYMBOL_LOW_START(10) 
, SYMBOL_HGH_START(10) 
, SYMBOL_START_LENGTH TYPE I 
, ICON_START(10) 
, ICON_START_LENGTH TYPE I 
, ICON_SEL TYPE I VALUE 1 
, FRAME_START(10) 
, FRAME_START_LENGTH TYPE I 
, END OF SPOC. 
FIELD-SYMBOLS:  TYPE C 
copied from RSPO_DISPLAY_ABAP_SPOOLJOB 
DATA: BUFFER LIKE DATA_SET_LINE OCCURS 1000. 
TABLES: TSP02L. 
SELECT SINGLE * FROM TSP01 WHERE RQIDENT = RQIDENT. 
IF SY-SUBRC <> 0. 
WRITE: / 'Spool request does not exist:'(001), RQIDENT. 
EXIT. 
ENDIF. 
CALL FUNCTION 'RSPO_CHECK_JOB_PERMISSION' 
EXPORTING 
ACCESS = 'DISP' 
SPOOLREQ = TSP01 
EXCEPTIONS 
NO_PERMISSION = 1 
OTHERS = 2. 
IF SY-SUBRC <> 0. 
WRITE: / 'No authorization to display'(002). 
EXIT. 
ENDIF. 
PERFORM READ_DATA TABLES BUFFER 
USING TSP01 FIRSTL LASTL. 
IF SY-SUBRC <> 0. 
WRITE: / 'Error reading spoolo request'(003). 
EXIT. 
ENDIF. 
IF IS_OTF = 'X'. 
WRITE: / 'This spool request is not an ABAP list'(004). 
EXIT. 
ENDIF. 
PERFORM DISPLAY_DATA TABLES BUFFER USING TSP01-RQPAPER TSP01-RQIDENT. 
FORM GET_SPOOL_LINE. 
DO. 
IF TEMSE_RECTYP+1(1) = 'Y'. 
CALL 'C_RSTS_READ' 
ID 'HANDLE' FIELD TEMSE_HANDLE 
ID 'BUFF' FIELD DATA_SET_LINE 
ID 'BUFFLG' FIELD 1006 
ID 'BUFFLG' FIELD 5006 "MODAB 
ID 'ALLINE' FIELD 'X' 
ID 'BINARY' FIELD ' ' 
ID 'SHOWLG' FIELD 'X' 
ID 'RC' FIELD RC 
ID 'ERRMSG' FIELD ERRMSG. 
STATUS = SY-SUBRC. 
ELSE. 
CALL 'C_RSTS_READ' 
ID 'HANDLE' FIELD TEMSE_HANDLE 
ID 'BUFF' FIELD DATA_SET_LINE+1 
ID 'BUFFLG' FIELD 1005 
ID 'BUFFLG' FIELD 5005 "MODAB 
ID 'ALLINE' FIELD 'X' 
ID 'BINARY' FIELD ' ' 
ID 'SHOWLG' FIELD 'X' 
ID 'RC' FIELD RC 
ID 'ERRMSG' FIELD ERRMSG. 
STATUS = SY-SUBRC. 
DATA_SET_LINE(5) = DATA_SET_LINE+1(5). 
DATA_SET_LINE-PRECOL = ' '. 
ADD 1 TO DATA_SET_LINE-DATA_LENGTH. 
ENDIF. 
STATUS = SY-SUBRC. 
IF STATUS <> 6. " EOF, error condition, or got data 
EXIT. 
ENDIF. 
end of this part, try to open next part 
ADD 1 TO TEMSE_PART. 
CALL 'C_RSTS_CLOSE' 
ID 'HANDLE' FIELD TEMSE_HANDLE 
ID 'RC' FIELD RC 
ID 'ERRMSG' FIELD ERRMSG. 
STATUS = SY-SUBRC. 
IF STATUS = 0. 
CALL FUNCTION 'RSTS_GET_ATTRIBUTES' 
EXPORTING 
AUTHORITY = 'SP01' 
CLIENT = TEMSE_CLIENT "hjl 
NAME = TEMSE_NAME 
PART = TEMSE_PART 
IMPORTING 
CHARCO = TEMSE_CHARCO 
CREATER = 
CREDATE = 
DELDATE = 
MAX_CREDATE = 
MAX_DELDATE = 
NON_UNIQ = 
NOOF_PARTS = 
RECTYP = TEMSE_RECTYP 
SIZE = 
STOTYP = 
type = 
OBJTYPE = TEMSE_OBJTYP 
EXCEPTIONS 
FB_ERROR = 1 
FB_RSTS_OTHER = 2 
NO_OBJECT = 3 
NO_PERMISSION = 4 
OTHERS = 5. 
STATUS = SY-SUBRC. 
ENDIF. 
IF STATUS = 0. 
CALL 'C_RSTS_OPEN_READ' 
ID 'HANDLE' FIELD TEMSE_HANDLE 
ID 'CLIENT' FIELD TEMSE_CLIENT "hjl 
ID 'NAME' FIELD TEMSE_NAME 
ID 'PART' FIELD TEMSE_PART 
ID 'TYPE' FIELD TEMSE_OBJTYP 
ID 'CONV' FIELD ' ' 
ID 'ALLINE' FIELD 'X' 
ID 'BINARY' FIELD ' ' 
ID 'RECTYP' FIELD TEMSE_RECTYP 
ID 'CHARCO' FIELD TEMSE_CHARCO 
ID 'PROM' FIELD 'I' 
ID 'RC' FIELD RC 
ID 'ERRMSG' FIELD ERRMSG. 
STATUS = SY-SUBRC. 
ENDIF. 
ENDDO. 
IF STATUS = 4. 
STATUS = 12. "EOF 
ENDIF. 
IF STATUS = 8. 
STATUS = 40. "Line too long 
ENDIF. 
DATA_SET_LENGTH = DATA_SET_LINE-DATA_LENGTH. 
ENDFORM. 
FORM READ_DATA TABLES BUFFER 
USING TSP01 LIKE TSP01 VALUE(FIRST) TYPE I 
VALUE(LAST) TYPE I. 
DATA: LINES TYPE I. 
REFRESH BUFFER. 
CLEAR IS_OTF. 
TEMSE_CLIENT = TSP01-RQCLIENT. 
TEMSE_NAME = TSP01-RQO1NAME. 
TEMSE_PART = 1. 
CALL FUNCTION 'RSTS_GET_ATTRIBUTES' 
EXPORTING 
AUTHORITY = 'SP01' 
CLIENT = TEMSE_CLIENT 
NAME = TEMSE_NAME 
PART = TEMSE_PART 
IMPORTING 
CHARCO = TEMSE_CHARCO 
CREATER = 
CREDATE = 
DELDATE = 
MAX_CREDATE = 
MAX_DELDATE = 
NON_UNIQ = 
NOOF_PARTS = 
RECTYP = TEMSE_RECTYP 
SIZE = 
STOTYP = 
type = 
OBJTYPE = TEMSE_OBJTYP 
EXCEPTIONS 
FB_ERROR = 1 
FB_RSTS_OTHER = 2 
NO_OBJECT = 3 
NO_PERMISSION = 4 
OTHERS = 5. 
IF SY-SUBRC = 0. 
IF TEMSE_OBJTYP(3) = 'OTF'. 
IS_OTF = 'X'. 
ENDIF. 
ELSE. 
EXIT. 
ENDIF. 
CLEAR TEMSE_HANDLE. 
CALL 'C_RSTS_OPEN_READ' 
ID 'HANDLE' FIELD TEMSE_HANDLE 
ID 'CLIENT' FIELD TEMSE_CLIENT "hjl 
ID 'NAME' FIELD TEMSE_NAME 
ID 'PART' FIELD TEMSE_PART 
ID 'TYPE' FIELD TEMSE_OBJTYP 
ID 'CONV' FIELD ' ' 
ID 'ALLINE' FIELD 'X' 
ID 'BINARY' FIELD ' ' 
ID 'RECTYP' FIELD TEMSE_RECTYP 
ID 'CHARCO' FIELD TEMSE_CHARCO 
ID 'PROM' FIELD 'I' 
ID 'RC' FIELD RC 
ID 'ERRMSG' FIELD ERRMSG. 
STATUS = SY-SUBRC. 
IF STATUS = 0. 
DO. 
PERFORM GET_SPOOL_LINE. 
IF STATUS <> 0 AND STATUS <> 40 AND STATUS <> 12. 
PERFORM CLOSE_JOB. 
EXIT. 
ENDIF. 
IF STATUS <> 12. " 12 = End 
IF NOT ( DATA_SET_LENGTH IS INITIAL ). 
DATA_SET_LINE-DATA_LENGTH = DATA_SET_LENGTH - 1. 
ENDIF. 
ADD 1 TO LINES. 
IF LINES >= FIRST. 
APPEND DATA_SET_LINE TO BUFFER. 
ENDIF. 
IF ( NOT LAST IS INITIAL ) AND ( LINES >= LAST ). 
EXIT. 
ENDIF. 
ELSE. 
IF LINES = 0. 
PERFORM CLOSE_JOB. 
EXIT. 
ENDIF. 
IF LINES < FIRST . 
PERFORM CLOSE_JOB. 
EXIT. 
ENDIF. 
EXIT. 
ENDIF. 
ENDDO. 
PERFORM CLOSE_JOB. 
ENDIF. 
ENDFORM. 
FORM CLOSE_JOB * 
FORM CLOSE_JOB. 
IF STATUS <> 0 AND STATUS <> 12. 
CALL 'C_RSTS_CLOSE' 
ID 'HANDLE' FIELD TEMSE_HANDLE 
ID 'RC' FIELD RC 
ID 'ERRMSG' FIELD ERRMSG. 
MESSAGE E112(PO) WITH STATUS RC ERRMSG RAISING READ_ERROR. 
ENDIF. 
CALL 'C_RSTS_CLOSE' 
ID 'HANDLE' FIELD TEMSE_HANDLE 
ID 'RC' FIELD RC 
ID 'ERRMSG' FIELD ERRMSG. 
STATUS = SY-SUBRC. 
IF STATUS <> 0. 
MESSAGE E112(PO) WITH STATUS RC ERRMSG RAISING READ_ERROR. 
ENDIF. 
ENDFORM. 
FORM DISPLAY_DATA TABLES BUFFER USING RQPAPER LIKE TSP01-RQPAPER
RQID LIKE TSP01-RQIDENT. 
DATA: LINE_LENGTH TYPE I, GCOL TYPE I, GLINES TYPE I, 
LINE_LENGTH2 LIKE RSTSTYPE-LINELENGTH, 
V, V2. 
CALL FUNCTION 'RSPO_SPOOLDATA_WRITE_INIT'. 
PERFORM SPOOLDATA_WRITE_INIT. "MODAB 
select single * from tspoptions where spoption = 'REALWIDTH'. 
if sy-subrc = 0. 
V = 'X'. 
endif. 
select single * from tspoptions where spoption = 'REALHEIGHT'. 
if sy-subrc = 0. 
V2 = 'X'. 
endif. 
IF NOT V IS INITIAL OR NOT V2 IS INITIAL. 
GCOL = 0. 
GLINES = 0. 
SELECT SINGLE * FROM TSP02L WHERE PJIDENT = RQID 
AND PJNUMMER = 0. 
IF SY-SUBRC = 0. 
GCOL = TSP02L-COLUMNS. 
GLINES = TSP02L-LINES. 
ELSE. 
CALL FUNCTION 'RSPO_GET_SIZE_OF_LAYOUT' 
EXPORTING 
LAYOUT = RQPAPER 
IMPORTING 
ANSWER = 
COLUMNS = GCOL 
LINES = GLINES 
PFORMAT = 
ENDIF. 
ENDIF. 
IF GCOL < 80 OR V IS INITIAL. 
GCOL = 255. 
ENDIF. 
IF GLINES < 5 OR V2 IS INITIAL. 
GLINES = 0. 
ENDIF. 
IF GCOL >= 1024. "MODAB 
GCOL = 1023. 
ENDIF. 
NEW-PAGE NO-HEADING NO-TITLE LINE-SIZE GCOL 
LINE-COUNT GLINES. " make a wide list 
SET BLANK LINES ON. 
LOOP AT BUFFER. 
DATA_SET_LINE = BUFFER. 
IF DATA_SET_LINE-PRECOL = 'P'. 
IF DATA_SET_LINE(1) = ' '. " Echter Vorschub ?" 
NEW-PAGE. 
ENDIF. 
CONTINUE. 
ENDIF. 
Zeilenlänge berechnen, falls unbekannt. 
IF DATA_SET_LINE-DATA_LENGTH IS INITIAL. 
LINE_LENGTH = STRLEN( DATA_SET_LINE-DATA_LINE ). 
ELSE. 
LINE_LENGTH = DATA_SET_LINE-DATA_LENGTH. 
ENDIF. 
IF LINE_LENGTH > 0. 
LINE_LENGTH2 = LINE_LENGTH. 
PERFORM SPOOLDATA_WRITE USING DATA_SET_LINE-DATA_LINE "MODAB 
LINE_LENGTH2 
1. 
ELSE. 
" Leerzeile 
SKIP. 
ENDIF. 
ENDLOOP. 
ENDFORM. 
copied from RSPO_SPOOLDATA_WRITE 
FORM SPOOLDATA_WRITE USING VALUE(SPOOL_DATA) 
VALUE(DATA_LENGTH) LIKE RSTSTYPE-LINELENGTH 
VALUE(START_POS) LIKE SY-COLNO. 
function globals 
DATA: LPOS LIKE SY-COLNO 
, REST_LEN TYPE I 
, AREA_LEN TYPE I 
, NEXT_HOT TYPE I " offset of next special character 
, COLS TYPE I " columns used by special character 
, BYTES TYPE I " bytes used by special character 
, HOT2 
, HOT3 
, HOT4 
, HOT5 
, HOT6 
, HOT7 
, BEGIN OF ESCAPE_TRICK 
, X1(1) TYPE X 
, END OF ESCAPE_TRICK 
, THE_PRTCTRL(5) TYPE C 
Because of a problem within the ABAP listprocessing, I shall 
never output the same icon side by side with the same color 
and without a gap. 
As I don't know the data, I will use two different variables 
alternatively. 
, ICON_ID1 LIKE ICONS-L4 
, ICON_ID2 LIKE ICONS-L4. 
FIELD-SYMBOLS:  
IF START_POS < 2. 
write at / ' ' no-gap. 
NEW-LINE. 
LPOS = 1. 
ELSE. 
LPOS = START_POS. 
ENDIF. 
REST_LEN = STRLEN( SPOOL_DATA ). 
DESCRIBE FIELD SPOOL_DATA LENGTH AREA_LEN. 
IF DATA_LENGTH = 0. 
" fine. 
ELSEIF DATA_LENGTH . 
MODAB
PERFORM WRITE_BIGFIELD USING  
NEXT_HOT 
LPOS. 
WRITE AT LPOS <PLAIN_TEXT> NO-GAP. 
ADD NEXT_HOT TO LPOS. 
SUBTRACT NEXT_HOT FROM REST_LEN. 
ASSIGN +6(1). 
ELSE. 
HOT7 = '?'. 
ENDIF. 
ELSE. 
HOT6 = '?'. 
ENDIF. 
ELSE. 
HOT5 = '?'. 
ENDIF. 
IF HOT5 = SPACE. 
IF HOT6 = SPACE. 
IF HOT7 = SPACE. 
IF SPOC-ICON_SEL = 1. 
WRITE AT LPOS(4) ICON_ID1 AS ICON. 
write at lpos icon_id1 as icon no-gap. 
ELSE. 
WRITE AT LPOS(4) ICON_ID2 AS ICON. 
write at lpos icon_id2 as icon no-gap. 
ENDIF. 
COLS = 4. 
BYTES = 7. 
ELSE. 
IF SPOC-ICON_SEL = 1. 
WRITE AT LPOS(3) ICON_ID1 AS ICON. 
write at lpos icon_id1 as icon no-gap. 
ELSE. 
WRITE AT LPOS(3) ICON_ID2 AS ICON. 
write at lpos icon_id2 as icon no-gap. 
ENDIF. 
COLS = 3. 
BYTES = 6. 
ENDIF. 
ELSE. 
IF SPOC-ICON_SEL = 1. 
WRITE AT LPOS(2) ICON_ID1 AS ICON. 
write at lpos icon_id1 as icon no-gap. 
ELSE. 
WRITE AT LPOS(2) ICON_ID2 AS ICON. 
write at lpos icon_id2 as icon no-gap. 
ENDIF. 
COLS = 2. 
BYTES = 5. 
ENDIF. 
ELSE. 
"rite at lpos(1) icon_id as icon. 
WRITE AT LPOS(1) '#' NO-GAP. " Not enough space for any icon. 
COLS = 1. 
BYTES = 4. 
ENDIF. 
ENDIF. 
IF . 
ELSE. 
EXIT. 
ENDIF. 
ENDWHILE. 
MODAB 
IF REST_LEN > 0. 
ASSIGN . 
SPOC-FIRST_BYTES+0(1) = SPOC-PRTCTRL_START(1). 
SPOC-FIRST_BYTES+1(1) = SPOC-FRAME_START(1). 
SPOC-FIRST_BYTES+2(1) = SPOC-ICON_START(1). 
SPOC-FIRST_BYTES+3(1) = SPOC-SYMBOL_LOW_START(1). 
ENDFORM.

Similar Messages

  • Spool output more than 255 characters

    Hi ,
    i am running a ALV report in background whose output is more than 255 characters . but spool is showing only 255 charcters.
    Do we have any setting to change to display all characters.
    Or any OSS notes that can be applied.
    Thanks & regards,
    Sonika Ahuja

    Hi,
    You need to change the Format Type through SPAD transaction. The Format Type decides the number of rows and columns per page. By creating a new format type as per your requirement would solve the probelm.
    Also, in the Report declaration, change the Line-Size to 300 or as per the width of your output.
    For further details pls. refer this thread :
    Re: Spool List output display > 255 char when the rpt is run in Background
    Best regards,
    Prashant

  • How to display more than 255 chars in background job with ALV Grid ????

    Hi All,
    I am using ALV grid with OO.
    I have used call screen for ALV grid display. I have to display more than 255 characters in width. While running it, I can see the list perfectly.
    But in background mode, the list is truncated after 255 chars.
    Can anybody help how to send complete list(width more than 255 chars) to spool.
    Thanks and Regards,
    Neha

    Hi SAP fan,
    <b>YES you can run the ALV report in background mode.
    To run the report in background do F9 instead of F8, then give immediate and save.
    Now goto Sm35 goto job overview and view the job listed
    Choose the job and press the spool button. It will show the list created on the next page. When u clcik the list u can see the ALV output.
    To see this the job should be in the finished status.
    How to define Periodic Jobs
    1.Execute transaction SM36
    2.Define Job name, Job class, Target server
    3.Click on 'START CONDITION' button
    4.Click on 'Date/Time' button
    5.Enter Scheduled start DATE & TIME. Check mark 'Periodic Job' field. Click on 'Period values' button and select 'Hourly' or 'Dialy' or 'Weekly' or 'Monthly' or Other period and SAVE. Go back to main screen.
    6.Click on 'STEPS' button and enter Program name and Variant under box 'ABAP Program'. Click on 'Print Specification' button and enter Printer name under 'Output device' and SAVE
    7.Click on SAVE button until you get message on bottom of the screen that describes 'Job XYZ saved with status: Scheduled'.
    8.Click on 'Job overview' button or execute SM37 transaction.
    9.Select the appropriate 'Job name', 'User name', 'Job Status' & Schedule date under 'Job start condition' and click on 'Execute' button or press F8.
    10.You will now see all your scheduled JOBS.
    <b>Case: 2</b>
    You can Run in Background but make sure it is alv list, not alv Grid FM. if you are uisng alv list not problem , but if you are using alv grid then you can code like this..
    if sy-batch = ' '.
    call 'REUSE_ALV_GRID_DISPLAY'.
    else.
    call 'REUSE_ALV_LIST_DISPLAY'.
    endif.
    if you are using OO alv then write this code..
    CALL METHOD cl_gui_alv_grid=>offline
                    RECEIVING e_offline = off.
        IF off IS INITIAL.
          CREATE OBJECT g_custom_container
                 EXPORTING container_name = g_container.
        ENDIF.
    <b>Case: 3</b>
    if you are using OO ALV.
    Just before creating the custom container check for the following condition.
    Batch or Web Reporting
    IF cl_gui_alv_grid=>offline( ) IS INITIAL.
    CREATE OBJECT o_custcontainer
    EXPORTING
    container_name = lc_custcontrol
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6
    ENDIF.
    You can see the output in Spool in transaction SP01.</b>
    Good Luck and thanks
    AK

  • Excel 2007 to Sql server table. Column with more than 255 characters.

    Hi there,
    I am facing a problem while converting data from Excel 2007 to SQL server 2005 table. I am using BIDS 2005.I have an excel file where one particular column has more than 255 characters. I use OLEDB connection for excel file as there is no driver for Excel
    2007 in BIDS2005. I am using Microsoft Office 12.0 Access Database Engine OLE DB Provider for Excel file.
    Next, I changed advanced properties for the column to DT_NTEXT. But when I am getting errors on execution. They are:
    [OLE DB Source [1949]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.
    [OLE DB Source [1949]] Error: Failed to retrieve long data for column "action".
    [OLE DB Source [1949]] Error: There was an error with output column "action" (2046) on output "OLE DB Source Output" (1959). The column status returned was: "DBSTATUS_UNAVAILABLE".
    [OLE DB Source [1949]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "output column "action" (2046)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column "action"
    (2046)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
    Please advise on how can I deal with columns having more than 255 characters in Excel file.
    Thanks!

    Here is what your connection string should look like for excel source
    Provider
    =Microsoft.Jet.OLEDB.4.0;Data
    Source=c:\temp\test.xls;Extended
    Properties="EXCEL 8.0;HDR=YES";
    http://sqlworkday.blogspot.com/

  • More than 255 characters in a table text field

    Dear experts,
    i am facing a problem (in WD Alv too) that i can not display more than 255 characters in a single text field.
    I want to display a table containing a description field without a limitation of its length. As soon as providing a (formatted) string longer than 255 characters of length, no interactive form is shown on screen.
    Debugging a while, the following error message occurs;
    ADS: com.adobe.ProcessingException: com.adobe.ProcessingException: XMLFM Exception - PDF render operation exception, reason code: 0 : InvalidXDPException: Xml parsing error: reference to invalid character number (error code 14) ...
    Does anybody have similar problems to mine?
    Did anyone resolve the issue to show more than 255 characters in a table in interactive form?
    Regards,
    Florian Royer
    Edited by: Florian Royer on Feb 11, 2010 2:48 PM

    CALL METHOD lr_service_manager->retrieve
            EXPORTING
              iv_bo_name       = 'cPro_Project' "lv_bo_name "cPro_Project
    *      iv_bo_name      = cl_dpr_api_co=>sc_bo_cprojects "
              iv_bo_node_name =  'Longtext.Root' "lv_bo_node_name "Longtext.Root
              it_keys         = lt_ltext_key
              iv_edit_mode    = '0' "iv_edit_mode "0
            IMPORTING
              et_data         = lt_longtext_mast
              et_failed_keys  = lt_ltext_key_fail.
          READ TABLE lt_longtext_mast INTO ls_longtext_mast INDEX 1.
          MOVE ls_longtext_mast-longtext TO ls_action_item-zz_description.
    This is how i get the text with format (line feeds).
    zz_description is type string.
    My table is on a page, wrapped in a subform. and zz_description is type text field.
    Yes, i maintained "allow multiple lines" and did not limit length somehow.
    The problem arises in portal, pressing the preview button of a zform. providing a string <255 characters of length, everything works fine.
    Edited by: Florian Royer on Feb 11, 2010 3:10 PM

  • How to send text file as an email attachment havin more than 255 characters

    My requirement is to generate a text file and to send this text file as E-mail attachment. I am using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the E-mail. but here the limitation is the number of characters per line must not be more than 255 characters whereas in my case it is exceeding 1000 characters per line. could anyone please suggest me what should i do now ? Each field in the text file has to be tab delimited.

    Simplest might well be to use javamail API instead of the two tags that Sites provides, e.g. see email - Sending mail attachment using Java - Stack Overflow for a full example.
    Phil

  • How to accomodate more than 255 characters in character field

    HI All
    i need to accomodate more than 255 characters in character field. How can i do that ?
    thanks in advance!!!

    Hi,
    You can try the following things:
    1. Use a datatype STRING and check it will work.
    2. In se11 transaction goto datatype and search for char* in data elements.
    You will find predefined data types ,you can make use of it.
    For eg. char2000,char3000,char4000 etc.
    Hope this will help.
    Regards,
    Nitin.

  • Display more than 255 characters in SAP 4.6c version.

    Hi
    Can anyone tell me how to display more than 255 characters in the spool log  of sap or the application server?
    Thanks in advance.
    Geeta

    Hi,
      You have to have some patch.Pls refer to SAP oss notes 626010.
    Pls reward if useful.
    Sushil.

  • ABAP Programming to display more than 255 characters in the screen

    Hi
       I want to display more than 255 characters in the screen after executing a report but i cant able to do that.
    Please help me to find out the solution.
    Thanks
      Mrutyunjaya Trpathy

    Hai tripathy,
    when the output of a report contains columns extending more than 255 characters in length.  In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output. The report output can contain upto 90 columns in the display with the wide array of display options.
    The commonly used ALV functions used for this purpose are;
    1.REUSE_ALV_VARIANT_DEFAULT_GET
    2.REUSE_ALV_VARIANT_F4
    3.REUSE_ALV_VARIANT_EXISTENCE
    4.REUSE_ALV_EVENTS_GET
    5.REUSE_ALV_COMMENTARY_WRITE
    6.REUSE_ALV_FIELDCATALOG_MERGE
    7.REUSE_ALV_LIST_DISPLAY
    8.REUSE_ALV_GRID_DISPLAY
    9.REUSE_ALV_POPUP_TO_SELECT
      hope u can try in this way.
    REGARDS,
    PRABA.

  • Inserting data with more than 255 characters in to MSACCESS through JDBC

    Hi All,
    I have developed a product using servlets,JDBC,HTML.The backend is MS access database.
    I have to provide an option for the user to key in more than 255 characters of data in the textarea & then store it in the access database.But i read that access ODBC driver has a limit of 255 characters.Is this correct.
    I tried changing the Datatype of the field from text to Memo field in MS ACCESS.But when i insert the data using setString method of the PreparedStatement ,it's giving the following SQL exception:SQLException caught:[Microsoft][ODBC Microsoft Access Driver]String data, right truncated (null)
    How do i let an user key in more than 255 characters.Can somebody help me on this please ASAP as this is a very crucial issue which i need to solve by tomorrow.
    Thanks in Advance
    GCR

    hi rashmi,
    HOw bout using CLOB facility to store such large strings?? try it.
    Cheers,
    -Jer

  • Unable to read more than 255 characters in a string data type.

    Hello,
    I am using Crystal Reports version 11.5.8.826 to generate reports from databases such as MS-Excel & BaaN.
    In Excel, there are records which carry string lengths of more than 255 characters. All though the fields are getting displayed in the report, the data being displayed gets truncated once it reaches a length of 255 characters.
    Kindly provide me with a solution this problem.
    Regards

    Hello Manish,
    I know that older versions of Crystal (Crystal 10 and older ) had a limitation of only 256 Characters for a string value.  You should be able to use this code to get what  you need. 
    We were successfully able to print out the Declaration of Independence through a Crystal report using something very similiar to this.
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    Shared StringVar Array strings;
    Shared NumberVar arrayMax := 1;
    Shared NumberVar maxLength := 250;
    Shared BooleanVar firstTime := true;
    Redim strings[arrayMax];
    strings[1] := u201Cu201D;
    u2018done!u2019
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    Here is my main loop that I used in the group header:
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    WhilePrintingRecords;
    Shared StringVar Array strings;
    Shared NumberVar arrayMax;
    Shared NumberVar maxLength;
    Shared BooleanVar firstTime;
    Local StringVar enteredString;
    Local NumberVar lenStr;
    Local NumberVar lenArr;
    Local NumberVar lenLeft;
    enteredString := [Field Name];
    enteredString := IIF(firstTime,enteredString, u201C, u201D & enteredString);
    firstTime := false;
    lenStr := Length(enteredString);
    lenArr := Length(strings[arrayMax]);
    lenLeft := maxLength u2013 lenArr;
    if (lenLeft >= lenStr) then
    strings[arrayMax] := strings[arrayMax] & enteredString;
    u201D
    else
    strings[arrayMax] := strings[arrayMax] & left(enteredString, lenLeft);
    arrayMax := arrayMax + 1;
    redim preserve strings[arrayMax];
    strings[arrayMax] := u201Cu201D;
    strings[arrayMax] := strings[arrayMax] & right(enteredString, lenStr u2013 lenLeft);
    u201D
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    and then to display the different sets in the text area. I would have one of these for every element I need displayed and change the display number variable.
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    Shared StringVar Array strings;
    Shared NumberVar arrayMax;
    Local NumberVar displayNumber := [element in array];
    if(arrayMax >= displayNumber) then
    strings[displayNumber];
    else
    u201D;
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    I like this version better because the array is completely dynamic. It can be as big or as small as it needs to be.  There is always room for optimizations.  But hopefully this will get you started on the right path.
    Jenny

  • More than 255 Characters in 2D barcode

    Hi All,
    We are not able to print more than 255 characters in a 2D barcode which
    is used in a label using a smartform.
    We did Checked note 497380 but cant use SO10 as its a dynamic data.
    Any pointers would be extremely useful.
    Regards,
    Swati

    CALL METHOD lr_service_manager->retrieve
            EXPORTING
              iv_bo_name       = 'cPro_Project' "lv_bo_name "cPro_Project
    *      iv_bo_name      = cl_dpr_api_co=>sc_bo_cprojects "
              iv_bo_node_name =  'Longtext.Root' "lv_bo_node_name "Longtext.Root
              it_keys         = lt_ltext_key
              iv_edit_mode    = '0' "iv_edit_mode "0
            IMPORTING
              et_data         = lt_longtext_mast
              et_failed_keys  = lt_ltext_key_fail.
          READ TABLE lt_longtext_mast INTO ls_longtext_mast INDEX 1.
          MOVE ls_longtext_mast-longtext TO ls_action_item-zz_description.
    This is how i get the text with format (line feeds).
    zz_description is type string.
    My table is on a page, wrapped in a subform. and zz_description is type text field.
    Yes, i maintained "allow multiple lines" and did not limit length somehow.
    The problem arises in portal, pressing the preview button of a zform. providing a string <255 characters of length, everything works fine.
    Edited by: Florian Royer on Feb 11, 2010 3:10 PM

  • How to declare and read a variable more than 255 characters

    Hi Friends,
          Actually i want to declare a variable which can accepts more than 255 characters as input and the same manner i want to read the data and pass the data as a output length more than 255 characters.
      So how can i delcare the data as a field in the table.
    Thanks & Regards
    Gupta

    Hi Raj,
       Thanks for your reply, please privide the further clarification actually by declaring a variable as string i can able to pass 1023 characters form selection screen like that i passed the data to the three varibles and i concatenated those three varibles in to single varible now is there any way to pass the result into the smartform.
      Please give me some techincal stuff on this
    Regards
    Gupta

  • SQ01 Output fields having more than 255 characters

    Hello,
    I need to show query output more than 255 charaters but system is not allowing
    Here is the Error message:
    List is wider than 255 characters (generation not possible)
    I used SQ01 as t-code to create query.
    How can i show my output more than 255 characters
    Thanks

    Refer SAP Note 857823, ALV grid cannot display more than 128 characters per field and will truncate all the characters beyond if it's an ABAP program
    From my experience it will not display the field at all in SQ01.
    You need to write an abap program and split the field into two fields of length 128 and display side by side.
    Work around:  If you cannot write abap program uncheck (no display in query) that field in SQ02 and generate it. Execute your query and copy the key field use se16n to input in the key fields and use import to excel sheet function to get the required data.

  • More than 255 characters need to be populated in text file of destination.

    Dear experts,
    i am having following scenario in which i am sending the file to a destination system through RFC connection which is having more than 255 characters, But it is not allowing me to enter more than 255
    The code i have written is mentioned below,
    lv_string = '///++++#####$$&&^%$%@$$@@(&@&@#%@&%#464(@)))(@&@&&@*&@)@(&@@%&%&@&@*@&@&&*@&*****^&&*&%$%$$#$##@#$@%%&&*******(((((((((((((((&!@#$$%%%&&(()))_(**&&&&&^^^^%%%%$$$$###'.
    itab-l_string = lv_string.
    CONCATENATE itab-l_string itab-l_string itab-l_string into itab-l_string.
    CONDENSE itab-l_string.
    Append Itab.
    call function 'RFC_REMOTE_FILE'
        DESTINATION 'BJRFC'
        EXPORTING
        FILE = 'D:\tmp\test_ster3.txt'
        WRITE = 'X'
    *FILETYPE = ''
        TABLES
        FILEDATA = itab
        exceptions
        system_failure = 1 message dg_ermsg
        communication_failure = 2 message dg_ermsg.
    Can anybody suggest me how to fetch the requireoutput.

    Dear alex,
    With this output the the following cases appearing in system,
    1) rfc connection is getting failed due to excess length, no file generated
    2)Some times o/p file getting generated with 0KB, i mean there is no data in the output.
    Once agian i am putting the code here
    Kindl suggest
    *& Report  Z_ZIC_ZI001
    REPORT  Z_ZIC_ZI001 line-SIZE 250.
    Data : lv_string type string,
           dg_ermsg TYPE char120.
    Types : begin of ty_itab,
          l_string(2050) type c,
           l_string type string,
          end of ty_itab.
    data : itab type ty_itab occurs 0 with HEADER LINE.
    lv_string = 'I am having following scenario in which i am sending the file to a destination system through RFC connection which is having more than 255 characters, But it is not allowing to enter more than 255 XXXXXXXXXXXXXXFFAFFAGAGAGAGAGG'.
    CONCATENATE  lv_string lv_string lv_string into lv_string.
    CONDENSE lv_string.
    *while strlen( lv_string ) > 255.
        itab-l_string = lv_string+0(255).
        append itab.
        lv_string = lv_string+255.
    *endwhile.
    itab-l_string = lv_string.
    append itab.
    call function 'RFC_REMOTE_FILE'
        DESTINATION 'BJRFC'
        EXPORTING
        FILE = 'D:\tmp\test_ster5.txt'
        WRITE = 'X'
    *FILETYPE = ''
        TABLES
        FILEDATA = itab
        exceptions
        system_failure = 1 message dg_ermsg
        communication_failure = 2 message dg_ermsg.
    if sy-subrc = 0.
    write : 'success'.
    else .
       write : dg_ermsg.
    endif.

Maybe you are looking for

  • Installing iTunes with Windows Vista Ultimate

    I have tried to install iTunes most recent version and others earlier with on my HP Pavillion and I keep getting a message that says I will not be able to import or burn CDs because iTunes did not install correctly. I have the *Windows Vista Ultimate

  • How to add new Java version to Java Preferences?

    Greetings, I know Java 7 is not officially supported, but I know it works. I built 1.70.jre and put it in /Library/Java/JavaVirtualMachines, but I do not know how to add to  Java Preferences. Does anyone know where the list of Java versions is stored

  • Load order

    In AS3 I am loading 2 images where I want 1 image to be on top of the other. Waht I am doing is loading 1 image and when that is loaded load the other. I prefer to set a Z-order depth . I use a atChildIndex? IntroCanvas=IIntroCanvas;              img

  • How to exclude birthdays in Siri?

    When I book an appointment with Siri, it tells me it "conflicts with another appointment" if there's a birthday on that day. So apparently, it considers birthdays as "all day events". This is quite annoying and greatly lowers the efficiency of enteri

  • Cannot find Hot Sync Log File

    I recently installed Palm dsktop on my new Vista PC. It synchs very well with my TX via bluetooth, BUT whenever there is a Hot Sync Log Message I get an error message saying that the PC cannot find the Hot Sync Log.  I searched for this file on my PC