Skip to Content
author's profile photo Former Member
Former Member

smart forms include texts form me23n to smart forms

Hi,

I have built a smart forms and included standard texts from me23n into my smart forms using include text.

my problem is that if my text is not maintain for that particular header the heading should not get displayed for ease i'm writing my code:-

item text: include text ( itemno+ebelp) "this item text is built up using create ->text.

( ekpo)

( f 01)

(lanuage)

item po text: include text ( itemno+ebelp) "this item po text is built up using create ->text.

( ekpo)

( f 01)

(lanuage)

materail po text: include text ( itemno+ebelp)

( ekpo)

( f 01)

(lanuage)

if the text is not maintained for item text then it's heading that is "ITEM TEXT OR ITEM PO TEXT OR MATERIAL PO TEXT " should also be not diplayed in smart forms.

my code is able to get the data from me23n but i just want to put a condition for not displaying it's text heading also if it's data is not maintained

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2012 at 07:07 AM

    You can write a Select on STXH and check whether the text is available or not.

    SELECT SINGLE * from STXH

    INTO wa

    WHERE TDNAME = ( itemno+ebelp)

    AND TDOBJECT = 'EKPO'

    AND TDID = 'F01'

    AND TDSPRAS = LANG.

    IF sy-subrc = 0.

    gv_text = 'X'.

    ENDIF.

    Then in Output conditions you check for this flag and display the text.

    Thanks,

    Shambu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 01, 2012 at 07:49 AM

    Hi Piyush,

    In smartfomrs, if you printing this text using Text Node->Include Text option, then in the General Attributes, you will have one flag "No Error if no text exist.". This will not give any error, even if any text is not maintained..

    Hope this helps you !

    - Harshad

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.