URGENT inventory reports

Hi friends,
I would like to see a report by Product line/Profit center,
I checked these reports, MCBE,MMBE,MCBC,ME80AN. Where I don’t see any field that can show Profit center,
And also I would like to see a inventory report  by material, qty, batch, and serial number.
Please let me know if we have any report like that ,

this will help you
*& Report  Z_OPEN_CLOSE                                                *
REPORT  Z_OPEN_CLOSE MESSAGE-ID YW2 LINE-SIZE 231 LINE-COUNT 45
NO STANDARD PAGE HEADING.
Type Declaration *
TYPE-POOLS SLIS.
Tables *
TABLES: MKPF, " Material Document: Header Data
        MSEG, " Material Document: Item Data
        MARA,
        MARD,
        S031,
        EKKO,
        EKPO,
        LIKP,
        MAKT,
        J_1IWRKCUS,
        T001W,
        WB2_V_MKPF_MSEG2,
        MMIM_REP_PRINT,
        YW2_STKMOVEMENTS,
        YPLNT,
        MARDH.
Internal Tables *
DATA: I_WERKS LIKE J_1IWRKCUS OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF I_YPLNT OCCURS 0,
         PPLNT LIKE YPLNT-PPLNT,
         WPLNT LIKE YPLNT-WPLNT,
      END OF I_YPLNT.
DATA: BEGIN OF I_MKPF OCCURS 0,
        MBLNR LIKE MKPF-MBLNR,
        MJAHR LIKE MKPF-MJAHR,
        BUDAT LIKE MKPF-BUDAT,
        VGART LIKE MKPF-VGART,
        BWART LIKE MSEG-BWART,
        MATNR LIKE MSEG-MATNR,
        WERKS LIKE MSEG-WERKS,
        LGORT LIKE MSEG-LGORT,
        MENGE LIKE MSEG-MENGE,
        MEINS LIKE MSEG-MEINS,
        KUNNR LIKE MSEG-KUNNR,
        ZEILE LIKE MSEG-ZEILE,
        XAUTO LIKE MSEG-XAUTO,
        SHKZG LIKE MSEG-SHKZG,
        MATNR1 LIKE MSEG-MATNR,
      END OF I_MKPF.
DATA: BEGIN OF I_MARDH OCCURS 0,
       WERKS LIKE MARDH-WERKS,
       MEINS LIKE MARA-MEINS,
       MATNR LIKE MARDH-MATNR,
       LGORT LIKE MARDH-LGORT,
       LABST LIKE MARDH-LABST,
       LFGJA LIKE MARDH-LFGJA, "Added -MB
       LFMON LIKE MARDH-LFMON, "Added -MB
       PERIO(6),
       INSME LIKE MARDH-LABST,
       EINME LIKE MARDH-LABST,
       SPEME LIKE MARDH-LABST,
       RETME LIKE MARDH-LABST,
       O_STK LIKE MARDH-LABST, " Opening Stock
       C_STK LIKE MARDH-LABST, " Closing Stock
      END OF I_MARDH.
DATA: BEGIN OF I_MARD OCCURS 0,
       WERKS LIKE MARD-WERKS,
       MATNR LIKE MARD-MATNR,
       LGORT LIKE MARD-LGORT,
       LABST LIKE MARD-LABST,
       INSME LIKE MARD-LABST,
       MEINS LIKE MARA-MEINS,
       EINME LIKE MARD-LABST,
       SPEME LIKE MARD-LABST,
       RETME LIKE MARD-LABST,
      END OF I_MARD.
DATA: I_MARD1 LIKE I_MARD OCCURS 0 WITH HEADER LINE.
DATA: I_MARDH1 LIKE I_MARDH OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF I_MKPF1 OCCURS 0,
        MBLNR LIKE MKPF-MBLNR,
        WERKS LIKE MSEG-WERKS,
        MATNR LIKE MSEG-MATNR,
        BUDAT LIKE MKPF-BUDAT,
        BWART LIKE MSEG-BWART,
        MJAHR LIKE MKPF-MJAHR,
        VGART LIKE MKPF-VGART,
        LGORT LIKE MSEG-LGORT,
        MENGE LIKE MSEG-MENGE,
        MEINS LIKE MSEG-MEINS,
        XAUTO LIKE MSEG-XAUTO,
        SHKZG LIKE MSEG-SHKZG,
      END OF I_MKPF1.
DATA: BEGIN OF I_MKPF2 OCCURS 0,
       WERKS LIKE MSEG-WERKS,
       MATNR LIKE MSEG-MATNR,
       BUDAT LIKE MKPF-BUDAT,
       BWART LIKE MSEG-BWART,
       MJAHR LIKE MKPF-MJAHR,
       VGART LIKE MKPF-VGART,
       LGORT LIKE MSEG-LGORT,
       MENGE LIKE MSEG-MENGE,
       MEINS LIKE MSEG-MEINS,
       XAUTO LIKE MSEG-XAUTO,
     END OF I_MKPF2.
DATA: BEGIN OF I_FINAL5 OCCURS 0,
       WERKS LIKE MSEG-WERKS, " Plant
       MATNR LIKE MSEG-MATNR, " Material
       LGORT LIKE MSEG-LGORT, " Storage Location
       BUDAT LIKE MKPF-BUDAT, " Posting Date
       MTART LIKE MARA-MTART, " Material Type
       SPMON LIKE S031-SPMON, " Month
       MAKTX LIKE MAKT-MAKTX, " Description
meins(3), " UOM
        MEINS LIKE MSEG-MEINS,
        O_STK LIKE MARDH-LABST, " opening stock
        TRECEP LIKE MARDH-LABST, " total receipts
        PRODU LIKE MARDH-LABST, " Net Receipts - Production
        RECEP LIKE MARDH-LABST, " Net Receipts - Receipts
        SAL_RET LIKE MARDH-LABST, " Net Receipts - Sales Return
        TDISP LIKE MARDH-LABST, " total dispatches
        CUSTMR LIKE MARDH-LABST, " Net Dispatches - Customers
        OPLANT LIKE MARDH-LABST, " Net Dispatches - To Other Plant
        TLOSS LIKE MARDH-LABST, " Total Loss
        TRLOSS LIKE MARDH-LABST, " Transit Loss
        WHLOSS LIKE MARDH-LABST, " Warehouse Loss
        C_STK LIKE MARDH-LABST, " Closing Stock
        TRFSTK LIKE MARDH-LABST, "Transfer stock
        MENGE LIKE MSEG-MENGE,
        OTHADJ LIKE MARDH-LABST,
      END OF I_FINAL5.
DATA: BEGIN OF I_FINAL OCCURS 0,
        WERKS LIKE MSEG-WERKS, " Plant
        MATNR LIKE MSEG-MATNR, " Material
        BUDAT LIKE MKPF-BUDAT, " Posting Date
        MTART LIKE MARA-MTART, " Material Type
        SPMON LIKE S031-SPMON, " Month
        MAKTX LIKE MAKT-MAKTX, " Description
