on 09-22-2009 11:46 AM
Hi all,
In my Proforma invoice , I am showing material sub text for each item at item level which is maintained by the user in a text editor for each item. I want to show the material description if no text is maintained by the user in that item.How can I find out whether text is maintained or not when I display it using Text element of text type INCLUDE TEXT in smartform.
Thanks in advance.
Hi
U can try to check if there's the header data in table STXH
Max
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As Max Already said above, the table is STXH, but this check u can not do in the script's edior , u need to call an external subroutine. Put a select on STXH with the same parameters that you pass to include text.
If u get a sy-subrc EQ 0 then text exists else not.
- Kartik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my Proforma invoice , I am showing material sub text for each item at item level which is maintained by the user in a text editor for each item. I want to show the material description if no text is maintained by the user in that item.How can I find out whether text is maintained or not when I display it using Text element of text type INCLUDE TEXT in smartform.
Hi Jaya,
In the smartform Text element, wherein you are displaying the "material sub text for each item at item level " , go to the "CONDITIONS " Tab. and key in the folling condition:
(Mat subtext) Field NE ' '
Add one more text element where you would display the material description, go to the "CONDITIONS " Tab. and key in the folling condition:
(Mat subtext) Field EQ ' '
This should solve your concern. Revert in case of any further queries!
Thanks,
Varna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
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.