cancel
Showing results for 
Search instead for 
Did you mean: 

how do i check if the include text is blank

Former Member
0 Kudos

Hi guys...how do i check if the include text in my smartform is blank?

Ex. i want to print the following,

Truck Number : mh-04 a-4589

where Truck Number : is a text element and mh-04 a-4589 is an include text.

if the include text is blank, i dont want to print even the text element.

any suggestions ??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

before the include text use a program lines

and use the FM read_text

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

id =

language =

name =

object =

ARCHIVE_HANDLE = 0

LOCAL_CAT = ' '

IMPORTING

HEADER =

tables

lines = i_tab

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8

in the conditions tab of the include text give the condition

i_tab is not initial

Former Member
0 Kudos

hey thanks a lot patrik.

issue resolved..

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Poonam ,

Its Very simple go to the inclued text, then click on condition tab and write the following condition,

if field name ( mh-04 a-4589 ) is not initial .

Then it works,

Reward if it usefull,

Regards,

KP

Former Member
0 Kudos

In conditions tab of the include text give the condition:

<include_text_name> is not initial.

Former Member
0 Kudos

Hi Poonam,

In the conditions tab , Add a condition

mh-04 a-4589 ne intial.

This will work.

Regards,

Nisrin.

Former Member
0 Kudos

Thank for your reply Nisrin,

But mh-04 a-4589 is the text that the user enters in outbound delivery VL03N and is different for each bill.