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: 

Header Text of Invoice

Former Member
0 Kudos

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

2 REPLIES 2

DirkAltmann
Active Participant
0 Kudos

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

Former Member
0 Kudos

Thank You