cancel
Showing results for 
Search instead for 
Did you mean: 

condition for header text heading

Former Member
0 Kudos

Hi

in sales order smart form i have created text element(include text) for including header text named SPECIAL INSTRUCTIONS. i have proveded all the parameters like text name, text ID, Text object..

how can i restrict the heading for this text (i.e i want the heading special instructions to be appeared only when the text is maintained for that ID

Regards

DB kumar

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

i want the heading for header text to appeared only when i maintain the header text

how to do this

regards

DB Kumar

Former Member
0 Kudos

Hi,

What is the problem. If the text is not maintained nothing there is nothing to print.

but if you really want to check it out. Then use FM READ_TEXT or check table STXH

Gr., Frank

Former Member
0 Kudos

Hi,

You can not maintain a standard text without a single line.

But, by default, default paragraph , i.e. (*) will come in that column which means an EMPTY TEXT LINE is entered.

If you want to check for the empty text line, then do th efollowing.

1. insert code lines . Take a global field : flag type c.

tables: stxl.

select single * from stxl where TDNAME EQ 'ZTEST_RAM'.

if sy-subrc eq 0.

if stxl-CLUSTR gt 81. " when no line is maintained , stxl-CLUSTR = 81. else stxl-CLUSTR > 81.

flag = 'X'.

endif.

endif.

2. For Heading Text , Maintain condition with flag as u required.

Thanks & Regards,

Ram.

Former Member
0 Kudos

add abap coding before headerprinting.

in the coding read the text with FM READ_TEXT. if found switch is on else switch is off.

now print header special instructions only when switch is on.