ALV_LIST_DISPLAY  default layout problem

hi every body
I am trying to display my itab content using FM ALV_LIST_DISPLAY 
the problem facing is
in my internal table there r 100 fields if i create field catalog for all fields
are displaying in ALV list
my requirement is out of 100 fields only 20 fields need to be displayed
every time we run the report and who ever runs the report
and also there should be a provision to the user to select specific fields
in specific order from the available 100 fields in the internal table.
please suggest me how to solve this one
Thanks in advance for your kind suggestions

Build the filed catalog using FM  'REUSE_ALV_FIELDCATALOG_MERGE'.
Loop thru the fld catalog and hide the unnecc ones. Users can create variants
in the ALV and provide provide a field on the screen to select a variant .
Kindly Go thru cod below :
FORM set_alv_fieldcat_n_layout
     CHANGING c_layout       TYPE  slis_layout_alv
              c_tab_fieldcat TYPE  slis_t_fieldcat_alv.
  FIELD-SYMBOLS: <wa_fieldcat> TYPE slis_fieldcat_alv.
  DATA : l_pos TYPE i VALUE 4.
create default field catalogue with DDIC information of
output structure:
  CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    i_program_name               = g_con_callback_prog
    i_internal_tabname           = 'GT_OUTTAB'
     i_structure_name             = 'FTI_INT_INSTR_DATA'
    i_client_never_display       = 'X'
    i_inclname                   = sy-repid
   I_BYPASSING_BUFFER           =
   I_BUFFER_ACTIVE              =
    CHANGING
      ct_fieldcat                  = c_tab_fieldcat
    EXCEPTIONS
      inconsistent_interface       = 1
      program_error                = 2
      OTHERS                       = 3.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
modify the field catalogue in a specific required way:
  LOOP AT c_tab_fieldcat ASSIGNING <wa_fieldcat>.
    IF <wa_fieldcat>-fieldname = 'MANDT'.
      DELETE c_tab_fieldcat.
      CONTINUE.
    ENDIF.
    IF <wa_fieldcat>-fieldname = g_param1.
      <wa_fieldcat>-col_pos = '3'.
    ELSEIF <wa_fieldcat>-fieldname = g_param2.
      <wa_fieldcat>-col_pos = '4'.
    ELSEIF <wa_fieldcat>-fieldname EQ 'ACTIVE_PASSIVE'.
      <wa_fieldcat>-col_pos = '2'.
    ELSEIF <wa_fieldcat>-fieldname EQ 'ICON_SUBTOTAL'.
      <wa_fieldcat>-col_pos = '1'.
    ELSE.
      <wa_fieldcat>-col_pos = l_pos.
      l_pos = l_pos + 1.
    ENDIF.
    IF <wa_fieldcat>-fieldname = g_param1 OR
       <wa_fieldcat>-fieldname = g_param2 OR
       <wa_fieldcat>-fieldname = 'ACTIVE_PASSIVE' OR
       <wa_fieldcat>-fieldname CP '*_LC' OR
       <wa_fieldcat>-fieldname CP '*_PC' OR
       <wa_fieldcat>-fieldname CP '*_DC' OR
       <wa_fieldcat>-fieldname CP 'MED_*' OR
       <wa_fieldcat>-fieldname CP 'ICON_*'.
    ELSE.
      <wa_fieldcat>-no_out = 'X'.
    ENDIF.
    IF p_skflg = ftico_xtrue.
      IF <wa_fieldcat>-fieldname CP '*_LC' OR
         <wa_fieldcat>-fieldname CP '*_PC' OR
         <wa_fieldcat>-fieldname CP '*_DC'.
        <wa_fieldcat>-round = p_skalv.
        <wa_fieldcat>-decimals_out = p_decim.
      ENDIF.
    ENDIF.
    IF <wa_fieldcat>-fieldname CP '*_LC' OR
       <wa_fieldcat>-fieldname CP '*_PC' OR
       <wa_fieldcat>-fieldname CP '*_DC'.
    ELSE.
      <wa_fieldcat>-key_sel = 'X'.
      <wa_fieldcat>-no_sum = 'X'.
    ENDIF.
    IF <wa_fieldcat>-fieldname CP '*_LC' OR
       <wa_fieldcat>-fieldname CP '*_PC' OR
       <wa_fieldcat>-fieldname CP '*_DC'.
      <wa_fieldcat>-outputlen = '16'.
    ENDIF.
    IF <wa_fieldcat>-fieldname EQ 'ANZGW' OR
       <wa_fieldcat>-fieldname EQ 'CALC_CCY' OR
       <wa_fieldcat>-fieldname EQ 'NPV_CC' OR
       <wa_fieldcat>-fieldname EQ 'CLEAN_PRICE_CC' OR
       <wa_fieldcat>-fieldname CP 'ERR_*'.
      DELETE c_tab_fieldcat.
      CONTINUE.
     <wa_fieldcat>-no_out = 'X'.
    ENDIF.
    IF <wa_fieldcat>-fieldname EQ 'INT_CAT' OR
       <wa_fieldcat>-fieldname EQ 'ACTIVE_PASSIVE'.
      <wa_fieldcat>-outputlen = '3'.
    ENDIF.
    IF <wa_fieldcat>-fieldname CP 'ICON_*'.
      <wa_fieldcat>-icon = 'X'.
      <wa_fieldcat>-outputlen = 3.
    ENDIF.
    IF <wa_fieldcat>-fieldname EQ g_param1 OR
       <wa_fieldcat>-fieldname EQ g_param2 OR
       <wa_fieldcat>-fieldname EQ 'ACTIVE_PASSIVE'.
      <wa_fieldcat>-key = 'X'.
    ENDIF.
  ENDLOOP.
