2008 Nov 27 9:36 AM
In A smartform I have a requirement like below:
Print u201CRu201D in bold font next to the sales office information, once the invoice is printed for at least a second time (R=Repeat)
please help me on that.
2008 Nov 27 10:02 AM
hi nabanita,
1: create a window and write the R in bold there
2: on the condition tab of the window put SFSY-COPYCOUNT Not eq to 2.
3: it will print this text whenever form is repeinted..
regards,
ags
In A smartform I have a requirement like below:
Print u201CRu201D in bold font next to the sales office information, once the invoice is printed for at least a second time (R=Repeat)
please help me on that.
2008 Nov 27 9:40 AM
hi
1>go to smartform transaction
2> define your own text style.
3> use the same text style in your smartform eg. u201CRu201D in bold font
2008 Nov 27 9:57 AM
Sorry, still i m not able to understand how it will get printed only when we will print it for 2 nd time and and so on
2008 Nov 27 9:43 AM
2008 Nov 27 10:02 AM
hi
set flag for original and repeat document
CLEAR flg_copy.
SELECT
kappl "Application for message conditions
objky "Object key
kschl "Message type
spras "Language
vstat "Processing status of message
FROM nast
INTO TABLE it_nast
WHERE kappl = is_nast-kappl AND
objky = is_nast-objky AND
kschl = is_nast-kschl AND
spras = is_nast-spras.
IF sy-subrc = 0.
SORT it_nast BY kappl objky kschl spras.
DESCRIBE TABLE it_nast LINES l_v_line.
IF l_v_line > c_page1.
LOOP AT it_nast INTO wa_nast.
IF wa_nast-vstat NE 0.
flg_copy = c_x.
EXIT.
ENDIF.
ENDLOOP.
ELSE.
READ TABLE it_nast INTO wa_nast WITH KEY
kappl = is_nast-kappl
objky = is_nast-objky
kschl = is_nast-kschl
spras = is_nast-spras BINARY SEARCH.
IF ( l_v_line EQ c_page1 ) AND ( wa_nast-vstat NE 0 ).
flg_copy = c_x.
ENDIF.
ENDIF.
ENDIF.
Make two text elements u2013 the other with u201CRu201D.
Based on the flag, print either of the two.
hope this wud help u .
regrads,
prashanti
2008 Nov 27 10:02 AM
hi nabanita,
1: create a window and write the R in bold there
2: on the condition tab of the window put SFSY-COPYCOUNT Not eq to 2.
3: it will print this text whenever form is repeinted..
regards,
ags
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |