on 04-01-2008 6:39 AM
Hi all,
i have this scenario in smartform, where i have to show all 16 header text of PO, based on condition
i wrote 2 text elements each, one for printing heading like
1st text element
HEADER TEXT
2nd text element
INCLUDE TEXT AND passed the object id name , language to it and the header text got fetched
now my question is
HOW CAN I GIVE A CONDITION>..that if there is no header text maintaines , it does not show HARDOCODED TEXT too..like
if header note is not maintaiend in stxh, the hard coded HEADER NOTE: should also not be displayed
please revert back if you have any doubts understanding my problem..
thanks and regards
Rohan
thanx guys..solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I wasnot able to understand your problem that well. Could you please explain it again.
Regards,
Ashlesha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ashlesha,
here's more detailed description
--> we can fetch long text(header text) in smartform by using INCLUDE TEXT by passing name, id, languade, object
in ME23n there are 16 header text types maintained..
i have to display it all (if it exists in database table STXH).
i hope it's clear till now..
now the format is..
1) *HEADER TEXT:* -- > THIS IS HARDCODED IN TEXT ELEMENT
****here will be the data fetched of long text for header text*
2) HEADER NOTE --> HARDCODED
****here will be the data fetched of long text for header text2*
and so on...
now if HEADER NOTE TEXT does not exist in data base
how and where to pass the condition so that hard coded Text is also not diaplayed.
right now the output is being displayed as:
EXAMPLE:
HEADER TEXT:
purchase item created by Rohan
HEADER NOTE
-
blank as no text exist
now how to remove the hardcoded HEADER NOTE if no text exist
thanks
Rohan
Use a code window before printing the include.
in the code snippet. use the function module READ_TEXT_INLINE / READ_TEXT
pass the same information u pass to the inculde node, to the FM.
If the sy-subrc is NE 0 (include not present)
or the returning intenal table is empty (include present but empty)
set a flag to X.
Use this flag in the conditions of the Include and the hard coded text.
Nehal.
Edited by: Nehal Fonseca on Apr 1, 2008 12:24 PM
Hi,
1.Write a condition in the include text condition tab.
i.e. header text Is not initial .
2.Then it can satisfy u r condition.
Thanks and regards,
Shiva.(reward if helpful).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.