meins(3), " UOM
        MEINS LIKE MSEG-MEINS,
        O_STK LIKE MARDH-LABST, " opening stock
        TRECEP LIKE MARDH-LABST, " total receipts
        PRODU LIKE MARDH-LABST, " Net Receipts - Production
        RECEP LIKE MARDH-LABST, " Net Receipts - Receipts
        SAL_RET LIKE MARDH-LABST, " Net Receipts - Sales Return
        TDISP LIKE MARDH-LABST, " total dispatches
        CUSTMR LIKE MARDH-LABST, " Net Dispatches - Customers
        OPLANT LIKE MARDH-LABST, " Net Dispatches - To Other Plant
        TRFSTK LIKE MARDH-LABST, "Material Transfer stock
        TRLOSS LIKE MARDH-LABST, " Transit Loss
        WHLOSS LIKE MARDH-LABST, " Warehouse Loss
        TLOSS LIKE MARDH-LABST, " Total Loss
        C_STK LIKE MARDH-LABST, " Closing Stock
        OTHADJ LIKE MARDH-LABST,
       END OF I_FINAL.
DATA: I_FINAL1 LIKE I_FINAL OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF I_FINAL_TEMP OCCURS 0,
        WERKS LIKE MSEG-WERKS, " Plant
        MATNR LIKE MSEG-MATNR, " Material
        MTART LIKE MARA-MTART, " Material Type
        MAKTX LIKE MAKT-MAKTX, " Description
        MEINS LIKE MSEG-MEINS,
        O_STK LIKE MARDH-LABST, " opening stock
        TRECEP LIKE MARDH-LABST, " total receipts
        PRODU LIKE MARDH-LABST, " Net Receipts - Production
        RECEP LIKE MARDH-LABST, " Net Receipts - Receipts
        SAL_RET LIKE MARDH-LABST, " Net Receipts - Sales Return
        TDISP LIKE MARDH-LABST, " total dispatches
        CUSTMR LIKE MARDH-LABST, " Net Dispatches - Customers
        OPLANT LIKE MARDH-LABST, " Net Dispatches - To Other Plant
        TRFSTK LIKE MARDH-LABST, "Material Transfer stock
        TRLOSS LIKE MARDH-LABST, " Transit Loss
        WHLOSS LIKE MARDH-LABST, " Warehouse Loss
        TLOSS LIKE MARDH-LABST, " Total Loss
        C_STK LIKE MARDH-LABST, " Closing Stock
        OTHADJ LIKE MARDH-LABST,
      END OF I_FINAL_TEMP.
For Materials
DATA: BEGIN OF I_MARA OCCURS 0,
       MATNR TYPE MARA-MATNR,
       MTART TYPE MARA-MTART,
       MEINS LIKE MARA-MEINS,
       LABST TYPE MARD-LABST,
       MAKTX LIKE MAKT-MAKTX,
      END OF I_MARA.
DATA: BEGIN OF I_STKMVMNTS OCCURS 0,
       BWART LIKE MSEG-BWART,
       SHKZG LIKE MSEG-SHKZG,
       VZBEW LIKE YW2_STKMOVEMENTS-VZBEW,
      END OF I_STKMVMNTS.
DATA: BEGIN OF I_FINALT OCCURS 0,
       WERKS LIKE MSEG-WERKS, " Plant
       MATNR LIKE MSEG-MATNR, " Material
       BUDAT LIKE MKPF-BUDAT, " Posting Date
       MTART LIKE MARA-MTART, " Material Type
       SPMON LIKE S031-SPMON, " Month
       MAKTX LIKE MAKT-MAKTX, " Description
meins(3), " UOM
       MEINS LIKE MSEG-MEINS,
       O_STK LIKE MARDH-LABST, " opening stock
       TRECEP LIKE MARDH-LABST, " total receipts
       PRODU LIKE MARDH-LABST, " Net Receipts - Production
       RECEP LIKE MARDH-LABST, " Net Receipts - Receipts
       SAL_RET LIKE MARDH-LABST, " Net Receipts - Sales Return
       TDISP LIKE MARDH-LABST, " total dispatches
       CUSTMR LIKE MARDH-LABST, " Net Dispatches - Customers
       OPLANT LIKE MARDH-LABST, " Net Dispatches - To Other Plant
       TRFSTK LIKE MARDH-LABST, "Material Transfer stock
       TRLOSS LIKE MARDH-LABST, " Transit Loss
       WHLOSS LIKE MARDH-LABST, " Warehouse Loss
       TLOSS LIKE MARDH-LABST, " Total Loss
       C_STK LIKE MARDH-LABST, " Closing Stock
       OTHADJ LIKE MARDH-LABST,
       MONTH(8) ,
      END OF I_FINALT.
DATA: IMKPFT LIKE I_MKPF OCCURS 0 WITH HEADER LINE.
DATA: IMKPFT1 LIKE I_MKPF1 OCCURS 0 WITH HEADER LINE.
DATA: IMARDT LIKE I_MARD OCCURS 0 WITH HEADER LINE.
DATA: IMARDHT LIKE I_MARDH OCCURS 0 WITH HEADER LINE.
DATA: T_FINAL LIKE I_MKPF OCCURS 0 WITH HEADER LINE.
DATA: IMKPFT2 LIKE I_MKPF OCCURS 0 WITH HEADER LINE.
FCAT is used for the field catalog
DATA: FCAT TYPE TABLE OF SLIS_FIELDCAT_ALV WITH NON-UNIQUE DEFAULT KEY
                  WITH HEADER LINE INITIAL SIZE 0,
for excluding the ICONs from the application toolbar
      FEXC TYPE TABLE OF SLIS_EXTAB WITH NON-UNIQUE DEFAULT KEY
                 WITH HEADER LINE INITIAL SIZE 0,
FS_LAYO is used for Grid Layout
      FS_LAYO TYPE SLIS_LAYOUT_ALV,
FEVENTS to handle the events TOP OF PAGE & USER_COMMAND
      FEVENTS TYPE TABLE OF SLIS_ALV_EVENT WITH NON-UNIQUE DEFAULT KEY
                 WITH HEADER LINE INITIAL SIZE 0,
FHEADER is used for List header
      FHEADER TYPE TABLE OF SLIS_LISTHEADER WITH NON-UNIQUE DEFAULT KEY
                 WITH HEADER LINE INITIAL SIZE 0,
sort is used for sorting
      FSORT TYPE TABLE OF SLIS_SORTINFO_ALV WITH NON-UNIQUE DEFAULT KEY
                 WITH HEADER LINE INITIAL SIZE 0,
      FCAT1 TYPE TABLE OF SLIS_FIELDCAT_ALV WITH NON-UNIQUE DEFAULT KEY
                WITH HEADER LINE INITIAL SIZE 0,
      FS_LAYO1 TYPE SLIS_LAYOUT_ALV,
      GT_LIST_TOP_OF_PAGE1 TYPE SLIS_T_LISTHEADER,
      FEVENTS1 TYPE TABLE OF SLIS_ALV_EVENT WITH NON-UNIQUE DEFAULT KEY
             WITH HEADER LINE INITIAL SIZE 0,
       FHEADER1 TYPE TABLE OF SLIS_LISTHEADER WITH NON-UNIQUE DEFAULT  
              KEY WITH HEADER LINE INITIAL SIZE 0,
       G_STATU_071 TYPE SLIS_FORMNAME VALUE 'Z_PFSTATUS',
       ALV_VARIANT1 LIKE DISVARIANT.
