Dynamic Textid Include in Smartform
Hello Everybody,
i want to include text in my smartform
the text id name will be number of my billing document no which will be dynamic.
in sapscript we can insert this way
INCLUDE &ZTDNAME& OBJECT TEXT ID ST.
but if in smartform i had try same but not working
can anybody pls suggest me what will be the paragraph format for include text id in smartform
and why my text id's text not coming..
U might have created a text element and wrote this sapscript command.
In smartforms this is done differently,
First create a text.
Now select type of text in the drop down as include text.
Now it will ask u for text id and object language etc.
check this smartform document
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
see page 46 for include texts
Edited by: Kartik Tarla on Jun 13, 2009 12:51 PM
Similar Messages
-
Dynamic table layout in Smartform
Hi,
Is there a way to have a dynamic table layout in smartform?
The idea is to be able to print any kind of table with fieldsymbols without having to define the table layout/cell layout at design time, or if it's not possible choose one of the predefined line types at runtime. Please don't post how to print out a table using fieldsymbols, this is not the topic of this question.
So I guess you'd need to choose the table line type at runtime or even better, create a table line type at runtime. Is this even possible?
Thanks
Edited by: Stanley Marsh on Oct 16, 2008 12:43 PMhi
good
Tables
You can include static and dynamic tables into a Smart Form. Dynamic tables enable you to display tables whose size is determined only at the moment of their output by the number of the table items to be displayed. Table functions are:
· Line feeds in individual table cells
· Event-controlled output of table headings and footers
· Integrated calculation of grand totals and subtotals
· Colored boxes and shadings in tables
thanks
mrutyun^ -
How to dynamically replace variables in SMARTFORM texts based on item data?
Hi experts,
I'm currently designing a confirmation of order using Adobe PDF forms. The general layout with tables, pictures and texts was not big deal.
But one tiny bit doesn't work and I'm becoming more and more desperate about it.
We need various free texts for our pdf form. I created the texts using smartform texts. Some of these texts need to be slightly dynamic, so I added some dynamic fields in it.
For example:
"The material is currently out of stock.You can expect shipping around week &num_week&."
To replace the dynamic field &num_week& in my interface, I read that I have to name the dynamic field exactly like the corresponding field in my interface. In my case this would be now:
"The material is currently out of stock.You can expect shipping around week &SLS_PRT_COM-ITEM_DETAIL-ZZ_EXTRAFIELDS-ZZWEEKNUM&."
To see the text on my form, I added a text object with type 'text module' and the proper textname. Of course I'm able to insert text on my form, save and activate it without problems. But if I want to print the form, nothing happens as the print program exits with an error code.
After some hours I found out that this problem only occurs if I'm trying to replace the dynamic field with a field from the item table. Using a field from head details or globals like sy-mandt works like a charm.
So my question is: Is it possible to use item data to replace dynamic fields of a smartform text?
Greetings and thanks in advance!
AndréHi
Have a look at the links below:
LiveCycle ES2 * Adobe LiveCycle Designer ES2
Using floating field in Adobe Forms to display text paragraph with dynamic variables in between
After adding the floating field it will apeare in the hierarchy pallet above or bellow the text field.
Good luck
Shai. -
Dynamic character format in SMARTFORMS
Dear Gurus,
I want to make a dynamic character format in smartforms. I did it in SAPscript and success.
what I did in program before passing to smartform :
d_note = '<XX> dynamic text </>'
and pass it to SAPscript and smartforms :
&d_note&
in SAPscript I made new character format XX as BOLD and UNDERLINED. it works for SAPscript. the output become = dynamic txt
unfortunately when I do this in smartforms, it is a fail although I have set new character format XX as bold and underline in smartstyles. the output become = <XX> dynamic text </>
any guru has a solution for this smartform?Hi Sendy,
You cant use tags (eg- <XX>) in smartfomrs like you did in sap scripts. Use your style in the smartform( form attributes) with all character formats and paragraph formats which you need. When you create a new text module in the smartform you will get two drop down lists for the paragraph formats and character formats in the top of the editor. Type your text there and highlight then choose 'XX'(or any other character format) character format from the drop down list.
Hope this would help.
Cheers,
Jeewana -
SunOne Websever 5 sp 5 dynamic jsp:include
Hi,
I'm just trying to migrate from another webserver to SunOne.
I have a number of pages that rely on dynamic JSP includes.
IE
<jsp:include page="<%= someString %>" flush="true">
All pages which use this fail to compile and I get a server error (no errors show up in the logs).
While using a static value (the same value) works fine.
<jsp:include page="somevalue" flush="true">
Has anyone has this problem ? has this functionality been discontinued ?
regs
MichaelHi,
That page refers to the JSP Spec. version 1.1 which is used in WebServer 6.0.
It is documented in the Release Notes for WebServer 6.0 that jsp:include throws an exception when used with the POST method. Is this what you are experiencing?
http://docs.sun.com/source/816-5695-10/rn60sp2.html
Problem 556917. JSP: <jsp:inlcude page="*.html" flush="true" /> Throws Exception If Using With POST Method.
Which version of webserver are you using?? Your subject line refers to "Websever 5 sp 5" but do you mean Webserver 6.0sp5 or WebServer 6.1sp5??
WebServer 6.1sp5 uses JSP Spec. version 1.2, so the page that you were referring to is not relevant if you are using this version of WebServer.
Please note that JSP Specs can be downloaded from:
http://java.sun.com/products/jsp/reference/api/index.html
Let us know exactly which version of WebServer you are using :) -
Dynamic Text translation in Smartforms
Hi experts,
I want to translate a smartform from EN(English) to DE(German).I achieved this through SE63 transaction.It is working fine,but I have three dynamic values passed to the smartform as (&One&,&two&,&three&). These three values are always displayed in EN(English).How to translate these dynamic values also in to DE(German).
Every thing is based on log on language.
I searched in SDN but didn't hit any result. Help me on this issue experts.
Thanks&Regards,
Karthik.goto so10, give a name to text
give text id as 'ST'
object as 'TEXT'
and language as u want.
and create
now in ur smartform-> create a text node of type include text and provide the same details ie name, textid, object and language.
see page 46 in this pdf doc for more help on include text(sapscript texts)
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf
Edited by: kartik tarla on Jan 31, 2009 1:35 PM -
Dynamic style selection in smartform depending on language
Hi
Today I assign a style to a smartform statically in form attributes. I don't assign styles to any subnodes.
Is it possible to make the assignment of style to the smartform dynamically at runtime?
(If you can suggest a completely other solution for my problem, that will also be very much appreciated).
Reason: I have a requirement to translate a lot of smartform (maybe 100+) from English to Chinese, Japanese, Korean, Russian etc.
I'm in a Unicode environment and the translation itself seems to work quit simple.
But there seems to be a major problem about the font.
In our smartforms we use smartstyles with 2 fonts helve and times.
So far we have just translated a few smartforms to Chinese with SE63. We have also translated some material texts and addresses and we have defined a test printer with CNSAPWIN.
Test prints now shows that we can print all the Chinese texts, but all the texts and numbers that is not translated into Chinese (i.e. quantity, price, net value etc.) is printed with a bigger font size.
Now this is a know problem discussed in more forum threads and OSS nodes, and the solution seems to be, to change the style to use special Chinese fonts and adjust the font size.
We have tested this at it seems to solve the problem. But all the threads and notes discussing this issue is talking about "the English smartform" and u201Cthe Chinese smartform" and so on. This is not very smart.
If we follow this strategy and creates a form for each special language (special from our perspective), we will need 5 different versions of every smartform and the time needed for future maintenance will increase dramatically.
A much better solution would be to have one smartform that is translated with SE63 and only make 5 different styles to handle the different fonts etc. This solution requires however that we can assign the styles to the smartforms dynamically at runtime.
Yours sincerely / Med venlig hilsen / 此致敬礼 / Mit freundlichen Grüßen / Pozdrawiam
Thomas Madsen NielsenHi!
In SAPScript there is an option for this, using the STYLE keyword. However I don't know will it work in Smartforms or not.
If it is not working, I think you have to different character and paragraph formats within 1 smartstyle for each language.
About the STYLE keyword:
Changing the Style: STYLE Locate the document in its SAP Library structure
The STYLE control command allows you to change the style within a text. The new style is in force until another STYLE command is issued. If you specify * as the name of the style, then the system reverts to the default paragraph of the original style or form.
Syntax:
/: STYLE style
/: STYLE *
A style set with this command has no effect in a text included with INCLUDE. The system takes the paragraph and character formats from the calling text. To use the style set with STYLE in the INCLUDE text as well, you must add DOMINANT to the command.
Note
If the INCLUDE text has a style assigned to it, in both cases, the system always takes the paragraph and character formats from the directly assigned style.
Regards
Tamá -
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 -
Issue in populating the dynamic internal table in SMARTFORMS
Hi Experts,
My requirement is I have a table in the below format.
Measuring Point
Description of Measuring Point
UOM
Date
Time
Reading
96
POWER GENERATED
kwh
20140501
101837
1.00E+04
96
POWER GENERATED
kwh
20140502
102220
1.00E+04
96
POWER GENERATED
kwh
20140503
104623
1.25E+01
96
POWER GENERATED
kwh
20140504
101111
2.00E+03
98
AUX POWER CONSUME
kwh
20140501
101837
1.00E+05
98
AUX POWER CONSUME
kwh
20140502
102220
1.00E+05
99
NET POWER EXPORTED
kwh
20140501
101837
1.00E+07
99
NET POWER EXPORTED
kwh
20140502
102220
1.00E+07
100
AVG POWER GENERATED
MW
20140501
101837
1.00E+02
100
AVG POWER GENERATED
MW
20140502
102220
1.00E+02
101
AUX POWER CONSUMED(%)
20140501
101837
1.00E+02
101
AUX POWER CONSUMED(%)
20140502
102220
1.01E+01
102
PLANT AVAILABLE HRS
hrs
20140501
101837
1.01E+01
102
PLANT AVAILABLE HRS
hrs
20140502
102220
1.01E+01
103
PLANT RUN HOURS
hrs
20140501
101837
1.01E+01
103
PLANT RUN HOURS
hrs
20140502
102220
1.01E+01
104
PLANT AVAILABLITY FACTOR
20140501
101837
1.00E+02
104
PLANT AVAILABLITY FACTOR
20140502
102220
1.00E+02
which i need to display like below based on the user Requirement for print out.
DATE
POWER GENERATED(96)
AUX POWER CONSUME(98)
NET POWER EXPORTED(99)
AVG POWER GENERATED(100)
AUX POWER CONSUMED(%)(101)
PLANT AVAILABLE HRS(102)
PLANT RUN HOURS(103)
PLANT AVAILABLITY FACTOR(104)
kwh
kwh
kwh
MW
hrs
hrs
01.05.2014
1.00E+04
1.00E+05
1.00E+07
1.00E+02
1.00E+02
1.01E+01
1.01E+01
1.00E+02
02.05.2014
1.00E+04
1.00E+05
1.00E+07
1.00E+02
1.01E+01
1.01E+01
1.01E+01
1.00E+02
03.05.2014
1.25E+01
04.05.2014
2.00E+03
Now the issue is how to assign the values of stops from the internal table to dynamically for a specific date in SMARTFORMS?
Please help me in resolving this issue.Hi,
See if this articale is good for you:
The case of "dynamic columns in smartform"
Regards. -
Dynamic color selection in Smartforms using tables
I am printing a smartform in pdf, i am using tables in smartforms where the number of column is dynamic, and say there can be cases where there will be no data in a particular column and if that is the case than i have to print a particular color say grey, so my question is how to achieve this functionality in smartform dynamically, i am printing it in PDF.
Regards & thank,
Pritam.you need to create the 2 text elements , and put the condtion like below
if not value is initial.
display text1
else
display text2.
endif.
in text2 element > Output options> put the color. which you want... -
Item txt using include text smartform
Hello Friends ,
How can we print Item text from purchase order in smartform using include text . I know click on the include text mode and then write the following details .
text id = f01
lanuage = en
object = ekpo
what should i write in text name . Any other details i need to mention
Do i need to create one using SO10 . Plzzzzzzzzzzz help
JosephHi,
Right click on node(on which you need the text)
Create-Flow logic-Program lines.
system gives %CODE1
there are two tabs General attributes and Conditions
click on General Attributes
Provide the Input parameters - which contains po no and item no
Provide the output parameters- globally defined Variable ex NAME type C
write the code:
CONCATENATE ekpo-ebeln ekpo-ebelp into name
Now again right click on program line create Text.
Give text type as Include text.
provide the details
Text Name &NAME&
Language EN
Text ID F01
Text Object EKPO
Check the box : no error
Rgd
Narsim
Edited by: Aeda N on Nov 17, 2009 11:59 AM -
Dynamic Standard text in SmartForms
Hi,
I have requirwemnt where I need to retrive the data from the Standard text to display.
But it variews based on SalesOrge and Comany Code u2018Zxxxx_SALES_yyyyu2019 here XXXX is SalesOrge and YYYY Company code.
How to call the standard text Dynamically in Samrtform?
Regards
IrfanHi,
For displaying standard text dynamically, just follow the following steps:
1. Create a text element and in general attributes give type as Include Text.
2. Instead of providing any static Standard text in Text Name field, you need to click on the arrow button pointing right, which is for Dynamic Field Value. There you can provide your variable as &VARIABLE&, which contains the standard text name based on the conditions.
3. Pass value statically like Text Object-TEXT, Text ID - ST , Language - EN or else you can passs them dynamically as per your requirement.
As you will be passing variables in order to print dynamic standard texts, it is better to check the option "No error if no text exists".
Karthik
Edited by: Karthik S on Sep 2, 2010 2:40 PM -
Dynamic ui:include difficulties
I'm attempting to dynamically include a page based upon a variable value. I'm running my application in GlassFish v3.0.1 and I'm using JSF2 with RichFaces 4. I've read the following articles pertaining to this:
[http://in.relation.to/11633.lace]
[http://devharbor.blogspot.com/2009/08/add-jsf-controls-dynamically-with.html]
and I believe that I have my code correct to work, but I can't seem to get the <c:forEach> tag to work.
<h:panelGroup layout="block">
<c:forEach var="record" items="#{backer.records}">
<ui:include src="#{record.page}">
<ui:param name="paramBean" value="#{record}" />
</ui:include>
</c:forEach>
</h:panelGroup>
I've got the namespace included for the jstl library:
<ui:composition template="layout.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">but that gave me the following error when loading the page:
This page contains the following errors:
error on line 16 at column 26: Namespace prefix c on forEach is not defined
Below is a rendering of the page up to the first error.
So I included the jstl namespace in my layout.xhtml template, but that only resulted in the following error message being displayed on my web page.
Warning: This page calls for XML namespace http://java.sun.com/jstl/core declared with prefix c but no taglibrary exists for that namespace.
I've added the following to my pom.xml to ensure that I have the jstl libraries available but it did not seem to have any effect.
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>1.1.2</version>
</dependency>
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.1.2</version>
</dependency>
So what am I missing? Why can't I get this to work?
Thanks for the help..Thanks a lot. It worked from me after changing to xmlns:c="http://java.sun.com/jsp/jstl/core" instaed of xmlns:c="http://java.sun.com/jstl/core".
Regards,
Raju Ilayaraja. -
Dynamic Tray Selection in Smartforms
Hi all,
I am looking for a solution, to set the tray in a Smartform dynamically.
It is not sufficient to set the Tray statically on the "Output Options" tab -> Ressource Name.
Can anybody help me?!?
Thanks and best regards,
SteCeeNormally, tray selection is done using GET_PRINT_PARAMETER FM.
Refer to these threads, may be helpful -
Print to different output tray in SAPscript/Print Workbench
Automatic tray selection for printing
Regards,
Amit -
Dynamic Graphic printing in Smartforms
Hello all.
I have to print pictures from web repository (SMW0) using smartform.
I know in smartform, graphics need to be defined with name, Object and ID, that exist in from graphic repository (SE78).
Exist any way for printing any picture from other source than SE78 Dynamically?
Thank you in advance.
Ibrahim AndresHello Ravi....
Thanks for posting...
I understand that I can change graphic name, but it does not fit to me because my graphics are not in SE78 and in WEB repository (SMW0) , and I need to import each graphic to SE78 using one name, before calling graphic printing....
The best solution for me is that I could decide where from assign graphic, not only from SE78. But that is not possible at the moment.
thank you very much.
Ibrahim Andres
Maybe you are looking for
-
Command in Java for "all opened documents"
I have a script that needs modification. Thank you all in the forum for helping me design this script from start btw! Anyway, this is the script. var myDoc = app.activeDocument; app.findGrepPreferences = app.changeGrepPreferences = null; // Change "C
-
AT&T Pre Plus and Pixi Reception are lacking
I had an iphone and I use to think that phone had bad signal. Now my pre plus gets barely 1 bar when iphones around me are getting 4bars of 3g. Its killing my battery switching between edge and 3g. I didn't want to make a big deal but my friend just
-
Hi, I have a JTree that launches an internal frame on selection of a node. The problem is that after the selecion of a node, it can't be reselected unless you make another selection. This is very annoying as it launches unnecessary frames. The TreeSe
-
How do i know if my fpga vi timing before i compile
Hi, Is there way to know that my FPGA VI is not going to give me a timing violation before i compile the code?
-
AIRHelp product roadmap?
There is a lot of enthusiasm for AIR Help and the early adopters have made some good suggestions! Does anyone know if Adobe plans continued updates to AIR Help, and if so, how to get feature requests to them? Is there a product roadmap? For example,