cancel
Showing results for 
Search instead for 
Did you mean: 

Smartforms Text issue

Former Member
0 Kudos

Hi,

In our Invoice smartforms Invoice Header Text on first page is getting print proper.

but on secon page it shows Twice.

PAGE 1 OF 2

DELIVERY CHALLAN CUM INVOICE

  1. INV.NO.     : 400299

                                                       DATE        :10.05.2012

  TRANSPORTER NAME  : KAMANA TRANPORT

TIME         :17:30:48

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

PAGE 2 OF 2

DELIVERY CHALLAN CUM INVOICE

  1. INV.NO.     : 400299

DATE        :10.05.2012

  TRANSPORTER NAME  : KAMANA TRANPORTKAMANA TRANPORT

TIME         :17:30:48

 

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check the variable which your are using to print the value of Transporter Name. I believe it is not getting cleared before you assign the value to it.

Former Member
0 Kudos

Thanks a lot.

I have cleared text variable in the beginning.Now my values on second page also coming right.

Thanks once again.

Timaji

Answers (1)

Answers (1)

Former Member
0 Kudos

Are you talking about the layout?

Can you explain the issue in detail?

Former Member
0 Kudos

In Invoice print out on First Page text is coming proper.

e.g. TRANSPORTER NAME  : KAMANA TRANPORT

but on second page of invoice Same text is getting print twice

e.g.

TRANSPORTER NAME  : KAMANA TRANPORTKAMANA TRANPORT.

Thanks and Regards,

Timaji

former_member189849
Contributor
0 Kudos

HI

Just debug the smart form and check that field value at page = 2.

Regards

Mahesh

former_member230486
Contributor
0 Kudos

Hi,

Give me the code which you have written.

Former Member
0 Kudos

CLEAR :TLINES[],TLINE1.
CALL FUNCTION 'READ_TEXT'
EXPORTING
*   CLIENT                        = SY-MANDT
id                            = 'ZDUE'"'ZLR'
language                      = 'E'
name                          = g_tdname "is_bil_invoice-hd_gen-bil_number
object                        = 'VBBK'
*   ARCHIVE_HANDLE                = 0
*   LOCAL_CAT                     = ' '
* IMPORTING
*   HEADER                        =
tables
lines                         = tlines
EXCEPTIONS
ID                            = 1
LANGUAGE                      = 2
NAME                          = 3
NOT_FOUND                     = 4
OBJECT                        = 5
REFERENCE_CHECK               = 6
WRONG_ACCESS_TO_ARCHIVE       = 7
OTHERS                        = 8
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
loop at tlines INTO tline1.
if tline1-tdline is not INITIAL.
CONCATENATE tline1-tdline g_txt1 into  g_txt1 .
ENDIF.
endloop.

Thanks