cancel
Showing results for 
Search instead for 
Did you mean: 

smartfrom print error

Former Member
0 Kudos

THIS IS URGENT

when iam giving print preview iam able to get it but when iam giving the print iam getting error called 'ERROR IN GENERATING SMARTFORM' this program is already exsisting . i made some changes in the smartfrom in positioning for some of the windows. and after that iam not able get the print out

please help me, hope i will be getting the solution.

PRINT PROG.

DATA g_fmname TYPE rs38l_fnam.

SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.

PARAMETERS: p_vbeln TYPE vbrk-vbeln.

SELECTION-SCREEN END OF BLOCK b1.

START-OF-SELECTION.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZSD_SMRTSALEINVOICE1'

IMPORTING

fm_name = g_fmname

EXCEPTIONS

no_form = 1

no_function_module = 2

OTHERS = 3.

IF sy-subrc <> 0.

MESSAGE 'Error in opening the smartform'

TYPE 'I'.

LEAVE LIST-PROCESSING.

ENDIF.

CALL FUNCTION g_fmname

EXPORTING

s_vbeln = p_vbeln

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

IF sy-subrc <> 0.

MESSAGE 'Error in generating the smartform'

TYPE 'I'.

LEAVE LIST-PROCESSING.

ENDIF.

*these are the warnings iam getting inthe when i activate the smartform.*

@8R@ TOTAMT Field g_totinv has no defined value

@8R@ ROUNDEDVAL Field G_DIFFV has no defined value

@8R@ TCSAMT Field G_SCRAP has no defined value

@8R@ INSURANCEAMT Field G_INS has no defined value

@8R@ FREIGHTAMT Field G_FREIGHT has no defined value

@8R@ OCTAMT Field G_OCTRAI has no defined value

@8R@ VATAMT Field G_VAT has no defined value

@8R@ SALESTAXAMOUNT Field G_SALESTAX has no defined value

@8R@ SUBTOTAL_V Field G_SUBTOT has no defined value

@8R@ DEVOLOPMENTCHARGES_V Field G_DEVCHG has no defined value

@8R@ PACANDFARWORDINGAMT Field G_PAC has no defined value

@8R@ DISCOUNTSVAL Field g_disc has no defined value

@8R@ HRECSAMT Field G_HRECESS has no defined value

@8R@ CESAMT Field G_CES has no defined value

@8R@ CEDAMT Field G_CED has no defined value

@8R@ AMOUNT Field G_TOT has no defined value

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi

you can ignore the warnings it wont affects ur output..in order to get the output u have specified that u have changed some elements make sure that every elements got fixed in to the window.

Hope this will help you.

Thanks and Regards

Arun Joseph

Former Member
0 Kudos

Hi

have you checked whether ur driver program is calling your smartform..i dont think it will call your smartform. try this and let us know.

Arun

Former Member
0 Kudos

Hi,

While resizing the windows if they are tables or templates defined under it , you will hav to make modifications to that too. You ll get to know if you have to make any modifications to the window by executuing teh smart form directly without using driver program.

Regards,

Nisrin

Former Member
0 Kudos

Hi ,

Im not sure if this will help.

but can you try passing some print parameters to the smartform.

Former Member
0 Kudos

just remove the sy-subrc 0 after the smart form function module calling and check it. u will find the difference or else declare clearly that sy subrc value is = 0 . or <> 0. that i can help u.

with Regards,

Kiran.G

Former Member
0 Kudos

Thanks for solution.

I actually commented the sy-subrc <> 0. line and again uncommented the line and tried it and I got it. Well that answer is solved and iam getting the print out . but now the another big problem has arisen. The form has many fields some fields are coming into as per the bill document number but some fields are remaining same, for any bill document number these fields details coming same.

Please help me.