ENDFORM.                    " set_alv_fieldcat_n_layout

Similar Messages

  • Default Query Print Layout problem

    Hello:
        I have a query below SELECT T0.[ItemCode], T0.[Dscription], sum(T0.[Quantity]) as 'Quantity' FROM INV1 T0 WHERE month(T0.[DocDate]) =month([%0]) AND  year(T0.[DocDate]) = year([%0]) and T0.[ItemCode] IS NOT NULL GROUP BY T0.[ItemCode], T0.[Dscription] ORDER By T0.[ItemCode].
        Which basically output monthly inventory invoiced qty. It works fine. However when I try ti link to the default system print layout and try to print. The column 'quantity' become very small and cut off most of the number. How do I make it bigger? I have been trying to modify it for quiet a while now. Nothing seems to work. I think it's length is preset base on the column lenth in the table! If that's the case how do I make it wider?
        Also the default layout for user query are pretty weired. I think it's dynamically allocating spaces depends on number of column. But what happens when you do functions such as sum, avg..etc. There is no present length. So they just disregard it?
      Any help will be appreciated.. Thank You
    Sincerely Yours
    Bo Peng

    Hi Bo,
    I am asuming that u are not yet familiar with how to work with PLD (Print Layout Designer). I would suggest that u see some tutorials from the following link and then try to change that default layout according to ur own requirements
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/51c19891-0901-0010-6eb1-e71abf09298a
    Reagrds
    Rizwan Hafeez
    Team Lead
    SAP Addon Development Section
    Abacus Consulting - Pakistan

  • Problem to set the custom layout as the default layout in std. transaction

    Hi all,
    I want to change the standard layout that is displayed in a standard transaction (EL31) as default. I want few more fields of the structure also to be displayed in the default layout of the standard transaction. I have made a custom layout that i want to be displayed but cant make that layout as the default layout for all users. Please suggest me some way to make the custom layout as the default layout for a standard transaction.

  • Help needed with Layout problem

    Hello everybody
    I need to insert components such as buttons in a JPanel using absolute positioning
    I still cant dot this
    even if I used the method setLocation for the component
    I wanna know if I have to change the default layout for JPanel or whatever
    thanks a lot

    i found this quite useful:
    http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html#border
    dont know if it will specifically help with your absolute positioning problem.

  • REUSE_ALV_GRID_DISPLAY layout problem

    Hi All,
    I have a report which can output two different ALV grid depending upon the option selected on selection screen.
    For example say I have selection screen with option button for Vendor report and Customer report. When user select Vendor report option button then content of KNA1 is displayed in ALV grid, similarly when user select Vendor report option button then content of LFA1 is displayed.
    Now when I save a layout on Vendor report, that layout is also visible on Customer report and vice versa. Both of these report share same set of layouts.
    Is there any method so that both of these report have there own set of layouts?
    The problem which I am facing is I have save a layout on Vendor report to display column LFA1-LIFNR only and this layout is DEFAULT layout. Now when I run report for Customer report (customer option button selected) it shows me only on column KNA1-LIFNR. Actually it select the layout which is saved with Vendor report.
    Is there any solution? Thanks in advance...
    Vendor
    Ceus

    hii
    check this out
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME.
    SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.
    PARAMETERS: P_VBTYP LIKE VBAK-VBTYP DEFAULT 'C'.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME.
    PARAMETERS: LIST RADIOBUTTON GROUP G1,
                GRID RADIOBUTTON GROUP G1.
    SELECTION-SCREEN END OF BLOCK B2.
    FORM CHECK_OPTION.
      WA_EVENTS-NAME = 'TOP_OF_PAGE'.
      WA_EVENTS-FORM = 'TOP'.
      APPEND WA_EVENTS TO IT_EVENTS.
      CLEAR WA_EVENTS.
      WA_EVENTS-NAME = 'END_OF_LIST'.
      WA_EVENTS-FORM = 'END_LIST'.
      APPEND WA_EVENTS TO IT_EVENTS.
      CLEAR WA_EVENTS.
      IF LIST = 'X'.
        PERFORM LIST_DISP.
      ENDIF.
      IF GRID = 'X'.
        PERFORM GRID_DISP.
      ENDIF.
    ENDFORM.         
    FORM CHECK_OPTION.
      WA_EVENTS-NAME = 'TOP_OF_PAGE'.
      WA_EVENTS-FORM = 'TOP'.
      APPEND WA_EVENTS TO IT_EVENTS.
      CLEAR WA_EVENTS.
      WA_EVENTS-NAME = 'END_OF_LIST'.
      WA_EVENTS-FORM = 'END_LIST'.
      APPEND WA_EVENTS TO IT_EVENTS.
      CLEAR WA_EVENTS.
      IF LIST = 'X'.
        PERFORM LIST_DISP.
      ENDIF.
      IF GRID = 'X'.
        PERFORM GRID_DISP.
      ENDIF.
    ENDFORM.   
    hope this helps
    Thanks&Regards
    Naresh

  • Urgent: Layout problem in "light inner page"

    Hi Experts,
    I am facing a problem in portal content area on external facing portal. I see a vertical scroll bar which restricts application from being displayed on entire screen.
    I am getting this problem after a patching of EP 7.0, before patching every thing was running fine.
    To me it looks like a layout problem in "light inner page", When I use "Light - 1: column (Full width)" layout I get a vertical scroll bar on portal. When I use default layout then this vertical scroll bar disappears but I see an empty navigation bar on left side which is not required.
    Can some one advise a solution for this.
    -Lave

    hi,
    Similar problem in this thread. check it out
    Desktop inner page lost
    Regardss,
    Ganesh N

  • Unable to set default layout variant in POWL

    Hi Experts
    We have performed below activity in POWL_QUERY to assign default layout variant.
      1.  Choose Layout variant.
      2.  A browser window for the POWL_MASTER_QUERY appears.
      3.  Change the sap-config-mode from "X" to "config" within the URL.
      4.  Now you can define your layout variant and save your changes.
      5.  Log on to the Customizing client and start transaction POWL_QUERY.
      6.  Assign your created layout variant in the Layout selection field.
    But Still I am not able to see selected layout.
    I am using NWBC 4.0 and  NW - 7.02.
    Please advice.
    Regards,
    Yogesh

    Hi!
              We have same problem!
             The layout can be selected in application, but it is not taken as default.
         We appreciate your feedback
    Best Regards.
    Angelica

  • Alv layout problem ?

    Hi everyone,
    I generating 2 alv reports within a program.In the selection screen there are 2 radio buttons for different alv reports. First i selected the 1st radio button and executed the prog to get a alv report.Then i went to change layout and selected the required columns from the columns set and then saved the layout as the default layout.
    Then I came back to the selection screen again.In the selection screen, in the parameter p_var there is default variant,so i cleared the parameter with no layout variant selected.then i selected the 2nd radio button and executed the program.Here the program is again taking the default layout (even though i cleared it in the selection screen )and generating the alv report according to that.But i don't want to use the default layout when i select the 2nd radio button,unless i select it from the variant list.How can i do that?
    Any suggestions please?

    Hi Hymavathi,
    Thanks for the reply.Below is my code for the layout.If u can see any problem in the code please tell me the changes.Thank you.
    PARAMETERS: P_VAR LIKE DISVARIANT-VARIANT.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VAR.
      PERFORM GET_VARIANT CHANGING P_VAR.               " ALV Layout
    FORM GET_VARIANT CHANGING X_VAR.
      PERFORM F4_ALV_LAYOUT(PPIO_ENTRY) USING I_GRID-PROGRAM
                                     CHANGING X_VAR.
    ENDFORM.
    perform alv_display.
    FORM ALV_DISPLAY.
      DATA: I_GRID-LAYOUT TYPE SLIS_LAYOUT_ALV.
      SORT I_HEADER BY PLNBEZ AUFNR.
    Define layout.
      CLEAR I_GRID-LAYOUT.
      I_GRID-LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    Set up Variant
      I_GRID-VARIANT-VARIANT = P_VAR.     " Variant
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM             = I_GRID-PROGRAM
        IS_LAYOUT                      = I_GRID-LAYOUT
        IT_FIELDCAT                    = I_GRID-FIELDCAT
        I_SAVE                         = 'A'
        IS_VARIANT                     = I_GRID-VARIANT
      TABLES
         T_OUTTAB                      = I_HEADER
       EXCEPTIONS
        PROGRAM_ERROR                  = 1
        OTHERS                         = 2.
    ALV Failed.
      IF SY-SUBRC <> 0.
        WRITE: / 'Failed with',SY-SUBRC.
      ENDIF.
    ENDFORM.
    PERFORM ALV_DISPLAY_2.
    FORM ALV_DISPLAY_2.
      DATA: I_GRID-LAYOUT TYPE SLIS_LAYOUT_ALV.
      SORT I_HEADER BY PLNBEZ AUFNR.
    Define layout.
      CLEAR I_GRID-LAYOUT.
      I_GRID-LAYOUT-COLWIDTH_OPTIMIZE = 'X'.
    Set up Variant
    I_GRID-VARIANT-VARIANT = P_VAR.     " Variant
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM             = I_GRID-PROGRAM
        I_CALLBACK_PF_STATUS_SET       = I_GRID-PF_STATUS_SET
        I_CALLBACK_USER_COMMAND        = I_GRID-USER_COMMAND
        IS_LAYOUT                      = i_grid-layout
        IT_FIELDCAT                    = I_GRID-FIELDCAT
       I_SAVE                         = 'A'
       IS_VARIANT                     = I_GRID-VARIANT
       TABLES
         T_OUTTAB                      = I_HEADER
       EXCEPTIONS
        PROGRAM_ERROR                  = 1
        OTHERS                         = 2.
    ALV Failed.
      IF SY-SUBRC <> 0.
        WRITE: / 'Failed with',SY-SUBRC.
      ENDIF.
    ENDFORM.                    " ALV_DISPLAY_2

  • Keyboard layout problem

    My wife has an old iBook running Mac OS X Tiger and it's been working just fine. Never any trouble at all with this sturdy old thing but today, for some odd reason, the keyboard layout got messed up out of nowhere. We're Swedish and need the Swedish layout ( åäö ) but it suddenly stopped working. The layout has changed and the @-character is now accessible while pressing Shift+2 instead of Alt+2. I have no idea why this happened and I have no clue as to how to change/restore the default layout. I've looked around in the International preference pane but nothing I did there changed a thing. Anyone else bumped into this particular problem?

    Forget this question, I found out what was wrong. My father-in-law ( who isn't too good at computers ) changed the layout by mistake by clicking the little flag and so switched the layout from Swedish Pro to US English. Problem solved.

  • Design/Layout Problem in OOTB SP "Docs I'm following" page

    Hello
    The "Docs I'm following" My Sites page in SP 2013 has the following layout problem:
    Long document titles overlap with other elements (see also screenshot).
    Note: This is default SP, i.e. we have not deployed any custom branding.
    I guess this is a problem which can easily be corrected even without having to wait for a SP update. Since I'm not very good with design changes I would be grateful if you could provide
    us with a quick fix, e.g. an updated css file.
    Thanks a lot.
    Best regards
    John

    Hi  ,
    For your issue, you can add the following code into your MySite MasterPage:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    $(".ms-contentFollowing-itemTitle a").each(function(i){
    $(this).text(shorten($(this).text(),32));
    function shorten(text,maxLength) {
    var ret = text;
    if (ret.length > maxLength) {
    ret = ret.substr(0,maxLength-3) + "...";
    return ret;
    </script>
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • How to change the default Layout Of the Error Page (to hide Home link)?

    How to change the default Layout Of the Error Page (to hide Home link)?
    If a user want to view some page that he/she don't have access to view it, a error page with this message will be displayed.
    "You do not have permission to perform this operation. (WWC-44131)"
    The error page, have in the Upper right page, Home link and Help link.
    My question is, How to Hide HOME link and HELP link in the Page?
    I try to find the template of the page, but failed to do that.
    Can anybody help?..it urgent.
    Thanks.

    Modifying the error page is not supported in the current release of Portal (9.0.2). You will be able to do this in the upcoming 9.0.2.6 release, planned for the end of May.
    Regards,
    Jerry
    PortalPM

  • Glitches in address fill-ins with nicknames; default font problem; plus other glitches in Thunderbird 31.3.0 and 31.4.0; can I roll back to an earlier version?

    I am unhappy with the recent upgrade to Thunderbird 31.3.0 and now 31.4.0. My bottom line question is whether I can roll back to the previous version, which was working well for me.
    The problems I have encountered include:
    1. I used to be able to enter a single letter in many cases in the address field, and the autocomplete would fill in the entry that I always use with that single letter. That function has been lost, as has auto fill-in based on the nicknames I have entered in my Address Book. I see there is another thread on this problem (https://support.mozilla.org/en-US/questions/1036962), but no satisfactory answer so far. Entering a single letter now pulls up completely unrelated address entries that may not even have that letter as part of the name, address or nickname for that unrelated address. I have created new nicknames to try to adapt to this problem, but even these new nicknames no longer work with the 31.4.0 upgrade yesterday, forcing me to create yet more complex and hard-to-remember nicknames to pull up my frequent addressees. This is all very frustrating to me, as I depend on speed and ease when creating messages.
    2. Also, I used to be able to enter a single letter in the address field and then use the mouse to click on the "To:" symbol to the left of the next address line to change the next entry to "Cc:"; doing so would then cause the complete address to fill in in the "To:" address field, and make the next field ready for an entry. That no longer works. If I use that technique, the shortcut that I entered in the first field gets included along with the address (if I'm lucky enough to have the address itself selected now, given the problems I've mentioned above). I now have to press "Enter" in order to get the address in the first field to "take" correctly, and then have to click on the "To:" symbol for the next line as a separate action. Just another inconvenience with the new version.
    3. While still on the subject of addresses, personally I see no reason why the address and subject fields should now be colored blue by default rather than appearing as blank, white fields. I far prefer the old look. And I suspect that changing from the blue color to a nice, clean, white field takes time and computer resources that slow things down.
    4. The default font (Times in my case) no longer "takes" when replying to or forwarding messages. I've checked Tools/Options/Composition, and Times is still shown as my default font. However, when I start to type (in a reply with the original message quoted or in a forwarded message), the result is "Variable Width". In order to get Times, I need to highlight the block of text after typing, including the lead-in to the quoted message or the header of the forwarded message, and select "Times" when "(mixed)" shows up. This is a big pain; I often forget to do so and end up having to edit the Unsent Message (which I check before sending) as New and correct the font.
    5. A minor problem: I rely on the reminder to attach a message which shows up when an "attachment-related" word is entered in the body of the message. It has been a wonderful feature of Thunderbird that has prevented me on many occasions from sending off messages without the attachments. However, in the new versions, even if I have indeed added the attachment, a pop-up comes up on sending the message saying there has been no attachment and asking if I want to add one. It's easy enough to just click "No", but it's yet one more unnecessary and distracting step that this new version is requiring of the user.
    I'm really sad to see these various changes/glitches. I love Thunderbird and it bothers me deeply to find myself mired in so many new problems that slow down my work. I would be grateful for any suggestions and advice, and, particularly, for any information as whether I can roll back to the version prior to 31.3.0 that was working well for me.

    Thank you, Zenos. I tried rolling back to v31.2.0, since I had not encountered problems prior to December. However, that didn't help. So I followed your valuable suggestion to revert to v24.6; that seems to have done the trick.
    I would like to mark this problem as "Solved" -- the rollback seems to have worked. However, since my original post was a complex mix of things, before I do that, should I post the individual problem sets that I had noted (address fields/nicknames problems -- numbers 1-3; default font problem -- number 4; attachment reminder problem -- number 5) as separate issues which have not been solved?
    Do you know if these various issues are being worked on? I'm glad to have the temporary fix of rolling back to an earlier version, but I'd like to get back on the current update schedule at some point if and when these problems have been corrected.
    Thank you again!

  • Default Layout for a report running in background

    Dear Friends,
    I have created a layout for report ME2L and set as default layout  (for every user)....
    Foreground execution picked the DEFAULT layout but when am trying to execute the same report in background, default layout is not picked but the STANDARD layout is shown in the spool
    Could you please suggest me how can i use same report layout for foreground as well as background
    Thanks in Advance
    Ana

    Atanu dey,
    If you wnat to download excel in back ground
    You have to download in application server only.
    EX:
    DATA :  v_filepath(80)     VALUE '/data/sapdata/inc/error_log/pme_br/',
      c_coma     VALUE ',' .
    OPEN DATASET v_filepath FOR OUTPUT IN TEXT MODE.
        IF sy-subrc EQ 0.
         LOOP AT i_errors_bat.
         CONCATENATE i_errors_bat-plant c_coma
                                 i_errors_bat-zzvendor c_coma
                           INTO v_string.
            TRANSFER v_string TO v_filepath.
          ENDLOOP.
       CLOSE DATASET v_filepath.
    Note : you can download in presentation server also.
    but it requires lot of authorizations and have to use
    FTP commands.
    Reason is Apllication server in back ground has to
    recognize the from which system request came.
    Better go for OPEN DATA sets.
    Don't forget to reward if useful.....

  • Set Default Layout in Reports in a Single Screen

    Hi,
    We have a report, with one screen. But is is divided into 2 parts. The upper report is showing different data compared to the data shown in the lower report.
    We have used OO to display the output. However, when choosing the default layout for each of the section, since it is contained in a single screen, it will only retrieve one default layout for both report. Is it possible to set a default layout, each for the two sections of the report?
    Thanks,
    Louisse

    Hi
    If you're using ALV OO, you can manage several variants in the same report, that means a specific variant for every grid.
    It needs to set a different value (for every grid) in the field IS_VARIANT-HANDLE (IS_VARIANT is a parameter of method SET_TABLE_FOR_FIRST_DISPLAY, structurated like DISVARIANT).
      data: lt_varuant1 type disvariant.
      data: lt_varuant2 type disvariant.
      lt_varuant1-report   = sy-repid.
      lt_varuant1-username = sy-uname.
      lt_varuant1-handle   = 'ALV1'.
      CALL METHOD grid_1->set_table_for_first_display
        EXPORTING
          IS_VARIANT = lt_variant1
      lt_varuant2-report   = sy-repid.
      lt_varuant2-username = sy-uname.
      lt_varuant2-handle   = 'ALV2'.
      CALL METHOD grid_2->set_table_for_first_display
        EXPORTING
          IS_VARIANT = lt_variant2
    Max

  • Wrong default layout for a new customer

    Hi all,
    I hope somebody can share inputs with regards to this issue.
    I'm assigning a default layout to one customer group (layout1 for all Group1).  When this was done, a list of customer codes were included in the list and each were ticked from that list.
    Second layout called layout2 for the setting 'Set &as Default for all BPs (for Whom a Default Layout Has Not Been Assigned).
    Scenario:  A new customer code is created belonging to Group1.
    Issues: 
                a.  This new customer code does not automatically follow the setting on default layout which is layout1.  When the layout1 default setting was double  
                     checked, the new customer code was part of the list, but it was not ticked. 
                b.  When document was previewed, it uses the wrong layout2.
                c.   The user still has to update the layout1 default setting, ticking the tick box from the list for the new customer code, then clicking update in then
                      layout designer window.
    Question:  Is this a normal behaviour of the system?  I thought that setting it as default for certain customer group will be applicable even to newly created ones under that group.
    Regards,
    Cathy

    Hi,
    I am afraid that it is your SAP B1 version current behavior but you may check using demo database. What is your SAP B1 version anyway ? what is your database localization ?
    You may try the solution part from one of these notes below:
    993486  - 'Set as Default for All BPs' doesn't affect specific BP
    Version   5   Validity: 21.01.2011 - active
    Language   English (Master)
    Portuguese 
    Content:      Summary    |    Header Data    |    References    |    Validity 
    Symptom
    Specific printing template for Business Partner can not be changed in attempt to define printing template as a default template for all Business Partners.
      Cause
    Functionality description
      Solution
    In order to change a specific default printing template for Business Partner follow the steps below:
    1. Choose the required template and press on the 'Set as Default' button.
    2. Choose the 'Set as Default for Specified BP' and 'Set as Default for Current User' option.
    3. Uncheck the box near the BP name and press on the 'Update' button.
    4. Choose the required default template (new template) and press on the 'Set as Default' button.
    5. Choose the 'Set as Default for all BP' option.
      Other terms
    Print Layout Designer, Default Template, Set as Default for All Users,
    Set as Default for Current User, Set as Default for All BPs, Set as Default for Specific BP
            Header Data
    Released On
    24.02.2011 20:52:30   
    Release Status
    Released for Customer   
    Component
    SBO-GEN-PLD Print Layout Designer  
    Other Components
    SBO-SH-PLD-A2 Tips and tricks for building PLD templates
    Priority
      Recommendations/additional info   
    Category
      Consulting   
           References
    This document refers to:  SAP Business One Notes
    861088
    Cannot set a template as default for all users
    This document is referenced by:   SAP Business One Notes (1) 
      861088
      Cannot set a template as default for all users
           Validity
    Software Component
    Version
    SAP BUSINESS ONE
    2005 A
    2005 A SP01
    2005 B
    2007 A
    2007 B
    8.8
    2nd note:
      861088  - Cannot set a template as default for all users
    Version   4   Validity: 04.08.2009 - active
    Language   English 
    Content:      Summary    |    Header Data    |    References    |    Validity 
    Symptom
    When print previewing,the template used is not default template.
      Cause
    A template has been defined as default for all users, when previewing this it is not the template which has been set as default for document.
      Solution
    In order to change to a different default template for all users and all business partners please do the following:
    a) "Set as default for specified Business Partner" and "set as default for current user"
    b) Add tick for this Business Partner
    c) Update by ticking again the specific Business Partner
    d) Change set as default for all users and all Business Partner's
      Other terms
    Print Layout Designer, Default Template, All users, Set as Default template, SAP Business One
            Header Data
    Released On
    04.08.2009 11:28:58   
    Release Status
    Released for Customer   
    Component
    SBO-GEN-PLD Print Layout Designer  
    Other Components
    SBO-SH-PLD-A1 Print Layout Designer known Issues
    Priority
      Recommendations/additional info   
    Category
      Consulting   
           References
    This document refers to:  SAP Business One Notes
    993486
    'Set as Default for All BPs' doesn't affect specific BP
    This document is referenced by:   SAP Business One Notes (1) 
      993486
      'Set as Default for All BPs' doesn't affect specific BP
           Validity
    Software Component
    Version
    SAP BUSINESS ONE
    2004 A
    2005 A
    2005 A SP01
    2005 B
    2007 A
    2007 B
    JM

Maybe you are looking for

  • Changed countries, but I still can't music and videos from iTunes. Help!

    I moved from Jamaica to Canada. I changed all of the account information and added a new credit card. My problem now is that iTunes itself won't update on my iPad. I don't have the option to purchase music or videos. I can still only access Podcasts

  • Why is my 3D menu greyed out? (Photoshop CC)

    Sorry if I'm asking this in the wrong place, first time I attempt using these forums! I have recently installed Photoshop CC, and I'm experiencing that the 3D menu is all greyed out - I remember using it without problems in CS5. System Info Adobe Pho

  • Wrong description of Material in Sales order

    hi when i enter a material in items area in sales order the description is comming wrong for FI languae. can any one help me in this regard.

  • CFMX 7 CFFORM Validation doesn't work in 7.0.1

    We have code that's been running under CF5 and CF6.1 just fine, but when we moved it to CF7 all of the cfform validation stopped working (standard cfform w/ no additional custom javascript, just cfinput tags w/ required attributes). We updated the se

  • Oracle Forms 11

    When Oracle Forms 11 ?