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

Create_text FM error

Former Member
0 Likes
955

I am using create_text in a function module which is called from a dynpro project.Whenever the function module runs in R/3 it is working perfectly but when the function module is called from dynpro ,it is throwing

exception NO_INIT.

Can anybody tell what could be the possible error?

Thanks

Regards

Jeetu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
591

Check whether you have defined the parameters correctly or not. While passing values to the FM the type conflict should not occur. If you check the FM you will see another FM in it

call function 'INIT_TEXT'

exporting

id = fid

language = flanguage

name = fname

object = fobject

importing

header = fheader

tables

lines = tlinetab

exceptions

id = 01

language = 02

name = 03

object = 04.

if sy-subrc <> 0.

raise no_init.

endif.

here if id, language, name, object. if any of the parameters fails you may get the error. please check the same.

Cheers

2 REPLIES 2
Read only

Former Member
0 Likes
591

Hi jeetu,

1 Probably in Dynpro

the TEXT is have not been defined / customized.

2. The possible errors are :

ID Text ID invalid

LANGUAGE Invalid language

NAME Invalid text name

OBJECT Invalid text object

I hope it helps.

regards,

amit m.

Read only

Former Member
0 Likes
592

Check whether you have defined the parameters correctly or not. While passing values to the FM the type conflict should not occur. If you check the FM you will see another FM in it

call function 'INIT_TEXT'

exporting

id = fid

language = flanguage

name = fname

object = fobject

importing

header = fheader

tables

lines = tlinetab

exceptions

id = 01

language = 02

name = 03

object = 04.

if sy-subrc <> 0.

raise no_init.

endif.

here if id, language, name, object. if any of the parameters fails you may get the error. please check the same.

Cheers