Really urgent: seperation of dates for displaying the stock

hi,
I am modifying a report in which i have to display the stock in the following way:-
1.) If P_DATE(15.03.2008) then it should display the stock of previous month as the stock it stored on always on the last date of each month.
2.) If P_DATE(16.03.2008) then it should display the stock of this  month as the stock it stored on always on the last date of each month.
my requierment is how to display it?
plzz help me out as help will be deifnately rewarded.
Edited by: ric .s on Mar 15, 2008 6:09 AM
Edited by: ric .s on Mar 15, 2008 6:15 AM

HI,
plz go through the code and try to analyze it ,u will  not be abel to run dis code as it consist of the table which is made by the programmers.
*& Report  ZPP_INV_COPY1
REPORT  ZPP_INV_COPY1 NO STANDARD PAGE HEADING LINE-SIZE 150.
TABLES : MARA, MAKT, MARD, MKPF, MSEG, T001L,ZSTOCKSUM.
TYPE-POOLS : SLIS.
**DATA : BEGIN OF STIT OCCURS 0,
      BUDAT LIKE MKPF-BUDAT,
      MATNR LIKE MSEG-MATNR,
      WERKS LIKE MSEG-WERKS,
      LGORT LIKE MSEG-LGORT,
      MENGE LIKE MSEG-MENGE,
      MEINS LIKE MSEG-MEINS,
      ERFMG LIKE MSEG-ERFMG,
      ERFME LIKE MSEG-ERFME,
      SHKZG LIKE MSEG-SHKZG,
      BWART LIKE MSEG-BWART,
DATA : BEGIN OF STIT OCCURS 0,
       STLDATE LIKE ZSTOCKSUM-STLDATE,
       MATNR LIKE ZSTOCKSUM-MATNR,
       WERKS LIKE ZSTOCKSUM-WERKS,
       LGORT LIKE ZSTOCKSUM-LGORT,
       STSTOCK LIKE ZSTOCKSUM-STSTOCK,
       STDEBIT LIKE ZSTOCKSUM-STDEBIT,
       STCREDIT LIKE ZSTOCKSUM-STCREDIT,
       MEINS LIKE MARA-MEINS,
       MTART LIKE MARA-MTART,
       MATKL LIKE MARA-MATKL,
       NTGEW LIKE MARA-NTGEW,
       GEWEI LIKE MARA-GEWEI,
       WTKG  LIKE MARA-NTGEW,
       STOCK TYPE P LENGTH 10 DECIMALS 3,
       WT TYPE P LENGTH 12 DECIMALS 3,
       END OF STIT.
DATA : BEGIN OF SLIT OCCURS 0,
       LGORT LIKE T001L-LGORT,
       LGOBE LIKE T001L-LGOBE,
       ROH   TYPE P LENGTH 12 DECIMALS 3,
       ZBOP  TYPE P LENGTH 12 DECIMALS 3,
       FERT  TYPE P LENGTH 12 DECIMALS 3,
       HALB  TYPE P LENGTH 12 DECIMALS 3,
       ZSCR  TYPE P LENGTH 12 DECIMALS 3,
       TOT   TYPE P LENGTH 12 DECIMALS 3,
       crrow type P length 3,
       END OF SLIT.
DATA : ITAB LIKE STIT OCCURS 0 WITH HEADER LINE.
DATA : BEGIN OF ITAB1 OCCURS 0,
       MTART LIKE MARA-MTART,
       END OF ITAB1.
******************OLD ITAB2****************
**DATA : BEGIN OF ITAB2 OCCURS 0,
      LGORT LIKE MSEG-LGORT,
      END OF ITAB2.
*************NEW ITAB2**********************
DATA : BEGIN OF ITAB2 OCCURS 0,
       LGORT LIKE ZSTOCKSUM-LGORT,
       END OF ITAB2.
DATA : V_QTY TYPE P LENGTH 12 DECIMALS 3,
       V_QTY1 TYPE P LENGTH 12 DECIMALS 3,
       V_ALV TYPE C,
       V_MAXROW TYPE P LENGTH 3.
AT LINE-SELECTION.
    DATA : V_COL TYPE N LENGTH 3,
           V_ROW TYPE N LENGTH 3,
           V_RHDR LIKE T001L-LGORT,
           V_CHDR LIKE MARA-MTART,
           w_msg TYPE string.
    IF SY-LSIND = 1.
      V_COL = SY-CUCOL.
      V_ROW = SY-CUROW.
      V_RHDR = ''.
      V_CHDR = ''.
      PERFORM GET_PARM.
      IF V_ROW <> 999.
        PERFORM PRN_ITSTOCK.
      ENDIF.
    endif.
start-of-selection.
selection-screen begin of block par1 WITH FRAME TITLE TEXT-001.
*PARAMETERS : P_DATE LIKE MKPF-BUDAT OBLIGATORY DEFAULT sy-datum.
*PARAMETERS : P_WERKS LIKE MSEG-WERKS DEFAULT 'MFPL'.
PARAMETERS : P_DATE LIKE ZSTOCKSUM-STLDATE OBLIGATORY DEFAULT sy-datum.
PARAMETERS : P_WERKS LIKE ZSTOCKSUM-WERKS DEFAULT 'MFPL'.
SELECT-OPTIONS : MAT_TYPE FOR MARA-MTART.
****SELECT-OPTIONS : P_MATNR FOR MSEG-MATNR.
****SELECT-OPTIONS : P_STLOC FOR MSEG-LGORT.
SELECT-OPTIONS : P_MATNR FOR ZSTOCKSUM-MATNR.
SELECT-OPTIONS : P_STLOC FOR ZSTOCKSUM-LGORT.
SELECTION-SCREEN END OF BLOCK par1.
***SELECTION-SCREEN BEGIN OF BLOCK OPSC
***WITH FRAME TITLE TEXT-002.
***SELECTION-SCREEN BEGIN OF LINE.
***PARAMETERS ALV RADIOBUTTON GROUP OP.
***SELECTION-SCREEN COMMENT 4(13) TEXT-011 FOR FIELD ALV.
***SELECTION-SCREEN END OF LINE.
***SELECTION-SCREEN BEGIN OF LINE.
***PARAMETERS SCR RADIOBUTTON GROUP OP DEFAULT 'X'.
***SELECTION-SCREEN COMMENT 4(13) TEXT-012 FOR FIELD SCR.
***SELECTION-SCREEN END OF LINE.
***SELECTION-SCREEN END OF BLOCK OPSC.
  AUTHORITY-CHECK OBJECT 'ZPLANT1'
   ID 'WERKS' FIELD P_WERKS.
  IF sy-subrc <> 0.
   MESSAGE e045(zmsg) WITH P_WERKS.
  ENDIF.