Variable Declaration *
TYPES: TRFF_TYPE_DEC_6_5(6) TYPE P DECIMALS 5.
DATA: FYEAR(4),
      MON(2),
      FYEAR1(4),
      MON1(2),
      OBAL LIKE MARD-LABST,
      CBAL LIKE MARD-LABST,
      INDEX TYPE I,
      COUNT,
      COUNT1 TYPE I,
      O_STK TYPE P DECIMALS 3,
      C_STK TYPE P DECIMALS 3,
      V_MJAHR LIKE MKPF-MJAHR,
      MONTHS TYPE TRFF_TYPE_DEC_6_5,
      MONTH TYPE I.
Global variables for handling ALV functionality
DATA: ALV_KEYINFO TYPE SLIS_KEYINFO_ALV,
      ALV_VARIANT LIKE DISVARIANT,
      ALV_LAYOUT TYPE SLIS_LAYOUT_ALV,
      ALV_REPID LIKE SY-REPID,
      ALV_PRINT TYPE SLIS_PRINT_ALV,
      ALV_DETAIL_FUNC(30),
      ALV_DEFAULT_VARIANT LIKE DISVARIANT-VARIANT,
      ALV_COLOURIZE_FIELDS LIKE MMIM_REP_PRINT-COLOR.
RANGES: R_BUDAT FOR MKPF-BUDAT.
*Added by Prabhu for year on 26.4.05.
DATA: IDATE LIKE R_BUDAT OCCURS 0 WITH HEADER LINE.
Selection Screen Elements *
SELECTION-SCREEN BEGIN OF BLOCK BLK WITH FRAME TITLE TEXT-001.
  SELECT-OPTIONS: S_WERKS FOR MARD-WERKS OBLIGATORY NO INTERVALS.
  PARAMETER: P_SPMON LIKE S031-SPMON NO-DISPLAY .
  SELECT-OPTIONS: S_MATNR FOR MARA-MATNR OBLIGATORY,
                  S_LGORT FOR MSEG-LGORT NO-EXTENSION NO INTERVALS,
                  S_MBLNR FOR MKPF-MBLNR,
                  S_BUDAT FOR MKPF-BUDAT OBLIGATORY .
SELECTION-SCREEN END OF BLOCK BLK.
SELECTION-SCREEN BEGIN OF BLOCK BLK3 WITH FRAME TITLE TEXT-004.
      PARAMETER : MTART LIKE MARA-MTART DEFAULT 'FERT' NO-DISPLAY.
SELECTION-SCREEN END OF BLOCK BLK3.
SELECTION-SCREEN BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-003.
SELECTION-SCREEN END OF BLOCK BLK2.
ADDED BY PRABHU FOR DAY-WISE REPORT.
SELECTION-SCREEN BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-007.
  PARAMETERS: D1 RADIOBUTTON GROUP P1 DEFAULT 'X',
              M1 RADIOBUTTON GROUP P1,
              Y1 RADIOBUTTON GROUP P1.
SELECTION-SCREEN END OF BLOCK B3.
SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-006.
PARAMETERS: ALV_DEF LIKE DISVARIANT-VARIANT.
SELECTION-SCREEN END OF BLOCK B2.
DATA: S_BUDAT1 LIKE S_BUDAT OCCURS 0 WITH HEADER LINE."prabhu
Initialization *
INITIALIZATION.
  PERFORM ALV_INIT.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR ALV_DEF.
  PERFORM ALV_F4.
At Selection Screen
*AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_spmon.
PERFORM monat_f4.
At Selection Screen *
AT SELECTION-SCREEN.
checking for the layout
  PERFORM ALV_CHECK.
authorisation check for the Plant
PERFORM auth_check.
Validation for the Plant
  PERFORM VALIDITY_CHECK.
  IF MTART NE 'FERT'.
    MESSAGE E041 WITH 'Material Type must be FERT Only...'.
  ENDIF.
  IF D1 = 'X'." On 26.4.05.
    P_SPMON0(4) = S_BUDAT-LOW0(4).
    P_SPMON4(2) = S_BUDAT-LOW4(2).
  ELSE.
    P_SPMON0(4) = S_BUDAT-LOW0(4).
    P_SPMON4(2) = S_BUDAT-LOW4(2).
  ENDIF.
  LOOP AT S_BUDAT.
    IF S_BUDAT-HIGH IS INITIAL.
      S_BUDAT-HIGH = S_BUDAT-LOW.
      MODIFY S_BUDAT.
    ENDIF.
  ENDLOOP.
  IDATE-LOW = S_BUDAT-LOW.
  IDATE-HIGH = S_BUDAT-HIGH.
  CALL FUNCTION 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
    EXPORTING
       I_DATE_FROM = IDATE-LOW
       I_DATE_TO = IDATE-HIGH
   IMPORTING
E_DAYS =
      E_MONTHS = MONTH
E_YEARS =
  DATA: I(3) TYPE C.
  I = S_BUDAT-LOW+4(2).
  CLEAR: R_BUDAT.
  REFRESH: R_BUDAT.
*added by Prabhu for Only for Oneday.on 18.5.5
  IF MONTH EQ '0'.
    MONTH = MONTH + 1.
  ENDIF.
*added by Prabhu for Only for Oneday.on 18.5.5
  DO MONTH TIMES.
    R_BUDAT-LOW = S_BUDAT-LOW.
    APPEND R_BUDAT.
  ENDDO.
  I = 0.
  LOOP AT R_BUDAT.
    R_BUDAT-LOW4(2) = S_BUDAT-LOW4(2) + I.
    I = I + 1.
    R_BUDAT-LOW+6(2) = '01'.
    MODIFY R_BUDAT.
  ENDLOOP.
  LOOP AT R_BUDAT.
    CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
       EXPORTING
         DAY_IN = R_BUDAT-LOW
       IMPORTING
         LAST_DAY_OF_MONTH = R_BUDAT-HIGH
      EXCEPTIONS
        DAY_IN_NO_DATE = 1
        OTHERS = 2
    MODIFY R_BUDAT.
  ENDLOOP.
  LOOP AT R_BUDAT.
    IF R_BUDAT-LOW4(2) = S_BUDAT-LOW4(2).
      R_BUDAT-LOW = S_BUDAT-LOW.
      MODIFY R_BUDAT.
    ENDIF.
    IF R_BUDAT-HIGH4(2) = S_BUDAT-HIGH4(2).
      R_BUDAT-HIGH = S_BUDAT-HIGH.
      MODIFY R_BUDAT.
    ENDIF.
For Summary on 26.4.05.
    IF Y1 = 'X'.
      CLEAR R_BUDAT.
      REFRESH R_BUDAT.
      R_BUDAT-LOW = S_BUDAT-LOW.
      R_BUDAT-HIGH = S_BUDAT-HIGH.
      APPEND R_BUDAT.
      CLEAR R_BUDAT.
    ENDIF.
  ENDLOOP.
