Change ALV variant different between systems

Hello,
I have a program that creates an ALV grid.  In our QAS system, I have access to select, change, save & manage layouts.  The exact same program in PRD only allows change layout.  Is there an authorization object that controls how ALV grids can be controlled? 
Thanks in advance.
Maggie

I have two things in the program:
CALL METHOD grid1->set_table_for_first_display
         EXPORTING i_structure_name = 'ZVIOLATIONREPORT'
                    i_buffer_active = 'X'
                          is_layout = gs_layout
                         is_variant = gs_variant
                             i_save = 'A'
             IT_TOOLBAR_EXCLUDING = functions
         CHANGING  it_outtab        = i_vbak_outtab
                    it_fieldcatalog = it_fieldcatalog.     
AND
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
        it_fieldcat = i_fieldcat
        is_variant  = i_variant
        i_save      = 'U'
      TABLES
        t_outtab    = i_order.
Neither is a variable so why would the program react differently between the two systems?
Thanks.
Maggie

Similar Messages

  • Copying ALV variants/layouts between programs

    Hi guys,
    Does anyone know how to copy ALV layouts between programs in the same client?  I have created a copy of a report which uses the ALV functionality via the REUSE_* function modules.  The original report has over 40 layouts, so I don't want to have to re-create them manually in the new program.  These programs are in the same client on the  same system, so the Import Layout and Transport Layout options aren't going to be of any use (as far as I can see...)
    Any ideas greatly appreciated.
    Cheers,
    Andrew

    I took this approach and it worked for me:
    1) Change your program so that everytime an ALV function is called it is using the original program name in the variant declaration, ensure you keep the original code commented out, you will need to put it back later. Examples:
    FORM variant_init USING varname TYPE slis_vari.
    CLEAR g_variant.
    g_variant-report = g_repid.
    g_variant-report = 'ORIGINAL_PROGRAM_NAME'.
    FORM f4_for_variant.
    g_variant-report = sy-repid.
    g_variant-report = ‘ORIGINAL_PROGRAM_NAME’.
    CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
    FORM check_variant.
    IF NOT p_vari IS INITIAL.
    g_variant-report = sy-repid.
    g_variant-report = ‘ORIGINAL_PROGRAM_NAME’.
    g_variant-variant = p_vari.
    CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
    2) Display function lt_variant_save via SE37, set a breakpoint at the first executable line:
    perform variant_save tables it_fieldcat
    4) Run your program with the layout variant you wish to copy.
    5) Hit Save Variant. You are now in debug mode.
    6) Enter variable CS_VARIANT-REPORT in the variables 1 panel.
    7) Double-click on CS_VARIANT-REPORT.
    8) Hit the Change Field Content button
    9) Change the value to the name of your new program, then hit Enter.
    10) Hit Execute (F8). You have now saved the variant under your new program name.
    11) Exit and rerun your program as necessary for as many variants as you want to copy
    12) Change your program back to using sy-repid (or whatever else it was referencing) wherever you changed it in step 1.
    13) The variants have now been copied and you can run your program with the new variants.

  • What is the different  between System.out.println and out.print

    we move a project , jsp form to servlet to mysql db
    suddenly we get Chinese input problem
    on meantime only Thing I know is
    if( chineseName!=null) {
                           chineseName= new String( chineseName.getBytes("ISO-8859-1"),"UTF-8");
                         out.print(chineseName); //display Chinese
                          System.out.println("Hello1"+chineseName ); // display unread symbol
                 }I don't know why when we insert the value into db by StudentInsert(university_ID, surName, english_Name, chineseName, Address)
    the db get the value from System.out.println
    what setting decide my out put through System.out.println

    Thank you for the reply!
    after two days of search and guess.... I found out
    for Web application , which under glassfish , you need to put your jsp page under WEB-INF,
    other wise the server jsp turn your Chinese character that come from jsp request form to UTF8 symbol.
    not ideal how to change the configuration in glassfish yet!

  • Changing to a different operating system was rejected by Adobe (...there is no option available to swap the platform from windows to MAC). Is there any solution?

    Although this possibility still existed and Adobe here (Order product | Platform, language swap) states that one can. Was rejected. Any advice?

    Platform swaps are limited to the most recent released version only.

  • Last changed date different between two systems after transport

    Hi, first of all, I am not from basis background and just want to make sure whether is this something correct or not.
    I found that the "Last changed date" and "username" are not same between the original system and the target system. Is this something configurable?
    And the "username" field is totally empty. However, the program code's version is identical in both systems.

    I think I misunderstood your question.  You are referring to the system Transports not the connections between systems.  If the Transports are not transferring all the contents, you really should talk to your basis folks and tell them which items are not being reproduced correctly.
    Regards,
    Mike

  • FB60 screen change layout different between DEV and PRD

    Hi,
    I'm having problem with transaction FB60. When i try to change the layout in PRD, in screen Edit System Setting, some of the field showing 0 length. For example in WBS element field, in DEV show length 24 but PRD show length 0. I try to compare the version but it is same (program & table structure - ACGL_ITEM). When I debug the program, found out that it will get the structure from sap internal c program call 'AB_GET_CX_DATA'. So, maybe this program version are different between DEV and PRD.
    Anybody knows what is the cause of this problem? Or maybe somebody can tell me how to check sap internal c program.
    Thank you very much.

    Yes. FB60 is Enter Vendor Invoice. In this screen you can see a table with column such as GL Acct, Debit/Credit, Amount in DC, Cost Center and others. You can add or remove some of the field using Table Setting and create Screen Variant. My problem is, the length of WBS Element and Profit Center field is 0. How to change the length.
    I already searched in forum but I only found how to create screen variant.
    Thanks.

  • What is the button to change the variant in alv?

    Hi guys,
              can u tell me  is there any button to change the variant in alv?. what is tanscation varient in report , hw it will used.

    Hi
    The ALV Grid Control is a tool with which you can output non-hierarchical lists in a
    standardized format. The list data is displayed as a table on the screen.
    The ALV Grid Control offers a range of interactive standard list functions that users need
    frequently (find, sort, filter, calculate totals and subtotals, print, print preview, send list,
    export list (in different formats), and so on. These functions are implemented in the
    proxy object class. You as the programmer have the possibility to turn off functions not
    needed. In most cases the implementations of the standard functions provided by the
    control are sufficient. However, if required, you can adjust these implementations to
    meet application-specific needs.
    You can add self-defined functions to the toolbar, if necessary.
    The ALV Grid Control allows users to adjust the layout of lists to meet their individual
    requirements (for example, they can swap columns, hide columns, set filters for the
    data to be displayed, calculate totals, and so on). The settings (list customizing) made
    by a specific user are called a display variant. Display variants can be saved on a userspecific
    or on a global basis. If such display variants exist for a list, they can be offered
    to the user for selection. If a display variant is set as the default variant, the associated
    list is always displayed based on the settings of this variant.
    <b>2. REUSE_ALV_LIST_DISPLAY
    REUSE_ALV_GRID_DISPLAY
    REUSE_ALV_FIELDCATALOG_MERGE
    REUSE_ALV_COMMENTARY_WRITE</b>
    3. Use of Field Catalog is to determines the technical properties & add formating information of the column.
    6. all the definition of internal table, structure, constants are declared in a type-pool called SLIS.
    7.fieldcat-fieldname
    fieldcat-ref_fieldname
    fieldcat-tabname
    fieldcat-seltext_m
    5. Form user_command using r_ucomm like sy-ucomm rs_selfield type slis_selfield.
    Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
    In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
    The report output can contain up to 90 columns in the display with the wide array of display options.
    The commonly used ALV functions used for this purpose are;
    <b>1. REUSE_ALV_VARIANT_DEFAULT_GET
    2. REUSE_ALV_VARIANT_F4
    3. REUSE_ALV_VARIANT_EXISTENCE
    4. REUSE_ALV_EVENTS_GET
    5. REUSE_ALV_COMMENTARY_WRITE
    6. REUSE_ALV_FIELDCATALOG_MERGE
    7. REUSE_ALV_LIST_DISPLAY
    8. REUSE_ALV_GRID_DISPLAY
    9. REUSE_ALV_POPUP_TO_SELECT</b>
    Purpose of the above Functions are differ not all the functions are required in all the ALV Report.
    But either no.7 or No.8 is there in the Program.
    How you call this function in your report?
    After completion of all the data fetching from the database and append this data into an Internal Table. say I_ITAB.
    Then use follwing function module.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = 'Prog.name'
    I_STRUCTURE_NAME = 'I_ITAB'
    I_DEFAULT = 'X'
    I_SAVE = 'A'
    TABLES
    T_OUTTAB = I_ITAB.
    IF SY-SUBRC <> 0.
    WRITE: 'SY-SUBRC: ', SY-SUBRC .
    ENDIF.
    ENDFORM. " GET_FINAL_DATA
    The object F_IT_ALV has a field, the activity ACTVT, which can
    contain four permitted values: 01, 02, 03 and 70. Each of the
    activities 01, 02 and 70 controls the availability of particular
    functions (in the menu and the toolbar) of the ALV line item list:
    a) 01: "Settings -> Display variant -> Save..."
    b) 02: "Settings -> Display variant -> Current..." and
    "Settings -> Display variant -> Current header rows "
    c) 70: "Settings -> Display variant -> Administration..."
    Activity 03 corresponds to the minimum authorization, which is the
    most restricted one: The user can only select layouts which have
    been configured already. In particular, all of the other functions
    named above are inactive with activity 03.
    Now if you want to permit a user to change the column selection and
    the headers as well as to save the layout thus created, for example,
    but if you do not want to permit the user to administrate the
    layouts, you grant him or her the authorization for activities 01
    and 02.
    Check this link it will be mosty usefull for u
    http://www.sap-img.com/fu017.htm
    Reward all helpfull answers
    Regards
    Pavan

  • Massive copy of BW transformation between different source system

    Hi all,
    in my BW I have different source systems. I have mapped several objects to one source system.
    Now I need to copy all the transformation to other source systems. These source system are different instance of ECCs, there are the same extractor in all the systems.
    I can't use the BDLS becouse these move the transformations between the system not copy it.
    I try to create a Transport and using the Conversion of Logical System Names but this change only the objects with source sytems dependencies, it don't change the technical name of transformation, and do not create a tranformation to the new system but overwrite the existing one.
    Do you know if there are some program or some procedure to copy transformation between sourcesystem in BW?
    Thanks in advance
    Mario

    Hi,
    you can do a Retrofit (System copy), Generally, retrofit happens between two different BW systems.
    check with your basis team if the retrofit is possible with in the same BW system but for different clients.
    Note : System copy will overwrite all the objects.
    Regards,
    Sudheer

  • What's different between busniess system and technical system in SLD?

    I can enter product(ect.ERP r/3) , components(ect.FI-CO module) to technical system , then enter technical system to busniess system  but ,who can explain  what's different between busniess system and technical system in SLD, exactly?
    THANKS!

    Technical Systems are of following types:
    Technical systems are application systems that are installed in your system landscape. An example of an application system is a Customer Relationship Management (CRM) server. In the SLD, there are five types of technical systems:
    1.)WEBas java,
    2.)Standalone JAVA
    3.)Third party
    4.)Web as ABAP
    1) Web AS Java
    Web AS Java systems consist of one or more instances and each instance is installed on a separate host. An instance itself consists of cluster nodes that can communicate with each other.
    2.)Standalone Java
    Standalone Java technical systems are standalone Java applications that are installed in a computer system from an administration perspective. They can also be installed as an operating system service or as a daemon
    Web AS java belongs to the NetWeaver Comes with both ABAP and Java, Standalone instread comes separate from the netWeaver.
    3) Third party technical sytem
    It can be any of the technical sytem. let us say if you want to send a file to R/3, here the file reside in your local system. for that you can define your local system as a third party technical system.
    All those machines that comes under non sap, belongs to the third party.
    4.) Web AS ABAP technical systems, ranging from any SAP system to an APO server or CRM server, are based on the same Basis Component (BC), which includes the ABAP interpreter, ABAP Dictionary, ABAP Workbench, and so on. A dedicated database, which stores most of the data of the BC and the application components, is associated with the system.
    Also refer : http://help.sap.com/saphelp_nw70/helpdata/en/24/8fa93e08503614e10000000a114084/content.htm
    Business systems are logical systems, which function as senders or receivers within XI. Business systems can be SAP systems or third-party systems.
    Depending on the associated technical system, the following types of business systems are defined in the SLD:
    · Web AS ABAP
    A business system, which is associated with a Web AS ABAP.
    A business system, which is associated with a Web AS ABAP, can play the role either of an application system or an integration server. An integration server is the central component of XI, which provides a framework for the exchange of information among various internal and external entities of a company. The integration server facilitates the interaction between the different operating systems and applications across internal and external networks.
    · Web AS Java
    A business system, which is associated with a Web AS Java.
    · Standalone
    A business system, which is associated with a standalone Java application.
    · Third-party
    A business system, which is associated with a third-party technical system.
    http://help.sap.com/saphelp_nw70/helpdata/en/24/8fa93e08503614e10000000a114084/frameset.htm

  • Relation between JVM and different operating system

    What is different between operating system and jvm ?
    how JVM differ from operating system?

    What is different between operating system and jvm ?
    how JVM differ from operating system?That's a really strange question to ask,
    because surely you see the difference
    when you load them.
    For example, most machines run Windows.
    And you then tell Windows to load JVM.
    And you then tell JVM to load a Java program.
    It's like this:
    Hardware -> OS -> JVM -> Java programs
    You can't run any Java programs without first loading a JVM.
    And currently, there are no (popular/successful) JVM that can run without an OS.

  • Switching between ALV variants

    Hi Experts
    Is there any way to switch between the variants of an ALV without using the std dropdown available in alv header.
    I have a requirement to navigate to various views depending on the current ALV variant selected by the user in my application.
    Thanks and Regards
    Karthick

    Hi Experts
    Is there any way to switch between the variants of an ALV without using the std dropdown available in alv header.
    I have a requirement to navigate to various views depending on the current ALV variant selected by the user in my application.
    Thanks and Regards
    Karthick

  • How to changes Object in different system

    Hi All,
    All BW objects are owned by BWQ i want to make all the object are owned to BWD(Bcoz this is copied system). Is there any transaction i have to use.. please help me guyz.
    Thanks
    DST

    Go to SE03, specify the object and change its directory entry (original system) to BWD and then it should be ok.

  • Can i do client export import between systems with different patch levels

    we want to do a client export import between two systems. As I understand the patch levels should be the same in both for this to happen..
    But right now I am in a situation where time is a big constrant. The basis patch level is on par. But the rest are not. Can I do  client import successfully at this stage.

    The only thing that may stop it working could be additional functionality between the systems.
    I work on XI and there is a huge difference between SP12 and SP15.  We were able to do the transports between systems, but as Dev was patched before QA, and the transport was reliant on standard settings not being available, it still went though, but we had to transport it again after applying SP15 to QA.
    Again, it probably depends on what System you have running on Netweaver...

  • ALV Variant chosen in grid

    Hi.
    I have to following issue.
    I have a program that through the use of additional buttons I added to my ALV grid can jump between different ALV grids.
    The problem I'm having is that when you change the variant for ALV grid1 while viewing it and than change to grid 2, when you go back to grid1 the selected variant isn't used anymore.
    So what I need is a way see check which variant is active when I get to the USER_COMMAND function of the ALV grid.
    If someone has the answer to this I'd be very happy.
    Regards,
    Arthur

    A. Parisius,
    Do the following step so that you cant loose variant u set when u come to primary alv from secondary ALV.
    1.
    When you export I_SAVE = 'X' or 'A'  through REUSE_ALV_GEID_DISPLAY, you can save variant on ALV output.you can save different variants for one output.
    2.
    Define one parameter to select variant on selection-screen itself instead of selecting on Output.
    parameters :p_layout like disvariant-variant.
    3.
    F4 help to get variants set for the report.
    at selection-screen on value-request for p_layout.
      perform get_variant.
    subroutine code and define w_variant structure type disvariant.
    *&      Form  get_variant
    form get_variant.
      data: lw_variant type disvariant,
              l_exit     type char1.
      lw_variant-report = sy-repid.
      call function 'REUSE_ALV_VARIANT_F4'
           exporting
                is_variant = lw_variant
                i_save     = 'A'
           importing
                e_exit     = l_exit
                es_variant = lw_variant
           exceptions
                not_found  = 2.
      if sy-subrc = 2.
        message id sy-msgid type 'S' number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      else.
        if l_exit eq space.
          p_layout = lw_variant-variant.
          if not p_layout is initial.
            perform get_w_variant.
          endif.
        endif.
      endif.
    endform.                    " get_variant
    *&      Form  get_w_variant
    form get_w_variant.
      w_variant-report      = sy-repid.
      w_variant-handle      = space.
      w_variant-log_group   = space.
      w_variant-username    = space.
      w_variant-variant     = p_layout.
      w_variant-text        = space.
      w_variant-dependvars  = space.
    endform.                    " get_w_variant
    4.
    Pass w_variant structure through REUSE_ALV_GRID_DISPLAY FM .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM      = 'ZVENKAT_TEST1' "Program name
        I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
        IT_FIELDCAT             = i_field
        IT_SORT                 = i_sort
        I_SAVE                  = 'X'
        IS_VARIANT              = w_variant "If you pass variant selected on selection-screen
                                            "on F4 help,corresponding output is displayed
      TABLES
        T_OUTTAB                = <i_tab>
      EXCEPTIONS
        PROGRAM_ERROR           = 1
        OTHERS                  = 2.
    IF SY-SUBRC <> 0.
      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    5.
    If you select variant and pass through FM it will be remained when u come back from secondary ALV..
    I hope that it helps u .
    Regards,
    Venkat.O

  • Different between ALE, IDOC and BAPI?

    Hi Folks,
    What is the different between ALE, IDOC and BAPI? and send me the following steps?
    Thanks in advance.
    Siva

    Hi,
    please read the below lines.
    ALE
    ALE is SAP proprietary technology that enables data communications between two or more SAP R/3 systems and/or R/3 and external systems. When a new enterprise resource planning (ERP) solution such as R/3 is implemented, companies have to interface the ERP system with legacy systems or other ERP systems.
    ALE provides intelligent mechanisms where by clients can achieve integration as well as distribution of applications and data.
    ALE technology facilitates rapid application prototyping and application interface development, thus reducing implementation time.
    The ALE components are inherently integrated with SAP applications and are robust, leading to a highly reliable system.
    ALE comes with application distribution/integration scenarios as well as a set of tools, programs, data definitions, and methodologies that you can easily configure to get an interface up and running.
    BAPI
    BAPIs provide a stable, standardized method for third-party applications and components to integrate into the Business Framework. These interfaces are being specified as part of SAP's initiative with customers, partners and leading standards organizations. Also, SAP has implemented the emerging Object Application Group (OAG) specifications with BAPIs.
    Pros and Cons for both BAPI and Call Transaction
    BAPI
    One of the big plusses for BAPIs is that the interface and function are not supposed to change.  This is a big plus when you do upgrades or hot packs because the transaction can change (format, required inputs etc) which means you then need to update the call transaction.
    Some of the BAPIs are better documented and easier to use than others.
    You usually need to perform the BAPI that actually does the COMMIT after you call your BAPI.
    The Program coding for calling a BAPI is usually cleaner than setting up the screen flow etc for the Call Transaction.
    You don't need to worry about special data circumstances interrupting the normal data flow of the screens and causing errors because of that.
    BAPIs probably have better performance since they don't do the screen flow processing.
    In general if the BAPI exists for the transaction you want to perform and you can figure out how to use it the BAPI is probably the best way to go.
    This is just from my experience working with both BAPI and Call Transaction.  I have had some very good successes with BAPIs, but very occasionally found that I could not get the BAPI to perform the update I needed.
    Regards,
    Anki Reddy.

Maybe you are looking for