PERFORM GET_INI_DATA.
PERFORM GET_GRP_DATA.
  V_ALV ='N'.
  PERFORM PRN_SMSTOCK_TXT.
*&      Form  GET_INI_DATA
      text
-->  p1        text
<--  p2        text
form GET_INI_DATA .
******************ORG******************************************
SELECT AMATNR BWERKS BLGORT AMEINS AMTART AMATKL ANTGEW AGEWEI A~NTGEW
FROM MARA AS A INNER JOIN MSEG AS B ON AMATNR = BMATNR
INTO TABLE ITAB
WHERE B~WERKS = P_WERKS
AND A~MATNR IN P_MATNR
AND ( MTART = 'FERT' OR MTART = 'HALB' OR MTART = 'ZBOP' OR MTART = 'ZSCR' OR MTART = 'ROH' )
AND MTART IN MAT_TYPE
GROUP BY AMATNR BWERKS BLGORT AMEINS AMTART AMATKL ANTGEW AGEWEI A~NTGEW.
***************************PREV CHANGE***********************************
SELECT BBUDAT AMATNR AWERKS ALGORT AMENGE AMEINS AERFMG AERFME ASHKZG ABWART
CMTART CMATKL CNTGEW CGEWEI C~NTGEW
FROM MSEG AS A  INNER JOIN MKPF AS B ON AMBLNR = BMBLNR AND AMJAHR = BMJAHR
INNER JOIN MARA AS C ON AMATNR = CMATNR
INTO TABLE STIT
WHERE AWERKS = P_WERKS AND AMATNR IN P_MATNR AND BUDAT <= P_DATE
AND MTART IN MAT_TYPE
AND ( MTART = 'FERT' OR MTART = 'HALB' OR MTART = 'ZBOP' OR MTART = 'ZSCR' OR MTART = 'ROH' )
AND A~LGORT IN P_STLOC.
*****************************NEW CHANGE AS ON 26.02.2008*********************************
*AERFMG AERFME ASHKZG ABWART
  SELECT ASTLDATE AMATNR AWERKS ALGORT ASTSTOCK ASTDEBIT A~STCREDIT
  CMEINS  CMTART CMATKL CNTGEW C~GEWEI
  FROM ZSTOCKSUM AS A
  INNER JOIN MARA AS C ON AMATNR = CMATNR
  INTO TABLE STIT
  WHERE AWERKS = P_WERKS AND MTART IN MAT_TYPE AND AMATNR IN P_MATNR AND STLDATE <= P_DATE
  AND ( MTART = 'FERT' OR MTART = 'HALB' OR MTART = 'ZBOP' OR MTART = 'ZSCR' OR MTART = 'ROH' )
  AND A~LGORT IN P_STLOC.
AND
    ITAB[] = STIT[].
    SORT ITAB BY MATNR WERKS LGORT MEINS MTART MATKL NTGEW GEWEI NTGEW.
    DELETE ADJACENT DUPLICATES FROM ITAB COMPARING MATNR WERKS LGORT MEINS MTART MATKL NTGEW GEWEI NTGEW.
    SORT STIT BY MATNR LGORT.
*SHKZG
  SORT ITAB BY MATNR LGORT.
  LOOP AT ITAB.
    V_QTY = 0.
    V_QTY1 = 0.
*************************PREVIOUS**********************s*
   LOOP AT STIT WHERE MATNR = ITAB-MATNR AND LGORT = ITAB-LGORT.
     IF STIT-SHKZG = 'S'.
       V_QTY = V_QTY + STIT-MENGE.
       V_QTY1 = V_QTY1 + STIT-ERFMG.
     ELSE.
       V_QTY = V_QTY - STIT-MENGE.
       V_QTY1 = V_QTY1 - STIT-ERFMG.
     ENDIF.
   ENDLOOP.
*************************NEW*****************************
LOOP AT STIT WHERE MATNR = ITAB-MATNR AND LGORT = ITAB-LGORT.
        V_QTY = V_QTY + STIT-STDEBIT - STIT-STCREDIT.
    ENDLOOP.
    IF V_QTY <> 0.
      ITAB-STOCK = V_QTY.
      IF ITAB-NTGEW <> 0 AND ITAB-GEWEI <> 'KG'.
        CALL FUNCTION 'ZGET_ITEM_WEIGHT'
         EXPORTING
           P_BUID         = ITAB-WERKS
           P_ITEMID       = ITAB-MATNR
           P_QTY          = ITAB-NTGEW
           P_UOM          = ITAB-GEWEI
           P_UOM1         = 'KG'
         IMPORTING
           P_RETVAL       = ITAB-WTKG.
    ENDIF.
    ENDIF.
   CONVERTING ITEM QTY IN KG
      ITAB-WT = ITAB-STOCK.
      IF ITAB-MEINS = 'G'.
        ITAB-WT = ITAB-STOCK / 1000000.
      ELSEIF ITAB-MEINS = 'KG'.
        ITAB-WT = ITAB-STOCK / 1000.
      ELSEIF ITAB-MEINS <> 'TO'.
        ITAB-WT = ITAB-STOCK * ITAB-WTKG / 1000.
      ENDIF.
      MODIFY ITAB.
    ENDIF.
  ENDLOOP.
endform.                    " GET_INI_DATA
*&      Form  GET_GRP_DATA
      text
-->  p1        text
<--  p2        text
form GET_GRP_DATA .
  SELECT LGORT LGOBE FROM T001L INTO TABLE SLIT WHERE WERKS = P_WERKS.
  SORT SLIT BY LGORT.
  SORT ITAB BY LGORT MTART.
  LOOP AT SLIT.
    LOOP AT ITAB WHERE MTART = 'ROH' AND LGORT = SLIT-LGORT AND STOCK <> 0.
      SLIT-ROH = SLIT-ROH + ITAB-WT.
    ENDLOOP.
    LOOP AT ITAB WHERE MTART = 'ZBOP' AND LGORT = SLIT-LGORT AND STOCK <> 0.
      SLIT-ZBOP = SLIT-ZBOP + ITAB-WT.
    ENDLOOP.
    LOOP AT ITAB WHERE MTART = 'HALB' AND LGORT = SLIT-LGORT AND STOCK <> 0.
      SLIT-HALB = SLIT-HALB + ITAB-WT.
    ENDLOOP.
    LOOP AT ITAB WHERE MTART = 'FERT' AND LGORT = SLIT-LGORT AND STOCK <> 0.
      SLIT-FERT = SLIT-FERT + ITAB-WT.
    ENDLOOP.
    LOOP AT ITAB WHERE MTART = 'ZSCR' AND LGORT = SLIT-LGORT AND STOCK <> 0.
      SLIT-ZSCR = SLIT-ZSCR + ITAB-WT.
    ENDLOOP.
    SLIT-TOT = SLIT-ROH + SLIT-ZBOP + SLIT-HALB + SLIT-FERT + SLIT-ZSCR.
    IF SLIT-TOT = 0.
      DELETE SLIT.
    ELSE.
      MODIFY SLIT.
    ENDIF.
  ENDLOOP.
