11-30-2009 8:35 AM
Hi,
in sapscript i use:
INCLUDE &EKKO-EBELN& OBJECT EKKO ID F02 LANGUAGE &EKKO-SPRAS&
Is there any way to check in sapscript if this include is empty?
if it's empty i will give a "normal" text.
Regards, Dieter
11-30-2009 8:49 AM
Hi ,
Check it in your driver program.
Use STXH table for getting the corresponding entry like
Select single * from stxh where......
if sy-subrc ne 0.
"No entry forund for your selection.
"so you can put your own logic to write some normal text.
endif.
Hope it will resolve your problem.
Thanks
Edited by: CONTACTSANKU on Nov 30, 2009 2:19 PM
11-30-2009 8:49 AM
Hi ,
Check it in your driver program.
Use STXH table for getting the corresponding entry like
Select single * from stxh where......
if sy-subrc ne 0.
"No entry forund for your selection.
"so you can put your own logic to write some normal text.
endif.
Hope it will resolve your problem.
Thanks
Edited by: CONTACTSANKU on Nov 30, 2009 2:19 PM
11-30-2009 8:49 AM
Hello Dieter,
I donot think that you can do this directly.
You have to code a separate subroutine where you have a returning param TEXT_FOUND.
In the subroutine you call the FM: READ_TEXT. If the text does not exist you will get an exception NOT_FOUND, clear TEXT_FOUND else TEXT_FOUND = 'X'.
Based on this call the long text or your "normal" text.
BR,
Suhas
PS: In smartforms, its hell lot easier