Search found 13 matches

by kkktank
Wed Jan 07, 2009 3:21 am
Forum: SAPscript/Smartforms
Topic: preview OK but wrong on hardcopy
Replies: 1
Views: 1721

preview OK but wrong on hardcopy

SAPscript prints out 2 pages, and it's all ok in print preview.
But when I am printing that onto the hardcopy, the system only print one page and both 2 pages are printed on it, overlapped.

any ideas?
by kkktank
Sun Oct 26, 2008 11:12 am
Forum: SAPscript/Smartforms
Topic: an empty table line in the main window
Replies: 1
Views: 1628

an empty table line in the main window

in table, main window. print a large internal table in a smartforms. In some pages, there would be an empty table line, always the last line in this window. There is no data lost (I checked the data printed out and the data in the internal table), but just only an empty line was printed. When I aske...
by kkktank
Sun Oct 26, 2008 9:20 am
Forum: SAPscript/Smartforms
Topic: prints two char format in the one table(smartforms)
Replies: 2
Views: 1585

Re: prints two char format in the one table(smartforms)

thanks Brad. But the problem may be caused by another werid setting of smartforms. I created two rows in the BODY of the table. the two rows are very likely to each other, excpet I wanna display different formats for these two rows. So after I created one row, I copy it and paste as to created the s...
by kkktank
Fri Oct 24, 2008 1:44 am
Forum: SAPscript/Smartforms
Topic: prints two char format in the one table(smartforms)
Replies: 2
Views: 1585

prints two char format in the one table(smartforms)

smartforms, main window, table. in the body of this table, I wanna print two types of lines. Depending on the content of the line data, it will print out normal or bold char format. But frustratingly, I failed and found the output is all Bold. Is it a bug in smartforms or there is something I should...
by kkktank
Thu Oct 09, 2008 9:48 pm
Forum: SAPscript/Smartforms
Topic: if the client wanna print only one item in an order
Replies: 3
Views: 1345

if the client wanna print only one item in an order

It seems one can set an output type that print by item, but where can i get the posnr from the nast?

I only know the vbeln is from nast-OBJKY.
by kkktank
Mon Oct 06, 2008 2:16 am
Forum: ABAP
Topic: 2 problems when dealing with ALV grid control
Replies: 1
Views: 1610

Re: 2 problems when dealing with ALV grid control

the first problem was solved by LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_DETAIL. APPEND LS_EXCLUDE TO PT_EXCLUDE. and CLEAR LS_TOOLBAR. MOVE 'ADD' TO LS_TOOLBAR-FUNCTION. MOVE ICON_INSERT_ROW TO LS_TOOLBAR-ICON. MOVE 'New entry' TO LS_TOOLBAR-QUICKINFO. MOVE 'New entry' TO LS_TOOLBAR-TEXT. MOVE '' TO LS_...
by kkktank
Sun Oct 05, 2008 10:50 pm
Forum: ABAP
Topic: 2 problems when dealing with ALV grid control
Replies: 1
Views: 1610

2 problems when dealing with ALV grid control

I added an instance of CL_GUI_ALV_GRID (in container CL_GUI_CUSTOM_CONTAINER) into an screen. 1. how can I modify the application toolbar in the area? no STATUS can I found in the area. 2. how can I add a box in the alv grid control output? I can add it in alv like this: ST_LAYOUT-BOX_FIELDNAME = 'B...
by kkktank
Tue Sep 02, 2008 9:35 pm
Forum: SAPscript/Smartforms
Topic: how to input parameter value into script?
Replies: 4
Views: 1596

Re: how to input parameter value into script?

I don't remember when non-main windows occur. Perhaps at open. All non-main windows print on their own at a specific time. Only main needs to be called as I remember. The fields did have value before openning the form. And I think the non-main windows will be printed by the commands of program. I t...
by kkktank
Wed Aug 27, 2008 10:45 pm
Forum: ABAP
Topic: How can i do this assign?
Replies: 4
Views: 1009

Re: How can i do this assign?

The requirement is so weired, so It may be hard to understand. I found the solution by using the 'describe' clause. DATA: BEGIN OF i_result OCCURS 0, field1 TYPE char10, END OF i_result. i_result-field1 = 'F1'. APPEND i_result. FIELD-SYMBOLS: <fs> TYPE ANY. LOOP AT i_result. DATA: l_fieldname TYPE c...
by kkktank
Wed Aug 27, 2008 10:37 pm
Forum: SAPscript/Smartforms
Topic: how to input parameter value into script?
Replies: 4
Views: 1596

how to input parameter value into script?

TYPES: BEGIN OF HEADER, VBELN LIKE VBAK-VBELN, END OF HEADER. DATA HEADER TYPE HEADER. HEADER-VBELN = '12345'. In window 'header' /E FIRST_LINE T1 SO No.:,, &HEADER-VBELN&,, CALL FUNCTION 'WRITE_FORM' EXPORTING ELEMENT = 'FIRST_LINE' WINDOW = 'HEADER' . Why no VBELN output ? When I debug into the s...
by kkktank
Wed Jul 30, 2008 10:42 pm
Forum: ABAP
Topic: How can i do this assign?
Replies: 4
Views: 1009

How can i do this assign?

DATA: BEGIN OF IT_1, DATE TYPE DATS, QTY TYPE I, INFO TYPE STRING, END OF IT_1. DATA: BEGIN OF IT_2, DATE1_QTY TYPE I, DATE2_QTY TYPE I, DATE3_QTY TYPE I, INFO TYPE STRING, END OF IT_2. e.g), IT_1 [1] = ('2008-07-31', '100', 'other info'), I wanna assign this row to IT_2, which would be like ('100'...
by kkktank
Mon Jul 28, 2008 2:14 am
Forum: SAPscript/Smartforms
Topic: how to Solve the problem of displaying chinese
Replies: 1
Views: 1724

how to Solve the problem of displaying chinese

e.g) there is a 6-cm-wide column and I wanna to display chinese char in it. As the Chinese char occupies 2 times space as the English char does, the Chinese char will be printed overlaped. And then the smartforms cannot work out the real width of the text, so the text will exceed the boundary and pr...
by kkktank
Sat Jun 21, 2008 5:08 am
Forum: ABAP
Topic: how to get an alv output like this?
Replies: 1
Views: 564

how to get an alv output like this?

As following: column1 column2 row1 sales order sales document row2 requirements row3 type row4 cell1 cell2 row5 row6 row 7 let the header field name fold according to the set length