‎2009 Jun 22 7:25 AM
Hi Experts..
I am working in scripts.
I want to read HEADER TEXT of delivery, by using the function module READ_TEXT.
But in this case I want to handle the exception.
ie. if driver program doesn't find any ID for function module, it should not give the error.
now it is giving error as 'delivery 0080011752 id 0001 not found'.
Can anybody tell me "how to handle this exception?"
Thanks
‎2009 Jun 22 7:29 AM
You can check sy-subrc after function call and do whatever you want to do here .
Case sy-subrc.
when 4.
==> write logic fo rwhat you want here.
Endcase.
‎2009 Jun 22 7:30 AM
Hi,
This exception will occur, when Sy-SUBRC is '1' after excuting the FM...so u can write the case on sy-subrc and Raise ur Customized message..
Eg:
case sy-subrc.
when '1'.
raise 'message'.
Hope its clear!!
Rgds,
Pavan
‎2009 Jun 22 7:32 AM
Hi,
You can solve ur prob my making z function module of read_text.
Thanks