Skip to Content
author's profile photo Former Member
Former Member

read_text function module - return value

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2008 at 04:13 AM

    Experts,

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

    Please help.

    Regards,

    John.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 06:41 PM

    Solved

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.