on 10-11-2005 12:54 PM
Hello All,
I am trying to schedule one report in back ground. while saving the job I am getting the error message "No.of columns >255, no standard print-out possible".
In report I specified the line-size as 300, line size should be 300 as per requirement.
But it's not allowing me to execute it in back ground if line size is more than 255. Actually while executing in back ground I am sending output to the users mail box.
In case of foreground execution I am displaying on screen.
Is there any alternative for this?
Can we set line-size dynamically.. like if report executes in foreground line-size equal to 300?
Please help in this.
Thanks,
Srinivas
Hi
You should use comand NEW-PAHE to manage dinamically the size of line:
DATA LINE TYPE I.
START-OF-SELECTION.
IF ....
LINE = 100.
ELSE.
LINE = 300
ENDIF.
NEW-PAGE LINE-SIZE LINE.
Max
P.S. This from SAP HELP:
Using Values Greater than 255 for the LINE-SIZE of a List
If you define a fixed column width greater than 255 using the LINE-SIZE addition in the REPORT or NEW-PAGEstatement, the following notes apply:
Type definitions: The type group SLIST defines the valid maximum value for the list width (SLIST_MAX_LINESIZE), and contains a type for list lines with maximum width (SLIST_MAX_LISTLINE).
Accessing the entire contents of a line: To read or modify the entire contents of a wide line, you can use the ... LINE VALUE addition in the READ LINE or MODIFY LINE statements. This is an alternative to using SY-LISEL that is independent of the attributes of the system field (since the length of SY-LISEL is 255 characters).
Horizontal lines: With extra-wide lists, the "ULINE." statement corresponds to "WRITE / SY-ULINE.". So, for example, "ULINE AT 5(300)." corresponds to "WRITE AT 5(300) SY-ULINE.".
Output length: You can use the length specification in WRITE (or ULINE) to extend the output length of an extra-wide list up to the value of LINE-SIZE. If you want to output a whole field that is longer than 255 characters, you must use this, even if the field itself is defined as longer than 255 characters.
Example
NEW-PAGE LINE-SIZE 1000.
DATA: F1(500) VALUE 'F1'.
WRITE: / F1 COLOR COL_NORMAL. " Output with length 255
WRITE: /(500) F1 COLOR COL_NORMAL. " Output with length 500
Message was edited by: max bianchi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srinivas,
Please refer the following OSS notes.
186603
409339
213382
Cheers
Vinod
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.