ALV printing setting Layout

Hello I do have an issue printing at ALV -  I want the Layout X_44_120 -
g_grid  TYPE REF TO cl_gui_alv_gri
  ps_print-print_ctrl-pri_params-LINCT    = 44.
  ps_print-print_ctrl-pri_params-linsz    = '120'.
  ps_print-print_ctrl-pri_params-paart    = 'X_44_120'.
CALL METHOD g_grid->set_table_for_first_display        EXPORTING
      is_variant           = my_variant
      is_layout            = ps_layout
      is_print             = ps_print
I do   CALL FUNCTION 'UNSET_PRINTPARAMETER'
I do   CALL FUNCTION 'SET_PRINTPARAMETER'
  lay = 'X_44_120'.
  lines = 44.
  rows  = 120.
  CALL FUNCTION 'SET_PRINT_PARAMETERS'
    EXPORTING
      LAYOUT     = lay
      LINE_COUNT = lines
      LINE_SIZE  = rows.
CALL FUNCTION 'SET_PRINTPARAMETER_VALUE'
  EXPORTING
    NAME                    = 'LAYOUT'
    VALUE                   = 'X_44_120'
    IN_PARAMETERS           = PRI_PARAMS
and when I want to print I always get X_65_132
what can I do more/different to change the settings
many thanks
Elisabeth

Hi Elisabeth,
use FM 'GET_PRINT_PARAMETERS' & pass
LAYOUT = 'X_44_120'
Also pass the output device type..print immediately etc...
Best regards,
Prashant

