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.

Similar Messages

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

  • Print 2 different forms to 2 different printers 1 ABAP program

    Is it possible to print 2 different forms to 2 different printers from one program?
    Example: a Shipping invoice and a Shipping Label (mailing sticky label)
    Could they be a combination for form types? SAP Script and SMARTFORMS, SAP Script and PDF, SMARTFORMS and PDF
    I have a need to print a Shipping Invoice and Label from a single program. I need to beable to print multiple copies of the label at the same time for multiple shipping packages. i.e. 1 of 4, 2 of 4 etc.
    The users want to select print a single invoice and the neccessary labels from a single transaction request.
    Ken

    Hi,
    Could you please see the program RLVSDR40.
    Thanks,
    Abhijit

  • 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

  • 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

  • Adobe form - Split internal table data & dis on the right and left corner

    HI ,
    I have a form where i am populating the data via an Internal Table.
    The concern i have is i have 100 rows in the table and i want to print the first 10 rows on the right hand side of the page and the next 10 rows on the Left hand side of the page. I want to do this dynamically on multiple pages during run time based on the volume of data in the internal table.
    I am sure i cannot dynamically change the interface of the form to allow multiple internal table , Please suggest if there is any other solution.
    Thanks in advance
    Tk
    Edited by: tarunk on Jan 16, 2012 5:56 PM

    Hi,
    Thank you  very much for the input, But my concern is
    I have a table with 120 records.
    i have three columns which i have it on the right side as well as on the Left side of the page.
    EX:
    Right Side                                                                          Left Side
    Col1 col2 col3                                                                    col1 col2 col3.
    Now what i want to do is the first ten rows of the internal table data i want to print it on the Right Side and the Next 10 rows on the Left Side in the same page .
    I want to do this on Multiple pages.
    please suggest.
    Thanks,
    Tk

  • Webdynpro Appl screens in different languages based on the browsers languag

    Hello Everybody,
    In Java Webdynpro, how to get the screen elements in different languages, based on the browser language selected.  It means.. for instance, we have the requirement to show the application in two languages, based on the language setting(language selected in the browser) of the users browsers.
    We have to read the  browser language selected and based on that value, we have to get the screens to come in that language. 
    Is that only through the Internationalisation process or is there any other way to do this.
    Please help us by posting your concerns....
    Thanks & Regards,
    Ravi
    Edited by: ravi shankar on Apr 28, 2009 6:36 AM

    Hi Ravi,
    Probably the following topics on SAP help could provide the solution you need:
    http://help.sap.com/saphelp_nw04s/helpdata/en/2d/e7381138a8d2458f1f4fac32614f71/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/db/f2674039c6c549e10000000a1550b0/frameset.htm

  • I cannot print Adobe Digital eBook. How do I activate the print

    I cannot print Adobe Digital eBook. How do I activate the print

    I cannot print Adobe Digital eBook. How do I activate the print

  • Validate the input file against a given schema inside an orchestration and producing 2 different files based on the validation result

    HI All,
    I have a situation.
    I need to validate the input file against a given schema inside an orchestration and producing 2 different files based on the validation result.
    A predefined success schema in case of  validation success and negative schema structure for validation failure.
    any advice ?

    Hi Rachit,I following the blog
    http://dietergobeyn.be/validating-biztalk-messages-orchestration/ and stuck in few things
    I created a helper class with the name Validation and following code
    [Serializable]
        public class Validation
            private bool _isValid = true;
            public bool Validate(XmlDocument document, Type schema)
                XmlSchemaSet set = new XmlSchemaSet();
                if (typeof(SchemaBase).IsAssignableFrom(schema) && !schema.IsNested)
                    set.Add((Activator.CreateInstance(schema) as SchemaBase).Schema);
                ValidationEventHandler eventHandler = new ValidationEventHandler(HandleValidationError);
                document.Schemas = set;
                document.Validate(eventHandler);
                return _isValid;
            private void HandleValidationError(object sender, ValidationEventArgs ve)
                _isValid = false;
    public static bool ValidateMessage(XLANGMessage msg)
    XmlDocument xDoc = new XmlDocument();
    xDoc = (System.Xml.XmlDocument)msg[0].RetrieveAs(xDoc.GetType());
    Type t = typeof(Schemas.External.Invoice_v3_1);
    Validation validation = new Validation();
    return validation.Validate(xDoc, t);
    First thing, Do i need to write the ValidateMessage method inside the helper class or not ??
    If inside, how to add the reference of schema files in the statement (Type t = typeof(Schemas.External.Invoice_v3_1);)
     I tried adding the reference of my schema project but it is showing error.
    And what is to be written in the ValidateMessage expression shape in Orchestration ?
    Really appreciate your help.

  • Need to show the images in calculated column based on the condition in sharepoint 2013.

    Hi ,
    I'm working in sharepoint 2013, In this i want to show an image in calculated column based on the condition, but image is not showing .
    In sharepoint 2010 its working with help of javascript in content editor on the same page. Same thing i tried in SP 2013. but doesn't work.
    Could any one please give proper solution for this?
    Thanks in advance.
    by,
    Siva.

    Hi please provide the JS you have used in the content editor as well as the calculation for the column so we can better understand what's maybe differs?
    Blog: chrisstahl.wordpress.com Twitter:
    @Cstahl

  • Inserting new columns based on the condition!

    Hi guys,
    I have a very simple query like the following… 
    SELECT table2.column_code2,
    table2.column_description2,
                 table2.column_code1,
                 table1.column_description1
    FROM database_001.table2 table1 LFET OUTER JOIN database_001.table2 table1 on (table2.column_code1 = table1.column_code1)
    From this query, its returning me a result set of something like below:
    column_code1       column_description1        column_code2                 column_description2
    RO1                              BOOK                              RL1            
                               PDF/ECOPY
    RO2                              PAPER                             RL2            
                            CONFERENCE
    RO5                            JOURNAL 
    RL11  OTHER
    Now, on the above query I want to insert three extra columns with the name (status, location and contact) where the results in the extra three columns would be based on the conditions I want to define in the query based on the above results…
    Something for example (sorry, I am not trying to write a condition: my question is how to write it), 
    if column_code1 = RO1 and column_description2  =  PDF/ECOPY on status column it should return a value ‘ONLINE’ & on location column it should return ‘WEB’ and on contact column it should write ‘BOB’.
    Also,
    if column_code1 = RO5 and column_description1 = JOURNAL on status column it should return a value ‘ON PRESS FOR PRINT’ & on location column it should return ‘S.R STREET, LONDON’ and on contact column it should write
    ‘SMITH’ like below result…so the final output should be the top four columns and the extra three columns…I hope someone can help me into this…thanks a lot…
    status                                            location                
                            contact
    ONLINE                                               WEB                          
                           BOB
    ON PRESS FOR PRINT                     S.R STREET, LONDON                           SMITH

    Hi artistdigital,
    you can use case statment for same in sql server. MSDN link - > http://technet.microsoft.com/en-us/library/ms181765.aspx
    Try code like this:
    SELECT table2.column_code2,
    table2.column_description2,
    table2.column_code1,
    table1.column_description1,
    case when column_code1 = 'RO1' and column_description2 = 'PDF/ECOPY' then 'ONLINE'
    when column_code1 = 'RO5' and column_description1 = 'PDF/ECOPY' then 'ON PRESS FOR PRINT'
    end as [status],
    case when column_code1 = 'RO1' and column_description2 = 'PDF/ECOPY' then 'WEB'
    when column_code1 = 'RO5' and column_description1 = 'PDF/ECOPY' then 'S.R STREET, LONDON'
    end as [Location],
    case when column_code1 = 'RO1' and column_description2 = 'PDF/ECOPY' then 'BOB'
    when column_code1 = 'RO5' and column_description1 = 'PDF/ECOPY' then 'SMITH'
    end as [contact]
    FROM table2
    join table1
    on table2.column_code1 = table1.column_code1
    Regards Harsh

  • Can we take standard report for all sales orders based on the condition typ

    Hi all,
    Based on the condition type, we need to take a report for sales orders on the particular date.
    Thanks and Regards.....VM

    Hello again.
    Searching for a solution, I found a Logical Database for sales orders, that have all the information that you need.
    Using like reference the post of Bhagavatula, in the same transaction SQVI you can use, instead of the suggested join, you can select a logical database called VAV in Data source.
    This logical database links the tables, VBAK, VBAP, VBUK and KONV that is the central point of the question.
    You can list the information of logical database using the transaction SLDB.
    In 'Logical Database' inform VAV.
    Press F8 to list all the fields.
    More information about logical database in:
    Link: [SAP Logical Database|http://help.sap.com/saphelp_46C/helpdata/EN/9f/db9b5e35c111d1829f0000e829fbfe/content.htm]

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

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

  • Arabic SubTotals in Adobe Form Page.

    Hi Everyone,
    I have a requirement of printing Subtotals of a table in Arabic as well as English on the same page for all pages in the form.
    FYI i have made a function module to convert english digits into arabic, which i use in my code to convert english amounts to arabic amounts.
    Like -
    CALL FUNCTION 'ZJP_M_ARABIC_NUMERALS'
    EXPORTING ENGLISH = V_AMOUNT
    IMPORTING ARABIC = V_AMOUNT_AR.
    This gives me the arabic amount.
    Now i am printing english subtotals using the javascript code :
    var fields = xfa.layout.pageContent(xfa.layout.page(this)-1, "field", 0);
    var total = 0;
    for (var i=0; i <= fields.length-1; i++) {
    if (fields.item(i).name == "AMOUNT") {
    total = total + fields.item(i).rawValue;
    this.rawValue = total;
    Through this code i am able to get the english subtotal in my offline adobe form.
    My PROBLEM is - how do i use this english subtotal generated via javascript to convert it into arabic subtotal (using the FM)
    for each page.
    Any help is highly appreciated..!!
    Thanks,
    Piyush.

    Hi Piyush,
    Check this below link set locales for a field using java script this might help if you are looking for @ scripting
    /people/raghavendra.prabhu/blog/2010/12/17/currencynumber-formatting-in-hcm-forms
    I have 2 approaches (hopefully both of them will work).
    1)  Have a hidden field with arabic locale, in your loop keep adding values to this field.
    2) have the required field on the form set the locale to arabic, just assign the english value to this field. (if both english and arabic totals are from same records and same values mathematically then only the presentation locale is different but the value sud be the same right).
    If I am wrong understanding your requirement, please explain what is the difference ...?
    Cheers,
    Sai

Maybe you are looking for

  • Install hanging when registering automation server

    I'm tearing my hair out, as well as getting my 4rse kicked by the other half! We've had iTunes up and running on our Vista Home Premium box for a while, then it just stopped working coming up with an error. So I've tried re-installing, but 7.3 keeps

  • Soft returns, xml export

    If I want to export text, including soft returns, to xml I get the error that some kind of characters are not recognized. Is there a way to export soft returns correctly to xml ? I already posted a similar question, but maybe I was not clear anough,

  • Live Scenario Please Reply ASAP

    Dear Gurus There is a live scenario. As you all must be knowing that the exchange rate changes every day. I will explain the whole scenario. The sales order was prepared on an exchange rate of Rs 46 for one Dollar. But when i am billling the exchage

  • Catalyst IOS - Naming conventions

    Hi all, I'm trying to select the appropriate image for my Cat.3560s, and am confused as to the differences between the following versions: 12.2(xx)SEx 12.2(xx)SEEx 12.2(xx)SEDx Can anyone help explain this? I've also wondered the same thing regarding

  • Publish to another MobileMe account

    I am using iWeb to develop a web site for a third party who has a MobilMe account. Can I publish the site using iWeb from my computer to the third party's MobilMe Account? Thanks, David