endform.                    " GET_GRP_DATA
*&      Form  PRN_ITSTOCK
      text
-->  p1        text
<--  p2        text
form PRN_ITSTOCK .
Data : hdr type c length 100,
       V_PTYPE LIKE MARA-MTART,
       V_PSTLOC LIKE MSEG-LGORT,
       V_ITEM LIKE MAKT-MAKTX,
       T_QTY1 TYPE P LENGTH 12 DECIMALS 3,
       T_QTY2 TYPE P LENGTH 12 DECIMALS 3,
       T_QTY3 TYPE P LENGTH 12 DECIMALS 3,
       T_WT1 TYPE P LENGTH 12 DECIMALS 3,
       T_WT2 TYPE P LENGTH 12 DECIMALS 3,
       T_WT3 TYPE P LENGTH 12 DECIMALS 3.
hdr = 'INVENTORY REPORT '.
IF V_CHDR = 'ROH'.
  CONCATENATE HDR '(RAW MATERIAL) ' INTO HDR.
ELSEIF V_CHDR = 'ZBOP'.
  CONCATENATE HDR '(BOP) ' INTO HDR.
ELSEIF V_CHDR = 'HALB'.
  CONCATENATE HDR '(SEMI-FININSHED GOODS) ' INTO HDR.
ELSEIF V_CHDR = 'FERT'.
  CONCATENATE HDR '(FINISHED GOODS) ' INTO HDR.
ELSEIF V_CHDR = 'ZSCR'.
  CONCATENATE HDR '(SCRAP) ' INTO HDR.
ENDIF.
WRITE : / HDR.
uline.
*WRITE : / '              ITEM ID  DESCRIPTION                   UOM  GRP           ITEM WT (KG.)             STOCK QTY.              STOCK TONS'.
WRITE : / '            ITEM ID  DESCRIPTION                             UOM       GROUP            NET.WT.      STOCK QTY.  STOCK (TONS)'.
ULINE.
SORT ITAB BY MTART LGORT MATNR.
T_QTY1 = 0.
T_WT1 = 0.
LOOP AT ITAB1.
  WRITE : / 'MATERIAL TYPE : ', ITAB1-MTART.
  T_QTY2 = 0.
  T_WT2 = 0.
  LOOP AT ITAB2.
    WRITE : / '          STORAGE LOCATION : ' , ITAB2-LGORT.
    T_QTY3 = 0.
    T_WT3 = 0.
    LOOP AT ITAB WHERE MTART = ITAB1-MTART AND LGORT = ITAB2-LGORT.
      SELECT SINGLE MAKTX FROM MAKT INTO V_ITEM WHERE MATNR = ITAB-MATNR.
      WRITE : / '           ' ,(8) ITAB-MATNR,(40) V_ITEM,(3) ITAB-MEINS,'    ', ITAB-MATKL, '    ',(10) ITAB-WTKG,(13) ITAB-STOCK, (13) ITAB-WT.
      T_QTY3 = T_QTY3 + ITAB-STOCK.
      T_WT3 = T_WT3 + ITAB-WT.
    ENDLOOP.
    T_QTY2 = T_QTY2 + T_QTY3.
    T_WT2 = T_WT2 + T_WT3.
    WRITE : / '                                                                                -
    WRITE : / '          TOTAL :                                                                               ',(13) T_QTY3, (13) T_WT3.
    WRITE : / '                                                                                -
  ENDLOOP.
  T_QTY1 = T_QTY1 + T_QTY2.
  T_WT1 = T_WT1 + T_WT2.
WRITE : / '                                                                                ----------------------------'.
  WRITE : / '    TOTAL       :                                                                               ',(13) T_QTY2, (13) T_WT2.
  WRITE : / '                                                                                -
ENDLOOP.
*WRITE : / '                                                                                -
WRITE : / ' GRAND TOTAL    :                                                                               ',(13) T_QTY1, (13) T_WT1.
WRITE : / '                                                                                -
endform.                    " PRN_ITSTOCK
*&      Form  PRN_SMSTOCK
      text
