Print Vs Archived Output

Hi,
I'm looking for a solution for below scenario
There is an indicator which will decide if the transaction needs to be printed or archived
If the indicator is set to Y, then print the whole FormLists(policy packet) which will be triggered for that transaction.
But if the indicator is set to N, then archive the whole formlists(policy packet) but print only particular form from the formlists(group). I mean if the formlist has 10 forms then i need all to be archived but print only one form.
I know one option to achieve this is set an additional recipient for that form and then do a separate batching.
Is there any other solution which we can do easily like a flip flop
Thanks,
Priya

Hi Priya,
The option you mentioned is the easiest way to solve your problem. You can set up a print recipient and an archive recipient, and then create a trigger based on the indicator. The trigger will route a form to either the print or archive recipient batch, or both if the form should be printed and archived. Then you would need to have GENARC and GENPRINT configured to operate on the appropriate batches that you create.
-Andy

Similar Messages

  • Print the archived data to the sap printer

    Hi ,
       I have the requirement to get the archived output document and to print the document to sap printer ( it may not connected to the local pc) .
      i got the PDF file from the archived document by FM 'ARCHIV_GET_CONNECTIONS' and got the PDF data by FM 'SCMS_AO_TABLE_GET' , and converted this raw data output to PDF Document  and i am sending this document through mail by BCS class and it is working fine .
      but i have the new requiremnet to print the   PDF document through SAP printer ,

    Hello
    To print PDF data to the printer check that it is actually possible that the printer will accept the data.
    You can used the method to print as per SAP note: 317851 - Creating PDF format via spooler in 4.6C/4.6B/4.5B
    If ADS documents are being printed then refer to SAP note :  685571    Printing PDF-based forms
    Regards.

  • Text element is not getting printed in the output

    Hi all,
    I'm trying to print address from table KNA1in address window through a text element.
    The corresponding code being :
    In Delivery Prg,
    Data : lv_kna1 type STANDARD TABLE OF kna1,
              lv_adr6 type STANDARD TABLE OF adr6.
    DATA : WA_ADR6 TYPE ADR6.
      SELECT SINGLE * FROM KNA1 WHERE KUNNR = VBPA-KUNNR.
      SELECT SINGLE * FROM ADR6 INTO WA_ADR6 where ADDRNUMBER = kna1-adrnr.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'DELIVERY_ADDRESS'
       WINDOW                         = 'DELIVADR'
    and calling the same text element 'DELIVERY_ADDRESS' as follows in the Script:
    /E           DELIVERY_ADDRESS
    /:           IF &LV_KNA1-TELF1& <> &SPACE&
    IL           Tel.: &LV_KNA1-TELF1&
    /:           ENDIF
    /:           IF &LV_KNA1-TELFX& <> &SPACE&
    IL           Fax : &LV_KNA1-TELFX&
    /:           ENDIF
    /:           IF &LV_ADR6-SMTP_ADDR& <> &SPACE&
    IL           E-mail : &LV_ADR6-SMTP_ADDR&
    /:           ENDIF
    But,this text element is not printing in the output.
    Any pointer on this would be of great help.
    Regards,
    Vamsee Priya.

    yes, it is.
    I'm trying to get the e-mail address from adr6 table with the corresponding address number  from table kna1.
    so I created two tables as below:
      Data : lv_kna1 type STANDARD TABLE OF kna1,
             lv_adr6 type STANDARD TABLE OF adr6.
    DATA : WA_ADR6 TYPE ADR6.
      SELECT SINGLE * FROM KNA1 WHERE KUNNR = VBPA-KUNNR.
      SELECT SINGLE * FROM ADR6 INTO WA_ADR6 where ADDRNUMBER = kna1-adrnr.
    now, I'm trying to fill e-mail adress from lv_adr6. but the problem is lv_adr6 is not getting filled.
    data is coming to work area wa_adr6.
    SAP is not allowing me to write the below statement:
    SELECT SINGLE * FROM ADR6 INTO LV_ADR6 where ADDRNUMBER = kna1-adrnr.
    Now, will any move-corresponding statement from work area to its table works?? Is that logically correct??

  • How do I use the print function to output a numeric variable with a fixed amount of leading zeroes

    I need to create an output from a T-SQL query that picks a numeric variable and uses the print function to output with leading zeroes if it is less than three characters long when converted to string.  For example if the variable is 12 the output should
    be 012 and if the variable is 3 the output should be 003.
    Presently the syntax I am using is PRINT STR(@CLUSTER,3) .  But if @CLUSTER which is numeric is less than three characters I get spaces in front.
    Please help!

    >> I need to create an output from a T-SQL query .. <<
    NO! NO! In RDBMS, we have a presentation layer that handles displays. We do not ever do it in the database. This is fundamental. But more than that, the purpose of PRINT is for debugging in T-SQL and never for output.
    You are still writing 1960's COBOL or BASIC, but you want to to it in SQL.  You probably picked the wrong data type (a numeric that should be a string) and are trying to repair your design error.  
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Printing ALV Report output through Function Modules

    Hi All,
    I want to print my ALV Grid output through function modules/statement (not through print option in menu).
    This is because, i am generating a PDF from spool when user clicks on a button. If any changes happened in the ALV output layout, they will be captured in spool through printing it.
    So can you please tell me how to print the ALV Output through FMs or sending the ALV output to spool.
    Thanks & Regards,
    Senthil.
    Edited by: senthil nathan on May 17, 2010 2:49 PM

    Hi Dev,
    Thanks for the reply.
    I want to print the ALV when the user clicks on a button in toolbar. Lets say the user has made some changes to the layout, (E.g hiding a field) and when i print that output it should use the changed layout, If i use the FM suggested by you, i cant acheive this.
    If you try to print this manually, the system uses the changed layout and not the original. Thats why i want to know FMs/statement to print.
    Regards,
    Senthil.

  • T.code FBL5N: a problem with the print of the output list

    Hi All,
    with reference to the t.code FBL5N, I have  a problem with the print of the output list of the report.
    When I execute the print, I obtain one customer for each page printed.
    I wonder if is possible to obtain more customers for each page printed.
    Could anyone help me?
    Thanks
    Gandalf
    Edited by: Umberto Gandalf on Dec 21, 2008 10:36 PM

    Hi,
    Though personally i havent tried this option, check the same
    Go to Menu: Settings >> Switch List
    This will make the value displayed in ALV format and then try taking print outs.
    Regards,
    Sridevi

  • Need to Print the Report Output

    Hi,
    I want to print the report output. How to install a printer in Oracle Appls. If i give number of copies 1 or morethan 1(from SRS Window)...the report is completed-warning. pls advice
    Thanks in advance.

    Hi,
    I changed the printer to Epson LQ2170 and Epson LQ2180 but since I don't know the initialization and reset parameter (already search for the manual but couldn't find it, downloaded from Epson's website but couldn't find it either) so I register it with LQ1070. I'd tested to print the reports directly from Reports Builder 6i and it printed just as I wanted to but when I tried to print from oracle apps it only printed up to about 3/4 width of the paper. I tried to change the report's height and width, paper size, orientation but no luck. What should I do? Thanks

  • [Solved] CUPS: Unable to write print data: Input/output error

    I'm filling this for the benefit of those poor googlers that can reach here.
    Symptoms: After trying to print a "complex" image the printer made too much breaks, and failed.
    The problem is, it then didn't came up. I mean, I restarted the printer, cupsd, the whole system, and nothing.
    I was unable to print again, it showed "Unable to write print data: Input/output error" and refused to print anything.
    I then saw that in /etc/cups I had printers.conf and printers.conf.O files, which differed (other than in StateTime), that printers.conf.O had
    State Idle
    but printers.conf had:
    State Stopped
    StateMessage Unable to write print data: Input/output error
    Reason paused
    Probably due to the ErrorPolicy being stop-printer.
    So seeing I followed the following steps:
    Stop cups
    Replace printers.conf with printers.conf.O (I could also had manually edited it)
    Start cups
    It then went working flawlessly.
    There was probably an option in the web interface combobox for doing that. The problem is that I didn't realise it was stopped, so didn't know how to make it work. Moreover, some posts in the web recommended reinstalling the printer (which would skip the problem by creating a new printer).

    I think that I had this same problem, and fixed it by reinstalling the printer.  Thank you for your post.

  • Archive and print and archive buttons not active

    I create a smartform and join it in sap. It is transection me9a.
    The problem when I run the program comes printpreview. There are two button that "Archive" and "Print and Archive". But they are not active. I wan to use them. What sould I do?

    Pass the below parameter to smartform function module,
    Ex,
    EXPORTING
                    control_parameters = control_param
                    output_options     = output_opt
    Check the below structure:
    data:  control_param    type ssfctrlop,
             output_opt       type ssfcompop.
      control_param-no_dialog = 'X'.
          control_param-preview = 'X'.
          control_param-getotf = ''.
          output_opt-tddest = 'LOCL'.
          output_opt-tdnoprint = 'X'.
    Similarly chack the other structure <b>ssfctrlop</b>
    Just a rough idea given above.
    Close the thread if your question is answered.
    Regards,
    SaiRam

  • Printing Selection-Screen while printing ALV Grid output display

    Hi,
    I have a requirement wherein I want to print the Selection Screen also while printing the output in simple ALV grid Display.
    Currently when I print the ALV output report, only the header and the Body of the ALV is getting printed. But the requirement is that I also want to print Selection screen along with this.
    If anyone has faced a similar situation, plz let me know what needs to be done in order to print the selection screen also while printing the ALV report output.
    Rgds,
    Nitin

    Hi,
    You can use given function module to print your
    selection screen
    RS_REFRESH_FROM_SELECTOPTIONS
    >This will get Current contents of selection screen
    RS_LIST_SELECTION_TABLE
    >This will Generates list according to values in selection table(RSPARAMS)
    Sample
    CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
           EXPORTING
                curr_report     = p_repid
           TABLES
                selection_table = it_int_tab
           EXCEPTIONS
                not_found       = 1
                no_report       = 2
                OTHERS          = 3.
      IF sy-subrc EQ 0.
        WRITE:1  'Selection Criteria'(i19),
             /1  sy-uline(18),
             /1  'Variant Name'(i21),
             23  sy-slset.
    *--  This function module lists the Selection Screen contents
        CALL FUNCTION 'RS_LIST_SELECTION_TABLE'
             EXPORTING
                  report        = p_repid
                  seltext       = 'X'
                  newpage       = space
             TABLES
                  sel_tab       = it_int_tab
             EXCEPTIONS
                  sel_tab_empty = 1
                  OTHERS        = 2.
    Mark all helpful answers

  • Avoid Image Printing on the output

    Hi all,
    I am printing an image on my selection screen, but I am not able to avoid the same printing on the Output.
    This is my code, please check the code and tell me where I am going wrong.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME.
    PARAMETER : pr_path LIKE ibipparms-path.
    SELECTION-SCREEN END OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR pr_path.
    PERFORM f002-f4_filename CHANGING pr_path.
    AT SELECTION-SCREEN OUTPUT.
    PERFORM show_pic.
    REFRESH query_table.
    START-OF-SELECTION.
    REFRESH query_table.
    PERFORM f003-upload_data .
    FORM f002-f4_filename CHANGING p_pr_path.
    ENDFORM. "f002-f4_filename
    FORM f003-upload_data .
    ENDFORM. "f003-upload_data
    FORM show_pic.
    DATA: repid LIKE sy-repid.
    repid = sy-repid.
    CREATE OBJECT picture_control_1 EXPORTING parent = docking.
    CHECK sy-subrc = 0.
    CALL METHOD picture_control_1->set_3d_border
    EXPORTING
    border = 5.
    CALL METHOD picture_control_1->set_display_mode
    EXPORTING
    display_mode = cl_gui_picture=>display_mode_stretch.
    CALL METHOD picture_control_1->set_position
    EXPORTING
    height = 225
    left = 005
    top = 048
    width = 947.
    break-point.
    IF url IS INITIAL.
    REFRESH query_table.
    query_table-name = '_OBJECT_ID'.
    skip 5.
    query_table-value = 'ZAUROSYS1'.
    APPEND query_table.
    CALL FUNCTION 'WWW_GET_MIME_OBJECT'
    TABLES
    query_string = query_table
    html = html_table
    mime = pic_data
    CHANGING
    return_code = return_code
    content_type = content_type
    content_length = content_length
    EXCEPTIONS
    object_not_found = 1
    parameter_not_found = 2
    OTHERS = 3.
    CALL FUNCTION 'DP_CREATE_URL'
    EXPORTING
    type = 'image'
    subtype = cndp_sap_tab_unknown
    size = pic_size
    lifetime = cndp_lifetime_transaction
    TABLES
    data = pic_data
    CHANGING
    url = url
    EXCEPTIONS
    OTHERS = 1.
    ENDIF.
    CALL METHOD picture_control_1->load_picture_from_url
    EXPORTING
    url = url.
    endform.

    solved by self

  • Set Printer for List Output

    Is there any way to set a default printer in the program for printing the list output?
    Jyotsna loomba

    Hi,
    When you get the list output .
    click on print button to print it. A dialog box will come.
    In that dialog box, there will be settings button . when you click on this button, you will get many options and the value of those options that can be set defualt for that report output.
    In that there is s option of printer , select that option  and enter a value and then set that as default.
    I hope this will solve your problem.
    For any more help, please revert back.
    Thanks and regards
    Gurpreet Singh

  • SAP printer issue using output method store in windows

    Hi,
    Here is my issue:
    I created a printer in SAP in t-code SPAD.  The host spool access method is C, direct operating system call. The host printer (windows printer) has an output method «store», which means that the printing request is stored in the printer and the user needs to release the printing job directly on the printer using a password.
    If we use printer LOCL_LOCAL, this works correctly, i.e. the printing job is sent in the printer memory and the user release it with his password
    If we use a printer with an access method C, the printing job bypass the output method store and the job is printed immediately.
    Any idea why the acces method C is not working for output method «store» in Windows?
    Thanks,
    Julien

    ideally it should work if the spool work process of the SAP System and the host spool system (operating system spooler) are on the same host. is this the case?
    check [http://help.sap.com/saphelp_nw70/helpdata/en/4f/9c033cff903105e10000000a114084/content.htm]

  • Print a invoice output type on two printers

    Hi,
    I want to print a invoice output type on two printers simultaneously.
    Is there is any ways to assing this.
    Regards,
    S

    Hi,
    From SAP at a time only single printer can print the Output.
    But once the spool request is generated, in the OS level with the help of network people on SPOOL SERVER you can distribute that Spool request to multiple printers.
    Regards,
    Anji

  • Archiving output PO with ArchiveLink

    Hello,
    I'd like to archive output PO, but I have the error message ME142 saying that something went wrong in OPEN_FORM, when I'm running ME9F transaction.
    Message type is NEU, and has been customized to be able to send PO by mail to the vendor (medium 5), and at the same time to archive it (Storage mode = 3 and Document type = MEOORDER).
    A content repository has been defined.
    When I try to debug it, it seems the system is trying to find a filename, while it should create it !
    Does anybody have already cutomized the system to do the same and can you please help me ?
    Thks.
    Marie-Christine.

    Hello,
    I'd like to archive output PO, but I have the error message ME142 saying that something went wrong in OPEN_FORM, when I'm running ME9F transaction.
    Message type is NEU, and has been customized to be able to send PO by mail to the vendor (medium 5), and at the same time to archive it (Storage mode = 3 and Document type = MEOORDER).
    A content repository has been defined.
    When I try to debug it, it seems the system is trying to find a filename, while it should create it !
    Does anybody have already cutomized the system to do the same and can you please help me ?
    Thks.
    Marie-Christine.

Maybe you are looking for