Sort by 'Initiated By'

How can I sort a worklist or search results by 'Initiated By'? It is not available in the list of fields to sort by. For a new Timesheet application our HR Dept must sort all items in their worklist by Initiated By to see if there is more than 2 timesheets before the timesheets are finalized. If I cannot sort by 'Initiated By' how else can I do this? Can I use custom Title 1 and put the Initiator into that field? How would I do that.
Thanks in advance.
Mary Methven

I am new to the forum and I just saw your question. Yes, you can so it exactly like you stated. To put the initiator name in the Custom Title 1 field, you have to execute the code below. You can set the script to run on a schedule.
UPDATE ITWORKITEMS
SET ITWORKITEMS.WICUST1 = ITUSERS.DISPNAME
FROM ITUSERS
WHERE (ITWORKITEMS.WIORIGPTUID = ITUSERS.USERUID)
Actually, you can just put WIORIGPTUID in the WICUST1 column and sort on WICUST1. The data in WICUST1 column will look like garbage but it is the same as USERUID value on the ITUSERS table. When you sort on this, you will in effect be sorting the Initiator column.

Similar Messages

  • Would like to specify sort order in link from chart

    Hi Folks,
    I have a chart for which I would like to provide drill down functionality, so that when a user clicks on the "Initial Budget" bar, they navigate to a financial report for the select business user sorted by Initial Budget.
    Here's what I've found out so far. By playing with the financial report, I found that I could specify the sort column by change the n value of the "fsp_sort_n" in the Request portion of the URL. However, there is also some "RP&" syntax in the ClearCache portion of the URL that is stumping me. Without the RP& syntax, the resulting report is not properly sorted, so it seems necessary.
    The syntax is "RP&fsp_region_id=4674145661723938".
    The question is, where is that number coming from? Can I find out what it is dynamically? Is the number static (it seems to be within one application)? I would prefer not to code magic numbers, but am not so proud that I wouldn't do it if necessary. :-D
    Thanks so very much,
    Petie
    Message was edited by:
    Petie

    I just tried playing with the RP& syntax in the ClearCache portion of the URL. If I put that into the link, it prevents the bars from being displayed in the SVG chart. Hmmmm. Just a bit more info.
    Petie

  • Hierarchies and Sorting in Reports

    We have a report where we have included 0Cust_sales hierarchy.  We have a number of customers that are part of the hierarchy and others that are not.
    We would like a report to list our customers by sales $ (high to low) across all customers. 
    Here is an example:
    Current Report:
    Standard Hierarchy              $25,000
    Customer A - Hierarchy         $10,000
       Customer A - Sold To 1        $6,000 
       Customer A - Sold To 2        $4,000
    Customer B - Hierarchy         $15,000
       Customer B - Sold To 1       $15,000
    Not Assigned Customers          $12,000
    Customer C                     $12,000
    When we select sort descending, the sort is initially done based on Standard Hierarchy and Not Assigned Customers. 
    We would like the ability to remove that distinction on the report. We would like to have the following results:
    Customer B - Hierarchy         $15,000
       Customer B - Sold To 1       $15,000
    Customer C                     $12,000
    Customer A - Hierarchy         $10,000
       Customer A - Sold To 1        $6,000 
       Customer A - Sold To 2        $4,000
    Does anyone know if this is possible or the steps that would be required?

    Hi,
    Once in BEx, just right click on the column you want to sort by. Select Properties > Sorting Tab > Descending.
    Hope it helps.
    Best Regards,

  • Sort seq diff between rowsorter and Arrays.sort

    I am building a JTable using cols String[] array and Object[][] array.
    When I initially build the Object[][] array I sort a temp String array using Array.sort (Arrays.sort(tempstring,String.CASE_INSENSITIVE_ORDER);)then I load the Object[][] array in the resulting sequence.
    After building the table I use setAutoCreateRowSorter(true) to allow sorting on any column.
    The problem is that the two methods of sorting appear to handle special characters differently.
    Example:
    Initial sequence of array after sorting:
    co
    Compnay Info
    cust-ord
    Customer Info
    Order Header Info
    I now load the table and it appears in the same sequence
    Once I click on the table header the seq changes to:
    co
    Compnay Info
    Customer Info
    cust-ord
    Order Header Info
    I have no preference on either sequence, I would just like the results the same on both the initial load and subsequent user requested sorts.
    Thx in advance,
    BAJH

    If I do not use String.CASE_INSENSITIVE_ORDER on the Array.sort the initial sequence is:
    Compnay Info
    Customer Info
    Order Header Info
    co
    cust-ord
    Then when I click on the table header it changes to:
    co
    Compnay Info
    Customer Info
    cust-ord
    Order Header Info
    So String.CASE_INSENSITIVE_ORDER is more alike in the results.
    The only difference appears to be the special character. "-"
    So your solution is not accurate, Thx anyway...

  • Initial Start Up Menu

    Hello,
    Is Captivate capable of making the initial selection menus
    you see when you first start up Captivate? What I’m referring
    to are the movies you see when you click on any of the tutorials
    under the Getting Started Tutorials section. I’m looking to
    create some sort of initial start up screen menu where users can
    pick which course or movie to watch. Any ideas? Thanks.

    Yes - you can add text labels or buttons to work how you
    want. Here's a sample I built recently:-
    http://stevehoward999.wordpress.com/2009/01/29/captivate-4-how-to-save-the-current-locatio n-and-navigate-back-to-it-later/
    Obviously you'll want yours to look prettier ;-)
    Steve

  • What is the role of a Policy CA

    Hello All
    Can someone please help me with the following question please (thanks in advance)
    I read the following (from another post on this forum regarding Policy CAs)
    The role of a policy CA is to describe the policies and procedures that an organization implements to secure its PKI, the processes that validate the identity of certificate holders, and the processes that enforce the procedures that manage certificates.
    A policy CA issues certificates only to other CAs. The CAs that receive these certificates must uphold and enforce the policies that the policy CA defined.
    It is not mandatory to use policy CAs unless different divisions, sectors, or locations of your organization require different issuance policies and procedures. However, if your organization requires different issuance policies and procedures, you must add
    policy CAs to the hierarchy to define each unique policy. For example, an organization can implement one policy CA for all certificates that it issues internally to employees and another policy CA for all certificates that it issues to non-employees.
    Now the statement above
    The role of a policy CA is to describe the policies and procedures that an organization implements to secure its PKI
    To me that sounds like the CPS?
    My understanding is the CPS is simply a  document (normally a text file) which can be access via a URL (e.g. HTTP) in the same manner as a CRL. If that is the case is the location of the CPS detailed in a known extension like the CPD extension?
    Also
    How do you 'enforce' the Policy as detailed by the Policy CA, for example
    Lets say we have three level PKI, Root > Policy CA (only issued cert to issuing CA) > Issuing CA
    Now as far as I am aware with an Enterprise AD joined CA (issuing CA) requesting and obtaining certificates is controlled by Templates and these Templates are controlled by Security ACL (AD security) detailing who can Read, Enroll, Auto-Enroll
    for a certificate (e.g. WEB Server) based on these templates.
    If the above is correct where does the Policy CA come in, in as much as 'enforcing a given policy' for example lets say the Policy CA states any certs issued by me to Issuing CA's these Issuing CA can only allow the WEB Server
    template. What is to stop an Admin giving Read, and Enroll permissions for the Code Signing template, and thereby issuing Code Signing certs from the Issuing CA.
     Are the Policies setup on the Policy CA (I assume you somehow setup Policies hence the name?) related to EKU, for example when the Policy CA issues a CA Cert  (basic constraints) to the Issuing CA, does the Policy CA set certain EKU (which
    I understand are known OIDs) in the CA cert it issues to the Issuing CA, some how preventing the Issuing CA from issuing a Code Signing Cert for example?
    Any advice most welcome as I would really like to understand the machanics of the above
    Thanks All in advance
    AAnotherUser__
    AAnotherUser__

    > To me that sounds like the CPS?
    exactly.
    > If that is the case is the location of the CPS detailed in a known extension like the CPD extension?
    yes, it is called Certificate Policies extension. Go to
    https://www.verisign.com or https://www.digicert.com, THOUSANDS OF THEM!!!111oneone and examine their certificates in the Details tab. There you will find a Certificate Policies extension, that will include policy
    OID (mandatory) and a combination of User Notice and/or CPS location url. Windows certificate GUI control fetches this extension and active Issuer Statement button in General tab. If the certificate contains only User Notice, a small dialog with User Notice
    will appear. If there is an URL, you will be redirected to the URL referenced in the Certificate Policies extension.
    > If the above is correct where does the Policy CA come in, in as much as 'enforcing a given policy' for example lets say the Policy CA states any certs issued by me to Issuing CA's these Issuing CA can only allow the
    WEB Server template.
    this assumption is incorrect. CPS does not restrict on certificate types allowed to you. CPS defines the procedure which is used to issue certificates to you. For example, authentication (user name and password combination, hardware tools, biometric or even
    face-to-face meetings) procedure, criteria list you should pass in order to get the certificate, your and CA (relying parties) liability, responsibility and certificate usage rules. Certificate is not your property, it is a property of the issuing CA
    Consider a certificate like a personal passport (ID card). Passport is not your property, it is a property of the issuing organization (state organization). Before getting the passport, you are submitting documents that prove your personality (entity). If
    you are supplying birth passport it is a sort of initial enrollment, if you submit existing passport -- it is re-enrollment (everything like in certificates). You are signing an agreement between you and state. This agreement is a CPS, it defines the passport
    issuance terms (validity, re-enrollment procedures, etc.) and usage policies. You shall not give your certitificate to 3rd parties (except the ones allowed by a government). You shall notify issuing organization if you lost the passport, or it was lost. You
    can continue these parallels (between your passport or person ID card with digital certificates).
    Regarding technical enforcement. Policy CA can define multiple policies. All of them are listed in the Policy CA certificate itself. All certificates issued below (unlimited levels down), all certificates must belong to any of the mentioned policy. RFC5280
    defines the certificate policy OID constraint validation. If constraint is violated, certificate chaining engine will report an error. If Policy CA defines policy with OId=1.1.1 and some certificate below is issued under policy 1.2.1 --
    the certificate will become invalid, because of constraint violation.
    Since it is bare measure, an owner of Policy CA should perform regular audits of its members to verify whether the policies are followed. Policy CA may stop relationships with child CA (by revoking child CA certificate) if policy violations are found during
    audit.
    > some how preventing the Issuing CA from issuing a Code Signing Cert for example
    it is possible, but not mandatory. Policy CA certificate may define only particular EKUs allowed below. It can be done via specific EKU in the policy CA certificate, application policy constraints, or extended properties.
    > I would really like to understand the machanics of the above
    you are going to be a PKI expert!
    Ok, I wrote a ton of words, but the reality is not that bright. Policies are violated, constraints are not followed. Eventually, who cares? Comodo has enough strict CPS, but constantly issues legitimate certificates to unknown persons, because someone calls
    to Comodo and says "Hello, I'm from Google, please, send me few certs" and they send. Many years ago, VeriSign failed in the same way. Who said that EKU extension is strictly followed? Examine the certificate at
    https://login.live.com. Intermediate CA is not eligigle to issue end entity certificates for other purposes (EKU) than the ones listed in its own certificate. REALLY? But who cares? IE doesn't care. Policy constraints are
    violated? Who cares if nobody will notice that (I didn't see the app that would complain so loud). But all this doesn't matter that you can do the same way. You still need to follow all rules, recomendations, best practices even if they are not mandatory.
    It is a part of your PKI's success.
    My weblog: en-us.sysadmins.lv
    PowerShell PKI Module: pspki.codeplex.com
    PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
    Check out new: SSL Certificate Verifier
    Check out new:
    PowerShell FCIV tool.

  • ALV GRID Problem with reading contents

    Hi there! I'm quite new with ABAP and I have some problems with the syntax of it. Maybe I should first describe my aim and then I'll show you my code.
    1. I read contents from two database tables, called 'zbc_dan_registry' and 'zbc_dan_category'.
    'zbc_dan_registry' has 2 columns: name, value.
    zbc_dan_category' has 1 column: category.
    Now I want to have an ALV Grid, that displays the contents of 'zbc_dan_registry' and one additional column with dropdown fields, where the user can select a category for each row. This is, what my code already does.
    Now I want to save the contents of the whole table in a new table 'zbc_dan_registrz' (you see: 'registrz', not 'registry'!) with 3 columns:
    name, category, value.
    My problem is, how can I read the contents of the ALV Grid, with the user selected category for each row, and save them in an internal table? I've tried to adapt the code of "BCALV_EDIT_04", but I don't get it running.
    Some detailled help would be great, you know, I'm really working hard to understand ABAP, but it's really hard for me. Thanks for your support and help!!
    Here's my code so far:
    *& Report  ZBC400_DAN_TESTNO4
    REPORT  ZBC400_DAN_TESTNO4.
    DATA: lt_registrz TYPE TABLE OF zbc_dan_regstrz WITH HEADER LINE,
          lt_category TYPE TABLE OF zbc_dan_category WITH HEADER LINE,
          ls_category TYPE zbc_dan_category, "Struktur Kategorie
          ok_code LIKE sy-ucomm,
          container_r TYPE REF TO cl_gui_custom_container,
          grid_r TYPE REF TO cl_gui_alv_grid,
          gc_custom_control_name TYPE scrfname VALUE 'CONTAINER_REG',
          fieldcat_r TYPE lvc_t_fcat,
          layout_r TYPE lvc_s_layo,
          lt_ddval TYPE lvc_t_drop,
          ls_ddval TYPE lvc_s_drop,
          c TYPE i.
    CLASS lcl_event_receiver DEFINITION DEFERRED.
      DATA g_verifier TYPE REF TO lcl_event_receiver.
      DATA: BEGIN OF gt_outtab OCCURS 0.
        INCLUDE STRUCTURE zbc_dan_regstrz.
        DATA: celltab TYPE lvc_t_styl.
      DATA: END OF gt_outtab.
    CLASS lcl_event_receiver DEFINITION.
      PUBLIC SECTION.
      TYPES: BEGIN OF lt_registrz_key.         "Struktur mit den Schlüsseln der Tabelle 'Registry'
        TYPES:  name TYPE zbc_dan_name,
                value TYPE zbc_dan_value,
                category TYPE zbc_dan_cat.
      TYPES: END OF lt_registrz_key.
      TYPES:  ls_registrz_keys TYPE STANDARD TABLE OF lt_registrz_key,
              ls_registrz_table TYPE STANDARD TABLE OF zbc_dan_regstrz.
      METHODS: get_inserted_rows EXPORTING inserted_rows TYPE ls_registrz_keys.
      METHODS: refresh_delta_tables.
      METHODS: handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid IMPORTING er_data_changed.
    *  METHODS: get_inserted_rows EXPORTING inserted_rows TYPE registrz_keys.
    *  METHODS: refresh_delta_tables.
      PRIVATE SECTION.
      DATA: inserted_rows TYPE ls_registrz_keys.
      DATA: error_in_data TYPE c.
      METHODS: get_cell_values IMPORTING row_id TYPE int4 pr_data_changed TYPE REF TO cl_alv_changed_data_protocol EXPORTING key TYPE lt_registrz_key.
    ENDCLASS.
    CLASS lcl_event_receiver IMPLEMENTATION.
      METHOD handle_data_changed.
        DATA: ls_good TYPE lvc_s_modi,
              ls_new TYPE lvc_s_moce.
        error_in_data = space.
        IF error_in_data = 'X'.
          CALL METHOD er_data_changed->display_protocol.
        ENDIF.
      ENDMETHOD.
      METHOD get_cell_values.
        CALL METHOD pr_data_changed->get_cell_value
          EXPORTING i_row_id = row_id i_fieldname = 'NAME'
            IMPORTING e_value = key-name.
        CALL METHOD pr_data_changed->get_cell_value
          EXPORTING i_row_id = row_id i_fieldname = 'VALUE'
            IMPORTING e_value = key-value.
        CALL METHOD pr_data_changed->get_cell_value
          EXPORTING i_row_id = row_id i_fieldname = 'CATEGORY'
            IMPORTING e_value = key-category.
      ENDMETHOD.
      METHOD get_inserted_rows.
        inserted_rows = me->inserted_rows.
      ENDMETHOD.
      METHOD refresh_delta_tables.
        clear me->inserted_rows[].
      ENDMETHOD.
    ENDCLASS.
    START-OF-SELECTION.
        SELECT client name value
          INTO CORRESPONDING FIELDS OF TABLE lt_registrz FROM zbc_dan_regstry.
        SELECT category INTO CORRESPONDING FIELDS OF TABLE lt_category FROM zbc_dan_category.
    CALL SCREEN 0100.
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'BACK'.
          SET SCREEN 0.
          MESSAGE ID 'BC400' TYPE 'S' NUMBER '057'.
        WHEN 'SAVE'.
          PERFORM save_data.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.
    MODULE clear_ok_code OUTPUT.
      CLEAR ok_code.
    ENDMODULE.
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'DYNPRO100'.
      SET TITLEBAR 'D0100'.
    ENDMODULE.
    MODULE display_alv OUTPUT.
      PERFORM display_alv.
    ENDMODULE.
    FORM display_alv.
    IF grid_r IS INITIAL.
    *----Creating custom container instance
      CREATE OBJECT container_r
      EXPORTING
        container_name = gc_custom_control_name
      EXCEPTIONS
        cntl_error = 1
        cntl_system_error = 2
        create_error = 3
        lifetime_error = 4
        lifetime_dynpro_dynpro_link = 5
        others = 6.
        IF sy-subrc <> 0.
    *--Exception handling
        ENDIF.
    *----Creating ALV Grid instance
        CREATE OBJECT grid_r
        EXPORTING
          i_parent = container_r
        EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init = 2
          error_cntl_link = 3
          error_dp_create = 4
          others = 5.
          IF sy-subrc <> 0.
    *--Exception handling
          ENDIF.
          CREATE OBJECT g_verifier.
          SET HANDLER g_verifier->handle_data_changed FOR grid_r.
    *----Preparing field catalog.
          PERFORM prepare_field_catalog CHANGING fieldcat_r.
    *----Preparing layout structure
          PERFORM prepare_layout CHANGING layout_r.
    *----Here will be additional preparations
    *--e.g. initial sorting criteria, initial filtering criteria, excluding
    *--functions
          CALL METHOD grid_r->set_table_for_first_display
          EXPORTING
    * I_BUFFER_ACTIVE =
    * I_CONSISTENCY_CHECK =
    * I_STRUCTURE_NAME =
    * IS_VARIANT =
    * I_SAVE =
    * I_DEFAULT = 'X'
            is_layout = layout_r
    * IS_PRINT =
    * IT_SPECIAL_GROUPS =
    * IT_TOOLBAR_EXCLUDING =
    * IT_HYPERLINK =
          CHANGING
            it_outtab = lt_registrz[]
            it_fieldcatalog = fieldcat_r
    * IT_SORT =
    * IT_FILTER =
          EXCEPTIONS
            invalid_parameter_combination = 1
            program_error = 2
            too_many_lines = 3
            OTHERS = 4.
          IF sy-subrc <> 0.
    *--Exception handling
          ENDIF.
          ELSE.
            CALL METHOD grid_r->refresh_table_display
    * EXPORTING
    * IS_STABLE =
    * I_SOFT_REFRESH =
          EXCEPTIONS
            finished = 1
            OTHERS = 2.
          IF sy-subrc <> 0.
    *--Exception handling
          ENDIF.
        ENDIF.
        CALL METHOD grid_r->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_enter.
        CALL METHOD grid_r->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_modified.
    ENDFORM.
    FORM prepare_field_catalog CHANGING pt_fieldcat TYPE lvc_t_fcat.
      DATA ls_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
      EXPORTING
        i_structure_name = 'ZBC_DAN_REGSTR2'
      CHANGING
        ct_fieldcat = pt_fieldcat[]
      EXCEPTIONS
        inconsistent_interface = 1
        program_error = 2
        OTHERS = 3.
      IF sy-subrc <> 0.
    *--Exception handling
      ENDIF.
      LOOP AT pt_fieldcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN 'NAME'.
            ls_fcat-coltext = 'Name'.
            ls_fcat-outputlen = '40'.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'VALUE'.
            ls_fcat-coltext = 'Wert'.
            ls_fcat-outputlen = '30'.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'CATEGORY'.
              LOOP AT lt_category into ls_category.
                ls_ddval-handle = 1.
                ls_ddval-value = ls_category-category.
    *            ls_ddval-style = cl_gui_alv_grid=>mc_style_enabled.
                APPEND ls_ddval TO lt_ddval.
             ENDLOOP.
             CALL METHOD grid_r->set_drop_down_table
                EXPORTING it_drop_down = lt_ddval.
            ls_fcat-edit = 'X'.
            ls_fcat-drdn_hndl = '1'.
            ls_fcat-coltext = 'Kategorie'.
            MODIFY pt_fieldcat FROM ls_fcat.
        ENDCASE.
      ENDLOOP.
    ENDFORM.
    FORM prepare_layout CHANGING ps_layout TYPE lvc_s_layo.
      ps_layout-zebra = 'X'.
      ps_layout-grid_title = 'Kategorie zur Registry hinzufügen'.
      ps_layout-smalltitle = 'X'.
    ENDFORM.
    FORM save_data.
      DATA: ls_ins_keys TYPE g_verifier->ls_registrz_keys,
            ls_ins_key TYPE g_verifier->lt_registrz_key,
            ls_registrz TYPE zbc_dan_regstrz,
            ls_outtab LIKE LINE OF gt_outtab,
            lt_instab TYPE TABLE OF zbc_dan_regstrz.
      CALL METHOD g_verifier->get_inserted_rows IMPORTING inserted_rows = ls_ins_keys.
      LOOP AT ls_ins_keys INTO ls_ins_key.
        READ TABLE gt_outtab INTO ls_outtab
        WITH KEY  name = ls_ins_key-name
                  value = ls_ins_key-value
                  category = ls_ins_key-category.
        IF sy-subrc = 0.
          MOVE-CORRESPONDING ls_outtab TO ls_registrz.
          APPEND ls_registrz TO lt_instab.
        ENDIF.
      ENDLOOP.
      INSERT zbc_dan_regstrz FROM TABLE lt_instab.
      CALL METHOD g_verifier->refresh_delta_tables.
      ENDFORM.

    Hi Hans,
    You raised the Question in the Webdynpro ABAP forum. Here its very diffcult to get the answer from this forum. Please close it here and raise the same question in ABAP General Forum there you will get faster and so many anwsers.
    Please close the question here.
    Warm Regards,
    Vijay

  • Color a row with ALV GRID

    Hi my friends,
    I have written a small ALV Grid where some rows should be colored, dependend on their status in a table. But it's not working and I can't find out, why it is not working. I've already studied all the topics in this forum, which are related to 'row color alv grid', but I can't find the mistake in my code. Is anyone able to find out what is wrong here?
    Thanks a lot for your help!
    *& Report  /BMC_TST_SHOWLOG
    REPORT  /BMC_TST_SHOWLOG.
    TYPES: BEGIN OF log_table.
      TYPES:  log_level TYPE /bmc_log_message,
              cr_date TYPE /bmc_cr_date,
              message TYPE /bmc_log_message,
              linecolor(4) TYPE c.
    TYPES: END OF log_table.
    DATA: lt_log TYPE TABLE OF log_table with HEADER LINE,
          lt_log2 TYPE TABLE OF log_table with HEADER LINE,
          lt_log_list TYPE TABLE OF log_table,
          lt_line LIKE LINE OF lt_log_list,
          container_r TYPE REF TO cl_gui_custom_container,
          grid_r TYPE REF TO cl_gui_alv_grid,
          gc_custom_control_name TYPE scrfname VALUE 'CONTAINER_LOG',
          fieldcat_r TYPE lvc_t_fcat,
          layout_r TYPE lvc_s_layo,
          logA TYPE /bmc_log_level,
          logB TYPE /bmc_log_level,
          logC TYPE /bmc_log_level,
          logD TYPE /bmc_log_level,
          logE TYPE /bmc_log_level,
          ls_ct TYPE lvc_s_scol,
          ok_code LIKE sy-ucomm.
    *DATA BEGIN OF ls_log_list OCCURS 0.
    *DATA: log_level TYPE /bmc_log_message,
    *      cr_date TYPE /bmc_cr_date,
    *      message TYPE /bmc_log_message,
    *      rowcolor(4) TYPE c.
    *DATA END OF ls_log_list.
    *DATA: lt_log_list TYPE TABLE OF log_table.
    PARAMETERS: loglevlA  TYPE c AS CHECKBOX,
                loglevlB  TYPE c as CHECKBOX,
                loglevlC  TYPE c As CHECKBOX,
                loglevlD  TYPE c aS CHECKBOX,
                loglevlE  TYPE c AS CHECKBOX,
                dateA     TYPE /bmc_cr_date OBLIGATORY,
                dateB     TYPE /bmc_cr_date.
    CALL SCREEN 0200.
    MODULE user_command_0200 INPUT.
      CASE ok_code.
        WHEN 'BACK'.
          SET SCREEN 0.
          MESSAGE ID 'BC400' TYPE 'S' NUMBER '057'.
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.
    MODULE clear_ok_code OUTPUT.
      CLEAR ok_code.
    ENDMODULE.
    MODULE status_0200 OUTPUT.
      SET PF-STATUS 'DYNPRO200'.
      SET TITLEBAR 'D0200'.
    ENDMODULE.
    MODULE display_alv OUTPUT.
      PERFORM display_alv.
    ENDMODULE.
    FORM display_alv.
      IF grid_r IS INITIAL.
    *----Creating custom container instance
      CREATE OBJECT container_r
      EXPORTING
        container_name = gc_custom_control_name
      EXCEPTIONS
        cntl_error = 1
        cntl_system_error = 2
        create_error = 3
        lifetime_error = 4
        lifetime_dynpro_dynpro_link = 5
        others = 6.
        IF sy-subrc <> 0.
    *--Exception handling
        ENDIF.
    *----Creating ALV Grid instance
        CREATE OBJECT grid_r
        EXPORTING
          i_parent = container_r
        EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init = 2
          error_cntl_link = 3
          error_dp_create = 4
          others = 5.
          IF sy-subrc <> 0.
    *--Exception handling
          ENDIF.
          PERFORM get_log_data.
    *----Preparing field catalog.
          PERFORM prepare_field_catalog CHANGING fieldcat_r.
    *----Preparing layout structure
          PERFORM prepare_layout CHANGING layout_r.
    *----Here will be additional preparations
    *--e.g. initial sorting criteria, initial filtering criteria, excluding
    *--functions
          CALL METHOD grid_r->set_table_for_first_display
          EXPORTING
            is_layout = layout_r
          CHANGING
            it_outtab = lt_log2[]
            it_fieldcatalog = fieldcat_r
          EXCEPTIONS
            invalid_parameter_combination = 1
            program_error = 2
            too_many_lines = 3
            OTHERS = 4.
          IF sy-subrc <> 0.
    *--Exception handling
          ENDIF.
          ELSE.
            CALL METHOD grid_r->refresh_table_display
          EXCEPTIONS
            finished = 1
            OTHERS = 2.
          IF sy-subrc <> 0.
    *--Exception handling
          ENDIF.
        ENDIF.
        CALL METHOD grid_r->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_enter.
        CALL METHOD grid_r->register_edit_event
          EXPORTING
            i_event_id = cl_gui_alv_grid=>mc_evt_modified.
    ENDFORM.
    FORM prepare_field_catalog CHANGING pt_fieldcat TYPE lvc_t_fcat.
        DATA ls_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
      EXPORTING
        i_structure_name = '/BMC_LOG'
      CHANGING
        ct_fieldcat = pt_fieldcat[]
      EXCEPTIONS
        inconsistent_interface = 1
        program_error = 2
        OTHERS = 3.
      IF sy-subrc ne 0.
    *--Exception handling
      ENDIF.
      LOOP AT pt_fieldcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN 'UUID'.
            ls_fcat-no_out = 'X'.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'LOG_LEVEL'.
            ls_fcat-coltext = 'Meldungsart'.
            ls_fcat-outputlen = '25'.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'CR_DATE'.
            ls_fcat-coltext = 'Erstellungsdatum'.
            ls_fcat-outputlen = '20'.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'CR_TIME'.
            ls_fcat-no_out = 'X'.
            MODIFY pt_fieldcat FROM ls_fcat.
          WHEN 'MESSAGE'.
            ls_fcat-coltext = 'Nachricht'.
            ls_fcat-outputlen = '50'.
            MODIFY pt_fieldcat FROM ls_fcat.
        ENDCASE.
    *    CASE ls_fcat-value.
    *      WHEN '1'.
    *        ls_fcat-line_color = 'c100'.
    *    ENDCASE.
      ENDLOOP.
    ENDFORM.
    FORM prepare_layout CHANGING ps_layout TYPE lvc_s_layo.
      ps_layout-zebra = 'X'.
      ps_layout-grid_title = 'Log'.
      ps_layout-smalltitle = 'X'.
      ps_layout-info_fname = 'linecolor'.
    ENDFORM.
    FORM get_log_data.
      if loglevlA = 'X'.
        logA = '1'.
      ENDIF.
      if loglevlB = 'X'.
        logB = '2'.
      ENDIF.
      if loglevlC = 'X'.
        logC = '3'.
      ENDIF.
      if loglevlD = 'X'.
        logD = '4'.
      ENDIF.
      if loglevlE = 'X'.
        logE = '5'.
      ENDIF.
      IF dateB ne 0.
        SELECT log_level cr_date message FROM /bmc_log INTO CORRESPONDING FIELDS OF TABLE lt_log_list WHERE log_level = logA
          OR log_level = logB OR log_level = logC OR log_level = logD OR log_level = logE and cr_date >= dateA and cr_date <= dateB.
      ELSE.
        SELECT log_level cr_date message FROM /bmc_log INTO CORRESPONDING FIELDS OF TABLE lt_log_list WHERE log_level = logA
          OR log_level = logB OR log_level = logC OR log_level = logD OR log_level = logE and cr_date >= dateA.
      ENDIF.
    *    and cr_date >= dateA.
        SORT lt_log_list ASCENDING.
        LOOP AT lt_log_list INTO lt_line.
        IF lt_line-log_level = '1'.
          lt_line-log_level = 'Info'.
          lt_line-linecolor = 'C100'.
        ENDIF.
        IF lt_line-log_level = '2'.
          lt_line-log_level = 'Warning'.
          lt_line-linecolor = 'C200'.
        ENDIF.
        IF lt_line-log_level = '3'.
          lt_line-log_level = 'Error'.
          lt_line-linecolor = 'C300'.
        ENDIF.
        IF lt_line-log_level = '4'.
          lt_line-log_level = 'Debug'.
          lt_line-linecolor = 'C400'.
        ENDIF.
        IF lt_line-log_level = '5'.
          lt_line-log_level = 'Trace'.
          lt_line-linecolor = 'C500'.
        ENDIF.
        APPEND lt_line TO lt_log2.
        ENDLOOP.
    ENDFORM.
    SELECTION-SCREEN BEGIN OF SCREEN 0100 TITLE text-001 AS WINDOW.
    SELECTION-SCREEN END OF SCREEN 0100.

    > change to this
    >
    > <b>ps_layout-stylefname = 'LINECOLOR'.</b>
    >
    > sorry ignore the above line
    >
    > just debug and check what is happening
    >
    > Message was edited by:
    >         Chandrasekhar Jagarlamudi
    Hi,
    I've changed the line to <b>ps_layout-stylefname = 'LINECOLOR'.</b>, but then I'm getting a runtime error 'ASSIGN_TYPE_CONFLICT' in program 'SAPLSLVC in line 2975'...
    I don't have any idea what is causing that.

  • I had to reinstall Lion because my computer was non responsive. Now all my stuff (applications, etc) are gone. I have a time machine backup - does that have my applications and if so how do I get them from the backup to my computer? It is power mac 2 x2.8

    It is power mac 2 x2.8 GHz Quad core intel xeon running 10.7.3 - purchased in 2006
    Or how can I transfer the appliucations form my laptop?

    Ok. I have 2 hard drives and one of them died apparently so..not knowing what to do, I did chose reinstall Lion after command r open start-up. The whole thing is a mess but my computer is back up and running with the second hard drive. I had a time machine backup which I've been dragging stuff out of. i had to re enter serial numbers and do all sorts of initial set up stuff. 1) How do I get all of my icons (like my HD icon and external drives icons) to appear on my desktop again? I can only find them through a finder window. 2) i now have to type a password to get into my computer (user) - I 'm the only user and don't want to have to do that.

  • Two ALV Grid in the same screeen

    Hi,
      I have created a module pool with a screen.
    In this screen I have defined two customer objects and I dipslay two different ALV grid.
    DATA: grid_1         TYPE REF TO cl_gui_alv_grid,
              grid_2         TYPE REF TO cl_gui_alv_grid.
    When the user puts the values into the field in both lists and pushes "enter", the program gets the input value by method
    "get_selected_rows". It works only for the list where there is the cursor.
    I need to read the value of each list at the same moment.
    Thanks in advance
    Marco

    *& Report  Z7CC_ALV_OOPS_TWO_ALV_SCREENS                               *
    report  z7cc_alv_oops_two_alv_screens           .
    * TEMP DECLARATION TYPE DECLARATIONS
    * Structure for Sales Order
    types: begin of y_vbak      ,
    vbeln type vbeln_va ,
    end of y_vbak        ,
    * Structure for Sales Order Details.
    begin of y_vbap           ,
    vbeln type vbeln_va    ,
    posnr type posnr_va    ,
    matnr type matnr       ,
    charg type charg_d     ,
    arktx type arktx       ,
    end of y_vbap             ,
    *& Structure of line item ----------
    begin of  y_po_item,
    ebeln type ekko-ebeln, " PO NUMBER
    ebelp type ekpo-ebelp,  "LINE ITEM
    matnr like ekpo-matnr,  " Material Number
    netpr like ekpo-netpr,  " Price per unit.
    menge like ekpo-menge,  " Purchase order quantity.
    netwr like ekpo-netwr,  " Net order in Purchase order currency
    meins like ekpo-meins,  " UOM
    end of y_po_item.
    data: t_y_po_item type standard table of y_po_item.
    data:  w_container_1        type ref to cl_gui_container        .
    data: t_vbap      type standard table of y_vbap.
    *--------- END OF TEMP DECLARATION ------------
    data: ok_code like sy-ucomm.
    *-- Global data definitions for ALV
    *--- ALV Grid instance reference
    data gr_alvgrid type ref to cl_gui_alv_grid .
    *--- Name of the custom control added on the screen
    data gc_custom_control_name type scrfname value 'Z7CC_ALV2' .
    *--- Custom container instance reference
    data gr_ccontainer type ref to cl_gui_custom_container .
    *--- Field catalog table
    data gt_fieldcat type lvc_t_fcat .
    data gt_fieldcat_2 type lvc_t_fcat .
    *--- Layout structure
    data gs_layout type lvc_s_layo .
    *&------- DECLARATION FOR THE NEXT SCREEN ------------------
    *--- ALV Grid instance reference
    data gr_alvgrid_2 type ref to cl_gui_alv_grid .
    *--- Name of the custom control added on the screen-----------
    data gc_custom_control_name_2 type scrfname value 'Z7CC_ALV' .
    *--- Custom container instance reference
    data gr_ccontainer_2 type ref to cl_gui_custom_container .
    *Declare your internal table which is supposed to hold the list data.
    *&Let’s name it “gt_list”.
    *Here is an example declaration.
    *--- Internal table holding list data
    data begin of gt_list occurs 0.
    data   matnr like mara-matnr.
    data   maktx like makt-maktx.
    data end of gt_list .
    data: begin of gt_list_2 occurs 0.
    include structure  z7cc_po_header.
    data: linecolor(4) type c, "Color for corresponding line
    end of gt_list_2.
    data: t_gt_list_2   type standard table of z7cc_po_header.
    *----- CLASS DECLARATION ------
    * FIELD-SYMBOLS
    field-symbols <fs_vbap> type y_vbap.
    field-symbols <fs_gt_list_2> type z7cc_po_header.
    class lcl_event_receiver definition deferred.
    data w_event_receiver type ref to lcl_event_receiver.
    * Creating a class definition for handling events on the ALV Grid.
    class lcl_event_receiver definition.
    public section.
    methods: handle_top_of_page for event top_of_page
    of cl_gui_alv_grid
    importing e_dyndoc_id,
    handle_hotspot_click for event hotspot_click
    of cl_gui_alv_grid
    importing e_row_id,
    handle_toolbar_event for event toolbar
    of cl_gui_alv_grid
    importing e_object,
    handle_user_command  for event user_command
    of cl_gui_alv_grid
    importing e_ucomm.
    endclass.                    "lcl_event_receiver  DEFINATION
    * Implementing the Class for handling events on the ALV Grid.
    class lcl_event_receiver implementation.
    method handle_top_of_page.
    perform show_top_of_page using e_dyndoc_id   w_container_1.
    endmethod.                    "handle_top_of_page
    method handle_hotspot_click.
    perform show_hotspot_click_details using e_row_id.
    endmethod.                    "lcl_event_receiver
    method handle_toolbar_event.
    perform create_alv_toolbar using e_object.
    endmethod.                    "handle_toolbar_event
    method handle_user_command.
    perform handle_user_command using e_ucomm.
    endmethod.                    "handle_user_command
    endclass.                    "lcl_event_receiver IMPLEMENTATION
    data:   w_grid               type ref to cl_gui_alv_grid         .
    *-------- END OF CLASS DECLARATION -------------
    start-of-selection.
    perform populate_table.
    call screen 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    module status_0100 output.
    set pf-status 'Z7CC_ALV1'.
    *  SET TITLEBAR 'xxx'.
    endmodule.                 " STATUS_0100  OUTPUT
    *&      Module  DISPLAY_ALV  OUTPUT
    *       text
    module display_alv output.
    perform display_alv.
    endmodule.                 " DISPLAY_ALV  OUTPUT
    *&      Form  POPULATE_TABLE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form populate_table .
    select ebeln ebelp matnr  netpr menge netwr meins into corresponding fields of table t_y_po_item
    from ekpo.
    select ekko~ebeln ekko~bukrs ekko~aedat ekko~ernam
    ekko~lifnr ekko~zterm ekko~angnr  into corresponding fields of
    table t_gt_list_2    from ekko .
    endform.                    " POPULATE_TABLE
    *&      Form  DISPLAY_ALV
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form display_alv .
    if gr_alvgrid is initial .
    perform create_first_obj_container.
    *&----------- ONE MORE CONTROL ON THE SCREEN-------------------
    perform create_second_obj_container.
    " DISPLAY_ALV
    *   Creating ALV Grid instance
    perform create_first_alvgrid.
    perform create_second_alvgrid.
    *  PERFORM FIELD_CATALOG.  " CREATE A FIELD CATALOG.
    perform field_cat changing gt_fieldcat.
    perform field_cat_1 changing gt_fieldcat_2.
    *----Here will be additional preparations
    *--e.g. initial sorting criteria, initial filtering criteria, excluding
    *--functions
    perform call_mthd_display_both_grid.
    *&---------  create a field catalog.------------
    perform event_handling.
    else.
    *&-----------CALL ALV GRID REFRESH  TABLE DISPLAY
    perform call_mthd_alv_refresh.
    endif.
    endform.                    "DISPLAY_ALV
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    module user_command_0100 input.
    endmodule.                 " USER_COMMAND_0100  INPUT
    *&      Form  EXIT_PROGRAM
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form exit_program .
    leave program.
    endform.                    " EXIT_PROGRAM
    *&      Module  PAI  INPUT
    *       text
    module pai input.
    case ok_code.
    when '&EXT'.
    perform exit_program.
    when others.
    *     do nothing
    endcase.
    clear ok_code.
    endmodule.                 " PAI  INPUT
    *&      Form  CREATE_FIRST_OBJ_CONTAINER
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form create_first_obj_container .
    create object gr_ccontainer
    exporting
    container_name              = gc_custom_control_name
    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.                    " CREATE_FIRST_OBJ_CONTAINER
    *&----------------------------------------

  • How do i create a new page

    I have a free version on my Ipad in Beta format, but until I can find a way to use it correctly and a guide available to help me sort the initial set up I cant evaluate it correctly. I use Adobe CC and I am very proficient in all aspects of the software, but i want something to run on my Ipad, that I, my wife and my Kids can use easily.
    Any help or guidance would be great.
    have an I Mac at home and work, an Ipad and an Iphone 5C, i am an Apple lover.

    Hi ageasteal,
    If you are looking for assistance in using Pages on your iPad, you may find the following site helpful:
    Apple Support: Pages Help for iPad
    http://help.apple.com/pages/ipad/2.0/
    Regards,
    - Brenden

  • Loading record problem.

    Hi, I have problem with loading record using page process.
    I have main page (header) where the record is loaded (header info).
    From there, based on the value of one the items, user can open "container' page.
    "Container" page contains the three or four regions. Each region shows one or more records associated with the header page.
    The problem that I have is that I can't load the data into the "container" page.
    On the "container" page I would like to have the same record loaded as on the header page.
    What I have done is:
    I have created application item (recordID) which is set upon opening the header page.
    On the header page user can open container page (page link).
    Container page has item called record_id which is associated with the application item (this works).
    I have created a process which I execute On Load After Footer.
    Automatic Row Processing DML is set up as on the header page however I get an error message when I open page:
    ORA-06550: line 1, column 17: PL/SQL: ORA-00936: missing expression ORA-06550: line 1, column 9: PL/SQL: SQL Statement ignored
    Any suggestions?
    If you have a better way of loading this page please let me know.
    Thanks.
    Robert

    Hi there,
    i am facing the same problem concerning empty fields when activating the DSO on BI7.
    The thing is that there is defenitely a bug, and it is sorted out initializing fields as constants on the transformationg.
    My problem is that, instead of using a normal transformation, i am using an expert routine, so that i cannot initialize the fields as empty constants.
    Any clue?
    Thanks in advance
    Diego

  • Little visibility issue in my game

    Alright, so I got bored at work and started writing this game, and I grasp the concept of polymorphism, and inheritance, but the implimentation eludes me a bit.
    Anyway the run down is, I have a super class called Mob, from that two classes are extended, human, and monster. from those, more classes are extended, such as Paladin (human) Dragon(monster) and so forth.
    Both monsters, and humans have a common method of Attack(mob temp) which I put in the Mob class. This is fine and dandy up to this point.
    In the Attack() method, Humans and monsters both have some different chararistics, such as humans can drink health/mana potions, and monsters can frenzy() etc. So, in the Attack() method, I have some logic to determine if it's a monster/human, and they are able to perform their unique actions.
    Since however, that DrinkPotion() is in class human, Frenzy() is in class Monster etc, The compiler is telling me it cannot see those methods.
    I may be going about them wrong, i'm just not sure though.
    Also, in the class with Main, I have them declaired as
    mob player;
    mob CPU;
    Then later, when the player chooses the class, I set the base class reference to the new derived class object,
    Warrior warrior = new Warrior();
    player = warrior;
    I just don't know why class Mob can't see the methods in grandchildren classes such as Warrior. It is afterall a warrior object i'm performing the dot operator on, is it not? ( such as player.GetHeathPotionsLeft(); )
    Any help is apreciated!

    The thing is you shouldn't put the implementation of the "attack" method in Mob. The idea of polymorphism is that you can treat all "actors" in your game as instances of class Mob (and therefore to have an attack() methods), while leaving the actual implementation of the method up to the various subclasses. Those subclasses will be able to see the methods inside themselves just fine, your Mob class doesn't need to know about them.
    So you could have something like this:public interface Mob {
    public void attack(Mob target);
    }and thenpublic class Monster implements Mob {
    public boolean isAngry() { // could also be private
       // put code here to determine if the monster is angry
    private void frenzy() { // private, only Monster itself needs to know this
       // put code here to put your monster into a frenzy
    public void attack(Mob target) {
       if(isAngry()) {
        frenzy();
       // put code here to actually attack
    }andpublic class Human implements Mob {
      public void attack(Mob target) {
        // put some code here to attack
    }and last but not least:public class Paladin extends Human {
      private void pray() { // private, only Paladins need to know this
        // put code here that determines if the prayer is heard and what happens then
      public void attack(Mob target) {
        pray();
        super.attack(target); // super.something() means use the implementation of my parent class, in this case the normal Human attack().
    }You could then use this from your main game class like so:....
      List<Mob> participants = ... (some list containing the actors, perhaps sorted by initiative)
      public void setup() {
        participants.add(new Human());
        participants.add(new Human());
        participants.add(new Paladin());
        participants.add(new Monster());
        participants.add(new Monster());
      // handle one turn of attacks in the game
      public void handleTurn() {
        for(int attackerIndex = 0; attackerIndex < participants.size(); attackerIndex++) {
          // note: all we need to know is that the attacker is-a Mob, even though it will actually be a monster, human or paladin
          Mob attacker = participants.get(attackerIndex);
          Mob target = getMostLikelyTargetFor(attacker); // somehow determine who gets attacked
          // because of polymorphism, this will use the implementation of the actual subclass with no casting necessary:
          attacker.attack(target);
    ...Hope this helps.

  • My iphone4 performed 2 backups, one with all my stuff on it and one without.  How do I get my stuff from the previous backup?

    In the process of updated to iOS 5, my iphone4 performed a backup, after installing IOS5 it performed ANOTHER backup (not sure why), but without all my stuff being synced from iTunes, now the backup file (and my phone) contain NOTHING!
    How do I get the data from my previous backup back?!? Please Help!!  I have already looked into the backup fies on my PC and everything is from the second backup.
    I really need my contacts and photos back

    Ok. I have 2 hard drives and one of them died apparently so..not knowing what to do, I did chose reinstall Lion after command r open start-up. The whole thing is a mess but my computer is back up and running with the second hard drive. I had a time machine backup which I've been dragging stuff out of. i had to re enter serial numbers and do all sorts of initial set up stuff. 1) How do I get all of my icons (like my HD icon and external drives icons) to appear on my desktop again? I can only find them through a finder window. 2) i now have to type a password to get into my computer (user) - I 'm the only user and don't want to have to do that.

  • Please very urgent........

    hi i am new to ABAP.
    my requirement is :
    create a ALV report to display material number and sales order using tables MARA and VBAP
    using REUSE_ALV_GRID_DISPLAY.
    points will be rewarded.

    hi nani,
    try this code,this is for displaying billing document number and other relevant details.you can put your required fields and check for help.
    TABLES: vbrp,vbrk.
    Global data definitions
    DATA: ok_code LIKE sy-ucomm,
          it_tab TYPE TABLE OF zstruct1,
    Name of the custom control added to the screen
          g_container TYPE scrfname VALUE 'CUSTOM_SCREEN',
    ALV Grid instance reference
           grid TYPE REF TO cl_gui_alv_grid,
    Custom container instance referance
          g_custom_container TYPE REF TO cl_gui_custom_container.
    To display the billing document no and customer no at the selection screen.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE t001.
    SELECT-OPTIONS  s_vbeln FOR vbrk-vbeln OBLIGATORY.
    SELECT-OPTIONS s_kunrg FOR vbrk-kunrg OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
    Validating the entries in the selection screen.
    AT SELECTION-SCREEN.
      SELECT SINGLE vbeln FROM vbrk INTO vbrk WHERE vbeln IN s_vbeln.
      IF sy-subrc <> 0.
        MESSAGE e000.
      ENDIF.
      SELECT SINGLE kunrg FROM vbrk INTO vbrk WHERE kunrg IN s_kunrg.
      IF sy-subrc <> 0.
        MESSAGE e001.
      ENDIF.
    Start-Of-Selection Event
    START-OF-SELECTION.
      PERFORM fetch.
    END-OF-SELECTION.
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'STATUS100'.
    *SET TITLEBAR 'xxx'.
      PERFORM display_alv_billing.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'EXIT'(001).
          PERFORM exit.
        WHEN OTHERS.
          CALL SCREEN 100.
      ENDCASE.
      CLEAR ok_code.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  EXIT
          text
    -->  p1        text
    <--  p2        text
    FORM exit .
      LEAVE PROGRAM.
    ENDFORM.                    " EXIT
    *&      Form  fetch
          text
    -->  p1        text
    <--  p2        text
    FORM fetch .
      SELECT kvbeln kkunrg pposnr pfkimg p~matnr INTO CORRESPONDING FIELDS OF TABLE it_tab
      FROM vbrk AS k JOIN vbrp AS p ON kvbeln = pvbeln WHERE k~vbeln IN s_vbeln AND
                                                               k~kunrg IN s_kunrg.
    ENDFORM.                    " fetch
    *&      Form  DISPLAY_ALV_BILLING
          text
    -->  p1        text
    <--  p2        text
    FORM display_alv_billing .
      IF grid IS INITIAL .
    Creating custom container instance
        CREATE OBJECT g_custom_container
        EXPORTING
             container_name = g_container
        EXCEPTIONS
             cntl_error = 1
             cntl_system_error = 2
             create_error = 3
             lifetime_error = 4
             lifetime_dynpro_dynpro_link = 5
             OTHERS = 6 .
        IF sy-subrc <> 0.
    *--Exception handling
        ENDIF.
    *----Creating ALV Grid instance
        CREATE OBJECT grid
           EXPORTING
                i_parent = g_custom_container
           EXCEPTIONS
                error_cntl_create = 1
                error_cntl_init = 2
                error_cntl_link = 3
                error_dp_create = 4
                OTHERS = 5 .
        IF sy-subrc <> 0.
    *--Exception handling
        ENDIF.
    *----Here will be additional preparations
    *--e.g. initial sorting criteria, initial filtering criteria, excluding
    *--functions
        CALL METHOD grid->set_table_for_first_display
             EXPORTING
         I_BUFFER_ACTIVE =
         I_CONSISTENCY_CHECK =
               i_structure_name = 'ZSTRUCT1'
         IS_VARIANT =
         I_SAVE =
         I_DEFAULT = 'X'
              is_layout = g_layout
         IS_PRINT =
         IT_SPECIAL_GROUPS =
         IT_TOOLBAR_EXCLUDING =
         IT_HYPERLINK =
             CHANGING
                it_outtab        = it_tab
               it_fieldcatalog = g_fieldcat
          IT_SORT =
          IT_FILTER =
             EXCEPTIONS
                invalid_parameter_combination = 1
                program_error = 2
                too_many_lines = 3
                OTHERS = 4 .
        IF sy-subrc <> 0.
    *--Exception handling
        ENDIF.
      ELSE .
        CALL METHOD grid->refresh_table_display
      EXPORTING
         IS_STABLE =
         I_SOFT_REFRESH =
            EXCEPTIONS
               finished = 1
               OTHERS = 2 .
        IF sy-subrc <> 0.
    *--Exception handling
        ENDIF.
      ENDIF .
    ENDFORM.                    " DISPLAY_ALV_BILLING
    reward if helpful.
    regards,
    sravanthi

Maybe you are looking for

  • How do you rip anime dvds with deinterlacing and the same aspect ratio?

    Hi I use clips from anime dvds for a hobby of mine. I have a problem. I can't find the right program or the right instruction to convert my m2v or vob files into crsip clean video clips with deinterlacing and low file space. Is Missing Media Burner t

  • Help me to schedule blank report

    my requirement is to schedule the report. if report does not give any results(no results) need to deliver empty(blank) spreadsheet. can anybody help me to get this done?

  • Require new tab at header level in ME21N using BADI

    Hi All, My requirement is add new tab with 8 new fields plus one button. On pressing this button header data need to copy at item detail level. I found two BADI's for that. ME_GUI_PO_CUST & ME_PROCESS_PO_CUST. Till now I am able to create new tab wit

  • Is there an android app for the HP Deskjet F4580?

    I recently purchased a Samsung Infuse with Android 2.2.1 firmware. I'm looking for an app that will allow me to print to an HP Deskjet F4580 wireless printer.

  • ORACLE User Group Blogs about Exadata

    Attached a new ORACLE User Group initiative. It is a collcetion of three Blogs about Exadata from ORACLE User Groups Leaders.