At Selection Screen *
AT SELECTION-SCREEN OUTPUT.
Start of Selection *
START-OF-SELECTION.
  V_MJAHR = P_SPMON+0(4).
Get plant distinction warehouse/production
  PERFORM GET_PLANT_DISTINCTION.
Collect the data from various tables
  PERFORM GETDATA_FG_STOCK.
here the number of rows in the output table is found
  PERFORM OUTPUT_TABLE_CHECK.
here the top of the page code is written, that is to be displayed
in the output
  PERFORM Z_TOP_OF_PAGE.
here ALV layout properties are set
  PERFORM Z_LAYOUT_SETTINGS.
ALV EVENTS for TOP OF PAGE and for USER COMMAND
  PERFORM Z_ALV_EVENTS.
The field catalog is defined for the Primary List is defined in
the subroutine CREATE_FIELD_CATALOG include program ZPRRDOCR_FCAT
  PERFORM Z_CREATE_FIELD_CATALOG.
This is for displaying the output
  PERFORM Z_REUSE_ALV_GRID_DISPLAY.
*& Form getdata_fg_stock
Getting data from standard tables
FORM GETDATA_FG_STOCK.
For getting the Start date & end date of the month
PERFORM get_month_dates.
Getting the Opening Stock from MARDH table
  IF MON EQ '01'.
    MON1 = MON.
    FYEAR1 = FYEAR.
    MON = '12'.
    FYEAR = FYEAR - 1.
  ELSE.
    MON1 = MON.
    FYEAR1 = FYEAR.
    MON = MON - 1.
    FYEAR = FYEAR.
  ENDIF.
  PERFORM GET_RECORDS_FROM_DB.
*added for Month Summary on 26.4.05.
  LOOP AT R_BUDAT.
    S_BUDAT-LOW = R_BUDAT-LOW.
    S_BUDAT-HIGH = R_BUDAT-HIGH.
*for Month
    P_SPMON0(4) = S_BUDAT-LOW0(4).
    P_SPMON4(2) = S_BUDAT-LOW4(2).
*for summary.
    IF Y1 = 'X'.
      LOOP AT S_BUDAT.
        S_BUDAT1-SIGN = 'I'.
        S_BUDAT1-OPTION = 'NB'.
        S_BUDAT1-LOW = S_BUDAT-LOW.
        S_BUDAT1-HIGH = S_BUDAT-HIGH.
        APPEND S_BUDAT1.
        CLEAR S_BUDAT1.
      ENDLOOP.
    ENDIF.
    IMKPFT[] = I_MKPF[].
    IMKPFT2[] = I_MKPF[].
    IMARDT[] = I_MARD[].
    IMARDHT[] = I_MARDH[].
    PERFORM MONTH_WISE.
    PERFORM PROCESS_MOVEMENTS.
    PERFORM CALCULATE_OPENING_STOCK.
    PERFORM UPDATE_NON_TRANSACTION_ITMS.
    PERFORM DELETE_EMPTY_RECORDS.
    CLEAR: IMARDHT,IMARDT,IMKPFT1,IMKPFT,I_FINAL,I_FINAL5.
    REFRESH: IMARDHT,IMARDT,IMKPFT1,I_FINAL,I_FINAL5,IMKPFT.
  ENDLOOP.
  CLEAR: R_BUDAT.
  REFRESH: R_BUDAT.
*end of changes for month.
ENDFORM. " getdata_fg_stock
FORM MONAT_F4 *
F4-Hilfe für Monat *
FORM MONAT_F4.
  DATA: BEGIN OF MF_DYNPFIELDS OCCURS 1.
          INCLUDE STRUCTURE DYNPREAD.
  DATA: END OF MF_DYNPFIELDS.
  DATA: MF_RETURNCODE LIKE SY-SUBRC,
         MF_MONAT LIKE ISELLIST-MONTH,
         MF_HLP_REPID LIKE SY-REPID.
  FIELD-SYMBOLS: .
Wert von Dynpro lesen
  GET CURSOR FIELD MF_DYNPFIELDS-FIELDNAME.
  APPEND MF_DYNPFIELDS.
  MF_HLP_REPID = SY-REPID.
  DO 2 TIMES.
    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        DYNAME               = MF_HLP_REPID
        DYNUMB               = SY-DYNNR
      TABLES
        DYNPFIELDS           = MF_DYNPFIELDS
      EXCEPTIONS
        INVALID_ABAPWORKAREA = 01
        INVALID_DYNPROFIELD  = 02
        INVALID_DYNPRONAME   = 03
        INVALID_DYNPRONUMMER = 04
        INVALID_REQUEST      = 05
        NO_FIELDDESCRIPTION  = 06
        UNDEFIND_ERROR       = 07.
    IF SY-SUBRC = 3.
Aktuelles Dynpro ist Wertemengenbild
      MF_HLP_REPID = 'SAPLALDB'.
    ELSE.
      READ TABLE MF_DYNPFIELDS INDEX 1.
Unterstriche durch Blanks ersetzen
      TRANSLATE MF_DYNPFIELDS-FIELDVALUE USING '_ '.
      EXIT.
    ENDIF.
  ENDDO.
  IF SY-SUBRC = 0.
Konvertierung ins interne Format
    CALL FUNCTION 'CONVERSION_EXIT_PERI_INPUT'
      EXPORTING
        INPUT         = MF_DYNPFIELDS-FIELDVALUE
      IMPORTING
        OUTPUT        = MF_MONAT
      EXCEPTIONS
        ERROR_MESSAGE = 1.
    IF MF_MONAT IS INITIAL.
Monat ist initial => Vorschlagswert aus akt. Datum ableiten
      MF_MONAT = SY-DATLO(6).
    ENDIF.
    CALL FUNCTION 'POPUP_TO_SELECT_MONTH'
      EXPORTING
        ACTUAL_MONTH               = MF_MONAT
      IMPORTING
        SELECTED_MONTH             = MF_MONAT
        RETURN_CODE                = MF_RETURNCODE
      EXCEPTIONS
        FACTORY_CALENDAR_NOT_FOUND = 01
        HOLIDAY_CALENDAR_NOT_FOUND = 02
        MONTH_NOT_FOUND            = 03.
    IF SY-SUBRC = 0 AND MF_RETURNCODE = 0.
ASSIGN (MF_DYNPFIELDS-FIELDNAME) TO <MF_FELD>. " ==>> note 148804
<MF_FELD> = MF_MONAT.
      CALL FUNCTION 'CONVERSION_EXIT_PERI_OUTPUT'
        EXPORTING
          INPUT  = MF_MONAT
        IMPORTING
          OUTPUT = MF_DYNPFIELDS-FIELDVALUE.
      COLLECT MF_DYNPFIELDS.
      CALL FUNCTION 'DYNP_VALUES_UPDATE'
        EXPORTING
          DYNAME               = MF_HLP_REPID
          DYNUMB               = SY-DYNNR
        TABLES
          DYNPFIELDS           = MF_DYNPFIELDS
        EXCEPTIONS
          INVALID_ABAPWORKAREA = 01
          INVALID_DYNPROFIELD  = 02
          INVALID_DYNPRONAME   = 03
          INVALID_DYNPRONUMMER = 04
          INVALID_REQUEST      = 05
          NO_FIELDDESCRIPTION  = 06
          UNDEFIND_ERROR       = 07. "<<== note 148804
    ENDIF.
  ENDIF.
