cancel
Showing results for 
Search instead for 
Did you mean: 

language EN is not active !

Former Member
0 Kudos

Hi all

Iam new to scripts .

i developed a sample form script.

when am printing my Script with my utilities -print testing its working properly(in se71)

but my problem is when i execute the program in SE38

its getting me an error saying

STOP:

form <zformprog> and has no errors.

Pls can anyone help me out!!

Thanks in advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

congrats your code is right but only you have not activated your form.once you create form in SE71 you have to activate it using form->activate. in se71.then execute ur driver prog in SE38

Edited by: noor s on Mar 16, 2008 7:08 PM

Former Member
0 Kudos

hi noor.....

thanks for your suggestion but things is that i have activated the form and can see the status in se71 as Status Activated-Saved....

now wat u think where the prob actually lies???

Former Member
0 Kudos

Hi,

Prior to activating, do check if your script layout n the text elements that you have defined have no errors.

you can do that from the menu bar options..

Try copying your form to another one and try using that... (I know that this is a crude approach..but try it out...)

In your open_form FM, while passing the form name in ' ' chk out to mention the same in caps.

Use start_form and end_form as well.

Regards,

Narendra

Former Member
0 Kudos

hi....

tried this option too...but the resultant is the same error.

Former Member

Hi,

I'm so glad to answer such question. Since I have the same before and now it has been handled.

We have two boxes in our company, and the client is 120 and 130. We use the 130 to develop and use the 120 to test. The program and its SAPscript are created in 130. But I have to test this program in 120. So the SAPscript is not in 120 since it is a non-client cross project. We are supposed to use a program named RSTXCPFS to copy the form from 130 to 120.

So that's my solution to handle this issue. I hope it would be helpful for you.

Former Member
0 Kudos

Hi Rachel,

get to se71 in change mode.

Goto Utilities tab in menu.

click on convert Original Language in the menu.

it will dispaly the From and To Original Language.

If To Original is not EN(English) ..Change to En and Activate it..

Please reward if it is useful..

Former Member
0 Kudos

hi boopathy...first i wud like to thank u for coming out with a posibilities

but, i am sorry to say that the problem doesnt lies there ...i checked per ur instruction but the original and copied to both are in EN.....

now wat do u suggest!!

regards

Rachel

Former Member
0 Kudos

Hi,

It would help us if you paste code lines here.

just paste the open_form to close_form.

Regards,

Nageswar

Former Member
0 Kudos

hi nageshwar...

i am pasting the code here....pls do bear if i have written my code so silly....i was not covered with scripts in my syllabus and learning this out of my own interest....

thank u so much

regards

Rachel

ata: begin of it occurs 0,

carrid like spfli-carrid,

connid like spfli-connid,

cityfrom like spfli-cityfrom,

cityto like spfli-cityto,

END OF it.

select * from spfli into CORRESPONDING FIELDS OF TABLE it.

call function 'OPEN_FORM'

EXPORTING

  • APPLICATION = 'TX'

  • ARCHIVE_INDEX =

  • ARCHIVE_PARAMS =

    • DEVICE = 'LOCL'

DIALOG = 'x'

FORM = 'zsform '

LANGUAGE = SY-LANGU

  • OPTIONS =

  • MAIL_SENDER =

  • MAIL_RECIPIENT =

  • MAIL_APPL_OBJECT =

  • RAW_DATA_INTERFACE = '*'

  • SPONUMIV =

  • IMPORTING

  • LANGUAGE =

  • NEW_ARCHIVE_PARAMS =

  • 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.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

loop at it.

call function 'WRITE_FORM'

EXPORTING

ELEMENT = 'ABCD '

FUNCTION = 'SET'

TYPE = 'BODY'

WINDOW = 'MAIN'

  • IMPORTING

  • PENDING_LINES =

  • EXCEPTIONS

  • ELEMENT = 1

  • FUNCTION = 2

  • TYPE = 3

  • UNOPENED = 4

  • UNSTARTED = 5

  • WINDOW = 6

  • BAD_PAGEFORMAT_FOR_PRINT = 7

  • SPOOL_ERROR = 8

  • CODEPAGE = 9

  • OTHERS = 10

.

if sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

endloop.

call function 'CLOSE_FORM'

  • IMPORTING

  • RESULT =

  • RDI_RESULT =

  • TABLES

  • OTFDATA =

  • EXCEPTIONS

  • UNOPENED = 1

  • BAD_PAGEFORMAT_FOR_PRINT = 2

  • SEND_ERROR = 3

  • SPOOL_ERROR = 4

  • CODEPAGE = 5

  • OTHERS = 6

.

if sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

Former Member
0 Kudos

Hi,

Please mention the form name in capitals.

Regards,

Nageswar

Former Member
0 Kudos

hi ...thanks. i tried giveing the formname in caps but then its not working...