Printing adobe forms

hi all,
        pl any send me the detail for using the adobe forms in report and how can i validate or which are the function module we used in general for print something.
Then
Anirudh
Message was edited by:
        ANIRUDH SAINI

HI
check below code and understand it...
*& Report ZFR_TEST_APPROVERS_LIST *
REPORT ZFR_TEST_APPROVERS_LIST
NO STANDARD PAGE HEADING
LINE-SIZE 130
LINE-COUNT 50.
*--Data Declaration
DATA: w_level LIKE ZFAP_ROLE_LEVEL-ZLEVEL,
w_user type zuserid,
w_userid LIKE WFSYST-ACT_AGENT.
*-- Internal Tables declaration
*--To store user history table details
DATA: it_user_history like zfap_history occurs 0 with header line.
*--To store approver list
DATA: it_apprlist TYPE ZFAP_USERS WITH HEADER LINE.
*--Selection Screen
PARAMETERS: p_docno LIKE zfap_history-zbelnr,
p_compcd LIKE zfap_history-zbukrs,
p_zgjahr LIKE zfap_history-zgjahr.
*START-OF-SELECTION
START-OF-SELECTION.
*--Get the data from history table for the document and comp code.
SELECT *
FROM ZFAP_HISTORY
INTO TABLE it_user_history
WHERE ZBELNR = p_docno and
zbukrs = p_compcd and
zgjahr = p_zgjahr.
*--Sort the internal table by seqno to get the latest row.
SORT it_user_history by zseqno descending.
*END-OF-SELECTION
END-OF-SELECTION.
read table it_user_history index 1.
*--Username
Concatenate 'US' it_user_history-zsapuserid into w_userid.
clear it_apprlist.
refresh it_apprlist.
*--if the status is not either Missed Vertical/Horizontal deadline
if it_user_history-zstatus NE 'Missed Horizontal Deadline' AND
it_user_history-zstatus NE 'Missed Vertical Deadline'.
CALL FUNCTION 'ZF_AP_CURRENT_APPROVERS'
EXPORTING
user_id = w_userid
comp_code = p_compcd
IMPORTING
LEVEL = w_level
tables
appr_list = it_apprlist
EXCEPTIONS
NO_APPROVERS_FOUND = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
elseif it_user_history-zstatus EQ 'Missed Horizontal Deadline'.
CALL FUNCTION 'ZF_AP_VERTICAL_APPROVERS'
EXPORTING
user_id = w_userid
comp_code = p_compcd
tables
escaltion_list = it_apprlist
EXCEPTIONS
USERS_NOT_FOUND = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
elseif it_user_history-zstatus EQ 'Missed Vertical Deadline'.
CALL FUNCTION 'ZF_AP_HORIZONTAL_APPROVERS'
EXPORTING
user_id = w_userid
comp_code = p_compcd
tables
escaltion_list = it_apprlist
EXCEPTIONS
USERS_NOT_FOUND = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif.
write:/10 'Status of the document:'.
write:35 it_user_history-zstatus.
write:/10 'List of Approvers'.
write:/10 '----
loop at it_apprlist.
write: /10 it_apprlist.
endloop.

