01-13-2008 5:39 PM
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
01-13-2008 6: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
01-22-2008 6:21 AM