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

Reading the block message or text from sales order header.

Dear All,

Please let me know how to read the block text which is present in the sales order header under texts tab.

thanks in advance

regards,

Shoban

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 Nov 22, 2007 at 11:07 AM

    Hi,

    Use READ_TEXT Function module

    To Pass the Parameters

    Goto that text editor select Text type, click on the details button below the text editor, then from Menu bar EDIT -> Header, there you will get Object details and pass these values to the FM READ_TEXT.

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2007 at 11:35 AM

    HI

    Please look intothe follwoing code, which helps you to understand how to read the header slaetext.

    DATA: BEGIN OF text_head.

    INCLUDE STRUCTURE thead.

    DATA: END OF text_head.

    DATA: BEGIN OF TEXT_LINES1 OCCURS 10.

    INCLUDE STRUCTURE TLINE.

    DATA: END OF TEXT_LINES1 .

    DATA: text_id LIKE thead-tdid VALUE '0001'.

    DATA: text_spras LIKE thead-tdspras VALUE 'EN'.

    DATA: text_name LIKE thead-tdname.

    DATA: text_object LIKE thead-tdobject VALUE 'VBBK'.

    CALL FUNCTION 'READ_TEXT'

    EXPORTING

    client = sy-mandt

    id = text_head-tdid

    language = text_head-tdspras

    name = text_head-tdname

    object = text_head-tdobject

    TABLES

    lines = text_lines1

    EXCEPTIONS

    id = 1

    language = 2

    name = 3

    object = 5

    reference_check = 6

    wrong_access_to_archive = 7

    OTHERS = 8.

    CASE sy-subrc.

    WHEN 1. RAISE invalid_id.

    WHEN 2. RAISE invalid_language.

    WHEN 3. RAISE invalid_name.

    • WHEN 4. RAISE NOT_FOUND.

    ENDCASE.

    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.