Table MBEW  Field HKMAT - Impact on variances

Can anyone tell me the impact of having the box called "Material Origin" checked or unchecked when variances are calculated?  The check box appears to update the value in Table MBEW  Field HKMAT. 
We have already set standard costs for the year, but I am seeing large differences between the amounts/quantities for the 261 entries versus what the cost estimates show.  We are using backflush. 
There is no difference between the costing BOM and the production BOM for the parent item (which is the item that did NOT have the box checked when we created standards).  The variances are showing for its component items (which are all ROH's).  The user ID in the 261 transactions is the "system ID" user, so I know the entries were created by the backflush operation.
Would this check box cause the variances I am seeing, or would the effects of that check box be something different, like maybe an incorrect cost element?

Hello Micheal,
The Material Origin flag simply means that after the variance is run you will be able to see the material related information in the analysis reports. If you do not check this box you will simply see the consumption account and the variance, no reference to the actual material. This flag will not cause variances.
Unfortunately, there are many possibilities why you are seeing variances. Here are some options:
1.) Are your raw materials valued at moving average i.e. Price Control V in the material master? If so this will cause variances in the amounts because the materials are issued to the order at moving average price.
2.) Do your operators have the ability to adjust the quantities during the backflush? In the standard SAP backflush transaction it is possible to change the quantities consumed during the backflush regardless of what is actually on the BOM. If your production department is using this, this could account for your quantities differences.
3.) What about scrap factors? There are many places where scrap factors can be maintained i.e. the MRP 4 view of the material master, the routing, and the BOM. These scrap factors will increase the amount of materials consumed during the backflush. If these were added after your costing was completed this could account for your variance.
4.) Posting of scrap. Is scrap posted directly to the production orders? If so this can cause quantity variance.
It is a painful process but the best way to analyze variances is to take one part and try to follow it all the way back through the production process.
I hope that these options help point you in the right direction.
John.