ENDFORM.                                                    "MONAT_F4
*& Form get_month_dates
Calculating the Month Start & End Date
FORM GET_MONTH_DATES.
  IF M1 = 'X'.
    FYEAR = P_SPMON+0(4).
    MON = P_SPMON+4(2).
    CONCATENATE FYEAR MON '01' INTO R_BUDAT-LOW.
    R_BUDAT-SIGN = 'I'.
    R_BUDAT-OPTION = 'BT'.
    CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
      EXPORTING
        I_DATE = R_BUDAT-LOW
      IMPORTING
        E_DATE = R_BUDAT-HIGH.
    APPEND R_BUDAT.
    CLEAR S_BUDAT.
    REFRESH S_BUDAT.
    S_BUDAT-SIGN = 'I'.
    S_BUDAT-OPTION = 'BT'.
    S_BUDAT-LOW = R_BUDAT-LOW.
    S_BUDAT-HIGH = R_BUDAT-HIGH.
    APPEND S_BUDAT.
  ELSE.
    FYEAR = P_SPMON+0(4).
    MON = P_SPMON+4(2).
    CONCATENATE FYEAR MON '01' INTO R_BUDAT-LOW.
    R_BUDAT-SIGN = 'I'.
    R_BUDAT-OPTION = 'BT'.
    CALL FUNCTION 'BKK_GET_MONTH_LASTDAY'
      EXPORTING
        I_DATE = R_BUDAT-LOW
      IMPORTING
        E_DATE = R_BUDAT-HIGH.
    APPEND R_BUDAT.
  ENDIF.
ENDFORM. " get_month_dates
*& Form output_table_Check
checking for records for output
FORM OUTPUT_TABLE_CHECK .
  DESCRIBE TABLE I_FINALT LINES INDEX.
  IF INDEX EQ 0.
    MESSAGE I041 WITH TEXT-005.
    LEAVE LIST-PROCESSING.
  ENDIF.
ENDFORM. "OUTPUT_TABLE_CHECK
*& Form Z_TOP_OF_PAGE
for setting the details in the top of page *
has no formal paramters *
FORM Z_TOP_OF_PAGE.
  DATA: V_MON(2),
  V_YR(40),
  V_FIN(18),
  V_FIN1(48),
  LOW(10),
  HIGH(10).
  V_MON = P_SPMON+4(2).
  V_YR = P_SPMON+0(4).
  FHEADER-TYP = 'H'.
  FHEADER-INFO = 'Stock Register Report (FG Stock)'.
  APPEND FHEADER.
  CLEAR FHEADER.
*if m1 = 'X'.
CONCATENATE 'Month = ' v_mon '.' v_yr INTO v_fin.
fheader-typ = 'H'.
fheader-info = v_fin.
APPEND fheader.
CLEAR fheader.
*endif."prabhu on 18.5.5
  IF D1 = 'X'.
    CLEAR S_BUDAT.
    LOOP AT S_BUDAT.
      CONCATENATE S_BUDAT-LOW6(2) '/' S_BUDAT-LOW4(2) '/'
      S_BUDAT-LOW+0(4) INTO LOW.
      CONCATENATE S_BUDAT-HIGH6(2) '/' S_BUDAT-HIGH4(2) '/'
      S_BUDAT-HIGH+0(4) INTO HIGH.
      CONCATENATE 'Date = ' LOW ' - ' HIGH INTO V_FIN1.
      FHEADER-TYP = 'H'.
      FHEADER-INFO = V_FIN1.
      APPEND FHEADER.
      CLEAR FHEADER.
    ENDLOOP.
  ENDIF.
ENDFORM. " Z_TOP_OF_PAGE
*& Form Z_LAYOUT_SETTINGS
this is done for setting the properties for the layout of the *
grid *
has no formal paramters *
FORM Z_LAYOUT_SETTINGS.
  FS_LAYO-ZEBRA = 'X'. " Output in Zebra pattern
  FS_LAYO-DETAIL_POPUP = 'X'. " A popup window appears to give
  FS_LAYO-DETAIL_TITLEBAR = TEXT-022.
  FS_LAYO-COLWIDTH_OPTIMIZE = 'X'.
ENDFORM. " Z_LAYOUT_SETTINGS
*& Form Z_ALV_EVENTS
This is used for handling the events TOP OF PAGE and the USER *
COMMAND event *
has no formal paramters *
FORM Z_ALV_EVENTS.
  CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
      I_LIST_TYPE = 0
    IMPORTING
      ET_EVENTS   = FEVENTS[].
  READ TABLE FEVENTS WITH KEY NAME = 'TOP_OF_PAGE'.
  IF SY-SUBRC = 0.
    FEVENTS-FORM = 'Z_TOPOFPAGE'.
    MODIFY FEVENTS INDEX SY-TABIX.
    CLEAR FEVENTS.
  ENDIF.
  READ TABLE FEVENTS WITH KEY NAME = 'USER_COMMAND'.
  IF SY-SUBRC = 0.
    FEVENTS-FORM = 'Z_USER_COMMAND'.
    MODIFY FEVENTS INDEX SY-TABIX.
    CLEAR FEVENTS.
  ENDIF.
ENDFORM. "Z_ALV_EVENTS
*& Form Z_CREATE_FIELD_CATALOG
here the field catalog is created for the primary list *
no formal parameters *
FORM Z_CREATE_FIELD_CATALOG.
for the Plant
  FCAT-FIELDNAME = 'WERKS'.
  FCAT-KEY = 'X'.
  FCAT-OUTPUTLEN = '000005'.
  FCAT-JUST = 'L'.
  FCAT-SELTEXT_M = 'Plant'.
  FCAT-DDICTXT = 'M'.
  FCAT-INTTYPE = 'C'.
  FCAT-DATATYPE = 'CHAR'.
  APPEND FCAT.
  CLEAR FCAT.
for the Material Type
  FCAT-FIELDNAME = 'MTART'.
  FCAT-KEY = 'X'.
  FCAT-OUTPUTLEN = '000006'.
  FCAT-JUST = 'L'.
  FCAT-SELTEXT_M = 'MatTyp'.
  FCAT-DDICTXT = 'M'.
  FCAT-INTTYPE = 'C'.
  FCAT-DATATYPE = 'CHAR'.
  APPEND FCAT.
  CLEAR FCAT.
for the Material No.
  FCAT-FIELDNAME = 'MATNR'.
  FCAT-KEY = 'X'.
fcat-hotspot = 'X'.
  FCAT-OUTPUTLEN = '000018'.
  FCAT-JUST = 'L'.
  FCAT-SELTEXT_M = 'Material'.
  FCAT-DDICTXT = 'M'.
  FCAT-INTTYPE = 'C'.
  FCAT-DATATYPE = 'CHAR'.
  APPEND FCAT.
  CLEAR FCAT.
