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: 

Check INCLUDE &EKKO-EBELN& OBJECT EKKO ID F02 LANGUAGE &EKKO-SPRAS&

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

2 REPLIES 2

Former Member
0 Kudos

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

SuhaSaha
Advisor
Advisor
0 Kudos

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