Smartforms text element alignments
Hi Experts,
In my text element in smartforms, I need to provide some fixed space between two columns as below.
txt1 txt2
123456.00 $6789.0
But if value in coulmn1 is nil, then column2 goes to left i.e the alignment is disturbed as below:
txt1 txt2
$67898.0
I cannot put template as i need to provide page protection.
Pls suggest.
thanks
Dan
Hi,
U define a paragraph format in SMARTSTYLES with 2 TABS, then print the variables (text1, text2) with that Paragraph format.
Eg:
P1 &text1&,,&text2&
The 2 comma's respresent a TAB, by doing like above it will freeze the space for each variable.
OR
define a template, split into 2 columns...drop Text1 in column1, text2 in column2..
Hope its clear
Regards,
Pavan
Similar Messages
-
Issue with if condition in smartform text elements
Hi all.
iam having a problem in smart forms
itab has 3 fields
id matnr werks
1 a p1
1 b p2
1 c p3
2 b l1
2 c l2
3 q u1
3 l u2
i neead output like in the smart form
-id = 1-
a p1
b p2
c p3
-id = 2-
b l1
c l2
-id = 3-
q u1
l u2
I have aloop in main window
itab into wa_itab.
then i have program lines
iam writing any perform statment insted iam write the code in here
input paramters wa_itab-id
output paramters id
i declared id type zabc-id under global data in global definations
CLEAR : ID.
ON CHANGE OF WA_itab-ID.
*BREAK point.
ID = WA_ITab-iD.
ENDON.
after the program lines i have a text
/: if &id& ne ' '.
---id = &id& ---
/: endif
&wa_itab-matnr& &wa_itab-werks&
now i see the output
-id = 1-
a p1
-id=- i don't need this (&id& has no value)
b p2
-id=- i don't need this
c p3
-id = 2-
b l1
-id=- i don't need this
c l2
-id = 3-
q u1
-id=- i don't need this
l u2
I checked my code if two items have same id the id has no value and you can see the output also
but for some reason its still goinng into the if condition
And also is there away that i can debugg my text elements like in scripts. my break point doesn't take me to the text elements
Thanks1. Move only the ID into one internal table say i_id,
2. Now in your smartform, create a table and loop at i_id into wa_id.
3.Print your ID in a text, &wa_id-id&
3. Now in main area of the table Create a loop with the internal table you mentioned above with 3 elements, say, i_data into wa_data give CONDITION as wa_data-id = wa_id-id.
4. Print your other values &wa_data-matnr& &wa_data-werks&
5. outside main area, clear the work areas.
This should work fine as i use the same logic in one of my current developments!!! -
Smartform problem with text element
Hi,
In smartforms text element, we have this variable; &V_TEXT2(L)&.
My question is, what does the 'L' means there? what is it's purpose?
when we pass on numeric values into it, it's converted to something else. It does not show the correct output.
example:
v_text2 = 6245183
shown on the report is HEIS57YR18MO3 DY.
thanks!Freishz,
Please refer below link.
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
page 72.
Regards,
Anmol Saxena. -
In Footer text elements are spliting in smartform
Hi,
In smartform, I am using text elements for printing gross / net totals in the Main window -> Table -> Footer. Now problem I am facing is all the set of elements are breaking from page to page. I want it print in one page with out any page break. How should I do that. Please suggest.
Thanks
RamHi,
In the footer text , in the output options tab ..there is a check box "Page protection".. Check that..
Documentation for "Page protection"
In some cases you may want to avoid that text is divided by a page
break. Therefore, you can protect text sections with a page protection.
Thanks,
Naren -
Smartforms,How to display different standard Text in a Text element.
In smartform,if I want to according to the different conditions,display one of the serveral different standard Text objects which all maintained in SO10 in a same text element,how to do it?
if i put them in serval text elements, each condition only display the corresponding text element,but the text content can not display in the same position.
Is there anyone can tell me?
thanks.use Alternative to control it no problem
for example you want to display the different SO10 to same position TEMPLATE's row 1 col2
TEMPLATE1
Alternative case1
YES
INCLUDE TEXT1(display SO10) [set output option line1 column2]
NO
Alternative case2
YES
INCLUDE TEXT2(display SO10) [set output option line1 column2]
NO
Alternative case3
every case your SO10's text is always display at line2 column2
just try to test it ,you can know -
Need info about text elements used in Smartform / Sapscript
Hi experts
I am working on Smartform / Sapscript i am facing the problem mentioned below
I want the info regarding all the text elements used in Form / Script
Can u please suggest me the name of table
I have already used STXH table but it is not giving me the all text elements
I mean i want that if i enter some formane ...i should get all the text elment contained in it
Plz help me
ThanksHi Gaurav,
Try out the fn module "READ_TEXT".
Hope it helps you.
Regards,
CS.
Note: Reward points if helpful. -
Smartform u0096 SO10 Vs Text Elements for Lang translation
Hi,
I have lot of text elements to be created in smartform, which needs to be translated in different languages. I would like to know the best approach. Is it better to create S010 objects and have them maintained in different language or is it better to maintain as text elements and then get them translated via SE63.
Can some please suggest the best approach with reason for the same?
Thanks,
Vimalhi
It is better to create in SO10 because if you want those elements in feature for any other purpose you can directly use those text elements.
regards
sreelatha gullapalli -
Hi guys,
I am working on a smartform. I wanted to know how do i put a checkbox in my text element in my smartform?
Please help me out on this.
Thanks and regards,
FrankChange the editor to 'PC Editor' and take the menu.
Include -> Characters -> SAP Symbols
Or
In a window u create a text element..
Then in the Properties of the text element there is tab with WEB PROPERTIES.. In that give a field name and the Input type ( list box will be there ) , give it as check box ,,
Thats it!! u will have a check box in that text element !!!!!!
No need to upload anything, just use SAP symbols.
For unmarked checkbox create a new text field and add symbol <727> in it.
For marked checkbox, use symbol <697>.
They do not show on print preview, but you can see them on paper or for example on .PDF output.
You can see a list of SAP symbols in transaction SO10, menu path Insert / Character / SAP symbols.
you can check the symbols using SO10. insert->character ->SAP symbols.
there you can see all the symbols and their representation.
Reward points if it is useful...
reward if it helps u... -
How to change the font size of text element in smartform
Hi
i want to know how to change the font size of text element in smartform
regards
GincyHi
You can create Smartstyles, in which you can define paragraph formats for texts and character formats for character level changes.
Paragraph format ---> alignment, font size etc
character format for ---> superscript, subscript.
After creating, in your smartform, there will be a option in the text element to enter a style.
You give the created style and you can use the paragraph and character formats i that style.
Hope this is clear..
Regards
Sekar -
Space left in the printout after hiding the text element in smartform
Hi
In my smartform there is space left in the printout after hiding the text element with condition.
Is there any way by which we can remove the space in the smartform,
Thanks
AnkHi ,
I am displaying the text in table with two columns and in one column i am giving the text elemnt and in other the value.
I had given the condition that if the data is not present then the text elemnt should not be shown in the form .My form is working perfectly except that its leaving the space for that text element.
thanks
Ank -
Hi guys,
What is the use of text elements in smartforms? I am getting confused. For texts, we generally use text modules rite? So what is the difference between the two. Wehn am i to use text element and when am i to choose text module. Please explain me in detail
Regards,
PremHi,
Text Elements (locally in form)
To include data from the form interface (data from application tables) or system data (date, time) into the text, use system fields or user-defined fields in the text When processing the form, SAP Smart Forms replaces these fields with the corresponding values
Text Modules (for reusing texts)
You can use text modules to store texts that frequently appear in your forms which is stored centrally in the system. This detaches text maintenance from form maintenance, with the result that you do not need to call the Form Builder to edit individual texts. -
How the text elements of the SMARTFORMS can generate a field?
Hello guys
I have got this problem of not getting the value of the fields from the smartform. i wrote the text element to populate the field by inserting as the following &IV_BID_HEADER-PROCESS_TYPE& first it comes with the shaded background but after i activate the smartform the shaded part will gone and it remain as &IV_BID_HEADER-PROCESS_TYPE& which basically cannot populate any value.
can anyone help me on this,to keep the field remain shaded at the background which basicallly can populate the values of the fields.
ThanksHello,
Please click on "FIELD LIST on/off" or ctrlshiftf4 and then drag and drop the same from the left bar.
First find whether you have declared the value in Global Variables OR in Import/Export Interfaces.
Hope this was helpful.
Cheers,
Suvendu -
Smartforms - Change a text elements character Format
Hello,
I need to modify a Smartform by increasing the font size on some text elements. When I highlight the text element to change and then click the dropdown for Character Format I can click the format I would like but it never changes.
I've also tried resetting the character formats but it always gets back to it orginal size/settings.
How can I change the character format in a text element?
Thanks,
MattIt appears I have to delete the field then change the character format to the font I want and finally drop the field back into place on the screen.
If there is another way to do it, I never found it.
Switching to the classic editor may work as well. Worth trying.
Thanks,
Matt -
SmartForms - Problems with Text Element
Hello guys!
I was adjusting a SF for the BID_INVITATION scenario (SRM) when i stopped in front of a problem.
I included the word "Data" in a Text Element that there was already, but, my new word doesn't appear in the Form.
Anyone know what is happening?
Is there any thing especific in the Text Element to permit that my new word appear?
Thanks in advance.
Hugs.
Danilo CardosoHi
Check If you activated the smartform and also check if there are any conditions in the condition tab of the text element.
Vishwa. -
Problem using text element with type TEXT INCLUDE in smartforms
Hi,
I am working on smartform.
My requirement is to print the text which can range from 1 to 99 (free text). I am using TDNAME, TDOBJECT and TDID from STXH table and putting it in the fields Text Name, Text Object and Text ID of text element created with type "TEXT INCLUDE" in window in smartform.
It works Fine only when I put exact value of TDNAME in Text Name field.
But in my case TDNAME can vary according to value of AENNR from Table AENR.
So I am trying to use a variable called W_TDNAME and pass TDNAME value to it. I am putting this W_TDNAME in the field TEXT NAME. And it says "Inlcude text W_TDNAME does not exist".
HELP ME OUT.
ANSWERS WILL BE AWARDED..
TusharHi Tushar,
When you see in Text name field, there is a small button at the end of that field. This is to switch the dynamic field value option on. Click that and use the format &field_name& to enter your variable in that field.
Deepak Charanyan
Maybe you are looking for
-
in consignment sales how we can settle the commision for special stockist thru business since he tooks the sale and returns
-
Im trying to use nepomuk with KDE 4 (KDEmod). When it is activated it works fine until I try changing anything on my file system (creating moving or deleting a file). When this happens nepomuk starts to take up 50% of the computer, It also makes dol
-
Aperture and iPhoto Library (not my own)
A friend has sent me a copy of his iPhoto library containing pictures he's asked me to adjust for him. His version of iPhoto is the 2009 release having come with his new MacBook Pro. My iPhoto is version 6. It won't open the library my friend sent. I
-
Complex Query -Parent/Child
Dear All, I have a strange requirement of generating report from a table, which has 2 columns trace element and trace reference where the relationship between trace reference and trace element is 1-Many. i.e each trace reference may have may childs a
-
Hi ! I've been developing a GUI with a JTable control in it. I can display original data easily but my source is getting updated automatically by my program and I would like the JTable's display to be also updated. To be clear, there's no user event