ALV - Pprint-GET-PRINT-PRAMETERS

Hi all,     
We have made SAP Query (The majority and 'was written in ABAP code), a report using ALV grid (function 'REUSE_ALV_GRID_DISPLAY'). There is a 'Print' button on the grid. If the user presses this button the system will send a screen where the user can choose print parameters (name of printer, printing, direct or not, etc..) If the user presses 'Continue' a spool request is then created.
But the users do not want to see the screen parameters.
After pressing the button 'Print' on the grid, the spool request should be immediately created using the parameters seted in the ABAP program,  the same program that creates ALV.
Any idea how to do this?
Thanks in advance

Hi when the smartform called , after the SSF_FUNCTION_MODULE_NAME function module
and before the smartform function module call pass parameters to supress the dialog box
that is the screen
eg: st_output_options-tdprinter = v_e_devtype.
      st_control_parameters-no_dialog = 'X'.
      st_control_parameters-getotf = 'X'.
set these parameters and pass to the smartform function module name
CALL FUNCTION v_fm_name
        EXPORTING
          control_parameters   = st_control_parameters
          output_options       = st_output_options
          frm_date             = so_budat-low
          to_date              = so_budat-high
        IMPORTING
          document_output_info = st_document_output_info
          job_output_info      = st_job_output_info
          job_output_options   = st_job_output_options
        TABLES
          ta_srvtax            = t_srvtax[]
        EXCEPTIONS
          formatting_error     = 1
          internal_error       = 2
          send_error           = 3
          user_canceled        = 4
          OTHERS               = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.

Similar Messages

  • Text overflown is not getting printed in the next page in ADOBE

    Hi Experts,
    I have a text field, where the users can enter the comments. In this text field if the user enters more than a page, a scroll bar appears in the print preview where the users can view the complete text what they have entered, but while printing the text which exceeds more than a page is not getting printed in the next page.
    I have set the subform properties as "Flowed" and the check box "Allow Page Break within content" is also been enabled, but still the extra contents is not getting printed in the next page.
    Please help me regarding this.
    Thanks & Regards,
    Karthik MD

    Hi Lohitha,
    Even "Expand to fit" is been enabled.
    Thanks & Regards,
    Karthik MD

  • Text overflown in the first page is not getting printed in the next page

    Hi Experts,
    I have a text field, where the users can enter the comments. In this text field if the user enters more than a page, a scroll bar appears in the print preview where the users can view the complete text what they have entered, but while printing the text which exceeds more than a page is not getting printed in the next page.
    I have set the subform properties as "Flowed" and the check box "Allow Page Break within content" is also been enabled, but still the extra contents is not getting printed in the next page.
    Please help me regarding this.
    Thanks & Regards,
    Karthik MD

    Hi,
    This issue is in ADOBE, I think there is no concept of Window in ADOBE,
    The text box is placed inside a Subform.

  • Values not getting printed in the Output

    Hi all,
        Iam facing strange problem.
    In the debug mode iam seeing the values for all variables ( Variable windows) but after printing no value is getting printed. MAIN window is there but no element is being called from the MAIN window.
    Can anyone help me in this regard.
    Rehards,
    Indrajit

    hi Indrajit ,
    check that in print program you have created the element same as using in main program , also declare temporary variables inside loop at table so that **** sign doesnt gets printed ..
    Hope this will help you

  • Barcode is not getting printed in the SmartForm

    Hi All,
    I am trying to print BARCODE in a SMARTFORM but it is not getting printed.
    I have created a barcode ZTest_Barcode from the transaction SE73. Then I have created a Character Format C1 with this barcode ZTest_Barcode.
    In the SmartForm I have applied this character format like this <C1>&WA_VBAK-VBELN&</C1>.
    But in the preview of this SmartForm barcode is not getting printed while this field is printing like <C1>220<C1>.
    I have also tried with some SAP barcodes like BC_CD39, C128A_01, etc. But the result is same.
    Please help me to resolve this issue.
    Regards,
    Avaneet

    hi avaneet,
    check this site for barcode.
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    it may help you.
    thanks
    Sachin

  • Background job- getting printed automatically

    In my BDC Program i have submitted  Session for Background Processing using
    Submit RSBDCSUB..........
    my code is also given below..The problem is after the user executes the program, background job is automatically going to his Local printer and getting printed. HOw to avoid this?
    CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname          = gf_jobname
           IMPORTING
                jobcount         = gf_jobcount
           EXCEPTIONS
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 3
                OTHERS           = 4.
    *-Submit the selected sales orders for changes.
      SUBMIT rsbdcsub AND RETURN
             WITH mappe = v_sess
             WITH von = sy-datum
             WITH bis = sy-datum
             WITH z_verarb = 'X'
             WITH fehler = space
             WITH batchsys = space
             WITH logall = space
             USER sy-uname VIA JOB gf_jobname NUMBER gf_jobcount.
      IF sy-subrc NE 0.
        MESSAGE i999 WITH text-013.
        EXIT.
      ENDIF.
    *-Close job and start immediately.
      CALL FUNCTION 'JOB_CLOSE'
           EXPORTING
                jobcount             = gf_jobcount
                jobname              = gf_jobname
                strtimmed            = 'X'
           IMPORTING
                job_was_released     = gf_release
           EXCEPTIONS
                cant_start_immediate = 1
                invalid_startdate    = 2
                jobname_missing      = 3
                job_close_failed     = 4
                job_nosteps          = 5
                job_notex            = 6
                lock_failed          = 7
                OTHERS               = 8.

    On SUBMIT use
    SUBMIT zxxxxxx TO SAP-SPOOL
                        WITHOUT SPOOL DYNPRO
                        IMMEDIATELY  ' '
                        KEEP IN SPOOL 'X'
                        DESTINATION printer
                         NUMBER  number
                        AND RETURN

  • APEX4.0.2 - Interactive Report total is not getting printed when downloaded

    I've an Interactive Report based on a sql in Apex 4.0.2. There is a Balance column whose total sum is displayed at the bottom of the table.
    When I download the report, the total sum of balance column is not getting printed in the bottom of the report.
    Could this be a bug or have I missed some setting?
    Thank you for the help.

    Hi,
    Whilst you can update the SQL to include totals, these would probably not be effective if the user filters the data (the total row may be filtered out) or sorts columns (as the total row would likely be sorted as normal data).
    Unless someone else has any other ideas on this, this may be something that needs to be logged with the Apex team as an enhancement request - create a new thread and start the Subject as "Enhancement Request:"
    Andy

  • Invoice is not getting printed for particular 3 customers

    Hi,
    When user is printing the Invoices, only for specific 3 customers it is it not getting printed automatically, but the output is shows success with green. When they re process it manually, it is printing successfully for the same printer.
    1. Printer setup is checked it is correct
    2. There are two outputs one is External send (E-mail) and one is Printout.
    3. The problem is with only the Printout, where as the external send (E-mail) is sent successfully.
    Help me out in this issue...
    Thanks
    BP

    Hi
    First of all Welcome to SCN Forum
    Please check wheather any subroutine has been assigned to the output type access sequence.If the problem is with printout only then check the Logical destination that has been maintained in VV32 for those 3 customers.In VV32 for those 3 customers check wheather Release Immediately has been checked or not. Before reprocessing it go to VF02 and check on determine analysis
    Regards
    Srinath

  • When I try to print from web page I get "printer not activated - error code 30", but I can copy text into Word document & printer works.

    I am unable to print anything from an internet web page. I continually get "printer not activated, error code- 30" followed by "An unknown error occurred while printing". I can copy the material from the web page, place into a Word document and then print. This just started yesterday and I have no idea why. Would appreciate your advice!

    See this:
    [http://kb.mozillazine.org/Problems_printing_web_pages#Prints_to_a_small_portion_of_the_page]

  • "unable to get printer status" and "server-error-not-accepting-jobs"

    I've got an Intel Mac Pro with Tiger. When I accepted the latest update from Apple, I lost all my defined printers! I've re-added a local USB printer and a networked Laserjet - fine. But I also added a Phaser 850 color printer (networked) which used to work fine. It connects ok, and opens the printer queue window, but when it tries to print, it says "Unable to get printer status (server-error-not-accepting-jobs". The queue stays active (not stopped) but the jobs don't move. I've tried deleting the printer and re-making it - same deal. What's going on?
    Mike

    Hi Mike,
    One think I really dislike about OSX is the Rocket Science needed to just Print!
    Might try these two...
    Mac OS X: About the Reset Printing System feature ...
    http://support.apple.com/kb/HT1341?viewlocale=en_US
    Might try Printer Setup Repair 5.1...
    http://www.fixamac.net/software/index.html

  • Invoice is getting printed instead of being sent in email

    Hi Experts,
    I have an issue where there is a list of customers for which invoice should be sent in an email.
    It should not get printed out.
    I've maintained customer specific condition records for this output type (ZINV) and have kept transmission medium as 5 (External send). But still in invoice, transmission medium is picked as 1 (Print output). This billing type has default value as 1 (Print output). But for these customers, system should have picked up 5 not 1.
    I've checked config. I dont see any problem as per my understanding.
    Would you please advice if I am missing something?
    -Chetan
    Edited by: Chetan Barokar on May 6, 2010 8:25 PM

    Hi,
    Hope the Form and print program are assigned for email comm for the output type in NACE trranscation.
    In the condition records(VV33), the communication strategy must be set to 1(Email only) in the communication tab. Also check the access sequence of condition records and make sure that it is not selecting the wrong sequence. Also please check the output determination procedure.
    If the above setup exist, the please debug the print program and check whether the device value passed to OPEN_FORM is MAIL and also check whether the sender and recipient values are passed.

  • Vendor Address not getting printed properly in cheque printing.

    Hi
    While printing the vendor address for the cheque printing, for certain vendors the street no. is not getting printed & for certain vendors PO Box is not getting printed.
    In the program we are fetching vendor address from REGUH table & then passing onto the global variables which are being used in the script & data is there in the database table for both street & PO Box number.
    The code in the script is as follows:
    /:           ADDRESS PARAGRAPH UH TYPE '3'
    /:             TITLE    &W_ANRED&
    /:             NAME     &W_ZNAME1&,&W_ZNAME2&,&W_ZNAME3&,&W_ZNAME4&
    /:             STREET   &W_ZSTRA&
    /:             POBOX    &W_ZPFAC& CODE &W_ZPST2& CITY &W_ZPFOR&
    /:             POSTCODE &W_ZPSTL&
    /:             CITY     &W_ZORT1(28)&
    /:             COUNTRY  &W_ZLAND&
    /:             FROMCOUNTRY &W_LAND1&
    /:             ADDRESSNUMBER &W_ZADNR&
    /:           ENDADDRESS       
    Can anyone please let me know, what could be the possible reason for this?

    you can tyr with TYPE '1' or TYPE '2'
    : ADDRESS PARAGRAPH UH TYPE '3'

  • Not getting print out of PO

    Dear all,
                 I am not getting print out of PO. In the message out put, the config ( NACE , MN04 ) and as well as all setting are correct. in FURTHER DATA tab, the despatch option id 4 : Send immediately ( when saving the application) ; but it is not generating any spool request for print out. i have checked in SP01 and SP02 , but I could not find out any spool request. More interesting, with the existing config and message setting , we were getting print out till one day ago but presently it is not working.
                  Hoping for corrective solution.
    Regards,
    Partha

    Hi,
    check t.code SPAD and involve Basis Consultant.
    Also check NACE t.code for Program, std form,routine, medium
    Note:
    Customisation steps for Output of Purchase Order
    1. Condition Table
    SPRO > Material Management> Purchasing -> Message -> Output Control->Condition Tables->Define Condition Table for Purchase Order
    Select:
    Purchasing Doc. Type,
    Purch. Organization,
    Vendor
    2. Access Sequences
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Access Sequences->Define Condition Table for Purchase Order
    3. Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Types->Define Message Type for Purchase Order
    4. Message Determination Schemas
    4.1. Message Determination Schemas
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Maintain Message Determination Schema
    4.2. Assign Schema to Purchase Order
    SPRO -> Material Management-> Purchasing -> Message -> Output Control->Message Schema->Define Message Schema for Purchase Order-> Assign Schema to Purchase Order
    5. Partner Roles per Message Type
    SPRO -> Material Management-> Purchasing -> Message -> Output Control-> Partner Roles per Message Type ->Define Partner Role for Purchase Order
    6. Condition Record
    Navigation Path: SAP Menu-> Logistics -> Material Management -> Purchasing-> Master data->Messages-> Purchase Order-> MN04-> Create
    Now you create PO (ME21N) and save it. Go to ME22N and print the PO by giving output type.
    Regards,
    Biju K

  • TS1135 Low quality warning on a photo in a photobook. I understand the warning but I still want to go ahead with my design, will it get printed or will the page be deleted?

    Low quality warning on a photo in a photobook. I understand the warning but I still want to go ahead with my design, will it get printed or will the page be deleted?

    Sorry 1 further question please..
    the  pixel width is 1,076 and heigth is 793 and I want to have this photo as a background in a 13 x 10 inch book
    Will this be ok?
    Thanks

  • Only one line is getting printed in Table in Smartforms (ECC 6.0)

    Hello Sir,
    I am new in ABAP and doing Smartforms (ECC 6.0) on project from customer side.
    I have to deliver the object in time and it is already late, please help me.
    This is my question:
    Object :  Stock Transport Order.
    =======================
    I have created Table in main window after Program Line Node.
    >Main Window
    >>Code2
    >>Table1
    >>>Header
    >>>>Row1
    >>>>>Cell1 to Cell10
    >>>Main Area
    >>>>Row2
    >>>>>Cell1 to Cell10
    >>>Footer
    >>>>Row3
    >>>>>Cell1 to Cell10
    I have mentioned internal tabel as well work area table in "DATA" tab in table Node.
    In Row1 I have created Text Node in every cell having Column Heading.
    In Row2 I have created Text Node in every cell having variable.
    In Row3 all cells are blank.
    On output only one line is getting printed
    What could be the reason.
    =====================================================================
    This is Code1 (is in the beginning of the form in window1)
    ==========
    *& Selection of Purchasing Document No,Plant,Short Text,Quantity,Material No,
    *& Gross order value in PO currency
    select single ebeln werks txz01 menge matnr brtwr
    from ekpo into
    (v_ebeln,v_werks,v_txz01,v_menge,v_matnr,v_brtwr)
    where ebeln = DOCNO.
    *& Selection of Plant address
    select single adrnr from t001w into v_adrnr
    where werks = v_werks.
    *& For Selection of phone,fax
    select single name1 tel_number fax_number from adrc into (v_name1,phone,fax)
    where addrnumber = v_adrnr.
    *& For E-Mail Selection
    select single SMTP_ADDR from adr6 into mail where addrnumber = v_adrnr.
    *& For CST No.,GST No.
    select single J_1ICSTNO J_1ILSTNO
                  from J_1IMOCOMP into (CST,GST)
                  where werks = v_werks.
    *& Selection of Vendor Address No., PO date
    select single reswk aedat from ekko into (v_reswk,v_aedat) where
    ebeln = v_ebeln.
    *& Selection of Supplying (Issuing) Plant address
    select single adrnr from t001w into vendor
    where werks = v_reswk.
    *& Selection of storage location
    select single lgort from ekpo into v_lgort where werks = v_werks
    and ebeln = v_ebeln.
    *& Selection of description of storage location
    select single lgobe from t001l into v_lgobe where werks = v_werks.
    *& Fetching data into internal table from ekpo
    select ebeln ebelp matnr txz01 menge brtwr from ekpo into corresponding fields
    of table iekpo where ebeln = v_ebeln and werks = v_werks.
    Fetching data into internal table from marm for Pck
    select * from marm into corresponding fields of table imarm for all entries
    in iekpo where matnr = iekpo-matnr.
    Fetching data into internal table from mara for Pack Type Code
    select * from mara into corresponding fields of table imara for all entries
    in iekpo where matnr = iekpo-matnr.
    Fetching data into internal table from tvegrt for Pack Type Description
    select * from tvegrt into corresponding fields of table itvegrt
    for all entries in imara where magrv = imara-magrv.
    Fetching data into internal table from eket for Receipt Date
    select * from eket into corresponding fields of table ieket
    where ebeln = v_ebeln.
    Selection of Order Type from mepo_topline
    *select single bsart from mepo_topline into v_bsart where ebeln = v_ebeln
    *and superfield = v_werks.
    *if v_bsart = 'UB'.
    xhead = 'Replenishment Order'.
    *eleseif v_bsart = 'ZSTO'.
    xhead = 'Purchase Order'.
    *endif.
    *& Defining of variable for Printing Line Serial Number,Total Quantity,
    *& Total Value
    =====================================================================
    This is Code2 (is in the main window)
    ==========
    xln = 0.
    tmenge = 0.
    tvalue = 0.
    Loop for printing table
    loop at iekpo into wekpo.
      xln = xln + 1.
      xmatnr = wekpo-matnr.      " Material Number (Code)
      xtxz01 = wekpo-txz01.      " Material Name
      xmenge = wekpo-menge.      " Line Quantiy
      xbrtwr = wekpo-brtwr.      " Basic Rate
    *& Pck
      read table imarm into wmarm with key matnr = wekpo-matnr.
      xpck = wmarm-umren.        " Packing Size
    *& Num
      xnum = xmenge / xpck.      " Numbers of Packing
    *& Line Value
      xvalue = xmenge * xbrtwr.  " Line Basic Value
    *& Packing Type
      read table imara into wmara with key matnr = wekpo-matnr.
      xpacktype = wmara-magrv.   " Packing Type Code
    *& Packing Type Description
    read table itvegrt into wtvegrt with key magrv = imara-magrv.
    xpackdesc = wtvegrt-bezei. " Packing Type Description
    *& Receipt Date
      read table ieket into weket with key ebeln = v_ebeln.
      xrcpdt = weket-eindt.      " Receipt Date
    *& Report Total
      tmenge = tmenge + xmenge.
      tvalue = tvalue + xvalue.
    *& Serial No. increment
    endloop.
    =====================================================================
    Thanks and Regards,
    Yogesh Pathak

    Did you debug and check the umber of values in internal table before calling the TABLE Node....
    seeing all SELECT SINGLE along with WHERE = condition and no loop call on them, my assumption  is there will be on record only. Check in Debug mood. Search forum to find how to debug a smartform.

Maybe you are looking for

  • DSO - Key Field doubt?

    Hi All, I want to know the functionality of the Key Field in the DSO. I know based on the Key Fields(Primary Key) data is pulled to DSO, but please explain me the below scenario E.g I have 3 records in the Extractor( Generic) and i am pulling data to

  • FCP 4 won't render

    Hi, I'm using fcp 4 and I when I try to render some scrolling text, it takes a long time and then comes up with general error 34. After that, it won't render anything. I have made sure that all the option colors are checked, and I have tried dumping

  • Can you play home movies from imovie on atv?

    Can you use imovie to play home movies through atv?  If so, how is it done?

  • Check an application alive in the system

    Hi friends, I have a requirement to open a MATLAB session through Java. I have done that using the Runtime class Runtime.getRuntime().exec(matlabPath);But I observed that if the open session method is called multiple times, it opens multiple MATLAB s

  • Lion address book prints extra page

    For years I had no trouble printing envelopes straight from Address book. But since I upgraded to Lion, when I print an envelope, it prints (1) the envelope just fine, but then also (2) a blank 8.5"x11" page. How do I get it to stop printing the extr