Similar Messages

  • How to print Adobe Forms without the black/gray backgrounds in the side columns

    How can we print Adobe Forms without the black/gray backgrounds in the side columns? We are wasting a lot of ink printing out these forms and would like to have simply black ilnes to distinguish columns and black lettering, but no background colors.  Any help would be appreciated. Thanks.

    I am not positive what you are printing from but I am thinking it is from the View Responses tab with a response row selected and then shown in "Detail View" and that the column of field names has a dark grey background...
    To change the color of the column headers select the row of headers (do this by clicking on the first dark grey header field and then scroll to the last one and shift+click on the last one), then in the "Text" tools change the text color to Black and the Fill color to white:
    (Selected the header cells)
    Changed the text/font color to black and the fill color to white
    Now you can see the detail view does not have the dark grey.
    Thanks,
    Josh

  • Printing Adobe Form in Webdynpro

    Hi Experts,
    I need one help  from all of you , its quite urgent.
    Actually I am trying to print Adobe form in webdynpro method like below:
       "----- Take the Adobe fprm -------------------"
          lv_form_name = 'ZHR_SAP_FORM'.
          CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
            EXPORTING
              i_name     = lv_form_name
            IMPORTING
              e_funcname = lv_fm_name.
          lfs_output_params-nodialog = 'X'.
          lfs_output_params-getpdf   = 'X'.
          lfs_output_params-device   = 'TR5T'.
          lfs_output_params-connection   = 'ADS'.
          CALL FUNCTION 'FP_JOB_OPEN'
            CHANGING
              ie_outputparams = lfs_output_params
            EXCEPTIONS
              cancel          = 1
              usage_error     = 2
              system_error    = 3
              internal_error  = 4
              OTHERS          = 5.
          IF sy-subrc <> 0.
    * Implement suitable error handling here
          ENDIF.
    *---Form language
          lfs_doc_params-langu = 'E'.
    *---Call Adobe form.
          CALL FUNCTION lv_fm_name  
            EXPORTING
             /1bcdwb/docparams         = lfs_doc_params
              gt_item                  = lit_zhrauth_item
              gs_hrauth                = lwa_zhrauth
           IMPORTING
             /1bcdwb/formoutput       =  lwa_output
           EXCEPTIONS
             usage_error              = 1
             system_error             = 2
             internal_error           = 3
             OTHERS                   = 4
          IF sy-subrc <> 0.
    * Implement suitable error handling here
          ENDIF.
    *---Job Close
          CALL FUNCTION 'FP_JOB_CLOSE'
    * IMPORTING
    *   E_RESULT             =
           EXCEPTIONS
             usage_error          = 1
             system_error         = 2
             internal_error       = 3
             OTHERS               = 4
          IF sy-subrc <> 0.
    * Implement suitable error handling here
          ENDIF.
    Here , the funtion module name is coming correctly.
    But when calling function CALL FUNCTION 'FP_JOB_OPEN' ,
    It is giving sy-subrc = 2 , i.e. usage error (An Exception).
    Similarily , due to this i am getting same exception in 
    CALL FUNCTION  lv_fm_name
    So some one please help me , what should i do ,
    am i supposed to pass some other parameter in  CALL FUNCTION 'FP_JOB_OPEN'
    Hopefully , waiting for responds.
    Thanks & Regards;
    Gaurav Singh

    HI Sikka,
    Thanx for the reply ,
    With your solution CALL FUNCTION 'FP_JOB_OPEN' is done.
    but the same  problem is still happening with
    CALL FUNCTION  lv_fm_name and it is giving sy-subrc = 2.
    i.e.   system_error             =  2
    Thanx !!!

  • Create printing adobe forms

    Hi experts
    I Want to create function that print adobe form directly
    not by the button (print) in the pdf
    i want send command to print the pdf
    thanks
    Yossii

    hi i also have the same situation pls help me if u got any solution for this
    Warm regards
    Shanto Aloor

  • How to print adobe form immediately without preview?

    Hi, Experts.
    I made a WD4A using Interactive Form control
    and the app is working fine and displays Adobe Form.
    But I meet a new client needs on how to print immediately without display the form.
    My client says that "I don't wanna see the form and just print form immediately when I click the print button".
    I think there are some option parameters for solving those problem...
    Plz. Help.
    Regards Junha.

    Hello Junha,
    you need to send the pdf to spool. There's a function module for it as far as I know. Can't remember the
    name at the moment and having no access to a SAP system. A good way to find it would be searching
    for SPOOL and PDF in the name.
    Best regards,
    Thomas

  • 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.

  • Print Adobe Form AND Save a PDF file

    Hi Experts
    We have a situation where I need to print the output of an Adobe Form (printing only, it is not dynamic) that is generated during the dispatch process. In this case it is a Picking slip, but the same will apply to other documents. Currently, this works well - the output is produced and sent to the correct printer.
    A new requirement by the business is that they need an audit copy of this document. This document needs to be saved in a certain folder on a file server. I know I can do this by using the getPDF setting of SFPOUTPUTPARAMS, and I have done it before for other applications.
    However (and this is the question!), it seems that when I set getPDF, the print output does not appear anymore. Can anyone explain to me how to produce BOTH print output and a file copy of the PDF at the same time please?
    Thanks
    Casper

    I have found something for you, but you have to finish it for yourself:)) Please check here:
    http://help.sap.com/saphelp_nw70/helpdata/EN/6d/bd2d828aa04eeb9451aad0d02ae9a0/frameset.htm
    Features
    Forms with different form designs and different languages are bundled together. The data in the forms can be different.
    Form bundling is supported for the following scenarios:
    ●      Print
    ●      Print and archive
    etc.
    Otto

  • Logo does not appear on the printed adobe form

    Per the solution provided by Tejaswini
    Inserting a Graphic in adobe form using SFP
    I am able to upload the logo avaialble at SE78.
    I did the binding etc as per the thread above.
    But the print preview or print of the Form does not show the Logo.
    Does this have anything to do with the printer?
    Please advise.
    Thanks,
    Ven

    Are you referring to Adobe from?
    I am not able to see any SAP Logo in the library.
    Can you please elaborate a little more?
    Thanks,
    Ven
    SAP does not seem to support SE78 texts.
    Closing the thread.
    Thanks
    Edited by: Venkatabby on Jun 18, 2010 4:23 PM

  • Select alternate tray when printing Adobe form from an ABAP prograram

    I had a Smart Form where I printed to an alternate tray for 4 by 7 paper stock.  I need to know how to do this in Adobe when printing a from from an ABAP program.  I have printer types ZLX4039, HPLJ4 and HPLJ5SI to which I need to print my form to an alternate 4 by 7 tray.
    Does anyone know how to set it up in the Adobe form and what I need to do in SPAD to handle it?
    Thanks for any help,
    James Ugrin

    Hi,
        Go for the Device type AZPL300 : ZPL300 for PDF Documents only for the Interactive Forms
    Take the Help of ur BASIS Team...in SPAD settings
    Regards,
    Vijaya Lakshmi.T
    Edited by: Vijaya Lakshmi on Mar 25, 2009 5:49 AM

  • Printing  Adobe form using Webdynpro Java

    Hi All,
    I have a requirement to integrate data coming from web services onto a adobe form on the Portal.
    This form needs to be generated in the background and then automatically sent to the local printer attached to the pc.
    The idea is that the user need not preview the form and then send it for printing.
    Any suggestions on how this custom functionality could be achieved.
    Any help will be greatly appreciated.
    Regards
    Nidhideep Bhandari

    "This form needs to be generated in the background and then automatically sent to the local printer attached to the pc.
    The idea is that the user need not preview the form and then send it for printing." - not possible. I think what you intend to say is to call up the print option without the preview, correct?
    "Send it for printing" is a bit confusing a statement.
    I haven't personally tried this but what you can try to do is use JPS (Java Print Service).
    Here's the link to the documentation: [JPS Documentation|http://java.sun.com/j2se/1.4.2/pdf/JPS_PDF.pdf]
    And this for more info: [http://java.sun.com/javase/technologies/desktop/printing/]
    There you can indicate the file stream is a pdf file for printing.
    "application/pdf"
    Goodluck!
    Regards,
    Jan

  • Print Adobe form pages on different printers based on the condition

    Hi All,
    I am new in Adobe forms. We have requirement to print first 5 line items in adobe form (which are printing on first page) on one printer and remaining pages on another printer.
    What solution I was thinking was, in print program call the adobe form twice with flag as a importing parameter. For the first call the flag value will be set and for second run a blank value will be passed in flag.
    If flag is set then call make the first page "visible" and if flag is cleared then "hide" the first page and make the remaining pages "visible".
    But as its an item data which is designed on "Design" view I am not able to write a script to hide the page. Any suggestion you can give to resolve this issue.
    Thanks,
    Mihika.

    If it is OK to have the default printer defined/maintained in the user master (like tcode Su01 or System > User profile > Own data, Then the standard logic may suit your needs. I think you will need to undo some config for the whs. Te standard logic works as detailed below. the system needs to get to #4 below, then the SAP userid printer will be selected.
    the system proceeds with automatic printer determination as described below Config Tcode is OMLV.
    1) First the system checks whether a printer is set in the configuration "Printer-Movement". If so, the printer determination is complete at  this point.                                                         
    2) If not, the system uses the parameter "PriSrcTyp" defined in the configuration "Printer-Movement" to decide how it will proceed.  If the parameter is set here, the system checks if a printer is defined in the setting "Printer Picking Area" and then proposes this printer.                                                            
    3) If the system finds no printer, it searches in the setting "Printer - Storage Type" and uses this, if a printer is set.                   
    4) If the system cannot find a printer using the methods described above it selects the printer defined in the user master of the user currently logged on.                                                
    5) If no printer is defined here, the system automatically proposes LP01
    This writes the data to the spool file.

  • Issues when printing adobe forms

    Hi All,
      When I  am trying to print a Adobe form in t-code se38 and the form is fp_test_00. The following error occurs in the and the
      SAP session is getting terminated ........
    Dump :- process terminated with signal 11.
    The current ABAP "SAPLSPADS" program had to be terminated because the
    ABAP processor detected an internal system error.
    How to correct the error
        The R/3 System work directory (e.g. /usr/sap/c11/D00/work ) often
        contains a file called 'core'.
    *****I tried moving the core file to .old this does not works for me *************
    SM21 system log :-
    Signal 11 received by operating system
    > Include LSPADSU02 line 0034.
    Run-time error "RUNT_ILLEGAL_SWITCH" occurred
    Stop Workproc 0, PID 491598
    Start Workproc 0, 6 times since system startup. PID 491600
    Repost table TST01 (TemSe->XRTAB(3)->64; Flag: MDFF; Key )
    TemSe error repair: 1 (Module , location )
    Calling program reports invalid handle for TemSe object (magic==X'4f444f23'
    Delete session 002 after error 023
    Please help me in solving this issue ....thanks in advance ....
    Regards,
    Revanth Kumar Kadali

    Hi MichaelPytel,
    Reason for the GUI termination
    This problem occurs due to the kernel program error (kernel version 236).
    Resolution
    Please check implementing the following OSS note 1134660.
    My issue was resolved after implementing the above OSS note**     Hope it works for you as well
                      All the best,
    Thanks & Regards
    Revanth Kumar Kadali

  • Print adobe Form in CRM

    Hello,
    i´m new with ADOBE Forms in SAP CRM.
    I created a ADOBE Form to printout the CRM 7.0 service order.
    But i do not know how to trigger the printout.
    In the post processing framework i found under external communication PDF-Form. Here i need a implementation of BADI DOC_PERSONALIZE_BCS.
    Is this the right point to trigger the printout of ADOBE pdf in CRM?
    Or ist there a better solution?
    If yes, could somebody provide a working example for this BADI implementation which i can adjust for my needs please.
    Thank you
    Best regards
    Manfred

    Hi Manfred,
    Is this resolved. I also have similar issue, how did you solve this.

  • How to print Adobe form in different languages.....

    HI ,
    I made one Adobe print form in EN language. Now the client requirement is that  want to print in Chinese language also or in any other langauge . Please tell me how tio do that. I am looking for a valuable solutions.
    Vishwjeet

    Hi Manoj,
    Does the requirement is to translate text in different language without any modification in the layout or do you need to make modification on layout depending on language ?
    If you only need to translate text, use SMARTOFRMS and SAPSCRIPT text in your form and add a Language parameter in the interface . then in the layout use the text in the language value given by "Language Parameter" . With this way you don't have to connect in each language to activate the form .
    If you need to make modification on layout, you need to conect to SAP in required language and then modify the form .
    Hope this help , if you need i can send you a sample form for the first solution.
    Regards.

  • Print adobe form in local language (Hindi)

    Hi Experts,
    I have to design a print form in adobe in which text will be in Hindi,
    I did not found any font in the existing configuration which support Hindi,
    How can I upload desired font in the designer ?
    Or is there any other way out to solve this issue ?
    Regards
    Bikas

    The font will need to be installed on the server if it is not currently available for you to use.
    Take a look here for help: [Adding Fonts|http://help.sap.com/saphelp_nw70/helpdata/en/d0/cdf29623c8432fa1545df5f43176de/content.htm ]

Maybe you are looking for