Similar Messages

  • Using Mac 0S X Yosemite, in Print Setting when I select layout / arrows select print settings / there is no Basic drop down box to set color management on or off. I'm using Artisan 835 printer.

    Using Mac 0S X Yosemite, in Print Setting when I select layout / arrows select print settings / there is no Basic drop down box to set color management on or off. I'm using Artisan 835 printer.

    No - I got the iMac 27 because it was calibrated at the factory(?) and was highly recommended by friends and photographers. No complaints  at all, but this printer issue is driving me crazy. I was thinking that if I upgraded to an epson pro printer ICC profile will be on there website. I can't find any for the 835. By the way I didn't calibrate the old dell monitor either and I have had several photos published with no problem at all. Just a note, on epson website there are no printer stating they will run with 10.10 Yosemite. I was looking at the R2000 series. Right now I editing photos that I have to have ready by Jan, maybe by then epson will have something ready.

  • How to Print 2 layouts in One Page

    Hi Experts!
    As a customer requirement, I defined an half page Invoice Layout but when I printing it, it gets the hole page to print it.
    What the customer needs is to print 2 invoices in only one page. It is possible to do that?
    Advice me please!!
    Thanks
    Claudia P. Gutiérrez

    Hi,
    I think it's more of a printer setting, but probably it's not possible to set a normal laser printer to do this but could be possible with a dot matrix printer.
    Anyway, you could try to change the printer settings and the page settings from SAP, for example changing the paper size and then changing how many pages to print on one page - this setting usually offers printing two pages on one paper next to each other only but not below each other, but it's worth to give a try.
    Regards,
    Nat

  • Setting layout to a report in background job

    Hi.
    Does anybody knows how I set layouts dynamically to a report output, given that such report is scheduled to run once a day in a background job?
    It would work for me, either: through SM36 or coding JOB_OPEN / JOB_SUBMIT / JOB_CLOSE (or any other option, if available).
    My requirement is to execute every night few reports, each with their corresponding variants and layouts.
    Something like:
    RUN <report1> VARIANT <variant1> LAYOUT <layout1> JOB <job>. (it would output and xls file).
    RUN <report2> VARIANT <variant2> LAYOUT <layout1> JOB <job>. (it would output another xls file).
    RUN <report3> VARIANT <variant3> LAYOUT <layout2> JOB <job>. (it would output a 3rd xls file).
    How should I do to inform variant and layout parameters?
    Thank you.
    Rafael.

    I think I didn't make myself clear in my explanation. Sorry about that.
    My question is, I can create a new field in selection-screen specifically to layout and it would work. However, as I'm running it in background, the ALV will not be shown and the output file must be the export of the ALV with the layout (if in XLS, it'd be even better, but in .CSV would work as well). I just don't think it would work with a .TXT output, because there's no way to reflect the layout in a .TXT file.
    Is there any way of having the ALV inside the output file (saved in the server, in background processing)?
    Thank you so much!
    Edited by: rvsilvax on Nov 30, 2011 3:45 PM

  • Page and Print Set-Up in P6.2

    Can you save your page set-up (page size etc.) and print set-up (printer, including Adobe) with your layout save?

    michigan mike wrote:
    Can you save your page set-up (page size etc.) with your layout save?YES
    .. and print set-up (printer, including Adobe) with your layout save?NO. not with the layout, but print driver default settings. more to do with the client machine OS.
    try 1st and 2nd buttons in the "print preview" icon bar.
    best of luck

  • Splitter ALV container + 2 layout definitions

    Hello,
    I wrote an ALV report using splitter container. In the upper part of my report I need to define a layout , and another one for the bottom part.
    Also in my selection screen there are 2 parametrets for the upper and the lower layouts.
    I have 1 problems :
    B. when I use F4 functionalty from the selection screen for the upper part I get also layout of the lower part, and the samefor the lower part .
    attach is a part of the code.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_lay01.
      PERFORM f4_layouts USING if_salv_c_layout=>restrict_none CHANGING p_lay01.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_lay02.
      PERFORM f4_layouts_sec USING if_salv_c_layout=>restrict_none CHANGING p_lay02.
    FORM f4_layouts   USING i_restrict TYPE salv_de_layout_restriction
                      CHANGING c_layout TYPE disvariant-variant.
      DATA: ls_layout TYPE salv_s_layout_info,
            ls_key    TYPE salv_s_layout_key.
      ls_key-report = sy-repid.
      ls_layout = cl_salv_layout_service=>f4_layouts(
        s_key    = ls_key
        restrict = i_restrict ).
      c_layout = ls_layout-layout.
    ENDFORM.                    " F4_LAYOUTS
    FORM f4_layouts_sec   USING i_restrict TYPE salv_de_layout_restriction
                 CHANGING c_layout TYPE disvariant-variant.
      DATA: ls_layout TYPE salv_s_layout_info,
            ls_key    TYPE salv_s_layout_key.
      ls_key-report = sy-repid.
      ls_layout = cl_salv_layout_service=>f4_layouts(
        s_key    = ls_key
        restrict = i_restrict ).
      c_layout = ls_layout-layout.
    ENDFORM.                    "
    screen 100.
    CREATE OBJECT g_custom
        EXPORTING
          container_name = 'CONTAINER'.
      CREATE OBJECT o_splitter
        EXPORTING
          parent  = g_custom
          rows    = 2
          columns = 1.
      CALL METHOD o_splitter->get_container
        EXPORTING
          row       = 1
          column    = 1
        RECEIVING
          container = o_grid1.
      CALL METHOD o_splitter->get_container
        EXPORTING
          row       = 2
          column    = 1
        RECEIVING
          container = o_grid2.
      cl_salv_table=>factory( EXPORTING r_container    = o_grid1
                             IMPORTING r_salv_table   = gr_table1
                             CHANGING  t_table        = gt_printout_main ).
      cl_salv_table=>factory( EXPORTING r_container    = o_grid2
                              IMPORTING r_salv_table   = gr_table2
                              CHANGING  t_table        = lt_printout_second ).
    cl_salv_table=>factory( IMPORTING r_salv_table = gr_table
                              CHANGING  t_table = gt_alv_data1 ). "<tb> ).
      lr_layout = gr_table1->get_layout( ).
      lu_layout = gr_table2->get_layout( ).
    *... §4.1 set the Layout Key
      ls_key-report = sy-repid.
      lr_layout->set_key( ls_key ).
      lu_layout->set_key( ls_key ).
    *... §4.2 set usage of default Layouts
      lr_layout->set_default( abap_true ).
      lu_layout->set_default( abap_true ).
    *... §4.3 set Layout save restriction
      lr_layout->set_save_restriction( if_salv_c_layout=>restrict_none ).
      gs_test-layout    = p_lay01.
      lr_layout->set_initial_layout( gs_test-layout ).
      lu_layout->set_save_restriction( if_salv_c_layout=>restrict_none ).
      gs_test-layout    = p_lay02.
      lu_layout->set_initial_layout( gs_test-layout ).
    lr_layout  = gr_table2->get_layout( ).
    lr_layout->set_save_restriction( if_salv_c_layout=>restrict_none ).
    *... §4.1 set the Layout Key
    ls_key-report = sy-repid.
    CONCATENATE ls_key-report 'SEC' INTO ls_key-report.
    lr_layout->set_key( ls_key ).
    lr_layout->set_default( abap_true ).
    gs_test-layout  = p_lay02.
    lr_layout->set_initial_layout( gs_test-layout ).
      lr_events = gr_table1->get_event( ).
      lu_events = gr_table2->get_event( ).
      CREATE OBJECT ge_events.
      SET HANDLER ge_events->on_user_command FOR lr_events.
      SET HANDLER ge_events->on_double_click FOR lr_events.
      CREATE OBJECT gu_events.
      SET HANDLER gu_events->on_user_command FOR lu_events.
    SET HANDLER gu_events->on_double_click FOR lu_events.
      lr_selections = gr_table1->get_selections( ).
      lr_selections->set_selection_mode( if_salv_c_selection_mode=>multiple ).
      lu_selections = gr_table2->get_selections( ).
      lu_selections->set_selection_mode( if_salv_c_selection_mode=>multiple ).
      lr_columns = gr_table1->get_columns( ).
    lr_columns->set_optimize( abap_true ).
      lu_columns = gr_table2->get_columns( ).
    lu_columns->set_optimize( abap_true ).
      PERFORM create_toolbar.
      PERFORM set_zebra_pattern.
      PERFORM set_columns_technical USING lr_columns lu_columns.
      PERFORM sort.
      PERFORM add_button_to_pf_status.
    *-> Display the grid, for this we use the DISPLAY method
      CALL METHOD gr_table1->display.
      CALL METHOD gr_table2->display.
    Please advise.
    Thanks
    Yifat

    Hi Ifat
    to access layouts for tab and bottom independantly, use the 'HANDLE' element of is_variant as follows
    at selection-screen on value-request for p_tvar.           
      is_variant-report = sy-repid.                           
      is_variant-handle = 'TOP'.                              
      call function 'REUSE_ALV_VARIANT_F4'                  
        exporting                                           
          is_variant                = is_variant            
          i_save                    = 'A'                   
          i_display_via_grid        = 'X'
        importing                                             
          es_variant                = is_variant              
        exceptions                                            
          not_found                 = 1                       
          program_error             = 2                       
          others                    = 3                       
      if sy-subrc <> 0.                                      
      else.                                                  
        p_tvar = is_variant-variant.                         
      endif.                                                 
    at selection-screen on value-request for p_bvar.         
      is_variant-report = sy-repid.                          
      is_variant-handle = 'BOT'.                             
      call function 'REUSE_ALV_VARIANT_F4'                   
        exporting                                            
          is_variant                = is_variant             
          i_save                    = 'A'                    
          i_display_via_grid        = 'X'
        importing                                           
          es_variant                = is_variant            
        exceptions                                          
          not_found                 = 1                     
          program_error             = 2                     
          others                    = 3                     
      if sy-subrc <> 0.                                      
      else.                                                  
        p_bvar = is_variant-variant.                         
      endif.                                                 
    Regards
    Joel

  • Printer setting in SPAD

    Hi all,
    I am working in smartform,
    we are using HP2420 laser printer.
    whenever executing the function module / smartform, I am not able to get print. But i am getting the print from SE38 ( not layout ).
    i waiting for reply.
    raj
    i hope In SPAD local Printer setting may not be assigned.

    Hi,
    When you execute the Function Module/Smartform, the Default Popup will come, so there mention the Local printer to get the Printer, or else in the SPAD transaction code set the Default Printer to Local. and also you have an option to saet the Printer in the Smartfrom Header.
    See the below link for sample code..
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/smartforms&
    Regards
    Sudheer

  • ALV printing error - Footer on 3 different pages

    Hi all,
    I created an report which outputs an ALV grid (full screen) with a header and a footer. The ALV grid is created with class CL_SALV_TABLE (incl. methods set_top_of_list for the header, resp. set_end_of_list for the footer). This all works correctly and the print preview looks fine too.
    Problem is a very strange print output:
    In most cases, printing works fine. But sometimes the output is wrongly formatted: is the footer to be printed on two different pages (i.e. the footer is partly printed on the current page, the rest on the next page), the footer will be printed on three pages! The first part on the current page (correct), only one line at the bottom of the second page (wrong) and the rest of the footer on the third page (wrong)! Could it be that this is a print setting problem? Should I add special footer settings?
    I already checked SDN forums and looked at SAP Notes for solutions but could not found any tip on how to solve this.
    Does anyone of you had the same issue before? Or does anyone has an idea how this problem could be solved?
    Thanks a lot!!

    Need suggestions please.

  • ALV print in background : print dialog pops up

    Hi,
    I want to print a ALV grid to Spool in background......................I am using FM ' REUSE_ALV_GRID_DISPLAY'
    But when I execvute the program in foreground or background the print selection dialog comes up....................How to avoid this........................Any ideas or experience
    *-- CODE--
    **- Get printer parameters
    DATA : l_params.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          IMMEDIATELY            = SPACE
          LAYOUT                 = 'X_58_170"'
          LINE_COUNT             = '58'
          LINE_SIZE              = '1024'
          NO_DIALOG              = 'X'
          DESTINATION            = 'LOCL'
        IMPORTING
          OUT_PARAMETERS         = l_params
        EXCEPTIONS
          ARCHIVE_INFO_NOT_FOUND = 1
          INVALID_PRINT_PARAMS   = 2
          INVALID_ARCHIVE_PARAMS = 3
          OTHERS                 = 4.
    *- Prepare ALV print str.
      l_print-print = abap_true .                  
      l_print-print_ctrl = lfd_params.
      l_print-NO_CHANGE_PRINT_PARAMS = abap_true. 
      l_print-no_print_listinfos = 'N'.
    *-Call ALV in background
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = l_repid
    *        i_callback_pf_status_set = L_pf_stat
    *        i_callback_user_command  = l_user_cmd
          i_callback_top_of_page   = l_top_page
          is_layout                = l_layout
          it_fieldcat              = lt_ALV_fcat
          IS_PRINT                 = l_print
          i_save                   = 'A'
        TABLES
          t_outtab                 = lt_objects
        EXCEPTIONS
          program_error            = 1.
    <Added code tags>
    Edited by: Suhas Saha on Nov 21, 2011 2:54 PM

    Hi,
    try K_KKB_LIST_DISPLAY fm. The below code can gives you an idea.
    DATA: SELF LIKE SY-REPID.
    DATA: END_OF_LIST_ROUTINE type KKBLO_FORMNAME.
    GS_LAYOUT-NO_PRINT_LISTINFOS = 'X'.  "No selinfolist when printing
    GS_LAYOUT-NO_PRINT_SELINFOS = 'X'.
    END_OF_LIST_ROUTINE       = 'ERROR_LIST'.
    IF SY-BATCH = TRUE.   "this part you need
      GS_LAYOUT-PRINT = 'X'.            "Get Print_Parameters
      GS_LAYOUT-MIN_LINESIZE = 132.
      GS_LAYOUT-SUPPRESS_DYNPRO = ' '.  "no call screens
    ENDIF.    "this part you need
      SELF = SY-REPID.
      CALL FUNCTION 'K_KKB_LIST_DISPLAY'
           EXPORTING
              I_CALLBACK_PROGRAM       = SELF
              I_CALLBACK_USER_COMMAND  = 'USER_COMMAND_SEG_REV'
              I_CALLBACK_PF_STATUS_SET = 'SET_STATUS_SEG_REV'
              I_CALLBACK_END_OF_LIST   = END_OF_LIST_ROUTINE
              IS_LAYOUT                = GS_LAYOUT
              I_CALLBACK_TOP_OF_PAGE   = 'TOP_OF_PAGE_SEG_REV'
              I_TABNAME                = 'GT_SEG_REVREB'
              IT_FIELDCAT              = XFIELD
    *         it_special_groups        = gt_groups
    *      importing
    *         e_exit_caused_by_caller  = exit_caused_by_caller
           TABLES
                T_OUTTAB               = GT_SEG_REVREB
           EXCEPTIONS
                OTHERS                 = 1.
      IF SY-SUBRC = 1.
        MESSAGE E161.
    *   Fehler bei Aufruf Listtool
      ENDIF.
    Çağatay

  • Using formula in Print Design Layout

    I need to use the formula fields in teh print design layout procedures. I would like to create a field which displays a content conditioned on another field. IF-THEN-ELSE
    suppose Field_88 needs the formula
    IF(Field_87=="mom") THEN display "Hi Mom" ELSE display nothing
    Regards
    Henrik Lyder

    Henrick,
    You are on the right path.  From what I understand about your requirement I am giving below the steps.
    Step1:  Add a formula field and in the Field Properties window of that field in the Content Tab.  Reference the field whose Value you are checking.
    Let us suppose Field_89 is your new formula field and in the Contents Tab you will have Field_87=="mom". 
    NOTE:  There is no need for the <b>IF</b>.  Just <b>Field_xxx=="value"</b>. 
    Now in Field_88 properties in the General tab select Field_89 as the <b>Link to</b> field.  When you do this if the Formula in Field_89 is TRUE then this field will appear.  If you want <b>Hi Mom</b> to appear then define Field_88 as a Formula field too and in Content tab set function  <b>Concat("Hi ",Field_87)</b>
    Let me know if you have questions
    Suda

  • How do I change the printer setting to print in Black only?

    How can I change my printer setting to print in Black only

    It depends on your printer as well; my Epson AIO only does color (even when it is black font only) - or grayscale )sort of a "draft" quality) as it uses some color even for black:

  • Download alv report using layout variant in background

    Hi All,
    I want to download an Alv report using layout varaint in background job.
    can any one please help me.
    i.e...
    I am facing a problem in downloading a text file to the Application server.
    My requirement is, when the user downloads a file with the layout variant, the file should have only the columns which was selected in the variant.
    Will rewards to helpfull ans
    regards
    Chetan

    hey seshu,
    I am facing a problem in downloading a text file to the Application server.
    My requirement is, when the user downloads a file with the layout variant, the file should have only the columns which was selected in the variant.

  • How to change font size in smartform and set layout of smartform

    Dear abapers,
                           I want to change font size in smartform and also set the layout of smart form how can we do this.
                                                 Thank you sir.

    Hi,
    you can do it first you need to goto smartforms tcode there click on radiobutton 'Style'.
    Give any name and click on create. Right sideyou can find character format right click on it and create a node .A pop will raise gve a 2 characterlike z1 or a1 etc click on font tab gve size and font style and click on save and activate. Use this style in your smartform you can apply what ever styles created in styles you can use it in your smartform by that smartstyle name.
    When we create text in output options give your smart style name and click on general attributes . Select your text and apply the style what thse size it should be and what the font style it should be.
    Goto smartforms tcode and select formpainter in application bar set layout according to your requirement.
    Thanks,
    venkat

  • Incompitible Print Setting Error for HP LJ 8500n in Windows Vista

    Hi, I have two laptops, one with Windows XP and another with Windows Vista Business. There is a HP LJ 8500n connected with router and accessed by both laptops. Somehow, when I print from Windows XP laptop and I change the print settings there is no error message. But, when I print from Vista Business Laptop, it prints without any error message for default setting, but when I try to change the print setting (to change the paper size or color) the error message comes with "Incompitible Print Settings. It says: "There are one or more conflicting settings. One of the conflicting settings is: Accessory Output Bin: Not Installed. Output Bin: Mailbox 5." Once I click "Ok" it will have same message with output bin changed to Mailbox 6, etc. After I go through approximately 8 to 10 output bins messages, it gives me the screen where I can change the print settings. After that, I can print with revised setting. But, it is very annoying to go through these messages every time I have change the print settings.
    Please reply, Thank You,

     @fshrago 
    For the laserjet 3390, you have the option of using the either the Universal Print Driver (network connection) or Windows Update Driver (USB connection)  in windows 8.1.  Neither of these drivers come with a fax or scan driver.
    To use the fax and scan driver, you will need to use the Windwos Fax and Scan Software however you will need to be usb connected. I have given you links to documents that explain how to use both the Windwos Update driver and the Windows Fax and Scan Software.
    Driver support included in Windows 8 / Windows 8.1 or in Windows Update - usb connection only
    Use the software in Windows 8 to scan - usb connection only
    Please understand that the UPD is a print only driver. If you would like a fax/scan driver you will need to connect via USB and use the Windows Fax and Scan driver along with the Windows Update/In-OS driver.
    Good Luck.
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

  • WIndows 8.1 printer error: windows cannot print due to a problem with the current printer set up

    My HP OFFICEJET 8500 PRO was working just fine wirelessly until I installed the Windows 8.1 update from the Microsoft.  Now I cannot print at all.  I get an error that says,  "windows cannot print due to a problem with the current printer set up".  I have tried reinstalling and a ton of other solutions to no avail.  Can someone PLEASE Help!

    Hello there, @jesseangelique ,
    Welcome to the Community!
    I would love to help you with the printing issue you're having, since the Windows 8.1 that was done.
    Please run the Print and Scan Doctor. Write me back with the results or post a screen shot of the results and I will have a look at them.
    This diagnostic tool will check for any conflicts that could be causing the issue. The tool will show you a report at the end. If there was a problem that the tool could not fix, you will notice it in the results.
    Also, let me know which Officejet 8500 Model you have:
     HP Officejet Pro 8500 All-in-One Printer - A909a
     HP Officejet Pro 8500 All-in-One Printer - A909b
     HP Officejet Pro 8500 Premier All-in-One Printer - A909n
     HP Officejet Pro 8500 Wireless All-in-One Printer - A909g
    Hope to hear from you!
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

