Allignment MBEW and QBEW

Hi everyone,
I need ask a question about the behavior of SAP on QBEW records.
We have seen that once the first movement write a record in QBEW, data like ORIGIN GROUP ( QBEW- HRKFT) or PRICE CONTROL (QBEW - VMVPR) are not updated even if with transaction MM02 we will change them.
We were wonder if some standard program exist in order to change this data in QBEW ( and not on MBEW using MM02) otherwise in case of user's mistake on fill in those fields in material master data, we lose the opportunity to have a right calculation of cost overview based on the origin group and many other process.
I really appreciate any help or hints in order to solved this that is beginning to be a big problem for our company.
Many thanks
Tiziana

HELLO, do you think that a SAP SLO is necessary in order to change origin group when some user's mistake happens?
Many thanks

Similar Messages

  • Stock report using mbew and mbewh

    Hi to all.
    i want to prepare o report for month end stock.
    i am preparing this report using tables mbew and mbewh..
    as per my knowledge goes the current stock is in the table mbew and history stock is in the table mbewh.
    i am picking up the current data from the mbew and history data from mbewh..
    the report is working fine till for january to august..
    but i dont know what wrong happen when i run it for the last month of previous year i.e 01/12/2005.
    it is showing some data difference for this period and also due to this some difference for earlier periods..
    please suggest me what could be the reason..
    because i have worked a lot on it and it is also working fine for this year...
    also tell me what could be the problem..
    i will surely reward back with points..

    HI
      I guess the problem might be lying with the way you
    are handling the date or period.
      Can you post your code???
    Kind Regards
    Eswar

  • Table MBEW and MVEW Difference?

    Hi Guys,
      What’s the difference b’tween MBEW and MVEW  i can see both for material valuation. If i enter data in material costing (From Material Master Transaction)  it is appending entries in MBEW why not in MVEW.
    The second thing is what’s the use of table MBEW_TMP (File for Incorrect data in direct Input)  it also not appending entries from transaction material master as i said before.
    Please share your knowledge, looking for your reply.
    Thanks in advance.

    There is no such table MVEW
    The material valuation table  MBEW is availabe in SAP...
    Regards
    sapman

  • The relation between table mbew and mbewh

    MORNING!
      I wanna know the relation between table mbew and mbewh.
      I finded some materials in table mbewh have total valuated stock , but these materials don't have value .
      Thanks a lot !

    Hi Roy, please check this link.
    http://www.sapfans.com/forums/viewtopic.php?p=4330&sid=a1b0e2c950bb90aa410b796d9ce0a13c
    REgards,
    Rich Heilman

  • Regarding BW standard extractor for material valuation (  MBEW and MBEWH )

    Hi All
    I would like to extract data from  MBEW and MBEWH tabels to get material valuation information. Is there any standard extractor avaiable to fect this this information to BW? I have seacrhed forums , some one suggested to use 0CO_PC_ACT_05 extractor but they have also mentioned it would not fetct data from history table MBEWH table. I need to extract full information based on both the  tabels for all the years.
    Is there any extractor available?
    Please advise
    Thanks
    Vennela

    Hi Vennela:
    We did not use any DSO from standard content. We created a custom write optimized DSO with the same key fields as MBEW.
    We do a delete data and full reload every night.
    Then we load 0MATPLANT from the DSO.
    We also do a currency conversion to convert all prices to USD and load a custom attribute of 0MATPLANT to hold USD prices.
    These material prices will get over written every day with the current valuation for that day.
    Thats our data flow.
    We did not have a requirement to hold history from MBEWH. you might be able to hold history within BW if you load the data into another DSO with a extra key field for the system date of the day you are loading data for.
    Hope this helps.
    Good Luck.
    MP.

  • Report for historic valuation of material-MBEW and MBEWH

    Hello,
    Our client needs a report that shows the value of stock of past period, the medium price during last exercises. Actually they have a Z report that show all this data, considering the data on MBEWH. The problem is that MBEWH only is updated if there is a price change (for example MR21) or a goods receipt. This table only will be changed when in the comiing month a material have any movement of stock.
    My question, if we catch the values LFGJA and LFMON OF MBEW table we consider the last change of price, and the key for entering to MBEWH table to get the past values.
    I have checked too, the MC.9 transaction. Looks like fine too, but if we can develop a program for accessing to the S039 table, this table is transparent table and we can not get any data. The data is providing from S032 table, and I have seen, that this table sometimes contains insconsistency values or negative values.
    Is there another transaction to get our client's requeriments???
    Thanks

    Hi Ravikumar,
    Hope you are an ABAPer. If not also, you can achieve this through an ABAPer. As mentioned by others, you need to check whether your requirement is met by the standard transaction MB5B. You need to check whether this transaction gives you the exact opening and closing balance for a material. If this gives what you want, then you need to make some small enhancement in the MB5B report program so that you will be getting the result of the opening and closing stock. In this enhancement you will use EXPORT to export the result to your program where you can IMPORT it. This procedure is explained in detail in a document created in SCN dated 30th November, 2012 by Sijin Siji. Have a look in that.
    That document is descriptive and it will be helping you in solving this issue. If you have any doubts, please revert back.
    Regards,
    Abijith

  • Mbew and other related tables

    Hi all,
    I need the mbew-peinh field's meaning and other tables related to mbew.
    I see 1 as the value of mbew-peinh and want to find what does it mean in other tables?
    Thanks.

    Hi,
    check here:
    http://www.erpgenie.com/abap/tables_mm.htm
    Peinh is price unit ( it means in your case that the price is valid for 1 pc,kg etc. of your material. Look in transaction MM03 in Accounting view1 for your material)
    Regards Vassko!
    Message was edited by:
            Vasil Pavlov

  • Table MBEW and Transaction MC.9

    Hi,
    I developed a report program that reads stocks from table MBEW, but it doesnt reconcile with the stocks you get from MC.9.
    Im thinking MC.9 gets the data from other source tables. I need to explain why its not the same and possibly modify the code to reconcile the quantities.
    Please help.
    Thanks.
    Kenny

    check with LQUA Table,MLGT Table,MARD-LABST Table
    See the below Program and Which is inventory report :
    type-pools
    type-pools : slis.
    Data Declaration
    tables : mara,
             marc,
             lagp,
             mvke,
             makt.
    Constants
    constants : c_werks(4) type c value '1000'," Plant
                c_lgort(4) type c value '1000'," Storage Location
                c_periv like MARC-PERIV value 'XX',
                c_perkz like MVER-PERKZ value 'T'.
    Internal Tables
    Internal Table for MARA and MAKT and MARD
    data : begin of I_material occurs 0,
           matnr like mara-matnr, " Material
           lgpla like mlgt-lgpla," Storage Type
           zzdept like marc-zzdept," Pick Dept
           ZZPRODDEPT like marc-ZZPRODDEPT," Prod Dept
           vmsta like mvke-vmsta, " Material Status
           end of i_material.
    Structure
    data : begin of i_final occurs 0 ,
           matnr like mara-matnr," Material #
           maktx like makt-maktx," Description
           lgpla like mlgt-lgpla, " Storage Bin
           days  like P0347-SCRDD, " No of Days
           menge like mseg-menge, " Avg Daily Sales
           kbetr like konp-kbetr, " Avg
           labst like mard-labst," Inventory Stock
           stprs like mbew-stprs, " Mvg avg Price
           dos   like mseg-menge, " DOS Units
           dosm  like konp-kbetr, " DOS $$
           end of i_final.
    data : int_ges_verb_tab like sverbtaba
                                occurs 0 with header line.
    Internal table for A004
    data : i_a004 like a004 occurs 0 with header line.
    Data Variables
    data : v_stprs like konp-kbetr,
           v_repid like sy-repid,
           v_labst like mard-labst,
           v_maktx like makt-maktx.
      ALV Function Module Variables
    DATA: g_repid like sy-repid,
          gs_layout type slis_layout_alv,
          g_exit_caused_by_caller,
          gs_exit_caused_by_user type slis_exit_by_user.
    DATA: gt_fieldcat    type slis_t_fieldcat_alv,
          gs_print       type slis_print_alv,
          gt_events      type slis_t_event,
          gt_list_top_of_page type slis_t_listheader,
          g_status_set   type slis_formname value 'PF_STATUS_SET',
          g_user_command type slis_formname value 'USER_COMMAND',
          g_top_of_page  type slis_formname value 'TOP_OF_PAGE',
          g_top_of_list  type slis_formname value 'TOP_OF_LIST',
          g_end_of_list  type slis_formname value 'END_OF_LIST',
          g_variant LIKE disvariant,
          g_save(1) TYPE c,
          g_tabname_header TYPE slis_tabname,
          g_tabname_item   TYPE slis_tabname,
          g_exit(1) TYPE c,
          gx_variant LIKE disvariant.
    Selection-screen
    selection-screen : begin of block blk with frame title text-001.
    parameters : p_werks like marc-werks obligatory default '1000'.
    select-options : s_matnr for mara-matnr,
                     s_MATKL for mara-MATKL,
                     s_mtart for mara-mtart,
                     s_LGTYP for LAGP-LGTYP,
                     p_vmsta for MVKE-VMSTA,
                     s_dept  for marc-zzdept,
                     s_pdept for MARC-ZZPRODDEPT.
    selection-screen: end of block blk.
    selection-screen begin of block periods with frame title text-002.
    selection-screen begin of line.
    selection-screen comment (15) text-c01.
    selection-screen position 18.
    Period 1
    parameters: p_stdat1 like mkpf-budat obligatory.
    selection-screen position 35.
    selection-screen comment (10) text-c02.
    parameters: p_endat1 like mkpf-budat obligatory.
    selection-screen end of line.
    selection-screen end of block periods.
    Fill the default values
    initialization.
      v_repid = sy-repid.
      PERFORM LAYOUT_INIT USING GS_LAYOUT.
      PERFORM EVENTTAB_BUILD USING GT_EVENTS[].
    Validation for Dates
    at selection-screen.
      if p_stdat1 > p_endat1.
        message e206(zwave) with
           ' End date should be greater than or equal to Start Date'.
      endif.
    Make one of the Selection should be mandatory
      if s_matnr-low is initial.
        if s_matkl-low is initial and s_mtart-low is initial and
           s_dept-low is initial  and s_pdept-low is initial.
          message e208(zwave) with
                       'Enter atleast one selection Criteria'.
        endif.
      endif.
    Start-of-selection.
    start-of-selection.
    Get the data from MARA,MARD,MAKT Table
      perform get_data_tables.
    Read the data into FInal Table.
      perform read_data.
    END-OF-SELECTION.
    end-of-selection.
      if not i_final[] is initial.
    ALV Function Module
        perform print_alv.
      endif.
    *&      Form  get_data_tables
    Get the data from Tables MARA,MARD,MAKT
    FORM get_data_tables.
      select a~matnr
             b~lgpla
             czzdept cZZPRODDEPT d~vmsta into table i_material
             from mara as a inner join mlgt as b on amatnr = bmatnr
             inner join marc as c on cmatnr = amatnr
             inner join mvke as d on dmatnr = amatnr
             where a~matnr in s_matnr
                   and   c~werks = p_werks
                   and   a~mtart in s_mtart
                   and   c~ZZPRODDEPT in s_pdept
                   and   a~MATKL in s_MATKL
                   and   c~zzdept in s_dept
                   and   b~lgnum = '100'
                   and   b~LGTYP in s_lgtyp
                   and   b~lgpla ne space
                   and   d~vkorg = '0001'
                   and   d~vtweg = '01'
                   and   d~matnr in s_matnr
                   and   d~vmsta in p_vmsta.
      if sy-subrc ne 0.
      message e207(zwave) with 'No data found for Given Selection Criteria'.
      endif.
      sort i_material by matnr .
      DELETE ADJACENT DUPLICATES FROM i_material COMPARING matnr.
    ENDFORM.                    " get_data_tables
    *&      Form  read_data
          Read the data
    FORM read_data.
      loop at i_material.
      Storage Bin
        i_final-lgpla = i_material-lgpla.
    Days of Sales ( End date - Start date )
        CALL FUNCTION 'HR_HK_DIFF_BT_2_DATES'
             EXPORTING
                  DATE1         = p_endat1
                  DATE2         = p_stdat1
                  OUTPUT_FORMAT = '02'
             IMPORTING
                  DAYS          = i_final-days.
    Get the Average Daily Sales (Units) from MVER Table
        perform get_average_sales.
    Get the Average Daily Sales ($$) from VK13 Transaction
        perform get_avgsales_price.
        clear : v_labst.
    Get the Inventory from MARD Table
        select single labst from mard into v_labst
                                 where matnr = i_material-matnr
                                 and   werks = p_werks
                                 and   lgort = c_lgort.
        if sy-subrc eq 0.
    Inventory Stock - MARD-LABST
          i_final-labst = v_labst.
        endif.
    Material #
        i_final-matnr = i_material-matnr.
    Get the Material Description
        clear v_maktx.
        select single maktx from makt into v_maktx
                            where matnr = i_material-matnr
                            and   spras = 'EN'.
        if sy-subrc eq 0.
    Description
          i_final-maktx = v_maktx.
        endif.
    Get the Mvg Average Price
        perform get_moving_avgpr.
    Days of Supply Units.
        if i_final-kbetr ne 0.
          i_final-dos = i_final-labst / i_final-menge.
        endif.
    Days of Supply $$
        i_final-dosm =  i_final-dos * v_stprs.
        append  i_final.
        clear : i_final,
                i_material.
      endloop.
      refresh i_material.
    ENDFORM.                    " read_data
    *&      Form  get_average_sales
          Get the data from MVER Table
    FORM get_average_sales.
      data : lv_menge like mseg-menge.
      refresh int_ges_verb_tab.
      clear : int_ges_verb_tab,
              lv_menge.
      CALL FUNCTION 'CONSUMPTION_READ_FOR_MM'
        EXPORTING
      KZRFB              = ' '
          MATNR              = i_material-matnr
          WERKS              = c_werks
          PERKZ              = c_perkz
          PERIV              = c_periv
       TABLES
         GES_VERB_TAB       = int_ges_verb_tab
      UNG_VERB_TAB       =
       EXCEPTIONS
         WRONG_CALL         = 1
         NOT_FOUND          = 2
         OTHERS             = 3
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      loop at int_ges_verb_tab.
        if int_ges_verb_tab-ertag   >= p_stdat1  and
           int_ges_verb_tab-ertag  <= p_endat1.
          add int_ges_verb_tab-vbwrt to lv_menge.
        endif.
      endloop.
      i_final-menge = lv_menge / i_final-days.
    ENDFORM.                    " get_average_sales
    *&      Form  get_avgsales_price
          Avg Daily Sales Price
    FORM get_avgsales_price.
    Get the data from A004 table to get KNUMH
    Added new field Sales Unit - Seshu 01/09/2006
      refresh : i_a004.
      clear :   i_a004.
      data : lv_kbetr like konp-kbetr," Condition value
             lv_KPEIN like konp-kpein , "per
             lv_KMEIN like konp-KMEIN. " Sales Unit
      select * from a004 into table i_a004
                              where matnr = i_material-matnr
                              and   vkorg = '0001'
                              and   vtweg = '01'.
      if sy-subrc eq 0.
        sort i_a004 by DATAB descending.
    Get the Latetest Date
        read table i_a004 with key matnr = i_material-matnr
                                   vkorg = '0001'
                                   vtweg = '01'
                                   binary search.
    Get the Sales Value
        select single kbetr KPEIN KMEIN from konp
                 into (lv_kbetr,lv_KPEIN, lv_KMEIN)
                                 where knumh = i_a004-knumh
                                 and   kappl = i_a004-kappl
                                 and   kschl = i_a004-kschl.
        if sy-subrc eq 0.
          i_final-kbetr = lv_kbetr / lv_KPEIN.
          i_final-kbetr = i_final-kbetr * i_final-menge.
        endif.
      endif.
      clear : lv_kbetr,
              lv_kpein,
              lv_KMEIN.
    ENDFORM.                    " get_avgsales_price
    *&      Form  get_moving_avgpr
          Get the data from MVEW Table
    FORM get_moving_avgpr.
    Local Variables
      data : lv_stprs like mbew-stprs, " Standard Price
             lv_verpr like mbew-verpr, " Moving avg Price
             lv_vprsv like mbew-vprsv. " Price Indicator
      clear : lv_stprs,
              lv_verpr,
              lv_vprsv,
              v_stprs.
      select single stprs verpr vprsv from mbew
                    into (lv_stprs,lv_verpr,lv_vprsv)
                    where matnr = i_material-matnr.
      if sy-subrc eq 0.
        if lv_vprsv = 'S'.
          i_final-stprs = lv_stprs * i_final-labst.
          v_stprs = lv_stprs.
        elseif lv_vprsv = 'V'.
          i_final-stprs = lv_verpr * i_final-labst.
          v_stprs = lv_verpr.
        endif.
      endif.
    ENDFORM.                    " get_moving_avgpr
    *&      Form  print_alv
          REUSE_ALV_GRID_DISPLAY Function Module
    FORM print_alv.
      PERFORM COMMENT_BUILD USING GT_LIST_TOP_OF_PAGE[].
    Populate field catalog
      PERFORM fieldcat_init  using gt_fieldcat[].
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
       I_INTERFACE_CHECK                 = ' '
       I_BYPASSING_BUFFER                =
       I_BUFFER_ACTIVE                   = ' '
         I_CALLBACK_PROGRAM                = v_repid
       I_CALLBACK_PF_STATUS_SET          = ' '
        I_CALLBACK_USER_COMMAND           = g_user_command
        I_CALLBACK_TOP_OF_PAGE            =  g_top_of_page
       I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
       I_CALLBACK_HTML_END_OF_LIST       = ' '
       I_STRUCTURE_NAME                  =
       I_BACKGROUND_ID                   = ' '
       I_GRID_TITLE                      =
       I_GRID_SETTINGS                   =
         IS_LAYOUT                         = gs_layout
          IT_FIELDCAT                       = gt_fieldcat[]
       IT_EXCLUDING                      =
       IT_SPECIAL_GROUPS                 =
       IT_SORT                           =
       IT_FILTER                         =
       IS_SEL_HIDE                       =
       I_DEFAULT                         = 'X'
         I_SAVE                            = 'A'
        IS_VARIANT                        =
         IT_EVENTS                         = GT_EVENTS[]
       IT_EVENT_EXIT                     =
       IS_PRINT                          =
       IS_REPREP_ID                      =
       I_SCREEN_START_COLUMN             = 0
       I_SCREEN_START_LINE               = 0
       I_SCREEN_END_COLUMN               = 0
       I_SCREEN_END_LINE                 = 0
       IT_ALV_GRAPHICS                   =
       IT_ADD_FIELDCAT                   =
       IT_HYPERLINK                      =
       I_HTML_HEIGHT_TOP                 =
       I_HTML_HEIGHT_END                 =
       IT_EXCEPT_QINFO                   =
    IMPORTING
       E_EXIT_CAUSED_BY_CALLER           =
       ES_EXIT_CAUSED_BY_USER            =
        TABLES
          T_OUTTAB                          = i_final
       EXCEPTIONS
         PROGRAM_ERROR                     = 1
         OTHERS                            = 2
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                    " print_alv
    *&      Form  get_fieldcatlog
          Fieldcatlog
    *&      Form  fieldcat_init
          Fieldcat
    FORM fieldcat_init USING  e01_lt_fieldcat type slis_t_fieldcat_alv.
      DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    Material #
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'MATNR'.
      LS_FIELDCAT-ref_fieldname = 'MATNR'.
      LS_FIELDCAT-ref_tabname = 'MARA'.
      LS_FIELDCAT-TABNAME    = 'I_FINAL'.
      ls_fieldcat-seltext_L = 'Material'.
      ls_fieldcat-seltext_M = 'Material'.
      ls_fieldcat-seltext_S = 'Material'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Material Description
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'MAKTX'.
      LS_FIELDCAT-OUTPUTLEN    = 30.
      LS_FIELDCAT-TABNAME    = 'I_FINAL'.
      ls_fieldcat-seltext_L = 'Description'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Storage Bin
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'LGPLA'.
      LS_FIELDCAT-OUTPUTLEN    = 10.
      LS_FIELDCAT-TABNAME    = 'I_FINAL'.
      ls_fieldcat-seltext_L = 'Storage Bin'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Start Date
    CLEAR LS_FIELDCAT.
    LS_FIELDCAT-FIELDNAME    = 'SDATE'.
    LS_FIELDCAT-OUTPUTLEN    = 10.
    LS_FIELDCAT-TABNAME    = 'I_FINAL'.
    ls_fieldcat-seltext_L = 'Start Date'.
    APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    End Date.
    CLEAR LS_FIELDCAT.
    LS_FIELDCAT-FIELDNAME    = 'EDATE'.
    LS_FIELDCAT-OUTPUTLEN    = 10.
    LS_FIELDCAT-TABNAME    = 'I_FINAL'.
    ls_fieldcat-seltext_L = 'End Date'.
    APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Days of Sales
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'DAYS'.
      LS_FIELDCAT-OUTPUTLEN    = 12.
      LS_FIELDCAT-TABNAME    = 'I_FINAL'.
      ls_fieldcat-seltext_L = 'Days of Sales'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Average Daily Sales(Units).
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'MENGE'.
      LS_FIELDCAT-OUTPUTLEN    = 18.
      LS_FIELDCAT-TABNAME    = 'I_FINAL'.
      ls_fieldcat-seltext_L = 'Average Daily Sales(Units)'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Average Daily Sales($$)
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'KBETR'.
      LS_FIELDCAT-OUTPUTLEN    = 18.
      LS_FIELDCAT-TABNAME    = 'I_FINAL'.
      ls_fieldcat-seltext_L = 'Average Daily Sales($$)'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Inventory(Units)
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'LABST'.
      LS_FIELDCAT-OUTPUTLEN    = 18.
      LS_FIELDCAT-TABNAME    = 'I_FINAL'.
      ls_fieldcat-seltext_L = 'Inventory(Units)'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    Inventory($$)
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'STPRS'.
      LS_FIELDCAT-OUTPUTLEN    = 18.
      LS_FIELDCAT-TABNAME    = 'I_FINAL'.
      ls_fieldcat-seltext_L = 'Inventory($$)'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    DOS($$)
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'DOSM'.
      LS_FIELDCAT-OUTPUTLEN    = 13.
      LS_FIELDCAT-TABNAME    = 'I_FINAL'.
      ls_fieldcat-seltext_L = 'DOS($$)'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    DOS(Days)
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-FIELDNAME    = 'DOS'.
      LS_FIELDCAT-OUTPUTLEN    = 13.
      LS_FIELDCAT-TABNAME    = 'I_FINAL'.
      ls_fieldcat-seltext_L = 'DOS(Days)'.
      APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
    ENDFORM.                    " get_fieldcatlog
          FORM COMMENT_BUILD                                            *
    -->  LT_TOP_OF_PAGE                                                *
    FORM COMMENT_BUILD USING LT_TOP_OF_PAGE TYPE
                                            SLIS_T_LISTHEADER.
      DATA: LS_LINE TYPE SLIS_LISTHEADER.
    Variables for Date
      data : lv_year(4) type c,
             lv_mon(2) type c,
             lv_day(2) type c,
             lv_date1(10) type c,
             lv_date2(10) type c.
    LIST HEADING LINE: TYPE H
      CLEAR LS_LINE.
      LS_LINE-TYP  = 'H'.
      LS_LINE-INFO = sy-title.
      APPEND LS_LINE TO LT_TOP_OF_PAGE.
      clear : lv_year,
              lv_day,
              lv_mon,
              lv_date1.
      lv_year = p_stdat1+0(4).
      lv_mon = p_stdat1+4(2).
      lv_day = p_stdat1+6(2).
      concatenate lv_mon '/' lv_day '/' lv_year into lv_date1.
    STATUS LINE: TYPE S
      CLEAR LS_LINE.
      LS_LINE-TYP  = 'S'.
      LS_LINE-KEY  = TEXT-c01.
      LS_LINE-INFO = lv_date1.
      APPEND LS_LINE TO LT_TOP_OF_PAGE.
      clear : lv_year,
                lv_day,
                lv_mon,
                lv_date2.
      lv_year = P_ENDAT1+0(4).
      lv_mon = P_ENDAT1+4(2).
      lv_day = P_ENDAT1+6(2).
      concatenate lv_mon '/' lv_day '/' lv_year into lv_date2.
      LS_LINE-KEY  = text-c02.
      LS_LINE-INFO = lv_date2.
      APPEND LS_LINE TO LT_TOP_OF_PAGE.
      CLEAR LS_LINE.
    ENDFORM.
          FORM TOP_OF_PAGE                                              *
    FORM TOP_OF_PAGE.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
           EXPORTING
                I_LOGO             = 'FDLOGO'
                IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
    ENDFORM.
          FORM EVENTTAB_BUILD                                           *
    -->  RT_EVENTS                                                     *
    FORM EVENTTAB_BUILD USING RT_EVENTS TYPE SLIS_T_EVENT.
    *"Registration of events to happen during list display
      DATA: LS_EVENT TYPE SLIS_ALV_EVENT.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
           EXPORTING
                I_LIST_TYPE = 0
           IMPORTING
                ET_EVENTS   = RT_EVENTS.
      READ TABLE RT_EVENTS WITH KEY NAME = SLIS_EV_TOP_OF_PAGE
                               INTO LS_EVENT.
      IF SY-SUBRC = 0.
        MOVE G_TOP_OF_PAGE TO LS_EVENT-FORM.
        APPEND LS_EVENT TO RT_EVENTS.
      ENDIF.
    ENDFORM.
          FORM LAYOUT_INIT                                              *
    -->  RS_LAYOUT                                                     *
    FORM LAYOUT_INIT USING RS_LAYOUT TYPE SLIS_LAYOUT_ALV.
    **"Build layout for list display
      RS_LAYOUT-DETAIL_POPUP      = 'X'.
    lslayout-f2code            = p_f2code.
    rs_layout-zebra             = 'X'.
    rs_layout-colwidth_optimize = 'X'.
    ENDFORM.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Problem with alligning text and images

    Dear reader
    I am having a problem with alligning some content in the left
    column of my webpage. It will allign correctly in internet explorer
    but I would like it to also allign correctly in Opera and Firefox
    as many people use thise browsers also. Here is links to
    screenshots to show you what I mean. The problem is highlited in
    orange.
    http://www.iggpog22.com/mystuff/gap.png
    - There is a gap between my starburst logo and the header image
    'Links'
    http://www.iggpog22.com/mystuff/nogap.png
    - There is no gap between my starburst logo and the header image
    'Links' in dreamweaver though which is how I would like it to
    display.
    If anyone could offer some advice I would be very grateful. I
    usually try to work stuff out for myself but this problem has me
    stumped. I can also provide the html is you need that. Thanks again
    for any response.
    .Sam
    Edit
    This is a link to a .rtf file of the code for the webpage
    http://www.iggpog22.com/mystuff/ig2code.rtf
    you can also visit my webpage at www.iggpog22.com (gotta
    include the www. otherwise it shows the wrong site)
    I hope this is enough to be more helpful

    Posting images aren't that much use I'm afraid. The answer is
    in the
    code and to solve the issue its more than likely thats what
    someone
    would need to see to help you.
    Can you upload the page somewhere and give a link to it?
    02cspearson wrote:
    > Dear reader
    > I am having a problem with alligning some content in the
    left column of my
    > webpage. It will allign correctly in internet explorer
    but I would like it to
    > also allign correctly in Opera and Firefox as many
    people use thise browsers
    > also. Here is links to screenshots to show you what I
    mean. The problem is
    > highlited in orange.
    >
    http://www.iggpog22.com/mystuff/gap.png
    - There is a gap between my starburst
    > logo and the header image 'Links'
    >
    http://www.iggpog22.com/mystuff/nogap.png
    - There is no gap between my
    > starburst logo and the header image 'Links' in
    dreamweaver though which is how
    > I would like it to display.
    >
    > If anyone could offer some advice I would be very
    grateful. I usually try to
    > work stuff out for myself but this problem has me
    stumped. I can also provide
    > the html is you need that. Thanks aain for any response.
    > .Sam
    >

  • Inventory - MBEW and MBEWH (Extractors)

    Hello,
    I understood that using the extractor 0CO_PC_ACT_05 is possible to execute a load to bring the current period, previous period and last period of the previous year. If for the go-live, the requirement is from last period on, then I suppose the cube 0COPC_C04 will store all periods. So in December 2007, if the user wants to see the inventory evolution of a material since July, it is possible. However I noticed that the table MBEWH uses for month LFMON which is not in the standard. The standard uses FISCPER. Besides, when there is no movement in the month, the standard seems to bring zero for inventory, when it would be correct to repeat last month value. Could you please clarify these concepts?
    If you have additional documents about this, pls foward.
    Thanks & Regards,
    Adriana Oliveira

    ok

  • Function Module to get values from MBEW and MBEWH

    All,
    I searched in SDN but could not find a suitable answer.
    Is there a SAP standard Function Module which gives the physical ending inventory (total stock) for a given period. all hsitoric values to be pulled from MBEWH.
    your response is much appreciated.
    Regards
    Kasi

    Hi,
    Better to create a query?

  • Difference between J_3AMADKA and MBEW / Update SKU standard prices with AFS

    Dear reader,
    Environement: ECC 6 with AFS 6.3
    In a first step,I am trying to create, and in a second step, to update the SKU standard prices using FM: BAPI_MATERIAL_SAVEDATA.
    It is really strange the way it performs changes on table MBEW and J_3AMADKA.
    Can anyone explain to me the different use of those two tables? I thought that the  J_3AMADKA was dedicated to SKU level, but finally, the TA: /n/afs/conv1 create the SKU standard prices only in MBEW !? But BAPI_MATERIAL_SAVEDATA.
    just create ONE entree in MBEW (?!?) while all SKU entree but without prices in  J_3AMADKA.
    In  FM: BAPI_MATERIAL_SAVEDATA., I mainly filled structure   VALUATIONDATA (=> MBEW)  and  SKU_PLANTDATA_VALUATION, where surprisingly, there is no standard price field for the SKU !?
    Any link or remarks about this topice will be most apprecitaed,
    Thanks,
    Daniel

    Hi Kalias,
    Many thanks for your fats reply.
    I had a look to the (really old) SAP notes and after some few researches, it seems that AFS 6.3 insert the PRICE and ZKPRS columns again into table J_3AMADKA.
    Those columns are even populated with values So it means that they are required by some SAP standard programms.
    Maybe you have another clue about this topic?
    Thanks again for your help,
    Daniel

  • Split valuation with batch management and project stock

    Dear Gurus,
    I need to combine two following requirements:
    1. split valuation with batch management (valuation type = batch number)
    2. project stock
    These two functionalities work fine separately but not together.
    I receipt PO for material with spiit valuation on a batch level into a project stock. Posting is OK and material document (MSEG table) seems to be OK (batch number, valuation type and project stock are in this table). The problem appears when I want to display material in this valuation type (MM03) or batch (MSC3n). They don't exist!!!  Short investigation showed that during goods receipt table MBEW (valuated stock) was not updated with this valuation type.
    But If PO is receipt into normal stock first and then posted into project stock everything is OK.
    Have you had or heart about such issue? I would appreciate any sugestion. 
    Thsnks in advance.
    Marcin Bernat

    Hi,
    As you already know ,u are using project stock and doing goods receipt against project, stock table QBEW will be updated and not MBEW. MBEW only updates in case of plant stock valuation. If u receive any goods against project stock it does not contribute to plant stock. Irrespective whether your material is managed in split valuation or not, If it is received against project stock it only updates QBEW. There is no need to update MBEW, if u r using split valuation in project. QBEW also have valuation type as another level like MBEW. If u want to see material price for project stock, it can be  seen in QBEW -valuation type and not in mm03.
    As u r receiving goods against project stock this is d only reason QBEW is updated and not MBEW.
    QBEW will store all information like MBEW for batch number, valuation type and project stock assignment.
    Hope it answers your question.
    Deepak.

  • How to find datasource and standard cube for given R/3 table

    Hi All,
    Can anyone help me that how to find a datsource, standard cube and Standard BI reports for given R/3 table.
    For example if am having the table names "EKKO (Header)
    EKPO (Line item)
    EKET (Schedule Lines)
    EKBE (PO History)
    EKKN (Account Assignment/WBS)
    EKAN/EKPA (Partner Info)" for all these tables how can i find the standard datasource and standard Cube.
    Please help in this. I will assign the points.
    Regards,
    Shanthi

    https://wiki.sdn.sap.com/wiki/display/BI/BWSDMMFIDATASOURCES
    MM
    Data Sources Tables
    Purchasing
    2LIS_02_SCL EKKO, EKBE, T001, T001W, EKET, EKPA.
    2LIS_02_HDR EKKO, EKBE, T001, EKPA.
    2LIS_02_ITM EKKO, EKBE, T001, T001W, EKPO, TMCLVBW, T027C, ESSR, T147K, T147
    2LIS_02_SCN EKET, EKES, EKPO.
    2LIS_02_CGR EKBE, EKES, EKPO.
    2LIS_02_SGR EKET, EKBE, KKPO
    Inventory
    2LIS_03_BX stock tables, MCHA, MARA, T001, T001W, CALCULATED FROM MBEW, EBEW, QBEW.
    2LIS_03_BF MSEG, MBEW, MKPF.
    2LIS_03_UM BKPF, MBEW, QBEW, EBEW, BSEG.
    MM  
    Purchasing   Datasources
    ODS  
    0PUR_O01  2LIS_02_ITM, 2LIS_02_SGR, 2LIS_02_CGR, 2LIS_02_SCN.
    0PUR_O02  2LIS_02_HDR, 0PUR_O01
    0PUR_DS03  2LIS_02_SCL and 2LIS_02_SGR.
    CUBE  
    0PUR_C10  2LIS_02_SCL and 2LIS_02_SGR.
    0PUR_C07 
    0PUR_C08 
    0PUR_C09  0PUR_O02, 80PUR_O01, 2LIS_02_HDR
    0SRV_C01  2LIS_02_S174
    0PUR_C04  2LIS_02_S011, 2LIS_02_SCL, 2LIS_02_ITM, 2LIS_02_HDR
    0PUR_C01  2LIS_02_S012, 2LIS_02_ITM, 2LIS_02_SCL
    0PUR_C02  2LIS_02_S013
    0PUR_C05  0MM_PUR_VE_01
    0PUR_C06  0MM_PUR_VE_02
    0PUR_C03  2LIS_02_S015
    Inventory Management  
    CUBE  
    0IC_C03  2LIS_03_BX, 2LIS_03_BF, 2LIS_03_UM
    0IC_C02  2LIS_03_S195, 2LIS_03_S197
    0IC_C01  2LIS_03_S196, 2LIS_03_S198
    SD 
    Data sources Tables
    2LIS_11_VAKON VBUK, VBUP, VBAK, VBAP, VBKD, KOMV, T001.
    2LIS_11_VAHDR VBAK, VBUK, T001
    2LIS_11_VAITM VBAP, VBUP, VBAK, VBKD, VBAJP, T001, VBUK, PRPS.
    2LIS_11_VASCL VBAP, VBUP, VBAK, VBEP, VBKD, T001, PRPS
    2LIS_11_VASTH VBUK
    2LIS_11_VASTI VBUP, VBUK
    2LIS_11_V_ITM VBAP, VBAK, VBKD, VBUP, T001, PRPS, VBUK.
    2LIS_11_V_SCL VBUP, VBEP, VBKD, VBAP, VBAK, T001, PRPS.
    2LIS_11_V_SSL VBAP, VBEP, LIPS, WVBEP, VBUP
    2LIS_13_VDKON VBUK, VBRP, KOMV, T001, VBRK.
    FI 
    DATASOURCES Tables
    Cost Center Accounting 
    0CO_OM_CCA_1 COSP, COSS
    0CO_OM_CCA_2 COSP, COSS
    0CO_OM_CCA_3 COSL, COKL.
    0CO_OM_CCA_4 COSR
    0CO_OM_CCA_5 COSB
    0CO_OM_CCA_6 COOMCO
    0CO_OM_CCA_7 BPJA, BPPE.
    0CO_OM_CCA_8 COST, TKA07,COOMCO, CSLA, COST, COKL.
    0CO_OM_CCA_9 COVP (COEP& COBK), COSP, COST, COEJ, COEP, T001.
    0CO_OM_CCA_10 COOI, COSP_VTYPE.
    Product Cost Controlling 
    0CO_PC_PCP_01 KEKO, TCKH3, TCKH8.
    0CO_PC_PCP_02 KEKO, TCKH3.
    0CO_PC_PCP_03 CKIS, T001K, TKA02, KEKO, MARA, MBEW.
    0CO_PC_PCP_04 CKIS, T001K, TKA02, KEKO, MBEW, MARA
    0CO_PC_01 AUFK, AFPO, COSS, COSP, COSB, COSL, COKEY, TKA09, TKV09
    0CO_PC_02 AUFK, AFPO, COSS, COSP, COSB, COSL, COKEY, TKA09, TKV09
    Hope this Helps.

  • Batch wise stock report with qty and value as on date

    is there any report so that we can see the stock qty with value as on date,
    i have tried mb5b but it is showing only qty and batch combination not qty value and batch combination
    plz suggest me, it is very urgent.
    nitin

    MBEWH is the valuation history, this is only updated with the first movement after a period closure. And the period is a month.
    There is no table in SAP that holds the stock information on daily basis.
    You have to develope this yourself. Easiest method by copying a table like MBEW and MARD  daily to a Z-Table.
    A stock situation  at a certain date can be calculated with MB5B.
    Edited by: Jürgen L. on Aug 5, 2008 4:06 PM

