Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

2nd print

Former Member
0 Likes
858

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.

1 ACCEPTED SOLUTION
Read only

agnihotro_sinha2
Active Contributor
0 Likes
830

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.

5 REPLIES 5
Read only

Former Member
0 Likes
830

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

Read only

0 Likes
830

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

Read only

Former Member
0 Likes
830

hi

create ur own style and use it

shiva

Read only

Former Member
0 Likes
830

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

Read only

agnihotro_sinha2
Active Contributor
0 Likes
831

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