Internal table in adobe print forms

hi there,
in my WDA-application i use adobe print forms for output.
i use a table for displaying an internal abap-table.
in the formular-hierarchy it looks like this:
table2
--> line1
  --> cell1
  --> cell2
  --> cell3
my problem is that i am a complete newbie in scripting in print forms.
here is what i want to do:
if cell1 = 'X' then the text in cell2 has to be bold or underlined.
Can someone provide me with a code-example either in javascript or formclac???
thx
David

thx for answering.
first i tried the following code:
data.T1.Tabelle2::ready:form - (JavaScript, Client) -
this.Zeile1.Zelle2.font.weight = "bold";
this.Zeile1.Zelle2.font.underline = "1";
the result is, that cell2 is bold and underlined but only the first row of the table. i want all cell2 in all rows bold and underlined.
then i tried this:
data.T1.Tabelle2::ready:form - (JavaScript, Client) -
if(this.Zeile1.Zelle1.rawValue == "01"
this.Zeile1.Zelle2.font.weight = "bold";
this.Zeile1.Zelle2.font.underline = "1";
nothing happens and i dont understand why. The visible value in Zelle1 is "01"!

Similar Messages

  • Importing internal table in Adobe Interactive Forms

    Hi all,
    at the moment I do my first steps in AIF.
    I have created a report and select dd02l, dd03l and dd04l.
    dd02l is a structure. dd03l and dd04l are internal tables.
    How can I import internal tables into my function module with getting a runtime error? Fields and structures are no problem?
    I have defined both internal tables as importing parameter in my form interface because I cannot define internal tables ;o(
    Thx 4 help & regards
    Michael

    hi,
    find attached document it will helpful for u go to link
    1.https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
    2.https://www.sdn.sap.com/irj/sdn/abap-elearning
    thanks reward if helpful

  • Adobe Print Form: Printing Nested Internal Tables

    Hi All,
    We are developing an Adobe print form
    We are getting data in 3 internal tables (say ITAB1, ITAB2, ITAB3)
    Now we need to print the data as follows (data can overflow into multiple pages)
    Record of ITAB1.........
       Record of ITAB2
       Record of ITAB2
       Record of ITAB3
       Record of ITAB3
    So for 1 record of ITAB1 there can be >1 records in ITAB2 and ITAB3. We have the data in the correct format and all internal tables have a common key field to link. But we don't know how to render this onto a form
    Please advise
    Thanks and Regards,
    Aditya

    It is possible, in the context itself you have to define them nested
    parent
      -> childtable   "here you can specify the where condition also
       -> subchildtable
    The Crucial part is design , in the design you have to take care of Binding , Postioned, Flowed parts and Repeat Row option(make sure for all the tables forms Repeat row option marked).

  • Part II: Adobe Print Forms with Web Dynpro for ABAP. -Practice issue

    Hi,
    I am practicing Thomas jung Tutorial on Adobe forms [Part II: Adobe Print Forms with Web Dynpro for ABAP|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/a3e2f018-0b01-0010-c7a8-89deb6e63e97].
    I am trying to complete this and looks like this tutorial in not complete.Anybody can help me in completing this until we get a preview of adobe form?
    FYI.. Ic ompleted evevrything in tutorial and I am waiting to complete and test.
    Rgds
    Vara

    Thomas,
    Here is where I am stuck.
    Wrote this code in ONACTIONSEARCH.I am getting my entries in internal table ISFLIGHT.
    but unable to bind it to adobe form and show in the form.
    *  SELECT statement
        clear isflight. refresh isflight.
        select * into corresponding fields of table isflight from sflight
        where carrid =  ls_data_selections.
    * navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
      lo_nd_adobe_data = wd_context->get_child_node( name = wd_this->wdctx_adobe_data ).
    * navigate from <ADOBE_DATA> to <SFLIGHT> via lead selection
      lo_nd_sflight = lo_nd_adobe_data->get_child_node( name = wd_this->wdctx_sflight ).
      lo_nd_sflight->bind_table( new_items = isflight set_initial_elements = abap_true ).
    Error is Access via 'NULL' object reference not possible.
    FYI.. I just dragged and dropped 2 elements from DATA to Adobe form.what are the other changes do i need to do in form gui elements so that it shows the internal table contents?
    this would really help me..
    Rgds
    vara
    Edited by: Vara K on Jan 21, 2009 5:51 PM

  • Open Adobe Print Form from ALV Int. Rprt using the XSTRING already present

    Hello Friends,
    I have a typicall issue that how to open a Adobe Print Form when a user double clicks in the ALV Report. Here when the user double clicks in the ALV Interactive Report using the unique ID I am getting the Adobe Form from a FTP location in the Form of XSTRING, now using the ABAP ADOBE PRINT FORM not using WebDynpro Application, I need to process this XSTRING and show up the Adobe Print Form.
    OR
    Is there a way to send the XSTRING to the Output Device or Printer to Display the PDF Form.
    Friends please help me in solving this issue.
    Thanks and Regards
    Pradeep Goli
    Edited by: Pradeep Goli on Mar 19, 2009 1:49 PM
    Edited by: Pradeep Goli on Mar 19, 2009 2:51 PM

    Hi Pradeep Goli,
    it is possible to show PDF in SAP GUI.
    Michal
    REPORT  ZTEST_DISPLAY_PDF.
    * You must create dynpro 500 with custom control named HTML.
    * In this custom control will be displayed PDF.
    DATA: g_pdf              TYPE xstring,
          pdf_my_container   TYPE REF TO cl_gui_custom_container,
          pdf_html_control   TYPE REF TO cl_gui_html_viewer.
    START-OF-SELECTION.
    PERFORM create_and_display.
    FORM create_and_display.
    *** Your code fo filling g_pdf
    CALL SCREEN '500'.
    ENDFORM.
    * PDF preview in HTML control
    module html_control output.
      perform pbo_html_control.
    endmodule.
    module html_control input.
      perform pai_html_control.
    endmodule.
    * PAI
    FORM pai_html_control.
      SET SCREEN '0'.
    ENDFORM.
    * Showing of PDF
    FORM pbo_html_control.
      DATA: l_pdf_alignment TYPE i,
            l_count         TYPE i,
            l_noprint       TYPE fpboolean,
            l_noarc         TYPE fpboolean,
            l_noprintarc    TYPE fpboolean.
    *  CLEAR: fcode.
      SET PF-STATUS 'VIEW_PDF'.
    * container
      IF pdf_my_container IS INITIAL.
        CREATE OBJECT pdf_my_container
          EXPORTING
            container_name = 'HTML'
          EXCEPTIONS
            OTHERS         = 1.
        IF sy-subrc <> 0.
          MESSAGE e150(FPRUNX).
          RETURN.
        ENDIF.
      ENDIF.
    * html control
      IF pdf_html_control IS INITIAL.
        CREATE OBJECT pdf_html_control
          EXPORTING
            parent = pdf_my_container
          EXCEPTIONS
            OTHERS = 1.
        IF sy-subrc <> 0.
          MESSAGE e150(FPRUNX).
          RETURN.
        ENDIF.
    *   alignment
        l_pdf_alignment = pdf_html_control->align_at_left  +
                        pdf_html_control->align_at_right +
                        pdf_html_control->align_at_top   +
                        pdf_html_control->align_at_bottom.
        CALL METHOD pdf_html_control->set_alignment
          EXPORTING
            alignment = l_pdf_alignment
          EXCEPTIONS
            OTHERS    = 1.
        IF sy-subrc <> 0.
          MESSAGE e150(FPRUNX).
          RETURN.
        ENDIF.
      ENDIF.
      PERFORM pdf_show USING g_pdf.
    ENDFORM.
    FORM pdf_show USING p_pdf_data TYPE xstring.
      STATICS: ls_url           TYPE i.
      TYPES: lt_pdf_table(1000) TYPE x.
      DATA:  l_myurl(80)        TYPE c,
             l_url(80)          TYPE c,
             l_pdf_data         TYPE STANDARD TABLE OF lt_pdf_table,
             l_pdf_size         TYPE i,
             l_pdf_line         TYPE lt_pdf_table,
             l_offset           TYPE i,
             l_len              TYPE i.
      l_pdf_size = XSTRLEN( p_pdf_data ).
      l_len = l_pdf_size.
      WHILE l_len >= 1000.
        l_pdf_line = p_pdf_data+l_offset(1000).
        APPEND l_pdf_line TO l_pdf_data.
        ADD 1000 TO l_offset.
        SUBTRACT 1000 FROM l_len.
      ENDWHILE.
      IF l_len > 0.
        l_pdf_line = p_pdf_data+l_offset(l_len).
        APPEND l_pdf_line TO l_pdf_data.
      ENDIF.
      ADD 1 TO ls_url.
      l_myurl(8) = ls_url.
      CONCATENATE l_myurl '.pdf' INTO l_myurl.
      SHIFT l_myurl LEFT DELETING LEADING space.
      CALL METHOD pdf_html_control->load_data
        EXPORTING
          url          = l_myurl
          size         = l_pdf_size
          type         = 'application'                          "#EC NOTEXT
          subtype      = 'pdf'                                  "#EC NOTEXT
        IMPORTING
          assigned_url = l_url
        CHANGING
          data_table   = l_pdf_data
        EXCEPTIONS
          OTHERS       = 1.
      IF sy-subrc <> 0.
        MESSAGE e152(FPRUNX).
        RETURN.
      ENDIF.
    * show data
      CALL METHOD pdf_html_control->show_data
        EXPORTING
          url    = l_url
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc <> 0.
        MESSAGE e152(FPRUNX).
        RETURN.
      ENDIF.
    ENDFORM.

  • Adobe print form - Purchase order MEDRUCK_PO

    Hi,
    Today I tried to make use of the MEDRUCK_PO adobe print form.
    This form is defined by SAP. They also updated the print program, which is SAPFM06P with entry ADOBE_ENTRY_NEU.
    The first problem I encountered was that the print program didn't find the PDF function module name. In stead it was looking for the FM of the smartform. I did a modification to this part so now the logic looks first at the type (Smartform, PDF of SapScript). This works but now I get an update termination.
    This error says that ULINE is not recognised.
    Did someone already this? I thinks its impossible to have the ULINE statement in a PDF form?!
    Thanks
    Bert

    Hi,
    I have sorted my problem out.  If you do not have transaction SAPLWMC you can use sm30 on view V_TNAPR.
    Now I am getting error messages when SAP generates the FM for the form.  It is complaining about currency fields that do not exist in the HEADER stucture of the interface.  Specifically it is complaining about WRF_POTB_CURRENCY-OTB_CURR which is referred to as the currency key for a couple of other fields.  The structure WRF_POTB_CURRENCY is included in the table EKKO and EKKO is included in the MMPUR_PRINT_EKKO which is used for the HEADER structure for the interface (both MEDRUCK and MEDRUCK_PDF).  Any ideas how to fix this?  I am probably going to have to create a new structure(s) to get this working.
    Regards,
    Dion

  • Print data of an internal table to a printer.

    Hi,
    Requirement: The data from an excel file is the input for the program. This data is taken into an internal table using GUI_UPLOAD adn manipulated based on certain validations. The data which is validated is finally collected into an internal table.
    This data is being downloaded to the presentation server using GUI_DOWNLOAD.
    The client is asking to print the data in the internal table to the printer {SAP Scripts are generally printed}.
    Solution required for: How to print the data of an the internal table.
    Thanks in advance.
    Best Regards,
    Goutham.
    Edited by: Raghavendra Goutham on Oct 29, 2008 7:34 PM

    Try some like this way
    report zaRs.
    data: v_params type pri_params,
    start-of-selection.
      perform display_report.
    end-of-selection.
    form display_report .
      call function 'GET_PRINT_PARAMETERS'
        exporting
          immediately            = 'X'
          line_size              = 220
          release                = 'X'
          mode                   = 'CURRENT'
          no_dialog              = ' '
        importing
          out_parameters         = v_params
          valid                  = v_valid
        exceptions
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          others                 = 4.
      new-page print on parameters v_params no dialog.
      loop at itab.
        write :/ itab.
      endloop.
      new-page print off.
    endform. 

  • How to enable frontend printing using Adobe Print Forms

    Otto Gold at the forum "SAP Interactive Forms by Adobe" gave me the tip that Sandra Rossi in this forum might help me out. Here is the link to my original thread How to enable frontend printing using Adobe Print Forms
    My question was:
    Hi Experts!
    Did anyone of you manage to enable frontend printing using Adobe Print Forms? In order to save administration effort we use frontend printing in our ERP system. We just changed some SMARTFORMS to the new Adobe Forms technology. Now we learned that direct frontend printing does not work with these forms.
    Any help will be very much appreciated.
    Kind Regards,
    Gerald

    I think you'll be disappointed by a rather negative answer but I'll try to explain everything I know (or think I know) the best I can
    The simplest solution is to do a preview, and print from Adobe Reader! (as I could see on one project, users have to display one more dialog than usually to print) It's the best workaround according to me.
    How Adobe form printing works:
    When you print an Adobe form from SAP, a printer language (PCL, PS, ZPL, PDF) is retrieved from TSP0B table according to the device type, ADS (Adobe Document Services, installed in the SAP java stack) is then contacted to generate the form: a file corresponding to the printer language is generated and sent back to SAP (there are also 2 other little files but it's of none interest here). SAP stores it as a file (named SPOOL...) in the global directory (DIR_GLOBAL when you use AL11 transaction).
    When you ask SAP to print it, it sends the file as is to the printer.
    Note: when you ask SAP to display the spool, SAP sends a request to ADS which will send back a PDF (binary stream which is not stored on disk, just displayed on frontend).
    How frontend printing works:
    If you want to print a normal spool via frontend, SAP doesn't know the language of the printer you will choose. SAP sends the spool in a format named SAPWIN to a frontend program named SAPLPD, it converts the SAPWIN format into GDI, a Windows format that is understood by all printer drivers, and it is sent to the printer driver (you have selected) which converts the GDI format into the printer language.
    Any workaround?
    First possibility would be that ADS converts the PDF into SAPWIN format (by creating an Adobe .XDC file at the ADS side). SAP says it's not possible in Note 685571 - Printing PDF-based forms. As I understand, SAPWIN is a very simple language compared to PCL for example, so it is very difficult to convert a PDF to SAPWIN without losing much information. There's a SAP note about the SAPWIN language if you want to check.
    Second possibility is to print directly the PDF through Adobe Reader: you get the PDF from ADS, download it to the frontend (easy), and execute directly Adobe Reader print function. Unfortunately, I don't know if it's possible. Moreover, we should enhance the standard SAP print dialog...
    Third possibility is the one I recommended at the beginning of this post

  • Trouble with unprintable characters in Adobe Print form

    Hi experts,
    I'm trying to implement an adobe printform containing a PDF417 Barcode. To separate the datafields within the barcode, i have to use some unprinteable characters like hex 1E or 1C and so on.
    I had the same issue in SMARTFORMS a few years ago, but was able to solve it in smartforms using /0x1E or /0x1C. Now I tried the same in Adobe Forms, but there comes an error in SM21 (syslog), telling me, that there was a problem during a Render operation. (Processing exception during a "Render" operation... A problem was encountered with the results: RenderResult array is null.)
    I tried to use this coding as well:
      data: zrecsep type c.
    field-symbols: <f>.
    label_data_barcode-recsep   = '1E'. "recsep is type x
    ASSIGN label_data_barcode-recsep to <f> CASTING TYPE C.
    move <f> to zrecsep.
    clear <f>.
    After that, zrecsep contains '#', but in hex the correct value '1E'.
    This coding works for all printable characters, such as hex 66 for 'f' or hex 5B for '[', but not for unrintable characters like hex 1E. In case of an unprintable character, a new syslog entry appears.
    Any ideas?
    Many thanks
    Ralf

    Hi, it's me again
    Here is the answer of the SAP support:
    unfortunatelly this control character is not supported by the XML
    standard and the data in the SOAP request is delivered in XML format to
    the ADS. Therefore such character cannot be used.
    I can only suggest the following web page:
    Link: [http://www.w3.org/International/questions/qa-controls#further]
    I then asked another question:
    Is there any other possibility to generate the pdf417 barcode and use
    it inside the pdf form? For example: Is it possible, to generate the
    barcode-image before calling the ADS-function and submit the address of
    the image instead of the string for the barcode?
    answer:
    I understand that you don't want to print out the string value. But it
    works as follows: the template (which contains the empty label
    definition) and the data (which contains the value for the label) are
    sent to ADS and on ADS side will the label generated.
    Therefore it is also not possible with ADS that you create the label
    befor sending it to ADS.
    The only thing I can imagine that you create the label with an external
    program and you insert it into the template as an image. But I don't
    know if it is possible for you.
    Conclusion: There is definitely no chance to use such characters in Adobe print forms due to the XML standard which is used to process the data inside the ADS.
    In my case, i have to use SMARTFORMS technology to create the label with a pdf417 barcode containing these special characters.
    regards
    Ralf

  • Adobe print forms - Intergration with Webdynpro ABAP

    Hi
    We are working on SAP Adobe print forms with Webdynpro ABAP. We are getting the PDF form's Hexadecimal content as a part of the FPFORMOUTPUT parameter when we execute the FM of the Form.
    I tried to assign that to a context variable and assigned that to the PDFSource of the form and tried to generate the PDF. But is is showing a black page.
    Can you please suggest a way if any to get this done.
    Regards,
    Srikanth.

    You can use the print form directly. I mean the same way as you would use the WD/ online form. Provide the form name, the data source and stuff and the form should work. If that would be an interactive one, you would not be able to change any values if the form is based on DDIC dictionary, but since you want to use the printform, this is not your concern.
    Regards Otto

  • SOAP Runtime Exception: CSoapExceptionTransport when activ adobe Print Form

    Hi
    I am trying to activate an Adobe Print Form, but I am getting the error "SOAP Framework error: SOAP Runtime Exception: CSoapExceptionTransport: HTTP send failed with exception communication_failure(100.101)".
    I have searched the forum and can see several thread stating that this is a ADS Configuration/Basis error, but when we try to execute the test report it works just fine, so I am guessing the ADS is working quite fine, or ?
    Any help / hints to fix this error will be very appreciated
    Regards
    Morten Nielsen

    A year back I have experienced the same behaviour of my forms which were very large (30 pages at design time). After some time (number of changes I guess) they stopped working. I had to start all over from the last backup (that was few days ago once, what is a lot of work lost).
    Why I would now do is:
    1) copy your form and try to activate the copy
    2) create a new form with the same interface, create some dummy layout with one field and try to activate
    3) do you have any older version of this form? Or you´ve created it just now and this is the first activation? if you have an older one, try that one
    Otto

  • Installing ADOBE Print Forms

    Hello All,
    We have just completed technical upgrade of our SAP 4.7 system to ECC6.0 system. We want to use Adobe forms? We are having only ABAP Stack . We know that ADS needs Java Stack... Please help me out with the below questions.
    1 .Implementing the Adobe Print Forms in the current lanscape by activating the Java Stack.
    Q1. Implications of activating the Java stack only for Adobe Print Forms in the current lanscape for existing business functions.
    Q2. Best option among installing ADD-IN (or) Stand Alone.
    Q3. Is there any other special requirements to take into account when using this forms application?
    2. Is it the best option to go for third party tool.
    3.Thirdly: I assume that the graphical application (Gui add-on) is only required for
    those who will be developing the forms and not for all users. Is that assumption
    correct?
    Please help me out with ur inputs.
    Thanks in advance.

    If you are considering adding a Java stack to your current ECC6.0 environment as an Add-in then you must consider:
    a) Performance - If ADS is going to be heavily used do you have enough resources available ? Will it impact your current ERP systems ? The Java AS alone will consume a lot of resources.
    b) Complexity - Do you regularly restore your systems to test environments ? ...can your backups and restores deal with the added complexity of a Java AS Add-in ?
    From personal experience it's preferable to have at least 2 standalone ADS systems, 1 for DEV/TST and 1 for PROD.
    You can find a guide and more information on the subject [here|http://help.sap.com/saphelp_nw70/helpdata/en/37/504b8cbc2848a494facfdc09a359b1/frameset.htm].
    Nelis

  • SAP Adobe Print forms - Issue with Chinese characters

    Hi All,
    We are using SAP Adobe Print forms to create a business document. This is designed using Adobe Life Cycle Designer (ALD). The form is displayed in Chinese language. The requirement is to display captions for few fields in bold.
    When designing the form we have put the caption as BOLD but when the actual form is generated only few characters are displayed in bold.
    I am not sure if this is problem with Adobe Reader or should there be any specific fonts to be installed in the ADS server?
    Please let me know which all font packs needs to be installed in the local machine?

    Hi Pat,
    Thank you again for your reply.
    Now, I changed the font in the designer to "Adobe Song Std L" and made the text as "BOLD". Then I get a message
    The following is the Designer screen shot.
    Questions:
    1. Does "Adobe Song Std L" support characters in BOLD?
    2. Do I need to install any of those BOLD fonts? If so, where can I get them?
    3. I understand that the BOLD font needs to be installed in the local machine (where the design actually happens so that the font can be specified), the ADS Server (where the actual PDF is rendered) and also in the viewers local machine (where the PDF document is viewed). Is this correct?
    4. Is the font a freeware or will there be any licensing issues?
    Again, thank you for your responses till now.

  • Adobe print form on dot matrix printer

    Has anyone tried to print adobe forms into a dot matrix printer i.e. printing multi-part documents. I've read that the device type supported are PostScript, PCL, PDF and ZPL. The help file specifically mentioned that SAPWIN device type won't be supported, but it does not mentioned explecitly weather ASCII device type or device type for dot matrix/impact printer is supported or not.
    I'm still holding up hope that adobe print forms scenario will be able to do this since we are planning to go ahead with 100% adobe form solution.
    Any info would greatly appreciated.

    The supported output formats of ADS are PostScript, PCL, PDF and ZPL. That means that your printer has to support one of the mentioned formats to be supported. So the answer to your question is no.

  • Adobe print form margin problem

    Hello,
    I am trying to print a Adobe print form on Kyocera printer(Using HPLJ4 device type).
    I want to print content from 0.5 CMs, but if i give no margin in the design,Output is being Cropped.Print preview is okay.
    Can any one help me?
    Thanks,
    Guru Prasad

    Hello,
    I think you can try with different device type like POSTSCPT or SAPWIN,
    During the print it use different character widths when you use different device types to
    output the same form, HPLJ4 is PCL-5 and the largest.
    You can refer to notes 90437 and 183948 for more information.
    Best Regards,
    Wen Peng

Maybe you are looking for

  • Can I have a Text Search in HTML Help output?

    Hello, I'm relatively new to Robohelp and while testing the possible output methods I found that there is no internal text search function available for the Microsoft HTML Help (.chm) file. Does anyone know if it is possible to enable this function?

  • Asking for my password when I try and delete a file

    I have a few files that I can't seem to delete without the computer asking for my password. When I try and delete them, it shows this message: Authenticate Finder requires that you type your password Then the window has fields for my name and passwor

  • Contact details .. edited in iphone are not coming to my outlook account

    I am successfully able to configure my outlook 2007 with iphone. My only question is, if i make any changes in my contacts at iphone will the same be automatically reflected into outlook express 07 on my computer...after the next sync As I made few c

  • Lost iPod touch. How can i get it back? *never setted up findmyipod? is there hope

    I lost my ipod two fridays ago, ive looked everywhere in my house for it. I had a track meet that day and had it with me when i went. I had it in my bag and when i got home it wasnt in my bag at all. it either fell out, got stolen, or fell out then s

  • Apple external optical drive not working on macbookpro

    I removed my optical drive from my 2011 2.3, macbookpro 13" and added a 2nd hard drive. I have an apple external optical drive(cd/dvd) which I hooked up via usb and it would not work. I connected the apple external optical drive to my two other mac m