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.

Similar Messages

  • How to create replacement variable

    Hi,
    Any one has idea how to create replacement variable in bps.
    I need to pass one variable value to another.\
    Because both the fields are fields to be change. But user does not want to do double entry.
    So need to pass one value from another. Is there any way. I can fix this issue.
    Thanks
    Naman Shah

    So far not found any answer so closing

  • How to make a variable in main application available in item renderer

    I have a variable in my main applicaton.
    public var accessLevel:String;
    I have a spark list that uses a custom item renderer. How do i access the value of accessLevel in my item renderer?

    You can use outerDocument/parentDocument or FlexGlobals.topLevelApplication

  • How to Display the ColumnName for the Text of any Master Data Object in BEx

    Hi Experts,
    In Bex Analyzer While Displaying the Key and text of any Master data object it shows column name for master data key but not for the text, here client requirement is he wants to see the Text column name as Description  for any master data text.
    say Customer Number is a master data object , while displaying key and text of CustomerNumber - column names should look  like as below
    CustomerNumber    Description
    C11111                     Pepco
    C11112                     Coke
    but usually in Bex Analyzer it displys as following(Text without  column Name)                      
    CustomerNumber   
    C11111                     Pepco
    C11112                     Coke
    Please suggest how can we achive this requirement, thanks in advance.
    Regards,
    Chandra

    Hi Chandra,
    I suggest you to enhance your datasource with text feild, by adding text feild to your datasource in ECC side and replicate it ti BI side.
    For this you have to write code at CMOD.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/302d4b15-5847-2a10-93bb-9c45d9f06b16?QuickLink=index&overridelayout=true
    Better this doc will help you.
    Regards,
    rvc

  • Can I pass parameters from a dashboard via a dashboard prompt and presentation variable to publisher report based on a data model with select statements in OBIEE 11g ?

    I have a publisher 11g (v 11.1.1.7)  report with a single parameter. The report is based on a data model not a subject area.  I created a dashboard put a dashboard prompt and link to the report in separate section on the same page.  The dashboard prompt sets a presentation variable named the same as the parameter in the report. 
    The problem was when I created the dashboard prompt, it forced me to select a subject area which I did (though did not want to) and then I created both a column and variable prompts. But clicking on the
    report link completely ignored the value that I thought would be passed in the presentation variable to the report.
    Side note :  My report uses a pdf template for its layout where I have mapped the columns names from my data model to the form fields on the pdf form.  I noticed that if I create a publisher report based on a subject area, then I do not have the choice to choose a PDF as a template type for my layout.  (I only see BI Publisher Template as a choice). 
    I see some documentation online that suggest it could be done in 10g.
    Thanks
    M. Jamal

    Ok,
    I just tried that and it still doesn't pass anything to the prompt.
    I changed the prompt to an edit field and I made the following weblink but when i click the link from an account it doesn't put anything in the prompt and all data for all accounts is shown.
    This is the URL maybe I messed something up...
    https://secure-ausomx###.crmondemand.com/OnDemand/user/Dashboard?OMTHD=ShowDashboard&OMTGT=ReportIFrame&SelDashboardFrm.Dashboard Type=%2fshared%2fCompany_########_Shared_Folder%2f_portal%2f360+Report&Option=rfd&Action=Navigate&P0=1&P1=eq&P2=Account."Account Name"&P3=%%%Name%%%
    thanks

  • 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

  • How can i give conditions in smartform text editor

    Hi all,
    i want to display something based on some condition using text element in smartforms , how can i do it.
    in SAP Scripts normally we give conditions in text element using command line(/:)
    but it wont work in smartforms , how can i give the same in smartforms ?
    please help me soon.
    thank you.

    Hi,
    You can use the Conditions tab for the corresponding text.
    ex: in the text-editor consider you are displaying a name field based on a variable
    <b>
    ws_name
    ws_variable</b>
    In the text give the field to be displayed
    &ws_name&
    In the conditions tab give
    ws_variable = 'X'
    This will print the value from ws_name only when ws_Variable = 'X'.
    Regards,
    Tushar

  • How to create replacement variable in my case?

    I have one time info in my cube call datefrom, now I want to calculate the days after I input date data into pop-up window, system will automatically calculate the days namely input date data minus datefrom data from cube. So how to handle this case. Pls give info step by step. Thanks!

    Hi,
    Try this:
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    Rgs,
    I.R.K

  • Text-Variables for 12 selection based on 1 Date Variable

    Hello.
    I have a report where the user is being prompt to enter a start date (YYYYMM) in a variable.  Based on that, my report have 12 selection using the variable + offset(1), + offset(2) .... + offset(11).
    For the label of my columns, I'd like to display the the YYYYMM value, what the best way to achieve that?  From what I see, I might have to create 11 variables that are equals to my original variable entered by the user with the use of offset and then create 12 text variables to get that information but I really hope I'm wrong...
    Thanks.
    Regards,
    John

    Ok, sounds a better way than defining 24 variables (12 text + 11 Replacement path).
    Since I only have one variable (Month Selection by user), however, I'm not sure how to deal with the Offset in ABAP so I can properly assign my ZMONTH02TEXT, ZMONTH03TEXT, ZMONTH04TEXT and so on.  Do you have any piece of code to share ?  (Sorry, I'm pretty new to ABAP and I've been searching this forum for example but can't really find what I'm interested in).
    Basically what I need to do is to assign the following:
    ZCALMONTH01TEXT = ZCALMONTH --> The actual month is no problem as it's a simple replacement path variable defined
    ZCALMONTH02TEXT = ZCALMONTH with offset of + 1
    ZCALMONTH03TEXT ...
    ZCALMONTH12TEXT = ZCALMONTH with offset of + 11
    So it's ZCALMONTH02TEXT to ZCALMONTH12TEXT that I'm not sure how to code in the user exit..
    Thanks.

  • Dynamically need to create multiple text or select items.

    Hi All,
      There is a requirement in my application, we need to create multiple textbox or selectlist items, on click of "add" button in apex.
      Any help on this how i can process the request to create multiple items dynamically on click of "add" button.
    Regards,
    Sruthitamiri!!

    APEX_ITEM

  • How to compare substitution variable name to static member names (not data)?

    Is there a way to write a BSO member formula that compares a substitution variable against the name of a static member (not the data value of the member)
    For example, I have a BSO database that has the sub variable &CurrMth (which is set the real current month), and I am trying to use it in the Q1/Q2/Q3/Q4 member formulas
    IF(&CurrMnth <> "Jan" AND &CurrMnth <> "Feb")
       "Mar";
    The intention of the above is: if &CurrMnth is neither Jan nor Feb, then the Mar value will be used. However, the system is actually comparing the values of &CurrMnth and Jan/Feb, rather than the names/text string of "Jan"/"Feb".
    I have been looking around the tech references, but I was unable to find any functions that will compare the text strings of member names as they all appear to compare against the data itself.
    Please let me know if there are any ways to compare the member names themselves in a member formula, not the data values.
    Thanks!

    Thanks Celvin, that looks like it works!
    However, I do need to do the same function in the equivalent quarter members in our ASO cube as well. Do happen know know if there's a similar MDX function I could use in the ASO cube to acheive the same result? I was using the following to achieve this in ASO (which obviously did not work):
    IIF([Time Periods].[Jan] <> &CurrMth AND [Time Periods].[Feb] <> &CurrMth,
       [Mar],

  • How do I change the color of text based on the layer below it?

    I want to create text that expands beyond a circle but inside the circle it is white and outside is black.

    Make a text layer that is black.  Create a white circle above it and clip that layer to the text layer by holding down the alt/opt key while clicking between the layers.

  • How to hide Age in the Event Text of Reminder of Dates iview of MSS

    Hi All,
    Could you any one let me know the process or steps to hide the age in the event text of the iview Reminder of dates.
    Currently along with Date of Birth the age is shown in with in brackets.
    I want to hide the age which is shown. I belive this has to be done using SPRO configs, but not sure of exact steps.
    Any help is really appreciated
    Thanks
    San

    No one else has this problem or knows of a solution? *weeps quietly*

  • Dynamic WHERE clause logic in SQL based on ITEM value

    Hi,
    I have a report based on following SQL query.
       select dept_no,
           dept_name,
           dept_loc
      from dept
    where dept_loc = :P1_DEPT_LOC
       // If P1_DEPT_LOC is not null, I want the WHERE clause and IF  P1_DEPT_LOC is null, then I don't need the WHERE clause.
       // how can I build this logic in same SQLThanks,
    Deepak
    Edited by: Deepak_J on Mar 11, 2010 4:37 PM

    Deepak,
    If p1_dept_loc were a LOV, this would work.
    SELECT deptno,
    dname,
    loc
    FROM dept
    WHERE ( :p1_dept_loc = '%null%' OR loc LIKE '%' || :p1_dept_loc || '%' )
    Jeff

  • Domain template with custom replacement variables

    Hi everyone,
    the following document explains how to use "replacement variables" to prepare runtime scripts (bash) when a domain is created from a template:
    http://docs.oracle.com/cd/E23943_01/web.1111/e14139/tempbuild.htm#i1100973
    Other than the listed variables, is it possible to create our own variables? If yes, how can we assign values to those custom variables when creating the domain from a WLST script?
    Thank you,
    Gabriel Lavoie

    Have you taken a look at this hotfix?
    http://support.microsoft.com/kb/2907591
    We had to apply it in order for our variables to be seen.
    joeblow

Maybe you are looking for

  • Default page size - linux

    How does BDB 4.3.28 select the page size for a newly created database on Linux? I've been tracking down a lot of DB performance and resource issues that we've been hitting ever since we upgraded our Linux from 2.4.20 to 2.6.21. One big problem I've r

  • [Solved] Strange artifacts

    Im having trouble with strange artifacts when I drag some windows or open text files in gedit. I am running openbox and xcompmgr. Any suggestions on how to resolve this? [rbn@tarmac ~]$ lspci | grep VGA 01:00.0 VGA compatible controller: ATI Technolo

  • Early 2008 MacBook running latest Lion. FaceTime opens but offers no window or opportunity to select a contact. Worked until yesterday 04/04/2012. Any suggestions

    Early 2008 MacBook running latest Lion. FaceTime opens but offers no window or opportunity to select a contact. Worked until yesterday 04/04/2012. Any suggestions

  • SOAP Performance ????

    Dear all, Compared to RMI, CORBA, what is the performance of SOAP, especially when used in distributed computing? I think the peformance would be quite low, because of the large overhead involved in XML format, and the text (instead of binary data) u

  • Recover an old version of a folder

    Hey! I am running a game server on my Mac, and I want to recover its world save from a few days ago. I am wondering how I can rollback or revert this folder to its older version. If anyone knows how to do this, please let me know, I would really appr