Adobe Forms dynamic number of pages  in Webdynpro

Hi Experts,
My requirement is to display a paragraph in PDF format. The paragraph varies for each employee. The text are stored in a table as GUID.
I am converting the GUID text using read_text function module. The output is of TYPE TABLE OF tline.
Below is the code that I am using the display output in pdf.
CALL FUNCTION lv_fmname
      EXPORTING
        /1bcdwb/docparams  = ls_fp_doc
        zcit                              = *lv_citation*
        zsignam                      = lv_signam
        pernr                           = lv_pernr
        ename                         = lv_ename
        desig                           = lv_desig
        zdate                          = lv_date
        zyears                        = lv_years
      IMPORTING
        /1bcdwb/formoutput = ls_formout
      EXCEPTIONS
        usage_error        = 1
        system_error       = 2
        internal_error     = 3
        OTHERS             = 4.
In the above code I have converted the tline format to string and passing that as lv_citation. So in the PDF I am getting a single paragraph as output. I want to get the output with the formatting also.
I tried to pass that tline format to the above function module and its giving some error.
Is this possible to get the output with the formatting available in lt_tline?

Dear Vidhya,
that sounds very crazy.
If i use tline_tab for the param and in the fm, the whole construction works without any problem.
Can you explain more about the implementation in the layout (or is there an error while calling the fm with the "wrong" type??)
Also have a look at this thread: [click me|filling a textedit ui through an internal table;
Declare a itab of type string_table.(say lt_string)
Loop at itab(the actual data) into wrkarea.
concatenate all fileds of wrkarea into a string variable.(say lv_string)
APPEND lv_string TO lt_string.
ENDLOOP.
Bind lt_string to a context attribute of type string_table.
Bind the attribute to the "value" of textedit.I remember doing somthing like this
and it  seemed to work.
To show multiline text you'll need to be using a text edit UI element
(with read only flag checked) not a text view UI element.

Similar Messages

  • Rearrange pages when printing adobe form with multiple master pages

    Hello!
    Good day to you all.
    I have an issue in regards with printing my adobe form with multiple Master pages. I have 4 master pages:
    1st master page: a
    2nd master page: b
    3rd master page: c
    4th master page: d
    all with different headers and footers all having the same contents (items). I don't have issue with one page content (it just prints 4 pages with different headers and footers). The issue comes out once the items exceed 1 page.
    What happens is that the preview/print shows (example: 3-page item)
    a1-a2-a3-b1-b2-b3-c1-c2-c3-d1-d2-d3.
    What i need is to print these such that all 1st pages of the 4 master page to be printed first, then all the 2nd pages, then all 3rd pages. Please see below:
    a1-b1-c1-d1-a2-b2-c2-d2-a3-b3-c3-d3
    This is because we will be using carbonless copy paper during printing and it's possible that it would be printed on batch jobs. Please suggest ways to do this.
    Thanks a lot in advance!
    Best Regards,
    abap_peer_dangs

    Hi,
    Is that requirement of multiple pages as groups only at the time of print or at print preview also...?
    Can you have a Print button on this screen or you should be using the Abobe toolbar's Print button..?
    Well if this on a click of a button in the form and the requirement is only at the time of print and not on print prieview I can have a JS script which does this...
    Let me know if this suffice, I can try with a local file and send you the script.
    @ Chris: I didn't understand what do you mean by reported, I was eager to hear and learn a solution from you may be a new approach which I am not aware of ...?
    Cheers,
    Sai.

  • Adobe Form Layout is not loading from webdynpro abap

    Hi Experts,
    I am creating adobe forms using webdynpro.If i double click on the adobe form name from UI element properties,i am getting an error:
    'Error while opening document'
    Also in diagnosis it is written as:
    'An error occured in the desktop application while opening the document' and also the message number is 'SOFFICEINTEGRATION143'.
    Please help me to solve these issue.
    Regards,
    Arun.

    Hi,
    I solved this issue by reinstalling Life cycle designer.
    Regards,
    Arun.
    Edited by: ARUN.NAREIN on Oct 4, 2011 12:47 PM

  • How to Change the Visible property of Adobe Form Dynamically - URGENT

    Hi,
        I am woking on a scenario where when I click a button in Adobe Form,
    another Adobe Form should be displayed. This is using Web Dynpro Java.
    For this I have made the second form invisible and I want to make this VISIBLE when the button is Clicked. I am unable to get a method where this property of interactive form can be changed.
    Also, If there is any other way this can be done please let me know.
    I am using NWDS 7.0.09 with Adobe Live cycle designer 7.1.
    Thanks in Advance,
    Vasu

    You need to get the handler to the adobe form in your webdynpro program. If you are using webdynpro for java the following code snipped could be useful...
    IWDPDFDocumentInteractiveFormHandler iFormHandler = WDPDFDocumentFactory.getDocumentHandler(wdThis.wdGetAPI(),"YourAdobeForm");
         // Get appearance setter. 
         IWDPDFDocumentAppearance appearance =
              iFormHandler.getDocumentContext().getAppearance();
         //appearance.
         // Set page layout option
         appearance.setPageLayout(pageLayoutOption);
         // Set show option.
         appearance.setShowOption(showOption);    
         // Hide menu bar.
         appearance.hideMenuBar(true); 
         // Hide tool bars.
         appearance.hideToolBars(true);
         // Hide window controls.
         appearance.hideWindowControl(true); 
         // Show full screen.   
         appearance.showFullScreen(true);
    Reward points if the post is helpful
    Thanks!
    Surya.

  • Adobe Form: Dynamic vlaue for Include text name. Script Coding

    Hi,
    Situtation:
    Need to print  an 'Include Text' in the Adobe form.
    The key texname for the include name is dynamic -  invoice number + position number.
    I have created a Global Data variable item_textkey and assigned it to the inculde textname in 'Context'.
    The Problem is I dont know how or where to assign a value to this global data variable at runtime, so the right include text is pulled up.
    I tried the code in the "FormCalc' of the text field. But it doesnt work.
    $record.ITEM_TEXTKEY = Concat ($record.IS_VBDKR.VBELN, $record.IS_VBDPR.POSNR)

    Try the following in initialize event of the main subform
    $record.ITEM_TEXTKEY.rawValue = Concat ($record.IS_VBDKR.VBELN.rawValue, $record.IS_VBDPR.POSNR.rawValue)
    Chintan

  • To make TEXT field in adobe forms dynamic

    Hi Experts,
    I have requirement in adobe forms where based on certain condition I want change the TEXT field accordingly.
    Example if material number in of gas type than text will be "GAS MATERIAL" and then populating corresponding material number.
    If itu2019s of hard goods type than text has be "HARD GOODS MATERIAL".
    Please let me how this requirement can be achieved ASAP.
    Thanks in advance.
    Regards,
    Aks.

    Hi,
    Yes you can definitely make a field dynamic. Bind the text fields with varibale of type Material Number and its description which will have to create in the context (Interface) of the adobe forms. These values you can pass from your driver program or Web-Dynpro.
    Regards,
    Runal.

  • ADOBE Forms, dynamic images

    Hi to all,
    I'm working with Adobe Forms and I need to show the photo of an employee depending on his personal number.
    So I can´t put the location of the image directly on the URL box of the object.
    Does any one knows how to show jpg images dynamically?.
    I can do it with Smartforms but I don´t know how to with Adobe Forms.
    Thanks.
    Nico.-

    Hi,
    I'm working with Nico. We already could show photos dynamically in our Adobe form, uploading them into the Unix server (into AL11) and then referencing the path dynamically. But we still can't show the photos of the employees. The problem that we have now is that we would need a path of the photos on the server to be able to show them in the Adobe form, but we actually couldn't find the path where they are physically stored.
    The photos are being stored with ArchiveLink, using the content repository YE, which is configured as follows:
    Content Repository:                 YE
    Description: ...
    Document Area: ArchiveLink
    Storage type: SAP System Database
    Rep. Sub-Type: Normal
    Protocol:                 SAPAL
    Version Number: 0046
    Contents Table: ZCONT_DB --->> the structure of this table corresponds to the table SDOKCONT1
    Transfer directory:                 Z_GRAF_EMPLEADOS2
    Physical path: O:\DACON_RH\Sapgraf_prl\
    When calling 'HR_IMAGE_EXISTS' and 'SCMS_DOC_URL_READ' functions to get the URLs of the photos, those functions return URLs like this:
    SAPR3://SAPR3CMS/get/070/YE/45C3EED1A64E1956E10000000AFA081B/DATA
    but those URLs don't work in our Adobe form as the path of the photo (the photo isn't shown when we put that URL in the place of the path).
    Does anyone know where could be the photos physically stored or what can I do to solve this problem?
    Thanks!
    Dani

  • Adobe Form Layout is not loading from webdynpro

    Hi Experts,
    I am not getting the layout for Adobe forms from webdynpro.If i click the layout tab an error is poping:
    "Error while opening the document"-Message no.SOFFICEINTEGRATION143
    When i checked the diagnosis it is stated as:An error occured in the desktop application while opening a document.
    Please help me to solve this issue.
    Regards,
    Arun.

    Hi Arun,
    Error due to incorrect installation of life cycle designer.
    check the below links for solution.. ( same issue ).
    Error Message "Error while Opening the Document"
    Error - Adobe Live Cycle designer
    Regards
    Srinivas

  • How to handle Adobe Form - Dynamic Tables.

    Experts:
    I am new to Web DynPro for ABAP and Adobe Interactive forms.
    I have created a Adobe form with dynamic table. When I submit the form, WD4A is able to read only the first row of the table. Other rows are getting lost.
    I thought just binding with the context will trasfer data from Adobe to WD4A. But it is not happending.
    Do I need to write any code in WD4A and any script in Adobe Designer?
    Can any one send me a sample code (ABAP and JavaScript). Even link to that will be very useful.
    Thanks,
    Vijai

    Thomas:
    My context is as follows.
    <CHANGING>
      <REQUISITION_ITEMS>
        <ELEMENT..1>
        <ELEMENT..2>
        <ELEMENT..3>
    The cardinality of <CHANGING> node is 1..1 and the cardinality of  <Requisition_items> is 1..n.
    Thanks
    Vijai

  • ADOBE Form Table printing Multiple pages

    Hi,
       I am having a suituation that in ADOBE Forms I need to display same internal table data in multiple pages. But while i display it the data only printing in first page. I want to print the same data in the second page also. How to do this? any idea please.
    Regards
    Srikanth S

    Hy Otto,
    his requirement was a bit different from what you answered I am saying this because i've stumbled on the same problem. I have a table that varies between 4 or 8 rows and let's say half of the page it's enough for it. But i need this table to appear on every page. I created the table in the Master Page, but it shows only on the first page. The other pages will not display the table.
    Thanks,
    Alex

  • Saving a adobe form Output to presentation server from webdynpro

    Hi all
    I have a webdynpro aplication, where on clicking a button  I want one adobe form  output to be downloaded
    in pdf format to local server.
    currently while clicking the button its calling the webdynpro application where pdf is integrated and its displayed
    on the browser.
    Instead of the display I want to download to presentation server on clicking of the same button ,
    The layout type of the PDF component is  ZCI Layout and  interface is XML schema based interface.

    With an XML based interface it is going to be much easier to display the form and then download it.  The user could choose the save from the Adobe Plug-In toolbar or you can get the XSTRING content of the PDF from the PDFSource Property of the InteractiveForm UI element.  With the XSTRING you can then, start a download with this content.  However PDFSource doesn't get populated until the InteractiveForm is visible on the screen.
    If you want complete background rendering of the PDF, you would have to call the form interface and pass the data into it with the XML format.  Function Module based form interfaces are really much better suited to background calls because of their nice, flat and ABAP structure based interfaces.

  • Adobe Form : Printing with Zero pages

    After Upgrade ECC6.0 to EPH5 Adobe form is not printing,bu print preview is working, while printing it is creating spool request with zero pages.
    Please help, Thank you in advance.

    Hello Rajitha,
    Check the print parameters once... 
    Try printing any standard form using standard program, and check whether it is behaving the same way.
    Thanks,
    Rakesh

  • Change the image in the statice adobe forms dynamically based on condition.

    Hi Experts,
    Could you please explain how to change the image dynamically in the static adobe forms based on certain condition/calculation.
    Thanks in Advance.

    One of the very few options you have is loading them all into the form as embedded images, and then dynamically making the visible and hidden depending on your conditions.
    Dynamic loading of images (from a URL or remote location) was completely removed from Interactive Forms a while ago as it was deemed insecure. (and it is)
    The second option is loading them all into your SAP system and then making a webservice which you call with a trigger to return you the binary form of the image, which you can read by creating the correct type in the Context.
    Kind regards,
    Frederik-Jan.

  • Adobe Form (Dynamic Imgae Display)

    Hello Frn's....
    I want to display image resides in SAP Server (SE78) dynamically inside the ADOBE form ..How can i achieve this ?
    Please provide the solution .
    Thanks and Regards....
    Priyank Dixit

    When you need to send a picture into the offline form: another image question - using Regular ABAP not web dynpro and Display a logo dynamically in adobe form
    Otto

  • Formatting ADOBE forms dynamically

    I am creating a pricing letter in ADOBE forms which will be called through an ABAP program. I want to change formatting of some of the fields dynamically on the basis of fields values. e,g. If I want to change Font size or color of the fields on the basis of field value how can I do this?

    The example I gave you above is FormCalc scipting.  As far as documentation, I am not aware of a any site that has the events and properties documented.  I, like yourself, had a difficult time figuring out the syntax for dynamically changing properties.  I have a training class book that I got from one of my colleagues which has helped some.  AdobeForms does not have a debugging tool as far as I know.  I will be happy to help you out if I can but I am by no means an expert.

Maybe you are looking for