Maybe you are looking for

  • Open PO in production Client

    hello Guru ji tell me below scenario PO Not Showing in 0001 Client (production ) Please open case to determine why the following transaction failed to create a PO in 0001. (prodution client) some body has(take it as sunil)entered the following data o

  • Variable Offset not working in BI 7.0

    Hi , I am facing an issue with variable offsets in queries in BI 7.0. I created simple keyfigures with variable offset for fiscal year period with -1,-2,-3...etc to show different periods but I am getting 0 values for the same. Just to inform, we are

  • Document made by Pages cannot deliver through gmail

    I just bought Mcbook pro, first time to use apple. The documents made by PAGES, attached in the gmail, and send it, delivery fails warning says the gmail cannot deliver. However JPG or PDF files attached go through no problem. What coud be the magic?

  • My Facebook is Showing lot of NewsFeeds from strangers.

    Since the latest F/B app upgrade (I have the 9300) my Facebook app is showing me not only my friends status updates, but all the posts on their Walls from their other friends (for example last Thursday my FB was almost entirely filled with Happy Birt

  • Nikon D300 raw files, unable to retrieve the camera serial number!

    Hi all, I have just downloaded some D300 NEF files (camera firmware v. 1.2) onto my PC, and both Bridge and Camera Raw display NO camera serial number in all the shots! :-( And when I convert them in DNG, I still don't have any info on the nikon came