Creating Variants in MIGO to block tree display in item overview

Hi,
I would like to know how to create Screen Variants in MIGO to hide the Tree display from the Item overview block.
Also I wish to know how to set this variant as default settings. Because of this, user will not be able to even view the the sub-parts during GR.
I am looking for this,  to prevent users from removing the sub-parts which are under that parent part.
So they can be allowed to display only during display of document.
Would be more thankful if you can send the detail steps to [email protected]
Thanks,
Pri

Hi gurus,
Can I have your advise on how to proceed for the below setting up of Screen variants in MIGO?
Appreciate your response !
Will sure reward for useful tips !
regards,
pri

Similar Messages

  • Blocked ALV Header and Item Displau

    Hi Friends,
    I`m new to ABAP and the forum.I`m in dire need of solution for a report.
    Scenario
    I have an internal table with fields ebeln vbeln adrnr.
    For every change in ebeln i need to create a new page in ALV and display the item VBELN and some more fields.
    Its like a header and item in a single page of alv report.
    Is there a possibility to use ALV here or only classical report can be used in the scenario???

    Hi,
    For Blocked alv header and item display you
    declaration internal table fields ebeln vbeln adrn
    TYPE-POOLS SLIS.
    TYPES : BEGIN OF TY_EKKO,
         EBELN TYPE EKKO-EBELN,
         AEDAT TYPE EKKO-AEDAT,
         vblen TYPE EKKO- vbeln,
         END OF TY_EKKO.
    DATA : IT_EKKO TYPE TABLE OF TY_EKKO,
         WA_EKKO TYPE TY_EKKO.
    DATA : WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
         IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    DATA : WA_EVENTS TYPE SLIS_ALV_EVENT,
         IT_EVENTS TYPE SLIS_T_ALV_EVENT,
         IS_LAYOUT TYPE SLIS_LAYOUT_ALV.
    For Build catalog
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'EBELN'.
    WA_FIELDCAT-SELTEXT_M = 'PO NUMBER'.
    WA_FIELDCAT-COL_POS = 1.
    WA_FIELDCAT-KEY = 'X'.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'AEDAT'.
    WA_FIELDCAT-SELTEXT_M = 'DATE OF CREATION'.
    WA_FIELDCAT-COL_POS = 2.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    CLEAR WA_FIELDCAT.
    WA_FIELDCAT-FIELDNAME = 'LIFNR'.
    WA_FIELDCAT-SELTEXT_M = 'VENDOR NO'.
    WA_FIELDCAT-COL_POS = 3.
    APPEND WA_FIELDCAT TO IT_FIELDCAT.
    read_data :
    SELECT * INTO TABLE IT_EKKO FROM EKKO UP TO 20 ROWS.
    print_header :
    DATA : IT_LIST TYPE SLIS_T_LISTHEADER,
         WA_LIST TYPE LINE OF SLIS_T_LISTHEADER.
    CLEAR WA_LIST.
    WA_LIST-TYP = 'H'.
    WA_LIST-INFO = 'LIST OF PURCHASE ORDERS'.
    APPEND WA_LIST TO IT_LIST.
    Header along with write statement at top-of-page then use these function module
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = IT_LIST

  • Double click in ALV tree display....

    Hi all,
    I am able to display output in tree format. But I want to add the double click functionality to some of the fields in output. Means if I double click on some value in output tree, it should call some transaction. Please help me with this issue of double clicking.
    My code as of now is as below:
    Please tell how to handle events in this report tree display and how and where to write the code for this functionlity of double click.
    FORM alv_tree.
    PERFORM build_sort_table.  “----
    table is sorted
    create container for alv-tree
      DATA: l_tree_container_name(30) TYPE c,
            l_custom_container TYPE REF TO cl_gui_custom_container.
      l_tree_container_name = 'TREE1'.
      CREATE OBJECT l_custom_container
          EXPORTING
                container_name = l_tree_container_name
          EXCEPTIONS
                cntl_error                  = 1
                cntl_system_error           = 2
                create_error                = 3
                lifetime_error              = 4
                lifetime_dynpro_dynpro_link = 5.
    create tree control
      CREATE OBJECT tree1
        EXPORTING
            i_parent              = l_custom_container
            i_node_selection_mode =
                                  cl_gui_column_tree=>node_sel_mode_multiple
            i_item_selection      = 'X'
            i_no_html_header      = ''
            i_no_toolbar          = ''
        EXCEPTIONS
            cntl_error                   = 1
            cntl_system_error            = 2
            create_error                 = 3
            lifetime_error               = 4
            illegal_node_selection_mode  = 5
            failed                       = 6
            illegal_column_name          = 7.
    create info-table for html-header
      DATA: lt_list_commentary TYPE slis_t_listheader.
      PERFORM build_comment USING
                     lt_list_commentary. “----
    already created
    repid for saving variants
      DATA: ls_variant TYPE disvariant.
      ls_variant-report = sy-repid.
    register events
      PERFORM register_events.
    create hierarchy
      CALL METHOD tree1->set_table_for_first_display
              EXPORTING
                   it_list_commentary   = lt_list_commentary
                   i_background_id      = 'ALV_BACKGROUND'
                   i_save               = 'A'
                   is_variant            = ls_variant
              CHANGING
                   it_sort              = gt_sort[]
                   it_outtab            = itab_outtab
                   it_fieldcatalog      = t_fieldcat. "gt_fieldcatalog.
    expand first level
      CALL METHOD tree1->expand_tree
             EXPORTING
                 i_level = 1.
    optimize column-width
      CALL METHOD tree1->column_optimize
               EXPORTING
                   i_start_column = tree1->c_hierarchy_column_name
                   i_end_column   = tree1->c_hierarchy_column_name.
    ENDFORM.                    " alv_tree
    FORM register_events.
    define the events which will be passed to the backend
      data: lt_events type cntl_simple_events,
            l_event type cntl_simple_event.
    define the events which will be passed to the backend
      l_event-eventid = cl_gui_column_tree=>eventid_node_context_menu_req.
      append l_event to lt_events.
      l_event-eventid = cl_gui_column_tree=>eventid_item_context_menu_req.
      append l_event to lt_events.
      l_event-eventid = cl_gui_column_tree=>eventid_header_context_men_req.
      append l_event to lt_events.
      l_event-eventid = cl_gui_column_tree=>eventid_expand_no_children.
      append l_event to lt_events.
      l_event-eventid = cl_gui_column_tree=>eventid_header_click.
      append l_event to lt_events.
      l_event-eventid = cl_gui_column_tree=>eventid_item_keypress.
      append l_event to lt_events.
      call method tree1->set_registered_events
        exporting
          events = lt_events
        exceptions
          cntl_error                = 1
          cntl_system_error         = 2
          illegal_event_combination = 3.
    ENDFORM.                    " register_events

    hi
    (also check u have refresh the field)
    Check the demo program,In this double click the data fields it will display some field in screen,You can check it
    BCALV_GRID_DND_TREE
    Thanks
    Edited by: dharma raj on Jun 17, 2009 7:41 PM

  • Editable Field in ALV TREE Display Using OOPs

    Hi,
    I am trying to make a field editable on the ALV Tree display. I could create an editable check box. But could not make a field Editable. I have made EDIT = 'X' in the fieldcatalog for the particular field. but  it is not working.
    Please help me in solving this. Its very urgent.

    You do this with the following code example
      DATA: ls_layout TYPE lvc_s_layi.
      CLEAR ls_layout.
      ls_layout-class     = cl_item_tree_control=>item_class_text.
      ls_layout-editable   = 'X'.
      ls_layout-fieldname = your fieldname.
      APPEND ls_layout TO lt_layout.
    add PO header to tree
          CALL METHOD tree->add_node
            EXPORTING
              i_relat_node_key = space
              i_relationship   = cl_gui_column_tree=>relat_last_child
              i_node_text      = l_node_text
              is_outtab_line   = ls_po_item
              is_node_layout   = wa_layout_node
              it_item_layout   = lt_layout
    Roy

  • How to create variant for table/view ?

    Hi,
    When I go through SM30, I find a radio button called variant. I don't know the effect.
    Can anyone tell me how to create variant for table / view ?
    I want to know when we need to create variant for table/view.
    Best regards,
    Chris Gu

    hi ,
    Whenever you start a program in which selection screens are defined, the system displays a set of input fields for database-specific and program-specific selections. To select a certain set of data, you enter an appropriate range of values.
    For further information about selection screens, refer to Selection Screens in the ABAP User's Guide.
    If you often run the same program with the same set of selections (for example, to create a monthly statistical report), you can save the values in a selection set called a variant
    Procedure
    To create a new variant:
           1.      On the ABAP Editor initial screen, enter the name of the program for which you want to create a variant, select Variants, and choose Change.
           2.      On the variant maintenance initial screen, enter the name of the variant to be created.
    Note the naming convention for variants (see below).
           3.      Choose Create.
    If the program has more than one selection screen, a dialog box for screen assignment appears. The dialog box does not appear if the program only has one selection screen. The selection screen appears in this case.
           4.      If there is more than one selection screen, select the screens for which you want to create the variant
    5.      Choose Continue.
    The (first) selection screen for the report appears.
    If your program has more than one selection screen, use the scroll buttons in the left-hand corner of the application toolbar to navigate between them and to fill the fields with values. If you keep scrolling forwards, the Continue button appears on the last selection screen.
           6.      Enter the desired selection values, including multiple selection and dynamic selection.
           7.      Choose Continue.

  • Error when running a JHeadstart generated two-level tree display

    Dear All,
    I have a simple master detail VO/VO datamodel based on which I'd like to generate a two-level tree display. I've followed the JHeadstart dev guide meticulously.
    When I run the page I get an error:
    javax.faces.el.PropertyNotFoundException: Error getting property 'name' from bean of type oracle.jbo.uicli.binding.JUCtrlHierTypeBinding
    It turns out that this generated code in a region file is the root cause:
    <af:switcher facetName="#{node.hierType.name}">
    <!-- DEBUG:BEGIN:TREE_NODE : default/misc/tree/treeNode.vm, nesting level: 2 -->
    <f:facet name="MutatieSoortTypenNode">
    <af:outputText value="#{node.Omschrijving}"/> </f:facet>
    <!-- DEBUG:END:TREE_NODE : default/misc/tree/treeNode.vm, nesting level: 2-->
    <!-- DEBUG:BEGIN:TREE_NODE : default/misc/tree/treeNode.vm, nesting level: 2 -->
    <f:facet name="MutatieSoortenBijTypeNode">
    <af:outputText value="#{node.Omschrijving}"/> </f:facet>
    <!-- DEBUG:END:TREE_NODE : default/misc/tree/treeNode.vm, nesting level: 2-->
    </af:switcher>
    When I substituted the <af:switcher> .... </af:switcher> xml code by <af:outputText value="#{node.Omschrijving}"/>, the page displayed correctly.
    Given the fact that the code is generated, there doesn't seem to be much that I can do about it.
    We're using JDeveloper version 10.1.3.3.0 and JHeadstart version 10.1.3.2.41.
    Any help or suggestion would be much appreciated.
    Kind regards,
    Ibrahim

    Ibrahim,
    I cannot reproduce this. You are using a non-production build. Can you upgrade to JHeadstart 10.1.3.2.52?
    If the problem persists, you can work around it by creating a custom template for tree.vm which includes the af:switcher statement.
    Steven Davelaar,
    JHeadstart team.

  • How to create Variant for braodcasting in BI 7.0

    Hi,
    As we create variants in BW 3.x using table TVARVC and
    t-code STVARV to enter variable to be updated as per requirement and a code for the same.
    And we will get variant in selection screen of report with updated values.
    Can some one tell me how can we do the same in BI 7.0?
    Please reply soon.
    Thanks.
    Santosh

    In the old SAP BW 3.5 version, we used a program that runs everyday after midnite that sets date variables in TVARVC.  The end user could specify which variable from TVARVC to fill the data field in the variant.  We have the user save the workbook and then distribute it via the Web Broadcaster.
    The workbooks are sent via email if things work OK.
    Are you saying we can do something similar using RSRVARIANT?  If we insert a row into RSRVARIANT, will the user be able to replace a field in their variant with the value?
    Here are some of our variables in TVARVC:
    Table:          TVARVC                                                   
    Displayed Fields:   9 of   9  Fixed Columns:                 4  List Width
                                                                                    MANDT NAME                           TYPE NUMB SIGN OPTI LOW                                                                               
    010   Z_PRIOR_FISCAL_PERIOD          P    0000           10/2005      
       010   Z_PRIOR_FISCAL_PERIOD          S    0000 I    EQ   10/2005      
       010   Z_PRIOR_WEEKLY_PERIOD          P    0000           43/2005      
       010   Z_PRIOR_WEEKLY_PERIOD          S    0000 I    EQ   43/2005                                                                               
    This would be for the October 2005 time frame.  In November the Z_PRIOR_FISCAL_PERIOD
    would get bumped up to 11/2005 which would have been November 2005.
    We have a batch procedure that updates the values in TVARVC table.  The user
    can choose with date value to run with.  In the old version everytime the variant
    is accessed, the current value of the variable Z_PRIOR_FISCAL_PERIOD would be fetched,
    so this is the way we could have monthly and weekly batch jobs run for precalculation
    and not get the same date range over and over again.
    How can be give the user an option to choose a variable like the above?
    Do we need to use Microsoft Excel VBA to call SAP BW to call custom code?
    Yes, we can update rsvariant table contents with a program.  But how will we "know"
    which date range the user wants unless they can choose which variable they want to use?
    Has anyone been able to do this?
    Thanks,
    Chris

  • How To Create User through Pl SQL Block

    Want to create user from pl sql block using dynamic SQl. Used dbms_sql package . But when I run the block it does not recognises the parameter v7 which is a constant in dbms_sql package. Message displayed is Can not access parameter from package being restricted procedure.
    Is there any method to create user through PL SQl block

    hi ranjit,
    hope this will work
    declare
    uname varchar2(30):=&uname;
    pword varchar2(30):=&pword;
    begin
    execute immediate ('grant connect, resource to '&#0124; &#0124;uname&#0124; &#0124;' identified by '&#0124; &#0124;pword);
    end;
    regards

  • Tree Display in WAD

    Hi all experts,
    I want to create a tree display, in which i have to hard code the some values.
    After clicking on those values I will link some reports.
    Can anybody please tell, is there any functionality available to create the tree display ?  Or I will have to go by coding in HTML / JAVA Script ?
    The display i want is like below.
    Root
          aaa
                 aaa1
                 aaa2
           bbb
                 bbb1
                 bbb2.
    by clicking on aaa1 it will have another link.
    Regards
    Vinay

    Hi Gillian,
    My requirement is I have to just hard code the tree like structure in WAD.  Later on I can link the things. 
    I have created and called the images, which on clicking, will change.. eg,, Plus and Minus., and open respective subtrees.
    Now the problem is I will have to join those images with horizontal and vertical lines. 
    That seems bit difficult. 
    I am new to WAD and JAVASCRIPT.
    Thats why I am searching <b>is there any code / functionality is available in javascript, which will give the tree like structure.</b>
    Waiting for your reply..
    Regards
    Vinay

  • Creating variant for a table

    hi , can any one help me creating variant , i have this table table called rszcompdir and list of quries , my instruction was to create a variant on the table to display the given list of quires. thanks in advance

    hi ,
    Follow the steps to create the variant :
    1. Open the table-rszcompdir in se11.
    2. Go to table contents (CTRLSHIFTF10)
    3. Over there give your selections , and then press the SAVE button .
    4. Give the variant name and description and then save .
    5. You can create variants as such for different selection criteria's.
    6. Press the variant button (adjacent to Number of entries) in the selection screen . It would display your list of variants . Select the variant and you can notice  that the selections maintained by you are updated in the fields .
    7. Execute the table
    Variants are created to save time in giving the same set of selections every-time .
    Hope its clear with you how to create variants and use them .
    Regards,
    Lokesh

  • How to create variant in Webdynpro

    Hi Gurus,
    I have created a WebDynpro report (WD Application). I have around 10 input fields on my first view.
    My second view will display an ALV report.
    Now I want to create variant for my selection screen( on my first view) so that the user will not need to always give
    values to all the 10 input fields. Please let me know if you have any solution for this.
    Thanks,
    Pradeep

    >Please tell me I am missing some setting somewhere
    No, your statements are accurate and increasingly a request that I hear from customers.  I pass on this request to the people who do the portfolio planning.  Also the ASUG UI Influence Council has recently taken up this topic as well.  It would also be helpful if you add your voice to the sticky thread on this forum asking for enhancement suggestions.  All these things help add weight to a feature request.
    Some thoughts from the SAP side - We do have personalization and configuration - some tasks that were done iwth variants could be acomplished with these new techniques.  Also variant were originally designed for background processing.  Since Web Dynpro ABAP can't be ran in the background anyway, that use case is out.
    Personally I would like to see variants at least built into the Select-Options reusable component. It seems like a nice ballance between the requirements.
    >This is really crazy when considering user specific ALV display variants can be saved -- but not shared as Global variants.
    You can create global layouts for the ALV by logging on in Admin mode.  Are you just saying you would like to be able to "promote" user specific layouts to global ones?

  • Do you know the function module to create variants?

    To automate the setting of variants on the selection-screens, I'd like to make some tool program to create variants.
    I'd appreciate if you could tell me some function module(or any other methods) to create variants.
    Thank you in advance for your information.

    Hi,
    You would find useful FMs in the following link:
    http://www.sapdevelopment.co.uk/fmodules/fmssap.htm
    FASU_V_CREATE_VARIANT_RFC      ASU: Create variant
    FASU_RS_CREATE_VARIANT         create variant (w/o selection screen) - client dependent
    FASU_RS_CHANGE_CREATED_VARIANT change variant w/o selection screen - client dependent
    Sample Program:
    REPORT z_co99_cji5
    NO STANDARD PAGE HEADING
    MESSAGE-ID 00
    LINE-SIZE 290.
    PROGRAM : Z_CO99_CJI5 *
    TITLE : CJI5 In Background *
    AUTHOR. : Raja Nesanoor *
    DATE WRITTEN : 27-Feb_2007 *
    REVTRAC : xxxxxx *
    PROGRAM FUNCTION: *
    To DISPLAY CJI5 Report in background *
    PROGRAM TYPE : Executable program *
    DEV. CLASS : XXXXXX *
    LOGICAL DB : NA *
    AUHTORIZATION CHECKS *
    Object Authorization Fields ABAP Fields *
    S_TCODE *
    BUKRS v_BUKRS *
    CHANGE HISTORY *
    Date Id Name Indicator Description *
    DATA : v_repid LIKE sy-repid VALUE 'ZRKPEP005' ,
    v_variant LIKE varid-variant VALUE 'V_CJI5' .
    DATA: BEGIN OF w_varid.
    INCLUDE STRUCTURE varid.
    DATA: END OF w_varid.
    DATA: BEGIN OF i_rsparams OCCURS 10.
    INCLUDE STRUCTURE rsparams.
    DATA: END OF i_rsparams.
    DATA: BEGIN OF i_rsparams1 OCCURS 10.
    INCLUDE STRUCTURE rsparams.
    DATA: END OF i_rsparams1.
    DATA: BEGIN OF i_varit OCCURS 2.
    INCLUDE STRUCTURE varit.
    DATA: END OF i_varit.
    DATA: BEGIN OF i_vscreens OCCURS 2.
    INCLUDE STRUCTURE rsdynnr.
    DATA: END OF i_vscreens.
    start-of-Selection
    START-OF-SELECTION.
    SET PARAMETER ID 'CAC' FIELD 'GC10'.
    SET PARAMETER ID 'PDB' FIELD '000000000001'.
    PERFORM populate_var_table.
    PERFORM create_variant.
    PERFORM submit_cji5.
    *& Form POPULATE_VAR_TABLE
    text
    --> p1 text
    <-- p2 text
    FORM populate_var_table .
    CLEAR w_varid .
    REFRESH i_varit .
    REFRESH i_rsparams .
    i_rsparams-selname = 'CN_NETNR'.
    i_rsparams-kind = 'S'.
    i_rsparams-sign = 'I'.
    i_rsparams-option = 'EQ'.
    i_rsparams-low = '90273536'.
    i_rsparams-high = space.
    APPEND i_rsparams.
    CLEAR : i_rsparams .
    i_rsparams-selname = 'CN_NETNR'.
    i_rsparams-kind = 'S'.
    i_rsparams-sign = 'I'.
    i_rsparams-option = 'EQ'.
    i_rsparams-low = '90274010'.
    i_rsparams-high = space.
    APPEND i_rsparams.
    CLEAR : i_rsparams .
    i_rsparams-selname = 'R_OBDAT'.
    i_rsparams-kind = 'S'.
    i_rsparams-sign = 'I'.
    i_rsparams-option = 'BT'.
    i_rsparams-low = space .
    i_rsparams-high = space.
    APPEND i_rsparams.
    CLEAR : i_rsparams .
    i_rsparams-selname = 'P_DISVAR'.
    i_rsparams-kind = 'P'.
    i_rsparams-sign = 'I'.
    i_rsparams-option = 'EQ'.
    i_rsparams-low = '1SAP' .
    APPEND i_rsparams.
    CLEAR : i_rsparams .
    i_rsparams-selname = 'P_USEDB'.
    i_rsparams-kind = 'P'.
    i_rsparams-sign = 'I'.
    i_rsparams-option = 'EQ'.
    i_rsparams-low = SPACE.
    APPEND i_rsparams.
    w_varid-mandt = sy-mandt.
    w_varid-report = v_repid.
    w_varid-variant = v_variant.
    w_varid-flag1 = space.
    w_varid-flag2 = space.
    w_varid-transport = space.
    w_varid-environmnt = 'A'. "Variant for batch and online
    w_varid-protected = space.
    w_varid-secu = space.
    w_varid-version = '0'.
    w_varid-ename = sy-uname.
    w_varid-edat = sy-datum.
    w_varid-etime = sy-uzeit.
    w_varid-aename = space.
    w_varid-aedat = space.
    w_varid-aetime = space.
    w_varid-mlangu = sy-langu.
    i_varit-mandt = sy-mandt.
    i_varit-langu = sy-langu.
    i_varit-report = w_varid-report.
    i_varit-variant = w_varid-variant.
    i_varit-vtext = 'CO99-OUTPUT'.
    APPEND i_varit.
    ENDFORM. " POPULATE_VAR_TABLE
    *& Form CREATE_VARIANT
    text
    --> p1 text
    <-- p2 text
    FORM create_variant .
    data: h_rc like sy-subrc.
    *Check variant exists.
    CALL FUNCTION 'RS_VARIANT_EXISTS'
    EXPORTING
    report = v_repid
    variant = v_variant
    IMPORTING
    R_C = h_rc
    EXCEPTIONS
    not_authorized = 01
    no_report = 02
    report_not_existent = 03
    report_not_supplied = 04.
    IF h_rc = 0.
    CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'
    EXPORTING
    curr_report = v_repid
    curr_variant = v_variant
    vari_desc = w_varid
    TABLES
    vari_contents = i_rsparams
    vari_text = i_varit
    EXCEPTIONS
    illegal_report_or_variant = 01
    illegal_variantname = 02
    not_authorized = 03
    not_executed = 04
    report_not_existent = 05
    report_not_supplied = 06
    variant_doesnt_exist = 07
    variant_locked = 08
    selections_no_match = 09.
    COMMIT WORK.
    ELSE.
    CALL FUNCTION 'RS_CREATE_VARIANT'
    EXPORTING
    curr_report = v_repid
    curr_variant = v_variant
    vari_desc = w_varid
    TABLES
    vari_contents = i_rsparams
    vari_text = i_varit
    EXCEPTIONS
    illegal_report_or_variant = 1
    illegal_variantname = 2
    not_authorized = 3
    not_executed = 4
    report_not_existent = 5
    report_not_supplied = 6
    variant_exists = 7
    variant_locked = 8
    OTHERS = 9.
    COMMIT WORK.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDIF.
    ENDFORM. " CREATE_VARIANT
    *& Form submit_cji5
    text
    --> p1 text
    <-- p2 text
    FORM submit_cji5 .
    CALL FUNCTION 'SUBST_START_REPORT_IN_BATCH'
    EXPORTING
    iv_jobname = 'TEST_JOB'
    iv_repname = v_repid
    iv_varname = v_variant
    iv_authcknam = sy-uname
    iv_language = sy-langu
    iv_varianttext = 'CO99-OUTPUT'
    TABLES
    tt_reportparam = i_rsparams
    EXCEPTIONS
    variant_exist_check_failed = 1
    variant_update_failed = 2
    variant_update_not_authorized = 3
    variant_update_no_report = 4
    variant_update_no_variant = 5
    variant_update_variant_locked = 6
    variant_insert_failed = 7
    variant_insert_not_authorized = 8
    variant_insert_no_report = 9
    variant_insert_variant_exists = 10
    variant_insert_variant_locked = 11
    variant_write_failed = 12
    no_batch_service = 13
    no_server_list = 14
    batch_scheduling_failed = 15
    OTHERS = 16.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDFORM.
    Regards,
    Srilatha.

  • Tree Display

    Hi guys.
    I want to create a tree display based on the following SAP standard program
    SAPSIMPLE_TREE_CONTROL_DEMO.
    Instead of "ROOT" i would like to display all company codes.
    While clicking the Company Code it should display all the plants under that specific company code.
    can anyone help me out?

    in the standard porgram SAPSIMPLE_TREE_CONTROL_DEMO ...
    The  Root was  defualt  passed  ....  if you want to  pass  the company  code  then ...
    write  a  select  query for Company code and  pass  it ...... in  the below example  i am passing the <b>Purchase  order  list  to the RooT</b>. ....
    FORM create_alvtree_hierarchy .
      DATA: NODE LIKE MTREESNODE,
            ld_node type string.
      LOOP AT it_ekko INTO wa_ekko.
    * Build the node table.
    * Caution: The nodes are inserted into the tree according to the order
    * in which they occur in the table. In consequence, a node must not
    * occur in the node table before its parent node.
    *   Node with key 'Root'
        <b>node-node_key = wa_ekko-ebeln.</b> " 'Root'.   "#EC NOTEXT
        " Key of the node
        CLEAR node-relatkey.      " Special case: A root node has no parent
        CLEAR node-relatship.     " node.
        node-hidden = ' '.        " The node is visible,
        node-disabled = ' '.      " selectable,
        node-isfolder = 'X'.      " a folder.
        CLEAR node-n_image.       " Folder-/ Leaf-Symbol in state "closed":
        " use default.
        CLEAR node-exp_image.     " Folder-/ Leaf-Symbol in state "open":
        " use default
        CLEAR node-expander.      " see below.
        node-text = wa_ekko-ebeln.      "'Root'.
        APPEND node TO node_table.
        LOOP AT it_ekpo INTO wa_ekpo WHERE ebeln EQ wa_ekko-ebeln.
    *     Node with key wa_ekpo-ebelp    "'Child1'
          ld_node = sy-tabix.
          concatenate wa_ekpo-ebelp ld_node into ld_node.
          node-node_key = ld_node.  "'Child1'. #EC NOTEXT
    *     Node is inserted as child of the node with key wa_ekpo-ebeln  "'Root'.
          node-relatkey = wa_ekpo-ebeln.  " 'Root'.
          node-relatship = cl_gui_simple_tree=>relat_last_child.
          node-hidden = ' '.
          node-disabled = ' '.
          node-isfolder = ' '.
          CLEAR node-n_image.
          CLEAR node-exp_image.
          node-expander = ' '.  " The node is marked with a '+', although
    *                        it has no children. When the user clicks on the
    *                        + to open the node, the event
    *                        expand_no_children is fired. The programmer can
    *                        add the children of the
    *                        node within the event handler of the
    *                        expand_no_children event
    *                        (see method handle_expand_no_children
    *                        of class lcl_application)
          node-text = wa_ekpo-ebelp.
          APPEND node TO node_table.
        ENDLOOP.
      ENDLOOP.
    * Add nodes to alv tree
      CALL METHOD GD_TREE->ADD_NODES
        EXPORTING
          TABLE_STRUCTURE_NAME = 'MTREESNODE'
          NODE_TABLE           = NODE_TABLE
        EXCEPTIONS
          FAILED                         = 1
          ERROR_IN_NODE_TABLE            = 2
          DP_ERROR                       = 3
          TABLE_STRUCTURE_NAME_NOT_FOUND = 4
          OTHERS                         = 5.
    ENDFORM.                    " create_alvtree_hierarchy
    reward points if it is usefull ..
    Girish

  • Creating Variant for VA05???

    Hi SAPians,
    Could you please give me the step by step process on how to create variant for VA05 for column layout.
    Thanks in advance
    MM.

    hello, friend.
    first, execute VA05.  customize your layout by clicking on the "current" icon.
    next, save your layout by going SETTINGS > DISPLAY VARIANTS > SAVE.  please note that unless your user parameters include the appropriate profile, the "save" option remains greyed out and unavailable.  ask your BASIS consultant to assign you parameter = SD_VARIANT_MAINTAIN with value "A".  then you can save your own variant.
    regards.
    p.s.
    i got this idea from someone else.  i think it was lakshmipathi.  whoever it was, thanks.

  • How to create a graph representing a big tree(parents and children are know

    How to create a graph representing a big tree(parents and children are known)?
    Thank you so much!
    Also, I need to write the graph into a jpg/gif file or display the graph in the web browser.
    I got a code from JGraph and can create the graph I want, although unextendable. However, JGraph define the graph as class Gscene instead of Img or BufferedImg or RenderedImg. Therefore, I couldn't use ImageIO.write(image, ext, file) to write the graph into a jpg file.

    aiGrace wrote:
    How to create a graph representing a big tree(parents and children are known)?Hierarchical data structures are covered here all the time. Please search before you post. This topic has been covered over and over.
    Thank you so much!
    Also, I need to write the graph into a jpg/gif file or display the graph in the web browser. I got a code from JGraph and can create the graph I want, although unextendable. However, JGraph define the graph as class Gscene instead of Img or BufferedImg or RenderedImg. Therefore, I couldn't use ImageIO.write(image, ext, file) to write the graph into a jpg file.Did you read the JGraph API? I'm guessing it exposes a method to get the image data somehow.

Maybe you are looking for

  • How do I add a secure site to my bookmark toolbar?

    Sites are showing grey lock and they won't move to tool bar. This worked on previous versions of FIREFOX before my drive crashed and I had to reload to FIREFOX 25.

  • Configure server process

    Dear All, We are in the process of upgrading oracle applciation r11.5.10.2 to  r 12.1.3 , 12.1 upgrade is about to complete, a) can I upgrade to R12.1.3 with all latest RPC and patch fixes, and then configure "Configure and start server processes usi

  • Cant download flash videos

    I have installed flash player and also I have installed flash video downloader. i cant download videos how to download videosu

  • Exact file-structure of .csv to import without problems into AddressBook?

    Hello, i tried to import a .csv-file into my osx-address-book. Everything seemed to be all right but after klicking OK for the import nothing happened. I had to cancel. I think that the structure of my .csv-file is not compatible with address book. I

  • HT6400 10.9.5 update defected my MacBookPro8,1 SATA controller

    Dear all, I have a MacBookPro8,1 with an Sandisk 256G Ultra SSD instead the HDD (the HDD is moved to the DVD bay). It worked nice for a half a year, but after this update on friday I could not access the SSD. DiskUtility sees only the HDD. SSD via ex