for the Material Description
  FCAT-FIELDNAME = 'MAKTX'.
  FCAT-KEY = ''.
  FCAT-OUTPUTLEN = '000040'.
  FCAT-JUST = 'L'.
  FCAT-SELTEXT_M = 'Description'.
  FCAT-DDICTXT = 'M'.
  FCAT-INTTYPE = 'C'.
  FCAT-DATATYPE = 'CHAR'.
  APPEND FCAT.
  CLEAR FCAT.
for the Unit of Measure
  FCAT-FIELDNAME = 'MEINS'.
  FCAT-KEY = ''.
  FCAT-OUTPUTLEN = '03'.
  FCAT-JUST = 'C'.
  FCAT-SELTEXT_M = 'UOM'.
  FCAT-DDICTXT = 'M'.
  FCAT-INTTYPE = 'C'.
  FCAT-DATATYPE = 'UNIT'.
  APPEND FCAT.
  CLEAR FCAT.
for the Plant
  FCAT-FIELDNAME = 'MONTH'.
  FCAT-KEY = 'X'.
  FCAT-OUTPUTLEN = '08'.
  FCAT-JUST = 'L'.
  FCAT-SELTEXT_M = 'MONTH'.
  FCAT-DDICTXT = 'M'.
  FCAT-INTTYPE = 'C'.
  FCAT-DATATYPE = 'CHAR'.
  APPEND FCAT.
  CLEAR FCAT.
for the Opening Stock
  FCAT-FIELDNAME = 'C_STK'.
  FCAT-HOTSPOT = ' '.
  FCAT-OUTPUTLEN = '000016'.
  FCAT-JUST = 'L'.
  FCAT-SELTEXT_M = 'Opening Stock'.
  FCAT-DDICTXT = 'M'.
  FCAT-INTTYPE = 'Q'.
  FCAT-DATATYPE = 'QUAN'.
fcat-do_sum = 'X'.
  FCAT-JUST = 'R'.
  FCAT-NO_ZERO = 'X'.
  APPEND FCAT.
  CLEAR FCAT.
for the Total Receipts
  FCAT-FIELDNAME = 'TRECEP'.
  FCAT-HOTSPOT = ' '.
  FCAT-OUTPUTLEN = '000016'.
  FCAT-JUST = 'L'.
  FCAT-SELTEXT_M = 'Total Receipts'.
  FCAT-DDICTXT = 'M'.
  FCAT-INTTYPE = 'Q'.
  FCAT-DATATYPE = 'QUAN'.
  FCAT-DO_SUM = 'X'.
  FCAT-JUST = 'R'.
  FCAT-NO_ZERO = 'X'.
  APPEND FCAT.
  CLEAR FCAT.
for the Production
  FCAT-FIELDNAME = 'PRODU'.
  FCAT-HOTSPOT = ' '.
  FCAT-OUTPUTLEN = '000016'.
  FCAT-JUST = 'L'.
  FCAT-SELTEXT_M = 'Production'.
  FCAT-DDICTXT = 'M'.
  FCAT-INTTYPE = 'Q'.
  FCAT-DATATYPE = 'QUAN'.
  FCAT-DO_SUM = 'X'.
  FCAT-JUST = 'R'.
  FCAT-NO_ZERO = 'X'.
  APPEND FCAT.
  CLEAR FCAT.
for the Other Plant Receipts
  FCAT-FIELDNAME = 'RECEP'.
  FCAT-HOTSPOT = ' '.
  FCAT-OUTPUTLEN = '000016'.
  FCAT-JUST = 'L'.
  FCAT-SELTEXT_M = 'Othr Plnt Recpts'.
  FCAT-DDICTXT = 'M'.
  FCAT-INTTYPE = 'Q'.
  FCAT-DATATYPE = 'QUAN'.
  FCAT-DO_SUM = 'X'.
  FCAT-JUST = 'R'.
  FCAT-NO_ZERO = 'X'.
  APPEND FCAT.
  CLEAR FCAT.
Sales Return
  FCAT-FIELDNAME = 'SAL_RET'.
  FCAT-HOTSPOT = ' '.
  FCAT-OUTPUTLEN = '000016'.
  FCAT-JUST = 'L'.
  FCAT-SELTEXT_M = 'Sales Return'.
  FCAT-DDICTXT = 'M'.
  FCAT-INTTYPE = 'Q'.
  FCAT-DATATYPE = 'QUAN'.
  FCAT-DO_SUM = 'X'.
  FCAT-JUST = 'R'.
  FCAT-NO_ZERO = 'X'.
  APPEND FCAT.
  CLEAR FCAT.
Total Dispatches
  FCAT-FIELDNAME = 'TDISP'.
  FCAT-HOTSPOT = ' '.
  FCAT-OUTPUTLEN = '000016'.
  FCAT-JUST = 'L'.
  FCAT-SELTEXT_M = 'Total Dispatches'.
  FCAT-DDICTXT = 'M'.
  FCAT-INTTYPE = 'Q'.
  FCAT-DATATYPE = 'QUAN'.
  FCAT-DO_SUM = 'X'.
  FCAT-JUST = 'R'.
  FCAT-NO_ZERO = 'X'.
  APPEND

