How to dynamically include textelement in smartforms
Hi Experts,
I need to print payslip using smartform and need to take the values from pay99_result.
I took all the values and filled in the internal table and passed to smart forms, but the requirement is when ever particular wage type is given for an employee only that wage type only printed in the smart forms output. we have 87 wage types.
I designed the layout using table in window and created several table line, in the salray details table line rows values descripiton should come dynamically according to the particular month credited(affected) wage types.
This is the salary details line item .
desc amount annual semi annual deduction amount
textelement1 textelement2 textelement3 ... . . . .. ...
Inn single text element multiple coloumn need to come.
using this text element respective values should come dynamically, i tried condition in the text element , but if condition failed (no values for wage types) whole coloumn is not displaying but for me only that row should not printed.
Any one please guide me how to approach on this issue and how to pass the text element value dynamically ???
With Regards,
Thanesh
HI,
why dont you make use of Dynamic text concept in smartforms..which is fits in your requirement.. to make use of it..
on a window. right click and choose Text.. it will take you to text window..in that choose text type as D Dynamic text...
I hope this answer will help you..
Regards,
Kiran
Similar Messages
-
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. -
How to dynamically include jsp files using jsf el in include tag ?
Hi,
I'm trying to get the jsp file name from my backing bean to use it in an include tag but I can't make it work
When using this piece of code I can get the generated path
<h:outputText value="/_partial/#{myBean.jspName}.jsp"/>whereas in this code the jsf el is not replaced by this value.
<%@ include file="/_partial/#{myBean.jspName}.jsp" %> Have you any idea of how to solve this ? I'm currently developing for J2EE 1.4 platform.
Thanks for your help,
Regards.If you're using JSF 1.2 and JSTL 1.2 at a JSP 2.1 environment, then you can just use <jsp:include> with unified EL.
If you're using JSF 1.1, then you may find this article useful [http://balusc.blogspot.com/2007/01/dynamic-jsf-subviews.html] -
How can I do a dynamic include of a page fragment?
I have a technical support website with a lot of simple html pages. What I want to do is hyperlink from the index page to another page, which would display these html pages as a page fragment, dynamically based on a session bean set by the hyperlink.
I basically want to do this, if it was possible:
<jsp:directive.include file="#{SessionBean1.pageToDisplay}"/>
Now the FAQ's has a topic "How can I do a dynamic include of a page fragment?", which would seem to answer my question.
But this is all it says, and it makes no sense to me. Could someone please translate? :)
"Using a page fragment file (but using instead of the usual Creator approach) will accomplish a dynamic include."Here is 1 solution:
First add this to the jsp:root tag:
xmlns:c="http://java.sun.com/jsp/jstl/core"
Then surround the page fragment directive with something like this:
<div style="position: absolute; left: 24px; top: 408px">
<c:if test="${SessionBean1.count > 0}">
<jsp:directive.include file="testPF.jspf"/>
</c:if>
</div> -
Smartforms: how can I include a jpg picture stored an a web server ?
I want do include a business graphic (JPG) in a smartforms window. The picture is created by a web serves and stored on a web server.
the jpg-picture can be loaded on by an http-adress.
How can I include the picture in the smartforms form ?
thanks
Richardhi,
use transction SE78 to upload the picture .
Then use it in smartforms.
regards,
guru -
How do you include static text in select statement in Dynamic pl/sql
I want to include some atatic text and get the output of 4 columns joined with a ":" delimiter within them in a select statement built using Dynamic PL/SQL. How do I build it.
e.g.
Normal select statement would be
select 'MY SKU IS : ', col1||':'||col2||':'||col3||':'||col4 from table1 where ....where condition
and output looks like :
MY SKU IS A:B:C:D
MY SKU IS a:b:c:d
Dynamically I have -
SQL_Stmt := 'select 'MY SKU IS : ', col1||':'||col2||':'||col3||':'||col4 from table1 where '|| wherecondition;
I understand that this does not work because the single quote terminates the string. But my question is how do I achieve the same result with dynamic PL/SQL ? How do I include the static strings and the delimiters. I have tried using double quote, '\'....
????SQL_Stmt := 'select ''MY SKU is ' || col1 || '':'' ||
col2 || '':'' ||
col3 || '':'' ||
col4 ||
' from table1 where ' || wherecondition; -
How to create a dynamic include
I would like to construct a dynamic include depending on URL searchstring data. In my mind it looks like this:
<%@ include file = request.getParameter("subnav")+".jsp" %>
but for my Server it�s more like this :-))
index.jsp(110,25) Attribute value should be quoted
It might be a problem on the execution time of the include command but I don�t know how to get around it.
ElmarThe JSP's include directive (<%@ include) can be used to include files at the translate stage. So, you can't parameterize the file name. But the JSP's include tag (<jsp:include...) includes the file at runtime and hence you can parameterize it as I have shown in my earlier reply.
Hope this helps. And this is the solution I believe.
Sudha -
Hi..how we enter standard text for smartform using include text
hi
guru
..how we enter standard text for smartform using include text..
i know only using so10 we write text..
in smartform it asking text-object
text-id,
so what values we should give to get textHi,
Do u want to print Standard Text or the Texts that are maintained at the Transaction level.
If it is standard text , then u use text id as ST or if it is Texts that are maintained at the Transaction level then u have to go to that specific transaction and check for that text , then go to text editor ,in the goto menu u have header data where u get the Text id , text name.... , use them in ur smartform in the INCLUDE text.
Further u have the option of text modules in smartforms which act as standard texts, so if u r going for creation of standard texts then its better to use text modules.
Regards,
Shafivullah Mohammad -
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 print Check Box in smartform
HI,
How to print check box in smartforms. I am using Include Sap Symbol but in the print it is coming as #. Do we need to do any setting like we do for barcode?
Thanks
Raghavendrahi,
u can print a check box in different ways.. by inserting symbols and making window as check box..
once go through the thread u will get to k now differnt ways
putting checkboxes in smartform?
Please Close this thread.. when u r problem is solved. Reward all Helpful answers
Regards
Naresh Reddy K -
HOW TO USE PERFORM STATEMENT IN SMARTFORMS
Hi,
Can anyone tell me how to use call subroutine in smartform?
Thanks & Regards,
Gauarv.Hi,
Hope this helps you..
You can use the PERFORM command to call an ABAP subroutine
(form) from
any program, subject to the normal ABAP runtime
authorization
checking. You can use such calls to subroutines for
carrying out
calculations, for obtaining data from the database that is
needed at
display or print time, for formatting data, and so on.
PERFORM commands, like all control commands, are executed
when a
document is formatted for display or printing.
Communication between a
subroutine that you call and the document is by way of
symbols whose
values are set in the subroutine.
The system does not execute the PERFORM command within
SAPscript
replace modules, such as TEXT_SYMBOL_REPLACE or
TEXT_INCLUDE_REPLACE.
The replace modules can only replace symbol values or
resolve include
texts, but not interpret SAPscript control commands.
Syntax in a form window:
/: PERFORM <form> IN PROGRAM <prog>
/: USING &INVAR1&
/: USING &INVAR2&
/: CHANGING &OUTVAR1&
/: CHANGING &OUTVAR2&
/: ENDPERFORM
INVAR1 and INVAR2 are variable symbols and may be of any of
the four
SAPscript symbol types.
OUTVAR1 and OUTVAR2 are local text symbols and must
therefore be
character strings.
The ABAP subroutine called via the command line stated
above must be
defined in the ABAP report prog as follows:
FORM <form> TABLES IN_TAB STRUCTURE ITCSY
OUT_TAB STRUCTURE ITCSY.
ENDFORM.
The values of the SAPscript symbols passed with /: USING...
are now
stored in the internal table IN_TAB . Note that the system
passes the
values as character string to the subroutine, since the
field Feld
VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR
80). See the
example below on how to access the variables.
The internal table OUT_TAB contains names and values of the
CHANGING
parameters in the PERFORM statement. These parameters are
local text
symbols, that is, character fields. See the example below
on how to
return the variables within the subroutine.
From within a SAPscript form, a subroutine GET_BARCODE in
the ABAP
program QCJPERFO is called. Then the simple barcode
contained there
('First page', 'Next page', 'Last page') is printed as
local variable
symbol. -
How to fetch Employee Picture in Smartforms
Hi Experts
Please help me out in getting employee picture in Smartforms
I have used the following FMs
1. HR_IMAGE_EXISTS
2. SCMS_DOC_URL_READ
By using these two FM i got the URL and i am able to get the picture in my Report Program,by using FM 'ISM_URL_SHOW'.
But Please tell how to get this picture in Smartform .
As i am generating Employee Biodata and in that i need employee Picture.
Please HELP me ....
Thanks & Regards
Shaveta PrabhakarHi Shaveta,
The question has been raised earlier as well on SDN.
Please search for 'Smartforms dynamic picture' on sdn and you will get a good number of solutions.
The one answer which i found to be promising one is the one which mentioned somethig like:
<b>Create a graphic node in the Smartform and under the tab 'General Attributes' fill the Name, Object and Id with variables (e.g. &NAME&, &OBJECT& and &ID&) and fill these parameters to get the picture you want at runtime.</b>
See if this helps.
check this link too
smartforms dynamic logo
and revert for more clarifications if any.
<b>Always reward points to useful suggestions.</b>
regards,
Vikas -
How to add standard text in smartforms?
Hi friends,
How to add standard text in smartforms ?
points rewarded soon
Regards
RHCreating the Standard Text:
Go to SO10
1. Enter Text Name. For example, ZABC
2. Text ID ST
3. Language EN
Click on Create.
And enter the Required Information and save.
To include a Standard text in SmartForm.
Follow the steps below:
1. Create a text node in the window.
2. Under general attributes select "Include text" as Type.
3. Specify the fields under Text.
Text Name ZABC
Text Object TEXT
Text ID ST
Language EN.
Hope it helps.
Regards. -
How to use standard texts in smartforms
Hi Friends,
How to use standard texts in smartforms, ie in scripts we are using standard texts using tr so10.
thanks in advance,
regards,
sharma.For long text
method1
Create TEXT node- general attributes change text type to include text
then you can input text name/text object/text id/language
method2
create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
then use LOOP or TABLE node to display it
For TEXT module(For foreign language)
Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
then enter smartform Create TEXT node- general attributes change text type to text module
input the text module name which created by above
btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10 -
How to dynamically determine Receivers within BPM
Im trying to design a way to determine my receivers within my BPM process during runtime. My Scenario is as follows:
SAP IDOC
V
XI
XI uses JAVA Mapping MT1 to determine vendors and if customer receives PIDX
JAVA Mapping MT2 to creates the PIDX output file if required
V
SENDs to required Vendor (PIDX if required otherwise email)
My problem is how to dynamically determine the appropriate receiving vendor for my PIDX.
I can not use the condition editor on the standard Receiver Determination because the output message (PIDX) doesn't have specific enough information to determine the vendor.
Other than the customer number there are no other values and we don't want to use customer number because each vendor can have multiple customer numbers (hundreds).
I've tried various attempts but none seem to work. This could also be because I have limited knowledge of BPMs and this is my first complex development. Below are the different attempts I've made at dynamically determining the receiver. Any input would be appreciated.
Receiver Scenario 1
I developed an interface mapping with MT1 as input and the SAP Receiver Determination as output. The problem is for me to use this, the interface mapping had to reference the PIDX output (MT2 instead of MT1) which has no data that I can use to determine the receiver.
Receiver Scenario 2
I added a receiver step right before my send step and used the receiver list. This appears to send the PIDX to everyone in the list and there is no way to evaluate or eliminate a name from the list.
Receiver Scenario 3
I created a context object in the Integration Builder and assigned it to a field in MT1. I then added a switch step with a branch for each vendor. Within each specific branch there is a Send step that has the context object name I created in the "Send Context" field. However, on the configuration side Im unable to access the context object which I created on the design side. Whenever I open the condition editor and select the radiobutton for "Context Object" the list does not include the context object I created in the Integration Builder.Hi,
Try using the enhaced receiver determination concept.
Maybe based on certain field values you can write a UDF which calculates the receiver.
Try this Blog out
Link : [
http://help.sap.com/saphelp_nw70/helpdata/en/43/a5f2066340332de10000000a11466f/frameset.htm]
Regards,
Abhishek
Award if helpful.
Maybe you are looking for
-
After creating a new playlist in iTunes, how can I add my entire music library --at once-- to the new playlist. I want to download all my music from Icloud at once on my Macpro
-
Uploading data in infotype 0024
Hi all, I want to upload datain infotype 0024 - qualifications tab. Now the issue here is that this infotype contains a table control in which the data is not getting stored in infotype 0024 but some place else instead. Please suggest how to tackel t
-
Code for Scanning of signatures from uploaded form & uploading to database
Hi what is the procedure for scanning of signatures from a uploaded signature form and uploading them to database
-
Mapping Workbench error when exporting project XML
The following error pops up when trying to export the project deployment xml file. "The following descriptors do not have corresponding class files. Please check your class path." The window then lists all of my descriptors. I have the Oracle 10g dat
-
Launching or Killing processes in java
I was wondering is it possible to launch or kill proccesses | programs with a java application, and if so what class is used?