Similar Messages

  • Getting a specific record in table MBEW.

    Where/how can I get the Storage Location (LGORT) for a specific record in table MBEW.
    Regards:
    Phillip Mathopa

    Check MARD Table. The storage location (field LGORT) is linked via check tab T001L to a plant (field WERKS in table T001L)
    The plant is linked via table T001W to a valuation area (field BWKEY in table T001W).
    The valuation area is used as a key field in table MBEW
    By using this link chain you will be able to identiy for a given record in MBEW the accociated storage locations
    Hope this helps
    Martin

  • 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

  • Table name& field name for production order  & operation confirmation

    Hi All,
              I would like to know the table name and field name for the production order "confirmation" (CNF) and the operation confirmation (CNF).
    Thanks and Regards,
    PSS

    Hi there,
    CORU(R/3 Application development: PP Confirmations )
    AFFW       Goods movements with errors from confirmatio
    AFRC       Table of planned changes to conf.: Automatic
    AFRD       Default values for collective confirmation 
    AFRH       Header information for confirmation pool   
    AFRP1      Table of planned changes to conf.: Automatic
    AFRP2      Table of planned changes for confirmation: B
    AFRP3      Table of planned changes for confirmation: C
    AFRP4      Table of planned changes to confirmatn: Data
    AFRU       Order completion confirmations             
    AFWI       Subsequently posted goods movements for conf
    TAFWD      CORU: Messages that are not interpreted as e
    TCORD      Table for field-dependent check routines   
    TCORU      Parameters for order confirmations         
    TCORV      Table with Routines for structureing variabl
    TCORW      Confirmation: Window Control               
    TPARU      Control parallelized confirmation processes
    TPRRU      Control table for process chain for confirma
    TPRRUT     Text table for process control of confirmati
    TRUGS      User status caused by deviation            
    CO(R/3 Application development: PP Production orders )
    AFBP        CIM order: Batch print requests            
    AFFL        Work order sequence                        
    AFKO        Order header data PP orders                
    AFPO        Order item                                 
    AFVC        Operation within an order                  
    AFVU        DB structure of the user fields of the opera
    AFVV        DB structure of the quantities/dates/values
    FAPW        Index of production-/issuing plant for produ
    FTIND       Missing parts index                        
    ORDCOM      Communication control Operation download   
    T024F       Production scheduler                       
    T399X       Parameters dependent on order type         
    T441C       Profile - availability check               
    T441CT      Texts for Profile "Display Availability Chec
    T490        Transactions PP - orders - order category  
    T496B       CIM order: Assigning document types to refer
    T496D       CIM: Destination/lists/spool parameters per
    T496F       CIM order: Form description of the list    
    T496K       CIM order: Entity table of possible table id
    T496N       CIM order: List descriptions               
    T496P       Print PP documents: Determination of output
    T496R       Print PP shop papers: Report control       
    T496T       Print PP shop papers: Transaction control  
    T496V       PP Print: Default Value for Printing Online
    T496Z       CIM order: Table-controlled table access   
    TC32        Assigning subscreen to processing location 
    TC34        Allocating operation to object type for the 
    TC62        Sequence of detail screens when processing h
    TCO01       Sequence/operations control in logicstics or
    TCO03       CIM order: Texts for TCO01, Description of o
    TCO04       Table for controlling the screen sequence gr
    TCO05       CUA status depending on panel, trans. type, 
    TCO06       Exclusive functions for PP orders           
    TCO09       CIM order: Text IDs of objects in orders    
    TCO10       Valuation variant for order costing         
    TCO11       Control table for production orders - availa
    TCO12       Control table production orders - stock dete
    TCO36       PP orders: Control table for calling up pop-
    TCO41       CIM order: Default values for generating ope
    TCO43       PP-SFC order profile                        
    TCO43T      Description of production scheduler profile 
    TCO60       Sequence keys for input facility and verific
    TCO61       Sequence key for PP orders                  
    TCO62       Defining screen sequences for input facility
    TCO63       Sequence of detail screens when maintaining 
    TCODB       Database fields development class CO per ord
    TCOF        Profile for missing parts info system       
    TCOFF       Profile for Missing Parts Info System: Displ
    TCOFFT      Texts for Missing Parts Info System: Display
    TCOFG       Profile for missing parts info system: crite
    TCOFGT      Texts for Missing Parts Info System: Criteri
    TCOFK       Texts for functions in milestones/trigger po
    TCOFS       Profile for Missing Parts Info System: Sort
    TCOFST      Texts for Missing Parts Info System: Sort Cr
    TCOFT       Texts for Missing Parts Info System        
    TCOKO       Constants for PP orders                    
    TCOKT       Account assignment categories for order    
    TCOP        Field selection profile                    
    TCOPS       Field selection profile                    
    TCOPT       Description of Profile for Field Selection 
    TDUMMY      Dummy structure of a table for READ with VER
    TRUG        Reason for variances in completion confirmat
    TRUGT       Text describing the reason for a variance in
    TXPR1       XPRA control - missing parts info system   
    Regards
    Hemant G

  • How to pass the values from internal table to field groups

    hi all,
    how can i pass the internal  table values to field groups?
    already field groups are holding some values.. INSERT STATEMENT IS NOT WORKING as it is ovewriting the existing values..
    Use full answers will be rewared.
    Thanks.
    Moderator message - duplicate post locked
    Edited by: Rob Burbank on Jun 23, 2009 9:51 AM

    Hi,
    You can use INSERT statement to put a work area of an Internal table in Field-group
    and use Extract to get info out of it.
    Hope it helps,
    Raj

  • About Asset report - table and fields

    Hi ,
    I am developing an Asset Report, I need table and field names for following -
    a) GL A/C P&L
    b) ASSET DEPRECIATION SCHEDULED
    c) FORCASTED DEPRECIATION
    d) PLANNED EXPENSES VERSES ACTUAL EXPENSES
    e) GAP DEPRECIATION CATEGORY
    e) When user enters the asset into SAP, the depreciation expense will automatically book to the sub-ledger. However in order to get the amount on the general ledger, which would be closed for prior periods, user must book a manual entry. So , I need this manual entry field.
    Please guide me.
    Regards,
    Narayan

    problem solved

  • Sale Order Item Level Text Field which table and field

    Hi,
    Thanks for your prompt reply and best solution.
    Can you please tell me one more thing, in sale order at item level the TEXT Field maintaining by user at transaction level now they want that field in one of the report, so can you please tell what is the table and field where i will get this sale order item level text details.

    Hello,
    is this going to work for item level text as well.
    can you tell how to proceed with this functional module
    or is there any other thing required.Please elaborate to
    understand better way.
    You can check out two table in respect to Sales TEXT i.e. STXH (STXD SAPscript text file header) and STXL(SAPscript text file lines).
    The best approach of tracing out the Text in respect to Sales Order would be to use the Function module READ_TEXT and put this FM in SE37 and execute with the following parameter.
    Client
    Text ID of text to be read
    Language of text to be read
    Name of text to be read
    Object of text to be read
    Archive handle
    Text catalog local
    When you are essentially looking to read item level Text with respect to Sales Order then your Text OBject would be VBBP.
    Regards,
    Sarthak

  • Sales order item level partial delivery field table and field?

    Will anyone share your expertise,  In SD sales order level, at item what is the table and field name in which the partial delivery status is stored.  I want the table and field name?.  will anyone share pl.

    Hi,
    Try with table VBUP - and field LFSTA.
    Regards

  • How do I find what table a field is in?

    Hi,
    If I know a field name, how would I search the Data Dictionary to find the table (or tables) that the field is found in?
    For example, I have a program spec that that says field AZSUB is in table MARM, but it is not.  How can I find what table this field is actualkly in?
    Thanks for your help!
    Andy

    Hi Andrew,
    Just goto se11, enter the data element of that field and clisk on the where used list on the application tool bar. You will get all the tables in which the field appears.
    You got find out which would be your appropriate table may be using by the description of the table or the contents or by the links..
    Regards,
    Vinod Kumar

  • Disable / enable table control field at runtime

    hi ,
    i am working on a custom transaction in which i have a table control...depending on a table value i have to disable an input field inside the table control...
    i know in a normal field we use
    loop at screen.
    if screen- name = 'XXX' or screen-group = 'XXX'
    screen-output = 0.
    endif.
    but inside a table control field how to modify it.
    Regards
    Harish Ramakrishnan

    All you need to do is put some code in a module of your PBO.     This will change the cell attribute of a single row.
    PROCESS BEFORE OUTPUT.
    * PBO FLOW LOGIC FOR TABLECONTROL 'I_INTRCON'
    * MODULE I_INTRCON_CHANGE_TC_ATTR.
    * MODULE I_INTRCON_CHANGE_COL_ATTR.
      LOOP AT   I_INTR
           WITH CONTROL I_INTRCON
           CURSOR I_INTRCON-CURRENT_LINE.
    <b>    MODULE I_INTRCON_CHANGE_FIELD_ATTR.</b>
      ENDLOOP.
      MODULE SET_CURSOR_FIELD.
      MODULE STATUS_0200.
    module i_intrcon_change_field_attr output.                                                                               
    modify i_intr index i_intrcon-current_line.                                                                               
    if i_intr-check = 'X'.                                    
        loop at screen.                                         
          if screen-name = 'I_INTR-RCVQTY'.                     
            screen-input = '1'.                                 
          endif.                                                
          modify screen.                                        
        endloop.                                                
      endif.                                                                               
    endmodule.                                                  
    Regards,
    RIch Heilman

  • Table with fields containig more thn 300 characters

    Hello Friends,
    i want to create one ZTABLE and intht i want a field tht can store more thn 300 characters.
    i have used string data type for the same but while activating the table its giving me error saying :
    " Table contains more than 3 long string fields"
    Pls suggest...
    Sunny

    hi 
    sunny  ,
                You can create table with field more than 300 characters   but there should be one more field
    which has to be primary key .
    such as
    create table ztest
    in that create field MANDT  type clnt size 3  primary key
    name type String  .
    then change technical settings according to requirement .
    Delivery maintenance 
    delivery class and  Data Browser/Table View M
    according to requirement  .
    Before activating table save technical setting  and then activate .
    Regards
    deepak

  • What are  the tables and fields  in fico & sd module

    what are  the tables and fields  in fico & sd module

    Hi,
    <b> Sales and Distribution:</b>
    Customers KNA1 General Data
    KNB1 Customer Master – Co. Code Data (payment method, reconciliation acct)
    KNB4 Customer Payment History
    KNB5 Customer Master – Dunning info
    KNBK Customer Master Bank Data
    KNKA Customer Master Credit Mgmt.
    KNKK Customer Master Credit Control Area Data (credit limits)
    KNVV Sales Area Data (terms, order probability)
    KNVI Customer Master Tax Indicator
    KNVP Partner Function key
    KNVD Output type
    KNVS Customer Master Ship Data
    KLPA Customer/Vendor Link
    Sales Documents VBAKUK VBAK + VBUK
    VBUK Header Status and Administrative Data
    VBAK Sales Document – Header Data
    VBKD Sales Document – Business Data
    VBUP Item Status VBAP Sales Document – Item Data
    VBPA Partners
    VBFA Document Flow
    VBEP Sales Document Schedule Line
    VBBE Sales Requirements: Individual Records
    SD Delivery DocumeLIPS Delivery Document item data, includes referencing PO
    LIKP Delivery Document Header data
    Billing Document VBRK Billing Document Header
    VBRP Billing Document Item
    SD Shipping Unit VEKP Shipping Unit Item (Content)
    VEPO Shipping Unit Header
    <b>Financial Accounting</b>
    FBAS             Financial Accounting “Basis”
    BKPF             Accounting Document Header              BUKRS / BELNR / GJAHR
    BSEG             Accounting Document Segment             BUKRS / BELNR / GJAHR / BUZEI
    BSIP             Index for Vendor Validation of Double   BUKRS / LIFNR / WAERS / BLDAT /
                     Documents                               XBLNR / WRBTR / BELNR / GJAHR / BUZEI
    BVOR             Inter Company Posting Procedure         BVORG / BUKRS / GJAHR / BELNR
    EBKPF            Accounting Document Header (docs from   GLSBK / BELNR / GJHAR / GLEBK
                     External Systems)
    FRUN             Run Date of a Program                   PRGID
    KLPA             Customer / Vendor Linking               NKULI / NBUKR / NKOAR / PNTYP
                                                             / VKULI / VBUKR / VKOAR
    KNB4             Customer Payment History                KUNNR / BUKRS
    KNB5             Customer Master Dunning Data            KUNNR / BUKRS / MABER
    KNBK             Customer Master Bank Details            KUNNR / BANKS / BANKL / BANKN
    KNC1             Customer Master Transaction Figures     KUNNR / BUKRS / GJHAR
    KNC3             Customer Master Special GL Transactions KUNNR / BUKRS / GJAHR / SHBKZ
                     Figures
    LFB5             Vendor Master Dunning Data              LIFNR / BUKRS / MABER
    LFBK             Vendor Master Bank Details              LIFNR / BANKS / BANKL / BANKN
    LFC1             Vendor Master Transaction Figures       LIFNR / BUKRS / GJHAR
    LFC3             Vendor Master Special GL Transactions   LIFNR / BUKRS / GJHAR / SHBKZ
                     Figures
    VBKPF            Document Header for Document Parking    AUSBK / BUKRS / BELNR / GJHAR
    FBASCORE         Financial Accounting General Services “Basis”
    KNB1             Customer Master (Company Code)          KUNNR / BUKRS
    LFA1             Vendor Master (General Section)         LIFNR
    LFB1             Vendor Master (company Code Section)    LIFNR / BUKRS
    SKA1             G/L Account Master (Chart of Accounts)  KTOPL / SAKNR
    SKAT             G/L Account Master (Chart of Accounts – SPRAS / KTOPL / SAKNR
                     Description)
    MAHNS            Accounts Blocked by Dunning Selection   KOART / BUKRS / KONKO / MABER
    MHNK             Dunning Data (Account Entries)          LAUFD / LAUFI / KOART / BUKRS /
                                                             KUNNR / LIFNR / CPDKY / SKNRZE /
                                                             SMABER / SMAHSK / BUSAB
    FI-GL-GL (FBS)   General Ledger Accounting: Basic Functions- G/L Accounts
    SKAS             G/L Account Master (Chart of Accounts – SPRAS / KTOPL / SAKNR / SCHLW
                     Key Word list)
    SKB1             G/L Account Master (Company Code)       BUKRS / SAKNR
    FI-GL-GL (FBSC)  General Ledger Accounting: Basic
                     Functions - R/3 Customizing for G/L Accounts
    FIGLREP          Settings for G/L Posting Reports        MANDT
    TSAKR            Create G/L account with reference       BUKRS / SAKNR
    FI-GL-GL (FFE)   General Ledger Accounting: Basic
                     Functions - Fast Data Entry
    KOMU             Account Assignment Templates for G/L    KMNAM / KMZEI
                     Account items
    FI-AR-AR (FBD)   Accounts Receivable: Basic Functions - Customers
    KNKA             Customer Master Credit Management :     KUNNR
                     Central Data
    KNKK             Customer Master Credit Management :     KUNNR / KKBER
                     Control Area Data
    KNKKF1           Credit Management : FI Status data      LOGSYS / KUNNR / KKBER / REGUL
    RFRR             Accounting Data – A/R and A/P           RELID / SRTFD / SRTF2
                     Information System
    FI-BL-PT         Bank Accounting: Payment (BFIBL_CHECK_D)  Transactions – General Sections
    PAYR             Payment Medium File                     ZBUKR / HBKID / HKTID / RZAWE /
                                                             CHECT
    PCEC             Pre-numbered Check                      ZBUKR / HBKID / HKTID / STAPL
    FI-BL-PT-AP(FMZA)Bank Accounting: Payment Transactions – Automatic Payments
    F111G            Global Settings for Payment Program for MANDT
                     Payment Requests
    FDZA             Cash Management Line Items in Payment   KEYNO
                     Requests
    PAYRQ            Payment Requests                        KEYNO
    Hope this solves your concern...
    Regards,
    Habeeb
    Assign points if helpful

  • Help needed  in Table and field

    Hi all,
    can any one tell me the table and field to get basic unit of measure and unit of issue.
    I guess both are different.
    Thanks

    For base unit of measure, uom, T006 is the main table.But whereever you have a quantity yu will find UOM in that table. The field is MEINS.
    when you say unit of issue, you mean actual unit of measure right?
    In that case it again depends on what you are looking at. Example
    in table LIPS there is base UOM and Actual UOM.
    base is always "MEINS" and actual is "LFIMG" in this case.
    So get the table in your functional area and check for the actual uom field in SE11.
    Regards
    Message was edited by:
            Sandeep Bhavsar

  • Table and field for Department ID, Department ID desc, and DIV

    Hi,
    We're planning to develop a "Z" report, by extending CJI3 transaction. I want to add the following fields to this new report. I just wanted to know from what tables these fields are coming from standard SAP (I believe these fields might be related to controlling, so I'm posting in this forum):
    1. Department ID
    2. Department ID Description
    3. Division (DIV)
    Aman

    Hi Asim ,
    The currency in Material Master is updated from the Company Code.
    At first system checks the company code for which the Plant is assigned and picks the currecy from the company code.
    You can find the same in Table T001 ; Field - WAERS
    What do u mean by Product ID ? Let me know where does it exist in Material Master.
    If you know the view, press F1 and then Technical Inf to get the table and Field Name.
    Regards
    Ramesh Ch

  • Table and field for the given object

    Hi all,
    We are developing a report , i need following table and fields. Could you please help me on this?
    Supplier
    No of approval required
    Approval status
    Approval pending with
    In approval since
    Thanks in advance , will appriciate any input
    Hareesha

    Hi  ,
    Still am not able to find out the FM/ table whom its pending for approval (shopping cart). Could you please help me on this?
    (E.g: Shopping cart got created and having 7 levels of approval (Manager1, 2, 3,4,5,6 and 7),let us say First 2 manageru2019s approved, 3rd manager has to approve the Shopping cart, we need to pull these information of pending with 3rd manager in our Z-report )
    Thanks in advance
    Harish

Maybe you are looking for

  • How to change line color in line graph

    Hi, I have one 'on change of' field and has  three 'show value' fields. Crystal has assigned default colors for  these 3 lines..but i want to assign my own colors..is this possible? and can we adjust the line thickness? I am using crystal 2008 comple

  • Microsoft word doesn't work

    is microsoft supported in Lion? mine won't work...also can't send an invoice from Quickbooks...

  • Not able to edit in pdf file.

    hi,whin edit in pdf file thru pdf writer it gives a error message:--All part of the selection has no available system fonts,you can not add or delete text using the curretntly system fonts...

  • How can i run simple HelloServlet  ? using tomcat 5.5.16 & jdk1.5.0.6 ?

    Hi I have the jdk 1.5.0.6 and tomcat 5.5.16 on my machine. The locations are as follows. 1) jdk ---> C:\j2sdk1.5.0_06 2) tomcat ---> C:\prgram files\Apache Software Foundation\Tomcat 5.5 3) IE 6.0 4) java class ---> C:\HelloWorld.java The Queries i h

  • How do you set up the passbook?

    How do you set up the Passbook with the new iOS6 software?