Similar Messages

  • Urgent: regarding physical inventory report display

    hi,
    i had made a report in which i have to display the physical inventory report details in which details about the material is to be given.
    I want to check the details which are present in the tcode MI07 . Can anybody tell me any tcode in which i can see the details of mi07 tcode(including the reason of it).

    Greetings,
    It might shed some light to read about the display in your portable computer: http://en.wikipedia.org/wiki/LCD
    LCDs are primarily plastic panels with various layers inside.  Pressure applied to those panels can cause them to crack, leaking the liquid crystal components about.  Pressure could be heavy books in a bag pushing against the screen, heavy cat sitting on a closed lid, dog, other animal, someone slamming the lid, child running through the room, etc.  This applies to any LCD whether it be in a computer or in a Television (don't press too hard on your TV screen!!).
    Displays don't exhibit the type of damage you indicate by themselves.  A single pixel might go dead in an LCD but zig zag lines indicates cracking of the layers inside the panels themselves.  Something from the outside world made an impact on the display resulting in the damage you see.  You may not have been the one pressing hard on it and you may not have seen it happen, but something happened.
    The 1 year limited warranty and AppleCare protection plan offer coverage for component failures, not damage.
    Coverage for damage would be provided by something along the lines of insurances (home owners, renters, etc.)  If you purchased this computer with a Credit Card you may wish to contact your Credit Card company.  Many cards have included insurance for purchases you make so even if an item is damage during your use of it, they will cover it.
    Best of luck.

  • INVENTORY REPORT for customer but not consignment company owned

    HI Everyone,
    I am working on creating an inventory report and sending it out to a customer.
    We have a customer who needs to see their inventory we are going to ship. we are making materials for them on an MTS scenario based on a forecast... So the customer before placing a PO should be able to look at the inventory levels we make for them. on a daily basis.... No what I am trying to is execute a program that sends out an inventory report (the programs I am using are( RSMIPROACT and ROEMPROACT)... I try to fill in the fields and save as a variant and we run it as a background job every morning and we send out an idoc to the customer...
    The above process is a scenario that still needs to be worked on...
    THe customer should be able to look at only his stock and not any other stock....
    Now can we use a display of listing/exclusion function to send out the material stock report.... we need to send the total inv as well as the mat numbers... can we acheive it with the listing/exclusion funtion..
    Or is there a program that pulls all the data from the tables which store the customer material info record where we maintain all the materials for a customer...
    If there i a better way through which this can eb done please suggest me... thank you..
    Once again the above stock is not consignent stock... we are manufacturinng based on the forecasts and we need the customer t be able to look at the stock on a daily basis.... Please help...

    There is no report / funtionality is SAP to acheive this. Custom program is the only solution. Your logic looks ok, where there is a CMIR maintained, you may pick the total stock from table MARD put into a format/layout and transfer via idoc to the customer.
    Thanks & regards
    AHP.

  • Inventory Report For Special Stock (Project Stock)

    Dear Sir,
    We are in Make -To - Order scenario and procure the material against  the WBS element . For getting the Inventory List , we use MBBS tcode but it has following limitation :
      a) It give the Stock Status as on date basis . While we need Stock Inventory on a cut off date , say on
          31/Jan/2007 .
      b) We are not able to get the Inventory Report , Material Group wise
    I request to kindly guide me , as how to take the Inventory Report for Project Stock .
    Regards
    B Mittal

    Hi Shailesh,
    Is there any way we can include some extra fields into this MC.9 report - i tried but could not find anything.  Can you please help.
    Regards,
    Laxmi

  • Inventory report for Previous Periods

    Hi Experts ,
    I would like to have an inventory report for all materials in a Particular Plant for the Periods Sep 2009 and Sep 2010 . Could you please help me in providing the reports for the same .
    Thanks
    Moderator message: Basic frequently asked question - Please search forum for answers and read the docu in help.sap.com 
    See as well our rules of engagement: http://scn.sap.com/docs/DOC-18590
    A good way to search the forum is with google. See this blog with details for a good search
    http://scn.sap.com/community/support/blog/2012/04/16/getting-the-most-out-of-google-optimizing-your-search-queries
    This blog describes how to use the SCN search: http://scn.sap.com/community/about/blog/2012/12/04/how-to-use-scn-search
    The discussions are not a replacement for proper training
    Thread locked
    Message was edited by: Jürgen L

    You can well run these reports on background..
    Go to SE38 Enter the program name "J_1HSTCD"
    Then press Execute / F8.
    Enter you selection date as 01.09.2009 to 31.09.2010 and enter the plant and leave the all selection as per SAP standard..
    Then press F9 or Go to Program

  • Inventory report for the selection of requisitioner and MRP controller

    Hello Experts,
                           Can someone please help me with a standard  Inventory report in which we can give input thr requistioner and MRP controller
    regards,
    YK

    Hi,
    You will get the requisition no. from EKKO (provided PO has been created otherwise you won't get any record). Find out PO & item no. for the requisition item. Then you can check EKBE table whether GR has been posted or not. If GR has not been posted then there won't be entry in EKBE for that PO & item.
    Regards,
    Rakesh

  • Inventory Report-Replacement path for Base UOM to Case and Standrad Cost

    Hi, We have a Scenario as below:
    Question1:
    We have a multiprovider contains 4 infocubes and 2 Master Data objects
    a.Demand
    b.Inventory
    c.Sales Orders
    d.In Transit
    Master Data objects
    a. Material (contains Base UOM to Case as Key Figure Attribute and also Base UOM as an attribute)
    b. Material Location (Contains material as an attribute and also Standard Cost as a Key Figure attribute)
    At the report level two formula variables are defined with replacement path for showing the Base UOM to Case and Standard Cost in columns.
    We have 4 reports on this multiprovider. There is a dialy sales report which gives the following details
    Material, Location, MRP Controller, CalDay, Base UOM, Actual Sales(AS), Dependent Demand(DD), Consumption Qyt(CQ), Base to Case UOM, Standard Cost
    In this report for all the records the Base to UOM and Standard Cost column is coming with values which is nothing but the replacement path on the material master key figure attribute. Though this report is on the multiprovider all the major keyfigures (AS, DD and CQ) are coming from a single cube( this is an observation from myside).
    We have another report which is the Inventory Report with the following details:
    Material, Location, MRP Controllder, Calday, Base UOM,      Unrestricted Inventory(UI), committed Inventory(CI), Back Order Qty(BOQ), In Transit by Sh/Rec(ITS), In Transit Pipeline(ITP), On Order Qty (OOQ), Current Inventory Position (CIP), Quality Inspection Stock(QIS), Block Stock(BS), Base to Case UOM, Standard Cost
    Now in this report for all the records the Base to Case UOM and standrad cost is not showing up. Is there anything which needs to be done in order to get the Base to Case UOM and standard cost for all the records.
    Question2:
    When Non-Cumulative and Cumulative key figures are combined at the multi provider and also at the report level, will there be any problem?
    Regards
    Vijay

    Hi,
    I think you can proceed with virtual characteristics for this.In the code you can truncate the time and you can display on the date:
    Regards
    Prasad

  • Inventory report for stock category B

    Hi everyone,
    We are trying to generate a customer stock inventory report with stock category B. The table MARD is not displaying any values annwe also looked at table MKOL. Its not giving us any. How do i get the inventory report for this stock type B. Kindly Advise.

    it is customer owned stock. We receiver materials from customer for repair and we recondition them and we give it back. for this we maintain it in stock type B. it is specifically used in aerospace industries. We want to make an inventory report for this customer owned stock in our inventory . i am unable to get the table. Kindly advise

  • Inventory report with the last transaction details of each material

    Hi,
    is there any standard inventory report in SAP which gives us  the last transaction details of each
    Material,along with last procurement qty, value, date and last issue
    details of Qty, Value & date.
    Thansk in advance.

    Hi
    try following t-code
    MB5B u2013 Stock on Posting Date
    or
    2   s_p00_07000139 u2013 Stock Card and Inventory Material Report
    Regards
    Kailas Ugale

  • Urgent-Inventory Management in case of a glass or ply industry

    A typical scenario.
    I am facing a problem in inventory management for a client of mine who is into glass cutting and supply. The glass sheets are purchased in sheets from the vendor and is cut into various shapes and dimensions according to the order recieved by him. now in most of the cases the entire sheet is not used in a particular order. the remaining part which is not  used goes to the inventory. Now for a next order all the remaining part may be used if it matches the lengthXBreadth specifications. So the inventory items should show the length X Width specification. The dimensions are not fixed and there may be  "n" number of variables.
    Example- A default sheets of sizes 10"X10" is purchased form vendor. Seperate shapes of 6"X4" and 4"X 4" is cut out from it. Then the remaining part will have a dimension of 6"X10", which goes to the inventory. Now whenever he will see te inventory report he should be able to see that 1qunty of 6"X10" is ther in the inventory. So that when if he recieves an order of 6"X8" or 6"X10" he can use that and save cutting a new sheet (10"X10"). This will minimise the wastages.
      I had planed to do it by the area but then that does not solve the perpose as the inventory total will show the sum area of all the dimensions in the inventory in "sq@units". Makong item masters for different dimensions will involve a huge inventory management and the users may land up in making numerous masters evry day and also risk of the duplication of the same masters will prevail.
    Please anyone who has done any implementation for such clients or of similar type or any one having a suitable solution to this issue........please help!!!

    Debraj,
    In that case the option you could try is to enable batches and store the size as a batch number
    For example: The inventory could have 10 pieces of item A
    Qty......Batch
    ..2.......6x10
    ..3.......6x8
    ..5.......6x6
    Now when ever you want to add a cut piece of item A which is of size 6x10, you simply enter Batch 6x10 and this will not only increase stock by1 but also you now the visiblity of what the stock is made up of by running the Batch report.
    If you want to do it in a much better way then you need to probably go with an AddOn
    Suda

  • Program to check inventory report

    Hi guys,
    I need to send inventory report as  idoc to customer on daily basis, bt they need customized fields located in SAP .. so i need is to extend the idoc.. insert the required segments and modify the user exit .. to pop the required fields in idoc.. untill here everything is fine..
    Now my question is.. how should i configure to trigger the idoc to be sent daily... and to define output type as idoc...
    Normally, if its standard application .....we  will configure in NACE and schedule the program rseout00 .. bt in this case .. what should i do??

    Hi,
    Go to program RSVTPROT in se38 transaction. There enter customzing object table as V_T001B and T001B. Thern enter the date range you want to evaluate,also customizng object or tables, select all output options BUT not archived logs and execute.
    You will get the ALV report with user name,date and changes done
    cya
    udayakumar

  • Inventory Report Based On Posting Date

    Hai All
    Can any one help me with the subject "Inventory Report Based On Posting Date"
    Please
    with regards
    Shankar

    hi,
    Visit this link,already answered.
    Difference between posting & system date in Inventory Audit Report
    Jeyakanthan

  • Urgent:Inventory Modelling with Moving price

    I have to create an Inventory report storage locationwise material stock along with standard price and moving average price.
    We have a z cube zic_c03.
    Moving price and standard price is stored an Z ODS on fiscal/period wise.
    I need to have the following fields in the report
    charactersitics
    Plant
    Material
    Storage location
    Price control(from Z ods)
    keyfigures:
    Valuated stock qty(from zic_c03)
    Valuated stock value(from zic_c03)
    Standard price(from ods)-Using routine
    Moving Price(from ods)-Using Routine
    I have created another cube(included all the fields from zic_c03 and added the three fields from ODS).
    For the fields included from ODS, I have written an lookup routine in the new cube (zic_c04) update rule.
    For ex.Stand price routine as follows:
    PROGRAM UPDATE_ROUTINE.
    TABLES: ...
    DATA : tstd like /BIC/AZMM_O0200-pRICE_std.
    DATA : tavg like /BIC/AZMM_O0200-pRICE_avg.
    DATA : tpc  like /BIC/AZMM_O0200-PRICE_CTRL.
    fill the internal table "MONITOR", to make monitor entries
    select single PRICE_STD
      into tstd
      from /BIC/AZMOV_O0100
    where material = COMM_STRUCTURE-material
       and plant = COMM_STRUCTURE-plant
       and FISCPER = COMM_STRUCTURE-FISCPER.
      RESULT = tstd.
      RETURNCODE = 0.
      ABORT = 0.
    I have the following issues:.
    1)After adding the price control Indicator(assigned to all keyfigures in update rule) Valuated stock qty and value showing in negative.
    2)Intially I didn't compress the new cube(zic_c04).After seeing negative values I compressed(no marker update enabled) it and checked.But still showing negative.
    2)If I assign price control Indicator to only standard price and moving price Iam not getting any results for valuated qty and stock(price control Indicator = 'not assigned')
    Pls help me to do the right modelling for the above requirement.
    Thanks in advance.
    Regards
    Soujanya

    Hi,
    I have different Modeling scenario to get MAP in BIW.
    Take a Look on this thread:
    Re: 2lis_03_um and MBEW- STPRS
    Re: How to get Moving Average Prince and Standard Price in BW (inventory cube).
    With rgds,
    Anil Kumar Sharma .P

  • -ve values in inventory report

    Hi Experts,
    I have inventory report, this report shows total stock, in this report some materials are showing '-ve' values,but in cube total issue stock and total received stock both are same, that means this inventory report should show '0' value.
    for example: in cube total issues stock: 13.60, total received stock: 13.60. That means total stock is = 0 (13.60-13.60), but in report it is showing -13.60.
    I am not understanding what is the problem,
    Pl help to do this,
    good answer will be appriciated.
    thanks in advance,
    Venkat

    Hi Venkat,
    The calculation's of Inventory total stock is not as simple as we understand them. To calculate total stock it consider different Movement type's, reversal entries, blocked stock etc. as well into consideration.
    There is no -ve stock and there can be no as well, but still u r getting that (i also got that ) then this is how u can analyze at various points where exactly the problem is.
    1. Try to run some standard report for total stock (based on inventory Cube 0IC_C03 i guess this is u usign probably). Check the stock value for 1 or two particular Material and cross check the stock of same material in your R/3 system through some tr MMBE.
    2. If standard report gives u rite result then probably some logic problem in ur report.
    3. Apart from that the main problem of this situation is data loading issue.
    Please follow proper inventory data loading steps. If not done step by step u will end up with wrong data.
    Hope these steps will help you out in tracking the situation.
    Thanks
    Dipika Tyagi

  • Inventory reports with external material group

    Dear Friends,
    In my office in material master record material group & external material groups are maintained. I am looking for a inventory report which shall displays the stock available in paricular plant & other report of stock lying at vendor both should display the  material group & external material group. Please help.
    Thank you
    Prashant B

    There is no Inventory report with external material group field in SAP so consult Abaper to develop the customized report.

Maybe you are looking for

  • External drive on multiple iMac

    If I load all my video on an external hard drive and start editing, can I continue to edit on another iMac with FCE4 if I plug in the same external hard drive? In other words, will I be able to pick up from where I left off?

  • ISE IOS CLI Authentication Quandry

    Im trying to push the limits of ISE, since tacacs+ isnt supported yet. The goal is to authenticate switches and routers using radius against ISE. I think I am on the right track, since I can login against ISE. However, when I login to enable the ISE

  • Experience with Hyperion DRM to Coherence exports.  options

    Hi All. I am working on a project where Hyperion DRM is feeding Oracle Coherence with the slowly changing structures such as GL accounts, budget accounts, costcenters etc. I am looking to find out if anyone has had experience with this type of projec

  • FR Report book pages not appearing

    Does anyone know of any options to display the PDF pages on the Hyperion report books created from Financial Reporting? I see the pages on the table of contents, but not on the actual page of the report.

  • Why does every EE customer service agent I speak to give me different info?!!

    I have spoken to 3 different customer service agents today regarding one particular topic and every one of them gave me a different answer to my question!! Do these people not get any training? They must make up the answers!! I was 2 months behind on