-->  p1        text
<--  p2        text
form PRN_SMSTOCK_TXT .
  DATA : Q TYPE P LENGTH 12 DECIMALS 3,
         TROH TYPE P LENGTH 12 DECIMALS 3,
         TBOP TYPE P LENGTH 12 DECIMALS 3,
         THALB TYPE P LENGTH 12 DECIMALS 3,
         TFERT TYPE P LENGTH 12 DECIMALS 3,
         TSCR TYPE P LENGTH 12 DECIMALS 3,
         TSL TYPE P LENGTH 12 DECIMALS 3.
  WRITE : / 'INVENTORY REPORT AS ON : ', P_DATE, '         PLANT : ', P_WERKS, '                           PRINTING DATE : ', SY-DATUM, '     CONTROL NO.: FM 888  REV-00'.
  WRITE : / '(in Tons)', 121 'DATE       : 20.11.07'.
  ULINE.
  FORMAT COLOR COL_GROUP ON.
  WRITE : / SY-VLINE,(10) 'ST.LOC.', SY-VLINE, (25) 'ST. LOCATION ', SY-VLINE, (15) 'RAW MATERIAL', SY-VLINE, (15) '     BOP', SY-VLINE, (15) 'FIN. GOODS',
            SY-VLINE, (15) 'WIP GOODS', SY-VLINE, (15) 'SCRAPS', SY-VLINE, (15) ' TOTAL ', SY-VLINE.
  ULINE.
  TROH = 0.
  TBOP = 0.
  THALB = 0.
  TFERT = 0.
  TSCR = 0.
  FORMAT COLOR COL_NORMAL ON.
  LOOP AT SLIT.
    Q = SLIT-ROH + SLIT-ZBOP + SLIT-FERT + SLIT-HALB + SLIT-ZSCR.
    IF Q <> 0.
     TSL = SLIT-ROH + SLIT-ZBOP + SLIT-HALB + SLIT-FERT + SLIT-ZSCR.
      WRITE  : / SY-VLINE,(10) SLIT-LGORT, SY-VLINE, (25) SLIT-LGOBE, SY-VLINE, (13) SLIT-ROH,' ', SY-VLINE, (13) SLIT-ZBOP, ' ', SY-VLINE, (13) SLIT-FERT, ' ',
      SY-VLINE,(13) SLIT-HALB, ' ', SY-VLINE,(13) SLIT-ZSCR, ' ',SY-VLINE,(13) SLIT-TOT, ' ',SY-VLINE.
      ULINE.
      TROH = TROH + SLIT-ROH.
      TBOP = TBOP + SLIT-ZBOP.
      THALB = THALB + SLIT-HALB.
      TFERT = TFERT + SLIT-FERT.
      TSCR =  TSCR + SLIT-ZSCR.
      SLIT-CRROW = SY-LINNO - 2.
      MODIFY SLIT.
      V_MAXROW = SLIT-CRROW.
     WRITE : SLIT-FERT, SLIT-HALB, SLIT-ZSCR.
    ENDIF.
  ENDLOOP.
  TSL = TROH + TBOP + THALB + TFERT + TSCR.
  WRITE  : / SY-VLINE, (38) 'T O T A L ', SY-VLINE, (13) TROH,' ', SY-VLINE, (13) TBOP, ' ', SY-VLINE, (13) TFERT, ' ',
  SY-VLINE,(13) THALB, ' ', SY-VLINE,(13) TSCR, ' ',SY-VLINE,(13) TSL, ' ',SY-VLINE.
  ULINE.
endform.                    " PRN_SMSTOCK
*&      Form  PRN_SMSTOCK_ALV
      text
-->  p1        text
<--  p2        text
form PRN_SMSTOCK_ALV .
endform.
form user_command using r_ucomm     like sy-ucomm
                        rs_selfield type slis_selfield.
Example Code
Executes a command considering the sy-ucomm.
CASE r_ucomm.
   WHEN '&IC1'.
     DATA: w_msg TYPE string,
           w_row(4) TYPE n,
           ITID LIKE MARA-MATNR.
     w_row = rs_selfield-tabindex.
     ITID = rs_selfield-value.
     IF W_ROW <> 0.
       CONCATENATE 'You have clicked row' w_row
                   'field' rs_selfield-fieldname
                   'with value' rs_selfield-value
                   INTO w_msg SEPARATED BY space.
       MESSAGE w_msg TYPE 'S'.
       PERFORM PRN_ITSTOCK.
     ENDIF.
ENDCASE.
ENDFORM.
*&      Form  GET_PARM
      text
-->  p1        text
<--  p2        text
form GET_PARM .
CLEAR ITAB1.
REFRESH ITAB1.
IF V_COL > 44.
  IF V_COL >= 44 AND V_COL <= 60.
    V_CHDR = 'ROH'.
    ITAB1-MTART = V_CHDR.
    APPEND ITAB1.
  ELSEIF V_COL >= 62 AND V_COL <= 78.
    V_CHDR = 'ZBOP'.
    ITAB1-MTART = V_CHDR.
    APPEND ITAB1.
  ELSEIF V_COL >= 80 AND V_COL <= 96.
    V_CHDR = 'FERT'.
    ITAB1-MTART = V_CHDR.
    APPEND ITAB1.
  ELSEIF V_COL >= 98 AND V_COL <= 114.
    V_CHDR = 'HALB'.
    ITAB1-MTART = V_CHDR.
    APPEND ITAB1.
  ELSEIF V_COL >= 116 AND V_COL <= 132.
    V_CHDR = 'ZSCR'.
    ITAB1-MTART = V_CHDR.
    APPEND ITAB1.
  ELSEIF V_COL >= 134 AND V_COL <= 160.
    V_CHDR = 'TOT'.
    ITAB1-MTART = 'ROH'.
    APPEND ITAB1.
    ITAB1-MTART = 'ZBOP'.
    APPEND ITAB1.
    ITAB1-MTART = 'FERT'.
    APPEND ITAB1.
    ITAB1-MTART = 'HALB'.
    APPEND ITAB1.
    ITAB1-MTART = 'ZSCR'.
    APPEND ITAB1.
  ENDIF.
  CLEAR ITAB2.
  REFRESH ITAB2.
  READ TABLE SLIT WITH KEY CRROW = V_ROW.
  IF SY-SUBRC = 0.
    V_RHDR = SLIT-LGORT.
    ITAB2-LGORT = V_RHDR.
    APPEND ITAB2.
  ELSE.
    IF V_ROW > V_MAXROW.
      IF V_CHDR <> 'TOT'.
        DATA : PTXT LIKE MSEG-LGORT.
        SORT ITAB BY MTART LGORT.
        PTXT = ''.
        LOOP AT ITAB WHERE MTART = V_CHDR AND STOCK <> 0.
          IF PTXT <> ITAB-LGORT.
            ITAB2-LGORT = ITAB-LGORT.
            APPEND ITAB2.
            PTXT = ITAB-LGORT.
          ENDIF.
        ENDLOOP.
      ELSE.
        V_ROW = 999.
      ENDIF.
    ELSE.
      V_ROW = 999.
      CLEAR ITAB1.
      REFRESH ITAB1.
    ENDIF.
  ENDIF.
ELSE.
  V_CHDR = ''.
  V_RHDR = ''.
ENDIF.
endform.                    " GET_PARM
Edited by: ric .s on Mar 15, 2008 7:26 AM