Maybe you are looking for

  • How do you make a bunch of JCheckboxes becomes selected from clicking one?

    Ok.. a fairly complecated set up here, let me try and explain it as best i can. Essentially, im creating a bunch of JCheckBox's from Strings within an Array using:      Enumeration Type = TypeList.elements();      boxMap = new HashMap();           wh

  • Java Error Messages In Abap Stack

    Hi, We have to implement a scenario where we to send the error messages generated by Java Stack to ABAP stack.Plz help me with the scenario.Thanks in advance..Mahesh

  • XML Dataset whit spry:if works in IE8 but not in IE6,IE7 and IE9

    Hello, I have bigs problem with my site created using SPRY framework and the filters functions. My pages works properly in IE8, Safari, firefox, chrome, ecc but not in IE6 and IE7. In IE9 works only in "compatibility mode" This page is an example: ht

  • Oracle VM Server for SPARC Management Platforms

    Upon doing some nominal research, I see that the Oracle VM for x86 platform is significantly more robust (at least at first glance) with regards to migrations/interface/etc. Where is the equivalent of Oracle VM Manager for SPARC? Is the Oracle Enterp

  • How to change the owner's name?

    Hi, I just bought an Iphone 3g from ebay, but it has another owner's name (who activate it); How can I change it? by Itunes? Thanks in advance for answer. Vincent.