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

Header Text of Invoice

Hi All,

I need to retireve the Header text of Sales orders.

I am able to fetch the Text using READ_TEXT Function module with proper import parameters.

My requirement is to display such header texts against each sales order. If a particular sales order is not having any header texts, the ALV report should display blank column.

But now, if a sales Order is not maintained with header text, the report is displaying the Function Module's error.

How to avoid Function Module's error in such scenarios...???

Its very much urgent.......... Your help is sinceerely apprciated....

Regards

Pavan

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jan 13, 2008 at 06:02 PM

    Hi Pavan,

    normaly your can catch the error by check the field sy-subrc after function call. You must activate the Exeptions if you call the function. After returning from the FM you check the field sy-subrc <> 0. In this case you clear the ALV-Grid field in the other case you fill the header text in the ALV-Grid field.

    Regards

    Dirk

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 22, 2008 at 06:21 AM

    Thank You

    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.