cancel
Showing results for 
Search instead for 
Did you mean: 

a error occured after translation

Former Member
0 Kudos

hi there,

I translate a form from English into Chinese. then actived that.

but when i executed the program , the error happened

like this"Error while opening the Form"

who met this issue.

i will appreciate your advance

thank u in advance

Kevin

CALL FUNCTION 'OPEN_FORM'

EXPORTING

device = 'PRINTER'

form = c_formname

language = sy-langu

OPTIONS = itab_options

IMPORTING

language = sy-langu

RESULT = w_result

EXCEPTIONS

canceled = 1

device = 2

form = 3

OPTIONS = 4

unclosed = 5

mail_options = 6

archive_error = 7

invalid_fax_number = 8

more_params_needed_in_batch = 9

spool_error = 10

codepage = 11

OTHERS = 12.

IF sy-subrc <> 0 AND sy-subrc <> 1.

WRITE:/2 text-d02.

ENDIF.

Message was edited by:

Kevin Gao

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

The problem with translation and smartforms, is the activation. You need to finish your smartform, activate it and after translate it.

If you translate the smartforms without activation, you will have problems like yours.

<b>Reward points</b>

Regards

Former Member
0 Kudos

hello skk

would please tell the detail or some relative document.

I did the modification according to waht you said.

It still doesn't work

thanks

anybody can help me???

or send mail to me about step of sapscript translation

kevin.gao@sap.com

Message was edited by:

Kevin Gao

Message was edited by:

Kevin Gao

former_member480923
Active Contributor
0 Kudos

hi Please do the following changes:


data: w_langu type sy-langu.

CALL FUNCTION 'OPEN_FORM'
EXPORTING
device = 'PRINTER'
form = c_formname
language = sy-langu
OPTIONS = itab_options
IMPORTING
language = w_langu "Change the Importing Lang.
RESULT = w_result
EXCEPTIONS
canceled = 1
device = 2
form = 3
OPTIONS = 4
unclosed = 5
mail_options = 6
archive_error = 7
invalid_fax_number = 8
more_params_needed_in_batch = 9
spool_error = 10
codepage = 11
OTHERS = 12.
IF sy-subrc <> 0 AND sy-subrc <> 1.
WRITE:/2 text-d02.
ENDIF.

Hope that Helps

Anirban M.

Former Member
0 Kudos

same error popuped.

Error while opening the Form