Similar Messages

  • Report for displaying the order number & order date..

    HI ALL,
    can any body help me for displaying the order number,customer name,material name & order date..in report
    i dnt know the which are the table i need to use...
    can anybody tell me which are table do i need to use and fields in tables
    input to report from the user are cutomer number,purchase order numbervendor number & sales number
    waiting for positive reply form u people.....
    thanks
    Zabeerulla
    Moderator message: "spec dumping", please work yourself first on your requirement, do some research, talk to a functional consultant near you.
    Edited by: Thomas Zloch on Feb 28, 2011 2:14 PM

    Thx  dharma raj  ...
    problem is ,input to report from the user are cutomer number,purchase order number,vendor number & sales number
    report should contain
    customer name
    order date
    order #
    vendor name
    material name
    can u please tell me which are the table do i need to use...
    i have ,please look into it...let me know if am incorrect
    customer name -> kna1_name where kna1_kunnr=knagv_kunnr
    order date -> vbak_audat
    order nunber->vbak_vbeln
    vendor name -> LFA1_NAME where LFA1_LIFNR=MEPO_TOPLINE(superfileld)
    material # -> VBAP_ARKTX where VBAP_VBELN=VBAK_VBELN
    HELP ME OUT...
    THX
    ZABEER

  • How to Read the one Source Column data and Display the Results

    Hi All,
         I have one PR_ProjectType Column in my Mastertable,Based on that Column we need to reed the column data and Display the Results
    Ex:
    Pr_ProjectType
    AD,AM
    AD
    AM
    AD,AM,TS,CS.OT,TS
    AD,AM          
    like that data will come now we need 1. Ad,AM then same we need 2. AD also same we need 3. AM also we need
    4.AD,AM,TS,CS.OT,TS in this string we need AD,AM  only.
    this logic we need we have thousand of data in the table.Please help this is urgent issue
    vasu

    Hi Vasu,
    Based on your description, you want to eliminate the substrings (eliminated by comma) that are not AD or AM in each value of the column. Personally, I don’t think this can be done by just using an expression in the Derived Column. To achieve your goal, here
    are two approaches for your reference:
    Method 1: On the query level. Replace the target substrings with different integer characters, and create a function to eliminate non-numeric characters, then replace the integer characters with the corresponding substrings. The statements
    for the custom function is as follows:
    CREATE FUNCTION dbo.udf_GetNumeric
    (@strAlphaNumeric VARCHAR(256))
    RETURNS VARCHAR(256)
    AS
    BEGIN
    DECLARE @intAlpha INT
    SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric)
    BEGIN
    WHILE @intAlpha > 0
    BEGIN
    SET @strAlphaNumeric = STUFF(@strAlphaNumeric, @intAlpha, 1, '' )
    SET @intAlpha = PATINDEX('%[^0-9]%', @strAlphaNumeric )
    END
    END
    RETURN ISNULL(@strAlphaNumeric,0)
    END
    GO
    The SQL commands used in the OLE DB Source is like:
    SELECT
    ID, REPLACE(REPLACE(REPLACE(REPLACE(dbo.udf_GetNumeric(REPLACE(REPLACE(REPLACE(REPLACE([ProjectType],'AD,',1),'AM,',2),'AD',3),'AM',4)),4,'AM'),3,'AD'),2,'AM,'),1,'AD,')
    FROM MyTable
    Method 2: Using a Script Component. Add a Derived Column Transform to replace the target substrings as method 1, use Regex in script to remove all non-numeric characters from the string, add another Derived Column to replace the integer
    characters to the corresponding substring. The script is as follows:
    using System.Text.RegularExpressions;
    Row.OutProjectType= Regex.Replace(Row.ProjectType, "[^.0-9]", "");
    References:
    http://blog.sqlauthority.com/2008/10/14/sql-server-get-numeric-value-from-alpha-numeric-string-udf-for-get-numeric-numbers-only/ 
    http://labs.kaliko.com/2009/09/c-remove-all-non-numeric-characters.html 
    Regards,
    Mike Yin
    TechNet Community Support

  • How to format a date to display the ISO week number in BI Publisher ?

    Hi there,
    I need to format a date to display the ISO week number in BI Publisher.
    I've tried the following <?format-date:NEED_BY_DATE;'WW'?>, but it returns a week number (1-53) where week 1 starts on the first day of the year and continues to the seventh day of the year, which is not what I want.
    I want the ISO week number (1-52 or 1-53), the one implemented by the 'IW' format mask of the Oracle PL/SQL TO_CHAR() function for example.
    I've tried using 'IW' format mask, but it is not recognised by BI Publisher.
    Also, as I'm working on an RTF template, I've tried 'IW' as MS Word date format, but it is not recognised by MS Word :-((
    Any help would be much appreciated,
    Regards - Hugues

    Hi,
    Thank you for the post.
    The thing is I don't have access to the query, unless I modify a standard E-Businees Suite view (one of those used to generate the PO document in Purchasing).
    Regards - Hugues

  • How 2 creat report for displaying the details of a Delivery Document using

    how to create report for displaying the details of a Delivery Document using the tables LIKP, LIPS
    thank you
    regards,
    jagrut bharatkumar shukla
    points will be rewarded

    HI
    I AM GIVING YOU MY DELIVERY DOCUMENT CODE...MODIFY IT ACCORDING TO YOUR REQUIREMENT
    *& Report  ZDELIVERY                                *
    report  zdelivery  message-id z9bhu          .
    types: begin of t_likp,
               vbeln type likp-vbeln,      "Delivery
               erdat type likp-erdat,      "Date for rec creation
    *           LFDAT TYPE LIKP-LFDAT,      "Delevery Date
    *           WAERK TYPE LIKP-WAERK,      "Currency
               kunnr type likp-kunnr,      "Ship-To Party
               kunag type likp-kunag,      "Sold-to party
               traty type likp-traty,      "Means-of-Transport
           end of t_likp.
    types: begin of t_lips,
               vbeln type lips-vbeln,      "Delivery
               posnr type lips-posnr,      "Delivery item
               matnr type lips-matnr,      "Material Number
               arktx type lips-arktx,      "Short Text for Sales Order Item
               lfimg type lips-lfimg,      "Actual quantity delivered
               netpr type lips-netpr,
    *           MEINS TYPE LIPS-MEINS,      "Base Unit of Measure
               vgbel type lips-vgbel,      "Doc no of the reference document
            end of t_lips.
    types: begin of t_vbpa,
               vbeln type vbpa-vbeln,      "SD DocumenT Number
               posnr type vbpa-posnr,      "Item number
               parvw type vbpa-parvw,      "Partner function
               kunnrb type vbpa-kunnr,      "Customer Number 1
           end of t_vbpa.
    types: begin of t_kna1,
               kunnr type kna1-kunnr,      "Customer Number 1
               name1 type kna1-name1,      "Name 1
               ort01 type kna1-ort01,      "City
               adrnr type kna1-adrnr,      "Address
           end of t_kna1.
    types: begin of t_li_vbpa,
               vbeln type likp-vbeln,      "Delivery
               erdat type likp-erdat,      "Date for rec creation
    *           LFDAT TYPE LIKP-LFDAT,      "Delevery Date
    *           WAERK TYPE LIKP-WAERK,      "Currency
               kunnr type likp-kunnr,      "Ship-To Party
               kunag type likp-kunag,      "Sold-to party
               traty type likp-traty,      "Means-of-Transport
               vbeln1 type lips-vbeln,      "Delivery
               posnr type lips-posnr,      "Delivery item
               matnr type lips-matnr,      "Material Number
               arktx type lips-arktx,      "Short Text for Sales Order Item
               lfimg type lips-lfimg,      "Actual quantity delivered
               netpr type lips-netpr,      "Net Price
    *           MEINS TYPE LIPS-MEINS,      "Base Unit of Measure
               vgbel type lips-vgbel,      "Doc no of the reference document
               vbeln3 type vbpa-vbeln,     "SD DocumenT Number
               parvw type vbpa-parvw,      "Partner function
               kunnrb type vbpa-kunnr,      "Customer Number 1
           end of t_li_vbpa.
    types: begin of t_final,
               vbeln type likp-vbeln,      "Delivery
               erdat type likp-erdat,      "Date for rec creation
               kunnr type likp-kunnr,      "Ship-To Party
               kunag type likp-kunag,      "Sold-to party
               traty type likp-traty,      "Means-of-Transport
               vbeln1 type lips-vbeln,      "Delivery
               posnr type lips-posnr,      "Delivery item
               matnr type lips-matnr,      "Material Number
               arktx type lips-arktx,      "Short Text for Sales Order Item
               lfimg type lips-lfimg,      "Actual quantity delivered
               netpr type lips-netpr,      "Net Price
               vgbel type lips-vgbel,      "Doc no of the reference document
               vbeln3 type vbpa-vbeln,     "SD DocumenT Number
               parvw type vbpa-parvw,      "Partner function
               kunnrb type vbpa-kunnr,     "Customer Number 1
               name1 type kna1-name1,      "Name 1
               ort01 type kna1-ort01,      "City
               adrnr1 type kna1-adrnr,     "Address
               name2 type kna1-name1,      "Name 1
               ort02 type kna1-ort01,      "City
               adrnr2 type kna1-adrnr,     "Address
               name3 type kna1-name1,      "Name 1
               ort03 type kna1-ort01,      "City
               adrnr3 type kna1-adrnr,     "Address
           end of t_final.
    *            D A T A  D E C L A R A T I O N
    *&*********Internal Table Declaration****************&*
    data: it_likp type standard table of t_likp.
    data: it_lips type standard table of t_lips.
    data: it_vbpa type standard table of t_vbpa.
    data: it_kna1 type standard table of t_kna1.
    data: it_li_vbpa type standard table of t_li_vbpa.
    data: it_li_vbpa_temp type standard table of t_li_vbpa.
    data: it_final type standard table of t_final.
    *&*********Work Area Declaration********************&*
    data: wa_likp type t_likp.
    data: wa_lips type t_lips.
    data: wa_vbpa type t_vbpa.
    data: wa_kna1 type t_kna1.
    data: wa_li_vbpa type t_li_vbpa.
    data: wa_li_vbpa_temp type t_li_vbpa.
    data: wa_final type t_final.
    *&*********Data Declaration************************&*
    data: d_vbeln type likp-vbeln.
    data: flag type i value 0.
    *           S E L E C T I O N  S C R E E N   D E C L A R A T I O N
    selection-screen begin of block block2 with frame title text-001.
    select-options: s_vbeln for d_vbeln obligatory.    "Delivery no
    selection-screen end of block block2.
    *            A T  S E L E C T I O N - S C R E E N   E V E N T S
    *AT SELECTION-SCREEN.
    *PERFORM VALIDATE_DATA.
    *            S T A R T   O F  S E L E C T I O N     E V E N T S
    start-of-selection.
    perform fetch_data.
    perform merge_data_kna1.
    *INCLUDE Z9BT_SH_***4_FORMS.
    call function 'OPEN_FORM'
    exporting
    *   APPLICATION                       = 'TX'
    *   ARCHIVE_INDEX                     =
    *   ARCHIVE_PARAMS                    =
        device                            = 'PRINTER'
    *   DIALOG                            = 'X'
    *   FORM                              = ' '
       language                          = sy-langu
    *   OPTIONS                           =
    *   MAIL_SENDER                       =
    *   MAIL_RECIPIENT                    =
    *   MAIL_APPL_OBJECT                  =
    *   RAW_DATA_INTERFACE                = '*'
    *   SPONUMIV                          =
    * IMPORTING
    *   LANGUAGE                          =
    *   NEW_ARCHIVE_PARAMS                =
    *   RESULT                            =
    exceptions
       canceled                          = 1
       device                            = 2
       form                              = 3
       options                           = 4
       unclosed                          = 5
       mail_options                      = 6
       archive_error                     = 7
       invalid_fax_number                = 8
       more_params_needed_in_batch       = 9
       spool_error                       = 10
       codepage                          = 11
       others                            = 12
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    sort it_final by vbeln.
    loop at it_final into wa_final.
    call function 'START_FORM'
    exporting
    *   ARCHIVE_INDEX          =
       form                   = 'Z9BT_DELIVERY'
       language               = sy-langu
    *   STARTPAGE              = ' '
    *   PROGRAM                = ' '
    *   MAIL_APPL_OBJECT       =
    * IMPORTING
    *   LANGUAGE               =
    exceptions
       form                   = 1
       format                 = 2
       unended                = 3
       unopened               = 4
       unused                 = 5
       spool_error            = 6
       codepage               = 7
       others                 = 8
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function 'WRITE_FORM'
    exporting
       element                        = 'ITEM_LIST'
       function                       = 'SET'
       type                           = 'BODY'
       window                         = 'MAIN'
    * IMPORTING
    *   PENDING_LINES                  =
    * EXCEPTIONS
    *   ELEMENT                        = 1
    *   FUNCTION                       = 2
    *   TYPE                           = 3
    *   UNOPENED                       = 4
    *   UNSTARTED                      = 5
    *   WINDOW                         = 6
    *   BAD_PAGEFORMAT_FOR_PRINT       = 7
    *   SPOOL_ERROR                    = 8
    *   CODEPAGE                       = 9
    *   OTHERS                         = 10
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function 'END_FORM'
    * IMPORTING
    *   RESULT                         =
    exceptions
       unopened                       = 1
       bad_pageformat_for_print       = 2
       spool_error                    = 3
       codepage                       = 4
       others                         = 5
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    endloop.
    call function 'CLOSE_FORM'
    * IMPORTING
    *   RESULT                         =
    *   RDI_RESULT                     =
    * TABLES
    *   OTFDATA                        =
    exceptions
       unopened                       = 1
       bad_pageformat_for_print       = 2
       send_error                     = 3
       spool_error                    = 4
       codepage                       = 5
       others                         = 6
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    *&      Form  VALIDATE_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form validate_data .
    select single vbeln into wa_likp-vbeln
                        from likp where vbeln in s_vbeln.
    append wa_likp to it_likp.
    if sy-subrc <> 0.
    flag = 1.
    endif.
    endform.                    " VALIDATE_DATA
    *&      Form  FETCH_DATA
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form fetch_data .
    select a~vbeln
           a~erdat
           a~kunnr
           a~kunag
           a~traty
           b~vbeln
           b~posnr
           b~matnr
           b~arktx
           b~lfimg
           b~netpr
           b~vgbel
           c~vbeln
           c~parvw
           c~kunnr
             into table it_li_vbpa
                    from likp as a
                    left outer join lips as b on a~vbeln = b~vbeln
                    inner join vbpa as c on b~vgbel = c~vbeln
                    where a~vbeln in s_vbeln and
                    c~parvw = 'RE'.
    endform.                    " FETCH_DATA
    *&      Form  MERGE_DATA_KNA1
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form merge_data_kna1 .
    if it_li_vbpa[] is not initial.
    it_li_vbpa_temp[] = it_li_vbpa[].
    sort it_li_vbpa_temp by kunnr.
    delete adjacent duplicates from it_li_vbpa_temp comparing kunnr.
    loop at it_li_vbpa into wa_li_vbpa.
    read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
    wa_li_vbpa-kunag.
    if sy-subrc <> 0.
    wa_li_vbpa_temp = wa_li_vbpa.
    append wa_li_vbpa_temp to it_li_vbpa_temp.
    endif.
    read table it_li_vbpa_temp into wa_li_vbpa_temp with key kunnr =
    wa_li_vbpa-kunnrb.
    if sy-subrc <> 0.
    wa_li_vbpa_temp = wa_li_vbpa.
    append wa_li_vbpa_temp to it_li_vbpa_temp.
    endif.
    endloop.
    endif.
    if it_li_vbpa_temp[] is not initial.
    select  kunnr
            name1
            ort01
            adrnr into table it_kna1 from kna1
                        for all entries in it_li_vbpa_temp
                        where kunnr = it_li_vbpa_temp-kunnr.
    endif.
    loop at it_li_vbpa into wa_li_vbpa .
    wa_final-vbeln = wa_li_vbpa-vbeln.
    wa_final-erdat = wa_li_vbpa-erdat.
    *it_final-LFART = it_li_vbpa-LFART.
    wa_final-kunnr = wa_li_vbpa-kunnr.
    wa_final-kunag = wa_li_vbpa-kunag.
    *it_final-VSTEL = it_li_vbpa-VSTEL.
    wa_final-traty = wa_li_vbpa-traty.
    wa_final-vbeln1 = wa_li_vbpa-vbeln.
    wa_final-posnr = wa_li_vbpa-posnr.
    wa_final-matnr = wa_li_vbpa-matnr.
    wa_final-arktx = wa_li_vbpa-arktx.
    wa_final-lfimg = wa_li_vbpa-lfimg.
    wa_final-netpr = wa_li_vbpa-netpr.
    *wa_final-GEWEI = it_li_vbpa-GEWEI.
    *it_final-VOLUM = it_li_vbpa-VOLUM.
    *it_final-VOLEH = it_li_vbpa-VOLEH.
    wa_final-vgbel = wa_li_vbpa-vgbel.
    wa_final-vbeln3 = wa_li_vbpa-vbeln.
    *wa_final-PARVW = wa_li_vbpa-PARVW.
    wa_final-kunnrb = wa_li_vbpa-kunnrb.
    read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnr.
    if sy-subrc = 0.
    wa_final-name1 = wa_kna1-name1.
    wa_final-ort01 = wa_kna1-ort01.
    wa_final-adrnr1 = wa_kna1-adrnr.
    endif.
    read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunag.
    if sy-subrc = 0.
    wa_final-name2 = wa_kna1-name1.
    wa_final-ort02 = wa_kna1-ort01.
    wa_final-adrnr2 = wa_kna1-adrnr.
    endif.
    read table it_kna1 into wa_kna1 with key kunnr = wa_li_vbpa-kunnrb.
    if sy-subrc = 0.
    wa_final-name3 = wa_kna1-name1.
    wa_final-ort03 = wa_kna1-ort01.
    wa_final-adrnr3 = wa_kna1-adrnr.
    endif.
    append wa_final to it_final.
    clear wa_final.
    endloop.
    endform.

  • Display stock on posting date for a consignment stock

    Dear guru.
    I want to display the stock on posting date for a consignment stock (special stock indicator = "W" ) to display this stock and the linked movements  for a specific customer.
    MB5B donu2019t have the field customer in the selection view.
    What transaction can I use ?
    Thanks in advance.

    Hi,
    In MB5B in special stocks indicator you select W
    and select special stock
    You will get it
    BR
    Diwakar
    Edited by: diwakarnd deshpande on May 20, 2008 7:02 PM

  • 'Valid to' dates for both the Header & the components in the BOM report.

    Hi Experts,
    My Requirement:
    Need to display the 'Valid to' dates for both the Header & the components in the BOM report.
    Right now we are using the Functional modules 'GET_STKO' & 'GET_STPO' for the header
    & the components respectively. The report gives the correct output for the all the BOM alternatives
    which exist. But for the BOM alternatives which have been deleted(updated in STKO-LKENZ)
    'Valid to' dates are displayed as'00/00/0000'.
    (Note:ECM is used for BOMs)
    Is there any Logical Database that I can fetch the 'Valid to' dates of both BOM Header & components
    which are deleted?
    Regards,
    Mahesh

    Dear Mahesh,
    In my understanding I dont think you cannot get the valid to date for BOM header,unless a ECN,(engineering change number) is
    used to set the deletion flag.In otherwords none of the business sets for all these BOM's the valid to date(which means the
    default valid to date 31.12.9999 is taken).
    Check with this FM, CS_BOM_EXPL_MAT_V2 whether can you get the valid to date for the components(infact here also the
    valid from date given in the input screen impacts the report output).
    Check and revert back.
    Regards
    Mangalraj.S

  • I managed to transfer the music from 1 pc to 1 other pc (to be played by iTunes). Bit didn't fixe the transfer of the meta data (for example the rating). Does anyone know how to use your old playlists, etc..(= meta data) on the other PC? So, please help!

    I managed to transfer the music from 1 pc to 1 other pc (it is played perfectly on the other PC (Windows 7- pc) by the newly downloaded and installed iTunes, version 10.6.1.7). But I didn’t fix the transfer of the meta data (for example the rating). Does anyone know how to use (or import) your old playlists, etc..(= meta data) on the other PC? So, short: how to migrate the meta data from one pc to an other pc?
    It's a pity that it seems not to be possible to import on the new pc e.g. the ratings!!!
    I don't want to start again with rating my (beautiful classical) music!
    Thanks, from Amsterdam, NL

    Did you do the move via Home Sharing, astro?
    If so, perhaps try the instructions from the following post:
    Re: i transfered itunes to my pc playlists did not go

  • Function module for displaying the location

    Hi,
          Could anyone tell  the Function module for displaying the location in our system  without a  file name while downloading, when the user press f4.
    thanks

    * read the default pathname on application server
      call function 'FILE_GET_NAME'
           exporting
    *           CLIENT                  = SY-MANDT
                logical_filename        = lc_logical_filename_ftappl
                operating_system        = sy-opsys
    *           parameter_1             = ' '
    *           PARAMETER_2             = ' '
    *           USE_PRESENTATION_SERVER = ' '
    *           WITH_FILE_EXTENSION     = ' '
    *           USE_BUFFER              = ' '
           importing
                emergency_flag          = l_emergency_flag
                file_format             = l_file_format
                file_name               = l_file_name_ftappl
           exceptions
                file_not_found          = 1
                others                  = 2.

  • BOR object for Displaying the Spool

    I am trying to create work item that will display spool output.I have thought of using FM "SWW_WI_START_SIMPLE"  to create a work item and will take to the display of the spool file .Can any body suggest the BOR object which I can use for displaying the spool output??
    (Background of the issue-I am executing a report in background and taking out put of that on spool. After executing this I want to send that spool number in the work item to the user and from that work item a link should be generated that will take the user to the spool display.)

    Hi raz
    i think it will help you
    Firstly go to Transaction of event trace SWE4 on the event trace
    Secondly go to your transaction create one invoce
    then  go to SWEL it will display the BOR Triggered during the Invoice creation
    In case of any issue please revert back
    Donot forgot to reward points
    Regards
    hitesh

  • Code for displaying the word doc file from servlet as response.

    Hi can any provide me code for displaying the word document form servlet as response.
    here i have file from file it should ale to read them and display it.
    i have written code but the proble here is in displaying.it ios as not showing as word.can any one help me here
    vijay

    Are we talking of HTTP?
    If yes, you'll need to provide an appropriate content-type and use the binary output stream.
    IE does not trust the content-type header but relies upon the file name, so set it too.
    response.setHeader( "Content-Disposition", "attachment; filename=" etc. Edited by: BIJ001 on Oct 22, 2007 10:10 AM

  • Code for displaying the elements of ArraList and HashMap

    hi..im new to java ..
    tell me the code for displaying the elements of ArraList and HashMap

    myj-ava wrote:
    wt abt displaying the elments of HashMap?plz..give clear codehey, this is not a code-giving service. This is a forum of volunteers who help others who have specific questions. I find that the greatest help is given to those who have shown that they've put in at least some effort. You have shown none. Please look at the Sun tutorials first, then come back with a specific question if anything there confuses you.

  • Tcode for displaying the locked objects

    Hi Experts,
    Can anybody please let me know what is the tcode for displaying the "locked objects" for a user? Thanks a ton for your help.

    Hi Sam,
    you can see the locked objects in E071 table.
    Reward if it helps,
    Satish

  • MD04 - Display the stock on one storage location particulary.

    The transaction MD04 allows seeing the stock of the plant in the first line of the Stock/requirement list.(MD04)
    When the plant includes several storage location (e.g MAG1, MAG2, MAG3), we don't have the detail of the quantity one each storage location.
    We can use the filter (by using SETTINGS and FILTER ON) that controls the display of the MRP list and the stock/requirements list but this function don't allows seeing only the stock on one storage location particulary. We have to go the tcode MMBE in order to know the stock on each storage location.
    Thanks in advance for yours reply.

    What is your real problem?
    Display the stock storage location-wise is one thing and do MRP without certain storage location(s) (=exclude storage locations from MRP) might be another.
    If you only want to display stock of certain storage locations in MD04 but use all you stock for planning, I think there's no reason for it.
    If you really want to exclude certain storage locations, then you have to be aware that MRP won't consider that stock (for the plant segment). It will also have impact on ATP (atp won't use that stock too).
    So, there's a big difference between exclude a storage location from MRP and to exclude its stock from display.
    (You can exclude storage locations from MRP via material master --> MRP4 view --> you have to enter both plant/sloc as organisational level and you will see the suitable tab. It is also possible to control this indicator via config for to be created material masters - you can search and find threads)
    You should describe your exact requirement and maybe forum mebers can give you advice.

  • Is there any way that you can delete APPS that come on the iPad? For example, the stock app, can you delete that or is it permanently on there?

    Is there any way that you can delete APPS that come on the iPad 2 when you buy it? For example, the stock app, can you delete that or is it permanently on there?

    You cannot delete the preinstalled apps on the iPad. You can check by tapping and holding down on the icon until it wiggles. If no X appears, you cannot delete it.
    Move it to another screen or bury it in a folder called" Stuff I don't Want"

Maybe you are looking for

  • Determine version used to create a report at runtime?

    Is there a way to determine what version of Crystal was used to create a report during runtime?  I've looked at the objects and cannot find a property that might be used.  There is a File Forrmat Schema property in the Report Definition item in the P

  • Itunes will not launch after latest update 2/2014

    Just installed latest update for iTunes on 2/21/2014 on my MBP running snow leopard and after restarting MBP iTunes will not  launch. Thank you MacBook Pro Late 2008 unibody running Snow Leopard 10.6.8

  • Error message (0x0000022)

    After I uninstalled and reinstalled Adobe Reader, I get a error message on start-up, (0x0000022). When I try to open Reader I get a window asking me to turn of protective mode using some radio buttons. But then the app fails to open.

  • Having trouble with bank account with foxfire

    When I go to my bank account I can get into it ok, but when I go to the page where I want to trnsfer accounts it does not work right, I contacted Chase The page ios working right they said it might be the browser, It probaly is because I didn't have

  • Remove Business Package The portal system

    Hi, I need remove 1 business packages in the portal, how? remove BP in the JSPM? Please help, Thanks.