Regarding Total Net salary of Active emp

Hi All,
How do we find the total montly salary and annual salary of active Emp?
Is there any information regarding Hike percentage of emp?
Regards
Raju Mummidi

total Monthly salary means are u takeing abt the
Gross total /101 or net total /560
please let us know and if u want to know the Annual Salary
Check IT0008 there at the bottom u will find the Feild Called Annual Salary there u can get thte Monthly salary
But if u want the total annaul salary than it depends upon the configuration ????
as we have /TPA total Package wage type by this u can have the information
but it depends upon the indirecr valiation bases lot of work shd be done in order to acheive it

Similar Messages

  • Custom Report to display Material Number PR00 K004 KF00 MWSTand Total net e

    Hi All
    I am supposed to develop a report for pricing which is used to quote prices to the customers with all the components of pricing in different columns shown below.
    Material Number PR00 K004 KF00 MWSTand Total net effect  in different columns and their values using one single report.
    Can you please share your experiences
    Thanks in advance for your help
    Regards
    Anishka.

    Check T.code V/LD
    Hope this help you
    Senthils

  • PO Release Strategy not triggerred for particular Total Net Order Value

    Dear,
    I am currently facing the issue where release strategy for purchase orders is not getting triggered for a particular value or lower.
    For order value 1 INR or less, no release strategy is triggered for new created PO. And for value > 1 INR release strategy is getting triggered.
    All otehr PO characterstics are the same, I mean to say the values for other characterstics such as plant material group are identical.
    But the characterstics for release for Total net order value are <= 30000 INR. There are two system copies, where in one system the same release strategy is working as expected. But in other system the above mentioned issue occurs. There is no differnce which I can see in the release strategy setup.
    Please suggest for solution.
    Thank you.
    Warm Regards.

    Dear All,
    While looking further into the issue by going into debugging mode, we have found that in include LCLSCF2I, Internal table p_selection_criteria_tab , the value for ATFLV (Internal Floating point from) gets different values in the two systems. For example, in the affected system, for PO with 1INR tottal value, for one of the Total value chaaracterstics before INR characterstic, ATFLV value is 0,0000000000000000E+00, hence it gets out of loop and doesn't trigger release strategy.
    But in another system for same PO values and release setup, ATFLV value is 1,0000000000000000E+00 for that characterstic.
    May I know how the value for this field gets calculated.
    Thank you.
    Warm Regards.

  • Total Net Value is picking automatically into one G/l a/c in posting time

    Hi to all,
    i have one critical issuse ,
    here i am doing  new pricing procedure in that i put 4 condition types
    80          ZLLU     Actual user price                                        ERL
    850                       Sub Total                      80         849
    860          ZTCS     Tax collection              850                                   ZTS
    872          ZOT1     Other charges 1                                        ZPK
    880                        Grand Total              850     879
    946          ZGPS     Price+ Tax + other      880                                   ZTS
    955                       Total                       945     954
    PR00       ERL
    ZTCS      ZTS
    ZOT1      ZPK
    ZGPS      ERL for this 4 account keys i have assigned different G/L A/C's but while posting into account's. Total net value of billing is hitting into one G/l A/c (that is ERL). it is not hitting into different G/l A/c's
    how it is possible can any clear by issuse ASAP
    REgards
    Murali

    Hi,
    Check Price procedure which key's assign to each condition.
    Check/Carry out configuration in t-code VKOA.
    ELSE,
    Go to VF02, put invoice number
    Environment >>> Account determination analysis >>> Revenue account,
    Here u will get detailed analysis, which condition is hitting proper G/L.
    Kapil

  • Calculate Net Salary

    Hi all,
    I neetd to calculate the net salary of around 2000 employees.i use function to get it from payrun tables
    i.e..
    CREATE OR REPLACE function xxri_total_net(p_date IN VARCHAR2,p_empno IN NUMBER)
    return number
    as
    v_earn number;
    v_ded number;
    begin
    select nvl(sum(result_value),0)
    into
    v_earn from xxgod_soe_test where employee_number=p_empno
    and base_classification_name='Earnings' and
    to_char(date_earned,'MON-YYYY')=p_date and base_name='Pay Value';
    select nvl(sum(result_value),0)
    into v_ded from xxgod_soe_test where employee_number=p_empno
    and base_classification_name like '%Deductions%' and
    to_char(date_earned,'MON-YYYY')=p_date and base_name='Pay Value';
    return v_earn-v_ded;
    end;
    It works fine with 10 sec as execution time,
    but when i add it to my reports query it goes slow..
    i m adding it as column,
    xri_total_net(TO_CHAR(pAaV.effective_date,'MON-YYYY'),papf.employee_number) Net_Salary,
    i even tried xri_total_net(TO_CHAR(:p_start_date,'MON-YYYY'),papf.employee_number) Net_Salary,
    Thanks N Regards,
    Techie

    Hi all,
    I neetd to calculate the net salary of around 2000 employees.i use function to get it from payrun tables
    i.e..
    CREATE OR REPLACE function xxri_total_net(p_date IN VARCHAR2,p_empno IN NUMBER)
    return number
    as
    v_earn number;
    v_ded number;
    begin
    select nvl(sum(result_value),0)
    into
    v_earn from xxgod_soe_test where employee_number=p_empno
    and base_classification_name='Earnings' and
    to_char(date_earned,'MON-YYYY')=p_date and base_name='Pay Value';
    select nvl(sum(result_value),0)
    into v_ded from xxgod_soe_test where employee_number=p_empno
    and base_classification_name like '%Deductions%' and
    to_char(date_earned,'MON-YYYY')=p_date and base_name='Pay Value';
    return v_earn-v_ded;
    end;
    It works fine with 10 sec as execution time,
    but when i add it to my reports query it goes slow..
    i m adding it as column,
    xri_total_net(TO_CHAR(pAaV.effective_date,'MON-YYYY'),papf.employee_number) Net_Salary,
    i even tried xri_total_net(TO_CHAR(:p_start_date,'MON-YYYY'),papf.employee_number) Net_Salary,
    Thanks N Regards,
    Techie

  • Create employee vendor to post net salary

    Hi Experts,
    We have a client requirement where they want to post employee salary net salary to employee vendor. Currently i have configured employee salary to go to balance sheet account.
    Can someone please tell me how to create employee vendor in HR and then post net salary to employee vendor account so the HR and finance can see employee wise ledger.
    Really appreciate any help.
    Regards,
    Jyoti

    Jyoti,
    If you will refer your message, it is cleared that vendor of this PERNR is not created, In FI end, for every pernr they create vendor, so you please coordiante with FI people to resolve the issue,
    This is a very simply issue, dont know why your FI people is treating like.
    1. No creditor with the search key 1000 LFB1 PERNR 00100005 has been found
    2. No vendor found for this selection
    3. Required field GL_ACCOUNT was not transferred in parameter ACCOUNTGL
    4. Error in document: HRPAY 0000000102 CLNTAVD510
    5. No data was transferred in parameter ACCOUNTPAYABLE
    Further read the doc. of Vendor accuount, you will get more clarity, Please go thru the same and discuss with your FI people
    There are two kinds of vendor accounts available:
    Fixed vendor accounts: Employee grouping for account determination offers the most precise means of control for posting to fixed vendor accounts.
    Employee vendor accounts: Posting to employee vendor accounts enables posting for a specific personnel number.
    In this step, you make entries in table T030 for the assignment of vendor accounts to symbolic accounts.
    Example
    Fixed vendor account
    You want to deduct dues to various unions from the employees in your enterprise. For each union, you have set up a specific wage type for dues and a specific symbolic account. In this step, you assign a fixed vendor account to each of these symbolic accounts.
    Employee vendor account
    You want to post dues to a different vendor account for each employee. To this effect, you have created a symbolic account for all employees. In this step, you specify how the corresponding employee vendor accounts are determined.
    Requirements
    You have created the required vendor accounts in Financial Accounting.
    You have carried out the step Define Symbolic Accounts. In that step, you created symbolic accounts with the relevant account assignment types (KF for fixed vendor accounts, K for personal vendor accounts). In that same step, you flagged the indicator EG-depend  for symbolic accounts to which you want to post in line with the Employee grouping for account determination.
    If you want to post to employee vendor accounts, you have entered the relevant personnel number in one of the following fields in the vendor master data of Financial Accounting. We recommend that you use the Personnel number field. If you use another field, you must enter the personnel number with leading zeros.
    Personnel number
    Search term
    Telephone 2
    Data line
    Teletext number
    Standard settings
    There are no standard settings for posting to vendor accounts. If, in the step Define Symbolic Accounts, you have not created any symbolic accounts with the account types KF or K, you do not have to carry out the step Assign Vendor Accounts.
    Activities
    1. Enter the required chart of accounts.
    2. To make settings for the posting procedure Personnel posting to vendors (HRK), choose Rules
    3. Choose Posting key. Enter the posting key for postings to vendor accounts or copy the default values (21 for debit posting and 31 for credit postings).
    4. Choose Accounts. Make the corresponding entries in the table T030.
    a) If you want to assign a fixed vendor account to a symbolic account, and if required, an employee grouping, enter the number of the vendor account in the Acco column.
    b) If you want to assign an employee vendor account to a symbolic account, and, if required a employee grouping, enter the relevant key (see table below) in the Acco column.
    Personnel number in field (Vendor master data) Entry in the Account column (T030)
    Personnel number    *0002
    Search term    *0001
    Telephone 2    *0003
    Data line    *0004
    Teletext number    *0005

  • Prepayment not equaling manual net salary

    Dear Gurus,
    Iam runninig prepayment for 1000 employees . But prepayment of 5 employees is not coming equal to net salary(All earnings - All deductions) when calculated manually.
    I dont know why iit is making error in only some employees. Please can anybody help me.
    Regards,
    Muhammad Noman Shafique

    Hi Muhammad,
    Which legislation are you working for ?
    There should be a balance with the name Net or Net Pay
    For these employees, what is the value you see in the table pay_pre_payments for the month.
    Do they have multiple Payment methods defined ? Say with 50% cash and 50% EFT.. or something similar ?
    If that is the case, you might only be checking a part of the payment.
    Its tough to debug such cases w/o seeing the complete details of the setup and employee data.
    Cheers,
    Vignesh

  • Regarding Reliance net connect ZTE AC 2738

    Regarding Reliance net connect ZTE AC 2738
    Dear I am unable to install all the drivers on Win 7; Its shwing error log Also when I am going to connect it again & again its showing please insert in another port while I tried for aal the port.
    Please Suggest

    You need to contact Reliance Technical Support for assistance:
    http://www.reliancenetconnect.co.in/
    This is not a Microsoft product and the manufacturer/vendor has sole responsibility for support of their products.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”

  • Total net order value Customer wise

    Dear All,
    I want to extract total Net sales order value customer wise for developing a report. I need to know SAP table details to get Total sales order values customer wise.
    Standard report does not match my requirment.
    I need to extract details from VBAP, customer wise. Please advise me to build a logic.
    Thanks,
    sajeewa.

    You can get the Net value from VBAP-NETWR by line item & the sold to is on VBAK-KUNNR, then make a join on VBAK-VBELN & VBAP-VBELN, then group it by KUNNR to display totals by Customer.

  • Total net price of purchase order

    hi,
    i want total net price of purchase order . In that purchase order have two positions. how we can add this two position price.

    In the table EKKO - netwr . or EKPO field netpr .

  • Regarding Aging / Net dues report another way

    Hi,
    I have seen aging report for customer in SAP B1, its okay but not serve my purpose. i want this report little difference.
    when i run this report system will ask to put the date and all customer will show.
    example for one customer below:
    i put the date 15-01-2011 then Net Dues will show like below:
    Customer name--   Date      -Ivoice Num  Invoice AmtDue days--
      Balance
    ABC--01/01/2011INV001 1000--
    14     
    ABC      -
    03/01/2011-- INV002  4000--
    12     
    ABC -
    07/01/2011-- INV003 5000--
    8     
    ABC-- 15/01/2011 INV004  80001--
      18000
    Now, Incoming payment made on 16-01-2011 amt     4500     
    now i want to see net dues on 16-01-2011, it should come like below;
    Customer name--   Date      -Ivoice Num  Invoice AmtDue days--
      Balance
    ABC      -
    03/01/2011-- INV002  500--
    13     
    ABC -
    07/01/2011-- INV003 5000--
    9     
    ABC-- 15/01/2011 INV004  80002--
      13500
    look what has happened, INV001 has paid fully and INV002 has partial paid. ( 4500-1000-3500=500 for inv002)
    if it is possible to make query report please help me about this.
    Regards,
    Mizan
    Edited by: mizan700 on Apr 25, 2011 4:50 PM

    Hi Zal,
    Thanks for your hard work.
    please see the link below  and which i have marked red color. actually i want to know   Bangladesh Lamps Ltd total balance due is 2071528.90. against which Invoice.
    http://www.sendspace.com/file/cy9j92
    Below is my SQL query
    set ANSI_NULLS ON
    set QUOTED_IDENTIFIER ON
    go
    -- =============================================
    -- Author:          <Mizan>
    -- Create date:      <26  Apr 2011>
    -- =============================================
    ALTER PROCEDURE [dbo].[@BGWL_NetDues]
         (@Age DATETIME)
    AS
    BEGIN
    --DECLARE @Cardcode varchar(12)
    --DECLARE @Cardname     varchar(50)
    --DECLARE @CardFName     varchar(100)
    --DECLARE @Itemcode     Varchar (8)
    --DECLARE @Dscription     varchar(100)
    --DECLARE @Quantity     FLOAT
         SET NOCOUNT ON;
         IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE NAME ='Temp_NetDues')
    Drop table Temp_Netdues
    CREATE TABLE Temp_Netdues (Cardname varchar(100),
    DocNum int, InvDate datetime, Days int, InvAmt Float, Balance FLOAT )
    INSERT INTO Temp_Netdues
    Select A.Customer [Name of Customer], A.DocNum [Invoice#], A.InvDt [Date],
    datediff(dd, A.InvDt, @Age) [Days],
    A.InvAmt [Invoice Amount],A.[balance] from
    SELECT  T0.[CardCode], max(T0.[CardName]) [Customer], T0.[DocNum],
    max(T0.[DocDate]) [InvDt], T0.[DocDueDate], T0.[DocTotal], T0.[PaidToDate],
    Doctotal - paidtodate [InvAmt], 0 as balance
    FROM OINV T0 where datediff(dd, T0.[DocDate], @Age)>0
    group by cardcode, docnum, docduedate, doctotal, paidtodate
    having ((doctotal -paidtodate) > 0)
    union all
    SELECT  T0.[CardCode], max(T0.[CardName]) [Customer], 0 as [DocNum],
    '' as  [InvDt],  '' as DocDueDate, 0 as [DocTotal],0 as [PaidToDate],
    0  as [InvAmt],T1.balance  [Balance]
    FROM OINV T0 , OCRD T1 where datediff(dd, T0.[DocDate], @Age)>0 and
    T1.[CardCode]=T0.[CardCode]
    group by T0.cardcode,T0.[CardName],T1.balance
    having ((sum(doctotal) ) > 0)
    ) A
    order by  [Name of Customer],[Invoice Amount] desc
    update Temp_Netdues set InvDate='', days=0 where docnum=''
    --delete  from Temp_NetDues where docnum=''
    SELECT  *  FROM Temp_Netdues   order by Cardname,Balance asc
    END
    Regards,
    Mizan
    Edited by: mizan700 on Apr 26, 2011 2:44 PM

  • Regarding totals  and sub totals text in alv

    Hi all,
    i am displaying Totals and subtotals ......but i want to display the text before the the Totals and Subtotals.
    Please help me in regarding this..
    Thanks in advance,
    S.Gangi reddy.

    hi,
    check this report.
    *& Report  ZGM_ALV_SUBTOTAL_TEXT                                       *
    *& Author :
    *& Date :
    *& Description :
    *& Modification History
    REPORT  ZGM_ALV_SUBTOTAL_TEXT                   .
    *& Table declaration
    TABLES: ekko.
    *& Type pool declaration
    TYPE-POOLS: slis. " Type pool for ALV
    *& Selection screen
    SELECT-OPTIONS: s_ebeln FOR ekko-ebeln.
    *& Type declaration
    Type declaration for internal table to store EKPO data
    TYPES: BEGIN OF x_data,
           ebeln  TYPE char30,  " Document no.
           ebelp  TYPE ebelp,   " Item no
           matnr  TYPE matnr,   " Material no
           matnr1 TYPE matnr,   " Material no
           werks  TYPE werks_d, " Plant
           werks1 TYPE werks_d, " Plant
           ntgew  TYPE entge,   " Net weight
           gewe   TYPE egewe,   " Unit of weight                          
           END OF x_data.
    *& Internal table declaration
    DATA:
      i_ekpo TYPE STANDARD TABLE OF x_data INITIAL SIZE 0,
    Internal table for storing field catalog information
      i_fieldcat TYPE slis_t_fieldcat_alv,
    Internal table for Top of Page info. in ALV Display
      i_alv_top_of_page TYPE slis_t_listheader,
    Internal table for ALV Display events
      i_events TYPE slis_t_event,
    Internal table for storing ALV sort information
      i_sort TYPE  slis_t_sortinfo_alv,
      i_event TYPE slis_t_event.
    *& Work area declaration
    DATA:
      wa_ekko TYPE x_data,
      wa_layout     TYPE slis_layout_alv,
      wa_events         TYPE slis_alv_event,
      wa_sort TYPE slis_sortinfo_alv.
    *& Constant declaration
    CONSTANTS:
       c_header   TYPE char1
                  VALUE 'H',                    "Header in ALV
       c_item     TYPE char1
                  VALUE 'S'.
    *& Start-of-selection event
    START-OF-SELECTION.
    Select data from ekpo
      SELECT ebeln " Doc no
             ebelp " Item
             matnr " Material
             matnr " Material
             werks " Plant
             werks " Plant
             ntgew " Quantity
             gewei " Unit
             FROM ekpo
             INTO TABLE i_ekpo
             WHERE ebeln IN s_ebeln
             AND ntgew NE '0.00'.  IF sy-subrc = 0.
        SORT i_ekpo BY ebeln ebelp matnr .
      ENDIF.
    To build the Page header
      PERFORM sub_build_header. "* To prepare field catalog
      PERFORM sub_field_catalog. "* Perform to populate the layout structure
      PERFORM sub_populate_layout."* Perform to populate the sort table.
      PERFORM sub_populate_sort."* Perform to populate ALV event
      PERFORM sub_get_event.
      END-OF-SELECTION.
    * Perform to display ALV report
      PERFORM sub_alv_report_display.
    *&      Form  sub_build_header
          To build the header
          No Parameter
    FORM sub_build_header .
    Local data declaration
      DATA: l_system     TYPE char10 ,          "System id
            l_r_line     TYPE slis_listheader,  "Hold list header
            l_date       TYPE char10,           "Date
            l_time       TYPE char10,           "Time
            l_success_records TYPE i,           "No of success records
            l_title(300) TYPE c.                " Title
    Title  Display
      l_r_line-typ = c_header.               " header
      l_title = 'Test report'(001).
      l_r_line-info = l_title.
      APPEND l_r_line TO i_alv_top_of_page.
      CLEAR l_r_line.
    * Run date Display
      CLEAR l_date.
      l_r_line-typ  = c_item.                " Item
      WRITE: sy-datum  TO l_date MM/DD/YYYY.
      l_r_line-key = 'Run Date :'(002).
      l_r_line-info = l_date.
      APPEND l_r_line TO i_alv_top_of_page.
      CLEAR: l_r_line,
             l_date.ENDFORM.                    " sub_build_header
    *&      Form  sub_field_catalog
          Build Field Catalog
          No Parameter
    FORM sub_field_catalog .
    Build Field Catalog
      PERFORM sub_fill_alv_field_catalog USING:     '01' '01' 'EBELN'
      'I_EKPO' 'L'
         'Doc No'(003) ' ' ' ' ' ' ' ',     '01' '02' 'EBELP' 'I_EKPO' 'L'
         'Item No'(004) 'X' 'X' ' ' ' ',     '01' '03' 'MATNR' 'I_EKPO' 'L'
         'Material No'(005) 'X' 'X' ' ' ' ',     '01' '03' 'MATNR1' 'I_EKPO'
         'L'
         'Material No'(005) ' ' ' ' ' ' ' ',
         '01' '04' 'WERKS' 'I_EKPO' 'L'
         'Plant'(006) 'X' 'X' ' ' ' ',     '01' '04' 'WERKS1' 'I_EKPO' 'L'
         'Plant'(006) ' ' ' ' ' ' ' ',     '01' '05' 'NTGEW' 'I_EKPO' 'R'
         'Net Weight'(007) ' ' ' ' 'GEWE' 'I_EKPO'.ENDFORM.
    " sub_field_catalog*&----
    *&     Form  sub_fill_alv_field_catalog
    *&     For building Field Catalog
    *&     p_rowpos   Row position
    *&     p_colpos   Col position
    *&     p_fldnam   Fldname
    *&     p_tabnam   Tabname
    *&     p_justif   Justification
    *&     p_seltext  Seltext
    *&     p_out      no out
    *&     p_tech     Technical field
    *&     p_qfield   Quantity field
    *&     p_qtab     Quantity table
    FORM sub_fill_alv_field_catalog  USING  p_rowpos    TYPE sycurow
                                            p_colpos    TYPE sycucol
                                            p_fldnam    TYPE fieldname
                                            p_tabnam    TYPE tabname
                                            p_justif    TYPE char1
                                            p_seltext   TYPE dd03p-scrtext_l
                                            p_out       TYPE char1
                                            p_tech      TYPE char1
                                            p_qfield    TYPE slis_fieldname
                                            p_qtab      TYPE slis_tabname.
                                           Local declaration for field
                                           catalog
      DATA: wa_lfl_fcat    TYPE  slis_fieldcat_alv.
      wa_lfl_fcat-row_pos        =  p_rowpos.     "Row
      wa_lfl_fcat-col_pos        =  p_colpos.     "Column
      wa_lfl_fcat-fieldname      =  p_fldnam.     "Field Name
      wa_lfl_fcat-tabname        =  p_tabnam.     "Internal Table Name
      wa_lfl_fcat-just           =  p_justif.     "Screen Justified
      wa_lfl_fcat-seltext_l      =  p_seltext.    "Field Text
      wa_lfl_fcat-no_out         =  p_out.        "No output
      wa_lfl_fcat-tech           =  p_tech.       "Technical field
      wa_lfl_fcat-qfieldname     =  p_qfield.     "Quantity unit
      wa_lfl_fcat-qtabname       =  p_qtab .
      "Quantity table
      IF p_fldnam = 'NTGEW'.
        wa_lfl_fcat-do_sum  = 'X'.
      ENDIF.
      APPEND wa_lfl_fcat TO i_fieldcat.
      CLEAR wa_lfl_fcat.
    ENDFORM.
    " sub_fill_alv_field_catalog*&----
    *&      Form  sub_populate_layout
          Populate ALV layout
          No Parameter
    FORM sub_populate_layout .  CLEAR wa_layout.
      wa_layout-colwidth_optimize = 'X'.
    " Optimization of Col width
    ENDFORM. " sub_populate_layout*&----
    *&      Form  sub_populate_sort
          Populate ALV sort table
          No Parameter
    FORM sub_populate_sort .
    Sort on material
      wa_sort-spos = '01' .
      wa_sort-fieldname = 'MATNR'.
      wa_sort-tabname = 'I_EKPO'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      APPEND wa_sort TO i_sort .
      CLEAR wa_sort.
    Sort on plant
      wa_sort-spos = '02'.
      wa_sort-fieldname = 'WERKS'.
      wa_sort-tabname = 'I_EKPO'.
      wa_sort-up = 'X'.
      wa_sort-subtot = 'X'.
      APPEND wa_sort TO i_sort .
      CLEAR wa_sort.
    ENDFORM.
    " sub_populate_sort*&----
    *&      Form  sub_get_event
          Get ALV grid event and pass the form name to subtotal_text
          event
          No Parameter
    FORM sub_get_event .
      CONSTANTS : c_formname_subtotal_text TYPE slis_formname VALUE
    'SUBTOTAL_TEXT'.  DATA: l_s_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 4
        IMPORTING
          et_events       = i_event
        EXCEPTIONS
          list_type_wrong = 0
          OTHERS          = 0.
    Subtotal
      READ TABLE i_event  INTO l_s_event
                        WITH KEY name = slis_ev_subtotal_text.
      IF sy-subrc = 0.
        MOVE c_formname_subtotal_text TO l_s_event-form.
        MODIFY i_event FROM l_s_event INDEX sy-tabix.
      ENDIF.ENDFORM.
    " sub_get_event*&----
    *&      Form  sub_alv_report_display
          For ALV Report Display
          No Parameter
    FORM sub_alv_report_display .
      DATA: l_repid TYPE syrepid .
      l_repid = sy-repid .
    This function module for displaying the ALV
    report
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = l_repid
          i_callback_top_of_page   = 'SUB_ALV_TOP_OF_PAGE'
          is_layout                = wa_layout
          it_fieldcat              = i_fieldcat
          it_sort = i_sort
          it_events                = i_event
          i_default                = 'X'
          i_save                   = 'A'
        TABLES
          t_outtab                 = i_ekpo
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
      IF sy-subrc <> 0.
       MESSAGE i000 WITH 'Error in ALV report display'(055).
      ENDIF.
      ENDFORM.
    " sub_alv_report_display*&----
          FORM sub_alv_top_of_page
          Call ALV top of page
          No parameter
    FORM sub_alv_top_of_page.                                   "#EC CALLED*
    *To write header for the ALV
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = i_alv_top_of_page.
    ENDFORM.
    "alv_top_of_page*&----
    *&      Form  subtotal_text
          Build subtotal text
          P_total  Total
          p_subtot_text Subtotal text info
    FORM subtotal_text CHANGING
                   p_total TYPE any
                   p_subtot_text TYPE slis_subtot_text.
    Material level sub total
      IF p_subtot_text-criteria = 'MATNR'.
        p_subtot_text-display_text_for_subtotal
        = 'Material level total'(009).
      ENDIF.
    Plant level sub total
      IF p_subtot_text-criteria = 'WERKS'.
        p_subtot_text-display_text_for_subtotal = 'Plant level total'(010).
      ENDIF.
    ENDFORM.                    "subtotal_textSelection screen:
    \[removed by moderator\]
    Edited by: Jan Stallkamp on Sep 3, 2008 6:17 PM

  • Regarding Total in ALV

    Hi all,
       I am using alv to display Currency fields in a tax return report.........I want to display the sum of a perticular column or all the columns when i press the total button from alv selecting the required columns. But its coming only for first two columns not for all. Please help.
    Regards.

    Hi,
    This ALV program have all the basic report requirements such as page heading, page no, sub-total and a grand total.
    * This is a basic ALV with the followings:-
    * - Page Heading
    * - Page No
    * - Sub-Total
    * - Grand Total
    REPORT ZALV.
    TYPE-POOLS: SLIS.
    DATA: G_REPID LIKE SY-REPID,
    GS_PRINT            TYPE SLIS_PRINT_ALV,
    GT_LIST_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
    GT_EVENTS           TYPE SLIS_T_EVENT,
    GT_SORT             TYPE SLIS_T_SORTINFO_ALV,
    GS_LAYOUT           TYPE SLIS_LAYOUT_ALV,
    GT_FIELDCAT         TYPE SLIS_T_FIELDCAT_ALV,
    FIELDCAT_LN LIKE LINE OF GT_FIELDCAT,
    COL_POS TYPE I.
    DATA: BEGIN OF ITAB,
      FIELD1(5) TYPE C,
      FIELD2(5) TYPE C,
      FIELD3(5) TYPE P DECIMALS 2,
    END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 0.
      INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB1.
    DATA: BEGIN OF ITAB_FIELDCAT OCCURS 0.
      INCLUDE STRUCTURE ITAB.
    DATA: END OF ITAB_FIELDCAT.
    * Print Parameters
    PARAMETERS:
                P_PRINT  AS CHECKBOX DEFAULT ' ', "PRINT IMMEDIATE
                P_NOSINF AS CHECKBOX DEFAULT 'X', "NO SELECTION INFO
                P_NOCOVE AS CHECKBOX DEFAULT ' ', "NO COVER PAGE
                P_NONEWP AS CHECKBOX DEFAULT ' ', "NO NEW PAGE
                P_NOLINF AS CHECKBOX DEFAULT 'X', "NO PRINT LIST INFO
                P_RESERV TYPE I.                  "NO OF FOOTER LINE
    INITIALIZATION.
    G_REPID = SY-REPID.
    PERFORM PRINT_BUILD    USING GS_PRINT.      "Print PARAMETERS
    START-OF-SELECTION.
    * TEST DATA
    MOVE 'TEST1' TO ITAB1-FIELD1.
    MOVE 'TEST1' TO ITAB1-FIELD2.
    MOVE '10.00' TO ITAB1-FIELD3.
    APPEND ITAB1.
    MOVE 'TEST2' TO ITAB1-FIELD1.
    MOVE 'TEST2' TO ITAB1-FIELD2.
    MOVE '20.00' TO ITAB1-FIELD3.
    APPEND ITAB1.
    DO 50 TIMES.
      APPEND ITAB1.
    ENDDO.
    END-OF-SELECTION.
    PERFORM BUILD.
    PERFORM EVENTTAB_BUILD CHANGING GT_EVENTS.
    PERFORM COMMENT_BUILD  CHANGING GT_LIST_TOP_OF_PAGE.
    PERFORM CALL_ALV.
    FORM BUILD.
    * DATA FIELD CATALOG
    * Explain Field Description to ALV
    DATA: FIELDCAT_IN TYPE SLIS_FIELDCAT_ALV.
    CLEAR FIELDCAT_IN.
    FIELDCAT_LN-FIELDNAME = 'FIELD1'.
    FIELDCAT_LN-TABNAME   = 'ITAB1'.
    *FIELDCAT_LN-NO_OUT    = 'X'.  "FIELD NOT DISPLAY, CHOOSE FROM LAYOUT
    FIELDCAT_LN-KEY       = ' '.   "SUBTOTAL KEY
    FIELDCAT_LN-NO_OUT    = ' '.
    FIELDCAT_LN-SELTEXT_L = 'HEAD1'.
    APPEND FIELDCAT_LN TO GT_FIELDCAT.
    CLEAR FIELDCAT_IN.
    FIELDCAT_LN-FIELDNAME = 'FIELD2'.
    FIELDCAT_LN-TABNAME   = 'ITAB1'.
    FIELDCAT_LN-NO_OUT    = 'X'.
    FIELDCAT_LN-SELTEXT_L = 'HEAD2'.
    APPEND FIELDCAT_LN TO GT_FIELDCAT.
    CLEAR FIELDCAT_IN.
    FIELDCAT_LN-FIELDNAME     = 'FIELD3'.
    FIELDCAT_LN-TABNAME       = 'ITAB1'.
    FIELDCAT_LN-REF_FIELDNAME = 'MENGE'. "<- REF FIELD IN THE DICTIONNARY
    FIELDCAT_LN-REF_TABNAME   = 'MSEG'.  "<- REF TABLE IN THE DICTIONNARY
    FIELDCAT_LN-NO_OUT        = ' '.
    FIELDCAT_LN-DO_SUM        = 'X'.   "SUM UPON DISPLAY
    APPEND FIELDCAT_LN TO GT_FIELDCAT.
    * DATA SORTING AND SUBTOTAL
    DATA: GS_SORT TYPE SLIS_SORTINFO_ALV.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'FIELD1'.
    GS_SORT-SPOS      = 1.
    GS_SORT-UP        = 'X'.
    GS_SORT-SUBTOT    = 'X'.
    APPEND GS_SORT TO GT_SORT.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'FIELD2'.
    GS_SORT-SPOS      = 2.
    GS_SORT-UP        = 'X'.
    *GS_SORT-SUBTOT    = 'X'.
    APPEND GS_SORT TO GT_SORT.
    ENDFORM.
    FORM CALL_ALV.
    * ABAP List Viewer
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    * I_INTERFACE_CHECK = ' '
    * I_BYPASSING_BUFFER =
    * I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = G_REPID
    * I_CALLBACK_PF_STATUS_SET = ' '
    * I_CALLBACK_USER_COMMAND = ' '
    I_STRUCTURE_NAME = 'ITAB1'
    IS_LAYOUT =  GS_LAYOUT
    IT_FIELDCAT = GT_FIELDCAT[]
    * IT_EXCLUDING =
    * IT_SPECIAL_GROUPS =
      IT_SORT = GT_SORT[]
    * IT_FILTER =
    * IS_SEL_HIDE =
    * I_DEFAULT = 'X'
    * I_SAVE = ' '
    * IS_VARIANT =
      IT_EVENTS = GT_EVENTS[]
    * IT_EVENT_EXIT =
      IS_PRINT = GS_PRINT
    * IS_REPREP_ID =
    * I_SCREEN_START_COLUMN = 0
    * I_SCREEN_START_LINE = 0
    * I_SCREEN_END_COLUMN = 0
    * I_SCREEN_END_LINE = 0
    * IMPORTING
    * E_EXIT_CAUSED_BY_CALLER =
    * ES_EXIT_CAUSED_BY_USER =
    TABLES
    T_OUTTAB = ITAB1
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2.
    ENDFORM.
    * HEADER FORM
    FORM EVENTTAB_BUILD CHANGING LT_EVENTS TYPE SLIS_T_EVENT.
    CONSTANTS:
    GC_FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
    *GC_FORMNAME_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE'.
      DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                I_LIST_TYPE = 0
           IMPORTING
                ET_EVENTS   = LT_EVENTS.
      READ TABLE LT_EVENTS WITH KEY NAME =  SLIS_EV_TOP_OF_PAGE
                               INTO LS_EVENT.
      IF SY-SUBRC = 0.
        MOVE GC_FORMNAME_TOP_OF_PAGE TO LS_EVENT-FORM.
        APPEND LS_EVENT TO LT_EVENTS.
      ENDIF.
    * define END_OF_PAGE event
    * READ TABLE LT_EVENTS WITH KEY NAME =  SLIS_EV_END_OF_PAGE
    *                          INTO LS_EVENT.
    * IF SY-SUBRC = 0.
    *   MOVE GC_FORMNAME_END_OF_PAGE TO LS_EVENT-FORM.
    *   APPEND LS_EVENT TO LT_EVENTS.
    * ENDIF.
    ENDFORM.
    FORM COMMENT_BUILD CHANGING GT_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER.
      DATA: GS_LINE TYPE SLIS_LISTHEADER.
      CLEAR GS_LINE.
      GS_LINE-TYP  = 'H'.
      GS_LINE-INFO = 'HEADER 1'.
      APPEND GS_LINE TO GT_TOP_OF_PAGE.
      CLEAR GS_LINE.
      GS_LINE-TYP  = 'S'.
      GS_LINE-KEY  = 'STATUS 1'.
      GS_LINE-INFO = 'INFO 1'.
      APPEND GS_LINE TO GT_TOP_OF_PAGE.
      GS_LINE-KEY  = 'STATUS 2'.
      GS_LINE-INFO = 'INFO 2'.
      APPEND GS_LINE TO GT_TOP_OF_PAGE.
    * CLEAR GS_LINE.
    * GS_LINE-TYP  = 'A'.
    * GS_LINE-INFO = 'ACTION'.
    * APPEND GS_LINE TO  GT_TOP_OF_PAGE.
    ENDFORM.
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
      WRITE: SY-DATUM, 'Page No', SY-PAGNO LEFT-JUSTIFIED.
    ENDFORM.
    FORM END_OF_PAGE.
      WRITE at (sy-linsz) sy-pagno CENTERED.
    ENDFORM.
    * PRINT SETTINGS
    FORM PRINT_BUILD USING LS_PRINT TYPE SLIS_PRINT_ALV.
      LS_PRINT-PRINT              = P_PRINT.  "PRINT IMMEDIATE
      LS_PRINT-NO_PRINT_SELINFOS  = P_NOSINF. "NO SELECTION INFO
      LS_PRINT-NO_COVERPAGE       = P_NOCOVE. "NO COVER PAGE
      LS_PRINT-NO_NEW_PAGE        = P_NONEWP.
      LS_PRINT-NO_PRINT_LISTINFOS = P_NOLINF. "NO PRINT LIST INFO
      LS_PRINT-RESERVE_LINES      = P_RESERV.
    ENDFORM.
    *END OF ZALV PROGRAM
    Regards
    Sudheer

  • This is regarding totals and sub totals in sap-scripts

    Hi to all...............
    1...How to print totals and subtotals in sap-scripts? where we have to code the logic.what sort of logic is needed to print the same?
    regards,
    swaminath.

    Hi
    HI,
    To calculate totals and sub totals in sap scripts you have to use subroutines.
    Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
    /: DEFINE &TOT_PRICE&
    /: PERFORM F_GET_PRICE IN PROGRAM <subroutine prog name> /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
    Then write the variable where ever you want it to be printed (mostly it will be in footer window)
    Then create subroutine pool program and you have to write the code.
    FORM F_GET_PRICE tables int_cond structure itcsy
    outt_cond structure itcsy. data : value type kbert.
    statics value1 type kbert.
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    To know more, have a look at this thread ..
    Re: SAP Script: Display Total calculated  on page 2 in page 1
    <b>Reward if usefull</b>

  • Trigger for validation of salary updated in emp table is within range

    Hi,
    I need some help in correcting my fault in the below trigger as it is not working as expected.
    . trigger should be invoked if while modifying the  sal in EMP table, it is not in the valid range as specified in the SALGRADE table (between lowest  losal and highest  hisal)
    salgrade table
    Column Name
    Data Type
    Nullable
    Default
    Primary Key
    GRADE
    NUMBER(2,0)
    Yes
    LOSAL
    NUMBER
    Yes
    HISAL
    NUMBER
    Yes
    I have created a trigger
    create or replace trigger tr_validate_sal
    before
    insert or update on emp
    for each row
    declare
    cursor c is select losal,hisal from salgrade;
    begin
    for i in c
    loop
    if :new.sal < i.losal and :new.sal > i.hisal
    then
    raise_application_error(-20400,'sal out of range');
    end if;
    end loop;
    end;
    after creating this trigger also i am able to insert or update salary not in range of salgrade (losal and hisal). please help.

    /* Formatted on 2013/12/24 09:31 (Formatter Plus v4.8.8) */
    CREATE OR REPLACE TRIGGER tr_validate_sal
       BEFORE INSERT OR UPDATE
       ON emp1
       FOR EACH ROW
    DECLARE
      v_lowsal number;
      v_hisal number;
    BEGIN
      SELECT min(losal) losal, max(hisal)
         INTO v_lowsal, v_hisal
            FROM salgrade;
          IF :NEW.sal not between v_lowsal and   v_hisal
          THEN
             raise_application_error (-20400, 'sal out of range');
          END IF;
    END;

Maybe you are looking for

  • Illustrator CC Crashes on Launch... Agian (Most of the Time)

    Okay so here is the issue: Illustrator CC crashes on launch most times I open. Somehow, with no explanation it will just work, but it crashes at least 4-5 times before it will. About a month ago (when I updated to 17.1) I had an issue where it crashe

  • Network problem when update ios 5.1.1

    hi, I am in big problem with my iphone 4, when upgrade in ios 5.1.1 then my operator's network some times showing and sometimes not showing. Also notice that if the network bars is full but it is not working. Please help me with some advise at   [ema

  • Drop command takes time

    Dear All, I am using Oracle 9.2.0.3.0 database server. I have just issue the drop command as following: SQL> drop table bss.lookup; and I am waiting since 1 hour for the result and there is no response. Can anyone tell me what is the issue? Thanks in

  • _____HELP!_Illustrator file won't open "Photoshop file is not readable"

    Help! My Illustrator file won't open - it starts to, then after 1 second I get the error message: "Photoshop file is not readable" Any suggestions?

  • Oracle on dual boot Linux/Windows

    Can you install Oracle on WindowsNT and Linux and have both work on the same database? Has anyone tried this? null