Application Development 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_text function module - return value

Former Member
0 Kudos

Experts,

I am calling function module READ_TEXT to read the value of text ids.

here is the code:

DATA: value type thead.

DATA: result TYPE p LENGTH 8 DECIMALS 2,

oref TYPE REF TO cx_root,

text TYPE string.

TRY.

RAISE EXCEPTION TYPE cx_sy_dyn_call_param_missing.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

ID =

LANGUAGE =

NAME =

OBJECT =

IMPORTING

HEADER = value

TABLES

LINES =

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8.

CATCH cx_sy_arithmetic_error INTO oref.

text = oref->get_text( ).

CATCH cx_root INTO oref.

text = oref->get_text( ).

ENDTRY.

WRITE SY-SUBRC.

somehow the value of the text id is not getting exported to the variable "value". Please let me know how to rectify this error.

Points will be rewarded for helpful answers.

Regards,

John.

2 REPLIES 2

Former Member
0 Kudos

Experts,

I am passing the relevant values in the import parameters. Still the export parameter is not getting filled up.

Please help.

Regards,

John.

Former Member
0 Kudos

Solved