How to know the stock of material ?

Hi gurus,
For a material number (+Sale org, Dist. channel.. ) , how can we know till present , There are how many material left in stock ? Is there any BAPI functions for this ?
Thanks

Hi,
Two T. Codes:-
1) MMBE
2) MB52
But go for MMBE, which will give detail display. (Means plant wise, batchwise, storage locationwise restricred stock unrestricted , blocked and reserved stock.
Reward points if helpfull and close the thread as soon as possible.
Dhananjay

Similar Messages

  • How to clear the stock of material provided to vendor(subcontracting stock)

    Hi SAP Gurus,
    Please let me know how to clear the stock of material provided to vendor(subcontracting stock) and need your help in what senario this stock will show in " Matl prov. to vendor "
    Thanks and Regards,
    SHARAN.

    Hi Sharan,
    Matl Povided to Vendor stock will appear in Subcontracting scenario.
    If at all you have given some material to a subcontractor , this will be consumed automaticaly when you will recieve the ordered material from subcontractor.that is 543 movement will take place in the backgroung when u do the GR.
    In case if u need to clear the stock u can do 542 and take the stock back to unrestricted.
    Edited by: Donsandy on Jan 21, 2009 6:19 PM

  • How to change the stock of material?

    Hi everybody,
    Can somebody kindly tell me how can i change the stock (increase or decrease) the stock  of a material?
    Thanks,
    Padma

    Hello,
    If u want to make the changes to the stock of the material then use the BAPI_AMTERAIL SAVEDATA.
    Check this sample.
    REPORT ZV_MAT_CREATE .
    DATA: HEADDATA TYPE BAPIMATHEAD.
    DATA: CLIENTDATA TYPE BAPI_MARA.
    DATA: CLIENTDATAX TYPE BAPI_MARAX.
    DATA: RETURN TYPE  BAPIRET2 .
    DATA: RETURNM TYPE TABLE OF BAPI_MATRETURN2 WITH HEADER LINE.
    DATA: XMARA TYPE MARA.
    DATA: RETURNMESSAGES LIKE BAPIRET2        OCCURS 0 WITH HEADER LINE.
    DATA: MATERIALDESCRIPTION LIKE BAPI_MAKT  OCCURS 0 WITH HEADER LINE.
    PARAMETERS: P_MATNR TYPE MARA-MATNR,
                P_MAKTX LIKE MAKT-MAKTX.
    SELECT SINGLE * FROM MARA INTO XMARA
              WHERE MATNR = P_MATNR.
    HEADDATA-MATERIAL   = P_MATNR.
    HEADDATA-MATL_TYPE  = 'FERT'.
    HEADDATA-IND_SECTOR = 'M'.
    HEADDATA-BASIC_VIEW = 'X'.
    *clientdata-del_flag =  'X'.
    *clientdatax-del_flag = 'X'.
    * Daten für die Sicht GRUNDDATEN 1
    MATERIALDESCRIPTION-LANGU = SY-LANGU.
    MATERIALDESCRIPTION-MATL_DESC = P_MAKTX.
    APPEND MATERIALDESCRIPTION.
    * Mandantenspezifische Materialdaten
    CLIENTDATA-BASE_UOM  = 'ST'.
    CLIENTDATAX-BASE_UOM = 'X'.
    CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
         EXPORTING
              HEADDATA            = HEADDATA
              CLIENTDATA          = CLIENTDATA
              CLIENTDATAX         = CLIENTDATAX
    STORAGELOCATIONDATA = STOLOC  " Here give the plant , Sto. loc and quantity.
    STORAGELOCATIONDATAX = STOLOCX " Here set the X to the quantity field.
         IMPORTING
              RETURN              = RETURN
         TABLES
              RETURNMESSAGES      = RETURNM
              MATERIALDESCRIPTION = MATERIALDESCRIPTION.
    CHECK SY-SUBRC  = 0.
    COMMIT WORK AND WAIT.
    Hope this helps you.
    Vasanth

  • How to check the stock transfer material report

    hi
    i want to check stock transfer report for material from one plant to other palnt

    Hi
    To display the value of the cross-company-code stock in transit with a report, choose Environment > Stock > Stock in transit Cc.
    Displaying Transit Stock in the Stock Overview
    You can display the stock in transit in the stock overview of a material.
    From the Inventory Management menu, choose Environment > Stock > Stock overview.
    Enter your selection criteria (for example, the material and receiving plant).
    Carry out the evaluation. A stock overview of your selected plants is displayed.
    Select a plant. The stocks in the plant are displayed in a pop-up window.
    Scroll down until the stock in transit is displayed.
    Displaying Transit Stock in the Plant Stock Availability List
    The transit stock for the receiving plant is also displayed in the plant stock availability list for a material. To do this, proceed as follows:
    From the Inventory Management menu, choose Environment > Stock> Plant stock availability.
    The initial screen for this function appears.
    Enter the material and the receiving plant.
    Enter the scope of list (for example, DD).
    Carry out the evaluation. A list of the plant stock availability for the material is displayed.

  • Hi experts . how can we know the stock details for a perticular plant?

    hi experts . how can we know the stock details for a perticular plant

    check this code
    REPORT  YSG_MATSTK_REP    LINE-SIZE 220
                              LINE-COUNT 50(5).
    *&                       DATA DECLARATION                              *
    TABLES: MARA,              "GENERAL MASTER DATA
            MARC,              "PLANT DATA FOR MATERIAL
            MARD,              "STORAGE LOCATION DATA FOR MATERIAL
            MBEW,              "MATERIAL VALUATION
            MVKE,              "SALES DATA FOR MATERIAL
            MAKT.              "MATERIAL DESCRIPTION
    DATA: BEGIN OF I_MARA OCCURS 0,
               MATNR LIKE MARA-MATNR,"MATERIAL NUMBER
               MBRSH LIKE MARA-MBRSH,"INDUSTRY SECTOR
               MEINS LIKE MARA-MEINS,"BASE UNIT OF MEASURE
          END OF I_MARA.
    DATA: BEGIN OF I_MARC OCCURS 0,
              MATNR LIKE MARC-MATNR,"MATERIAL NUMBER
              WERKS LIKE MARC-WERKS,"PLANT
              LVORM LIKE MARC-LVORM,"FLAG MATERIAL FOR DELETION AT PLANT
                                    "LEVEL
              PSTAT LIKE MARC-PSTAT,"MAINTENANCE STATUS
              DISPO LIKE MARC-DISPO,"MRP CONTROLLER
          END OF I_MARC.
    DATA: BEGIN OF I_MAKT OCCURS 0,
               MATNR LIKE MAKT-MATNR,"MATERIAL NUMBER
               MAKTX LIKE MAKT-MAKTX,"MATERIAL DESCRIPTION
          END OF I_MAKT.
    DATA: BEGIN OF I_MVKE OCCURS 0,
               MATNR LIKE MVKE-MATNR,"MATERIAL NUMBER
               VKORG LIKE MVKE-VKORG,"SALES ORGANIZATION
               VTWEG LIKE MVKE-VTWEG,"DISTRIBUTION CHANNEL
          END OF I_MVKE.
    DATA: BEGIN OF I_MARD OCCURS 0,
               MATNR LIKE MARD-MATNR,"MATERIAL NUMBER
               LGORT LIKE MARD-LGORT,"STORAGE LOCATION
               LABST LIKE MARD-LABST,"VALUATED STOCK WITH UNRESTRICTED USE
          END OF I_MARD.
    DATA: BEGIN OF I_OUT OCCURS 0,
            MATNR LIKE MARC-MATNR,
            WERKS LIKE MARC-WERKS,
            LVORM LIKE MARC-LVORM,
            PSTAT LIKE MARC-PSTAT,
            DISPO LIKE MARC-DISPO,
            MBRSH LIKE MARA-MBRSH,
            MEINS LIKE MARA-MEINS,
            MAKTX LIKE MAKT-MAKTX,
            VKORG LIKE MVKE-VKORG,
            VTWEG LIKE MVKE-VTWEG,
            LGORT LIKE MARD-LGORT,
            LABST LIKE MARD-LABST,
          END OF I_OUT.
    DATA : TOT TYPE I. " TOT - TOTAL TO PRINT STOCK
    *&                   S E L E C T I O N - S C R E E N                   *
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-100.
    SELECT-OPTIONS: S_MATNR FOR MARA-MATNR OBLIGATORY.
    PARAMETERS: P_WERKS LIKE MARC-WERKS OBLIGATORY.
    SELECT-OPTIONS: S_LGORT FOR MARD-LGORT,
                    S_DISPO FOR MARC-DISPO.
    SELECTION-SCREEN END OF BLOCK B1.
    *&                  I N I T I A L I Z A T I O N                      *
    INITIALIZATION.
      S_MATNR-SIGN = 'I'.
      S_MATNR-OPTION = 'EQ'.
      S_MATNR-LOW = 'M-14'.
      S_MATNR-HIGH = 'M-18'.
      P_WERKS = '3000'.
      S_LGORT-SIGN = 'I'.
      S_LGORT-OPTION = 'EQ'.
      S_LGORT-LOW = '0001'.
      S_LGORT-HIGH = '0004'.
      S_DISPO-SIGN = 'I'.
      S_DISPO-OPTION = 'EQ'.
      S_DISPO-LOW = '001'.
      S_DISPO-HIGH = '002'.
      APPEND S_DISPO.
      APPEND S_LGORT.
      APPEND S_MATNR.
      CLEAR S_DISPO.
      CLEAR S_LGORT.
      CLEAR S_MATNR.
    *&             S T A R T - O F - S E L E C T I O N                     *
    START-OF-SELECTION.
      SELECT MATNR WERKS LVORM DISPO FROM MARC
      INTO CORRESPONDING FIELDS OF TABLE I_MARC
                          WHERE WERKS EQ P_WERKS
                          AND MATNR IN S_MATNR
                          AND DISPO IN S_DISPO
                          AND WERKS = P_WERKS.
      IF I_MARC[] IS INITIAL.
        WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MARC'.
        EXIT.
      ENDIF.
      SELECT MATNR LGORT LABST FROM MARD INTO TABLE  I_MARD
                          FOR ALL ENTRIES IN I_MARC
                          WHERE MATNR = I_MARC-MATNR
                          AND WERKS EQ P_WERKS
                          AND LGORT IN S_LGORT.
      IF I_MARD[] IS INITIAL.
        WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MARD'.
        EXIT.
      ENDIF.
      SELECT MATNR VKORG VTWEG FROM MVKE INTO TABLE I_MVKE
                          FOR ALL ENTRIES IN I_MARC
                          WHERE MATNR = I_MARC-MATNR.
    IF I_MVKE[] IS INITIAL.
        WRITE:/ 'NO MATCHING DATA AVAILABLE FROM MVKE'.
        EXIT.
      ENDIF.
      LOOP AT I_MARC.
        MOVE-CORRESPONDING I_MARC TO I_OUT.
        CLEAR MARC.
        SELECT SINGLE MATNR MBRSH MEINS FROM MARA
                         INTO CORRESPONDING FIELDS OF MARA
                         WHERE MATNR = I_OUT-MATNR.
        IF SY-SUBRC = 0.
          MOVE: MARA-MBRSH TO I_OUT-MBRSH,
                MARA-MEINS TO I_OUT-MEINS.
        ELSE.
          CONTINUE.
        ENDIF.
        SELECT SINGLE MATNR MAKTX FROM MAKT
                        INTO  CORRESPONDING FIELDS OF MAKT
                        WHERE  MATNR = I_OUT-MATNR.
        IF SY-SUBRC = 0.
          MOVE: MAKT-MAKTX TO I_OUT-MAKTX.
        ELSE.
          CONTINUE.
        ENDIF.
        LOOP AT I_MARD WHERE MATNR = I_MARC-MATNR.
          MOVE: I_MARD-LABST TO I_OUT-LABST,
                I_MARD-LGORT TO I_OUT-LGORT.
          APPEND I_OUT.
        ENDLOOP.
        LOOP AT I_MVKE WHERE MATNR = I_MARC-MATNR.
          MOVE: I_MVKE-VKORG TO I_OUT-VKORG,
                I_MVKE-VTWEG TO I_OUT-VTWEG.
          APPEND I_OUT.
        ENDLOOP.
        CLEAR I_OUT.
      ENDLOOP.
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        FILENAME = 'C:\matstk.TXT'
       FILETYPE                        = 'ASC'
      TABLES
        DATA_TAB                        = I_OUT.
    *&                  T O P - O F - P A G E                              *
    TOP-OF-PAGE.
      WRITE:/ 'DATE:' ,SY-DATUM.
    *&                  E N D - O F - P A G E                              *
    END-OF-PAGE.
      WRITE: / SY-ULINE,
             /100 'PAGNO: ',SY-PAGNO,
             SY-ULINE.
    *&        E N D -- O F --  S E L E C T I O N                           *
    END-OF-SELECTION.
      LOOP AT I_OUT.
        AT FIRST.
          WRITE :/ 'MATERIAL EXTRACTION REPORT',
                   SY-ULINE.
        ENDAT.
        WRITE:/    SY-VLINE,
                   I_OUT-MATNR,SY-VLINE,
                   I_OUT-MEINS,SY-VLINE,
                   I_OUT-WERKS,SY-VLINE,
                   I_OUT-LVORM,SY-VLINE,
                   I_OUT-PSTAT,SY-VLINE,
                   I_OUT-DISPO,SY-VLINE,
                   I_OUT-MBRSH,SY-VLINE,
                   I_OUT-MAKTX,SY-VLINE,
                   I_OUT-VKORG,SY-VLINE,
                   I_OUT-VTWEG,SY-VLINE,
                   I_OUT-LGORT,SY-VLINE,
                   I_OUT-LABST,SY-VLINE.
        TOT = TOT + I_OUT-LABST.
        AT NEW MATNR.
          WRITE : 'NEW RECORD',
                   SY-VLINE.
        ENDAT.
        AT END OF LABST.
          WRITE : 'STOCK = ',
                   TOT,
                   SY-VLINE,
                   SY-ULINE.
        ENDAT.
        AT LAST.
          FORMAT COLOR 7 INTENSIFIED OFF.
          WRITE : /159 'TOTAL STOCK = ',
                     TOT.
        ENDAT.
      ENDLOOP.
        WRITE : /159 'TOTAL STOCK = ',
                     TOT.
    regards,
    srinivas
    <b>*reward for useful answers*</b>

  • Transistion in SAP to know The Stock For List Of Material

    Dear Sir,
    Is there any transistion in SAP.
    To know the stock for list of material.
    For Ex=
    I want to know the stock for below material in one shot
    1) A
    2) B
    3) C
    4) D
    Pls solve my problem soon
    Thanks & Regards
    Ajay Pareek

    Hi Ajay,
    Following are the some of Useful T.Codes for the stock Report.
    LT51 Maintain Preallocated Stock
    LVASE Exit stock from Work Center
    LX02 Stock list
    LX23 Stock comparison IM - WM
    LX27 Stock levels by shelf life exp.date
    MB52 List of Warehouse Stocks on Hand
    MB53 Display Plant Stock Availability
    MB54 Consignment Stocks
    MB5B Stocks for Posting Date
    MB5K Stock Consistency Check
    MB5L List of Stock Values: Balances
    MB5OA Display Valuated GR Blocked Stock
    MB5T Stock in transit CC
    MB5TD Stock in Transit on Key Date
    MB5W List of Stock Values
    MBBS Display valuated special stock
    MBLB Stocks at Subcontractor
    MBSF Release Blocked Stock via Mat. Doc.
    MBW1 Special stocks via WWW
    MC.1 INVCO: Plant Anal. Selection: Stock
    MC.5 INVCO: SLoc Anal. Selection, Stock
    MC.9 INVCO: Material Anal.Selection,Stock
    MC.D INVCO: MRP Cntrllr.Anal.Sel. Stock
    MC.H INVCO: Business Area Anal.Sel. Stock
    MC.L INVCO: Mat.Group Analysis Sel. Stock
    MC.P INVCO: Division Analysis Sel. Stock
    MC.T INVCO: Mat.Type Anal.Selection Stock
    MC48 INVCO: Anal. of Current Stock Values
    MC49 INVCO: Mean Stock Values
    MC50 INVCO: Analysis of Dead Stock
    MC8M Read Opening Stocks
    MCB) INVCO: Long-Term Stock Selection
    MCC4 Set Up INVCO Info Structs.from Stock
    MCH: RIS: STRPS/Mvmts + Stock - Selection
    MCKJ Selection version tree: Stock
    MCKR User-spec. sel. vers. tree: Stock
    MCNB BW: Initialize Stock Balances
    MCSK Call Standard Analyses of Stocks
    MD04 Display Stock/Requirements Situation
    ME27 Create Stock Transport Order
    ME2O SC Stock Monitoring (Vendor)
    MF65 Stock Transfer for Reservation
    MI35 Batch Input: Post Zero Stock Balance
    MILL_ Cutting Stock Transfer
    MIQ1 Batch Input: PhInvDoc. Project Stock
    MM73 Special Stocks: Preparation
    MM74 Archive Special Stocks
    MM75 Display Archive of Special Stocks
    MMBE Stock Overview
    MMBE_ Stock Overview
    MMCL Stock Overview by Characteristic
    Or you can refer the thread [stock overview;, search there are several threads already available regarding this.
    Regards,
    Shyamal

  • How to know the parent material in BOM  if we know the last level material

    Dear all,
    We have around 40000 material codes with 18 digits. We can't remember all these. If we know the material code, we can easily find out sublevel or downlevel material by CS03,CS11 ,.....
    But if we know the material code , how to find upper level material code in BOM ?
    How to know the parent material in BOM  if we know the last level material ?
    Pl' answer.

    Hi Kishore,
    Have u tried with report CS15.  Give last Level Material  ->goto nect Screen->select "Multi level " check box then excute.
    it will give All Parent material of Last material, u can indentify with BOM level NO.
    regards
    pradeep

  • With a contract number, how to know the total PO release value against it?

    Usually one contract corresponds to multiple PO records, now we know the contract number, then how to know the total PO release value against this contract.  In other word, we would like to know the total release value of all the POs with the same contract number.  To just input the contract number in EKPO table? but then look for which field in this table to add these PO release values up?
    We will give you reward points!
    Thanks!

    hi Mohammad,
    By following your instruction, input the contract number 4800000112 into Document number field, then hit Enter, get the following (only copy two records here for example), but kind of a mess.  Could you let us know which one is the PO release value for this contract?
    Contract   Type Vendor     Name                                 PGp Agmt. date
      Item  Material           Short text                               Mat. group
      D I A Plnt SLoc                 Targ.qty. Un       Net price  Curr.   per Un
    4800000112 WK   2000012012 GULF INTERSTATE FIELD SERVICES       QBH 06/20/2006
    Agreement start06/20/2006 Agreement end 12/31/2007
    Tgt. val.        1,000,000.00  USD   Open          1,000,000.00 USD   100.00 %
      00001                    Inspection Svcs, Construction            R3VNI
      L   U                                  0  UL            0.00  USD       1 EA
      00002                    Chief Inspector                          R3VNI
      L   U                                  0  DAY         390.00  USD       1 DAY

  • How to resrve the stock to the customer against the sales order

    hi,
    sap gurus,
    good morning to all,
    how to reserve the stock to the customer against the sales order if this process is not MAKE TO
    ORDER SCENARIO.
    the prices of the products will be often changing drastically so
    he is following MAKE TO STOCK Process in his production process.
    so with out using m.t.o. process how to reserve it against the customer.
    for eg:
    in the market when the customer/dealer/stockist coems to know that prices are going to increase
    then obviously he tends to purchase in bulk quantities and reserve it in godown.
    so how to map that process.
    help me on this.
    regards,
    balaji.t
    09990019711

    Dear Balaji,
         This can be done By MM consultant through movement type. to move the stock from unresticted stock to customer stock.
    Regards,
    Sudhir

  • How to remove the stock from 916 -storage type

    Hi experts,
    In LS25 for 916 storage type it is showing 30 & -20 Quantity for two Quants
    How to remove the stock?
    Regards
    vr

    the usual way to remove quants from 916 is by cancellation of the picking, which is done with LT0G transaction.
    if the delivery is already goods issued, then you have to use LT01 to move the quants.
    The positive quant of 30 quantity can be moved to the place where it phyiscally is.
    the negative quant can only be eliminated by moving a quantity from a positive quant onto it. You should have a positive quant of this material in any bin of your warehouse.  so you move from this bin to 916.

  • How to find the quatity of material in backorders

    hi
    in which table the backorders get saved.
    from the v.15 transaction i got the backorders.
    i like to know that how to find the quantity of material which is due in the backorders. what are the fields for backorder quantity of material.
    regards
    kq

    Solved in this way
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(SUBCLASS) TYPE  KLSCHL
    *"  EXPORTING
    *"     VALUE(CLASS) TYPE  KLASSE_D
    *"  TABLES
    *"      RETURN STRUCTURE  BAPIRET2 OPTIONAL
      DATA: lv_clint TYPE clint,
            lv_clint1 TYPE clint.
      CLEAR: lv_clint,lv_clint1,class.
      FREE: return.
      SELECT SINGLE clint
                    FROM swor
                    INTO lv_clint
                    WHERE kschl = subclass.
      IF lv_clint IS NOT INITIAL.
        SELECT DISTINCT clint FROM kssk
                        INTO lv_clint1
                        WHERE objek = lv_clint.
        ENDSELECT.
        IF lv_clint1 IS NOT INITIAL.
          SELECT SINGLE class
                    FROM klah
                   INTO class
                   WHERE clint = lv_clint1.
        ENDIF.
        ELSE.
          CONCATENATE subclass 'Subclass not found' INTO return-message SEPARATED BY space.
          APPEND return.
          CLEAR return.
      ENDIF.
    ENDFUNCTION.

  • How to know the items cost from the production order.

    Dear friends,
    When We close a production order, if we go to the summary tab we can see the total cost of the real component and cost of the real item.   My question is how to know the cost of every component used for the real product? I run the stock Audit  report, and there I see a field named Calcprice, in what table where can I find this field? to get the cost individual for each component in the moment i close the PO.
    Thanks a lot.
    Daniel

    Thanks a lot to everybody. 
    You are right Thanga,
    That is the data I need, but how can I get it via query because I dont find the field to know the cost in the exactly moment when is created the receipt of productiion.  I was trying to locate in tables IGN1 -- IGN12 but I dont get the cost field.
    Do you have any idea how can I make a report?
    Best Regards,
    Daniel

  • How to get the stock

    hi,
    How to get the stock corresponding to particular material, if movement type is 101 and 102 .
    plz reply........

    Hi
    EKBE is linked to purchase order only, so here you can find all 101 and 102 generated for a PO, but the stock can be filled by several way, if you check only EKBE you'll have a partial count.
    I think it's better to read MSEG table, here u'll be sure to read all 101 amd 102.
    Max

  • How to know the dynamic values for this :AND category_id_query IN (1, :3, )

    Hi Team,
    R12 Instance :
    Oracle Installed Base Agent User Responsibility --> Item Instances -->
    Item Instance: Item Instances > View : Item Instance : xxxxx> Contracts : Item Instance : xxxxx> Service Contract: xxxxx>
    In the above page there are two table regions.
    Notes.
    -------------------------------------Table Region---------------------------
    Attachments
    -------------------------------------Table Region---------------------------
    --the attachments are shown using the query from the fnd_lobs and fnd_docs etc...
    I want to know what are the document types are displayed in this page ?
    --We developed a custom program to attach the attachments to the  services contracts and the above seeded OAF page displays those ..as needed.
    But after recent changes..the Attachments--> table region is not showing the attachments.
    I have verified the query..and could not find any clue in that..
    but i need some help if you guys can provide..
    SELECT *
    FROM
    *(SELECT d.DOCUMENT_ID,*
    d.DATATYPE_ID,
    d.DATATYPE_NAME,
    d.DESCRIPTION,
    DECODE(d.FILE_NAME, NULL,
    *(SELECT message_text*
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code  = userenv('LANG')
    *), d.FILE_NAME)FileName,*
    d.MEDIA_ID,
    d.CATEGORY_ID,
    d.DM_NODE,
    d.DM_FOLDER_PATH,
    d.DM_TYPE,
    d.DM_DOCUMENT_ID,
    d.DM_VERSION_NUMBER,
    ad.ATTACHED_DOCUMENT_ID,
    ad.ENTITY_NAME,
    ad.PK1_VALUE,
    ad.PK2_VALUE,
    ad.PK3_VALUE,
    ad.PK4_VALUE,
    ad.PK5_VALUE,
    d.usage_type,
    d.security_type,
    d.security_id,
    ad.category_id attachment_catgeory_id,
    ad.status,
    d.storage_type,
    d.image_type,
    d.START_DATE_ACTIVE,
    d.END_DATE_ACTIVE,
    d.REQUEST_ID,
    d.PROGRAM_APPLICATION_ID,
    d.PROGRAM_ID,
    d.category_description,
    d.publish_flag,
    DECODE(ad.category_id, NULL, d.category_id, ad.category_id) category_id_query,
    d.URL,
    d.TITLE
    FROM FND_DOCUMENTS_VL d,
    FND_ATTACHED_DOCUMENTS ad
    WHERE d.DOCUMENT_ID = ad.DOCUMENT_ID
    *) QRSLT*
    WHERE ((entity_name    ='OKC_K_HEADERS_V'-- :1
    AND pk1_value          IN ( 600144,599046) --:2
    AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    AND datatype_id       IN (6,2,1,5)
    AND (SECURITY_TYPE     =4
    OR PUBLISH_FLAG        ='Y')))
    --='000180931' -- 'ADP118'
    The above seeded query is the one which is used for table region to retrieve the data..
    how to know the dynamic values for this : AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    --Sridhar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Patricia,
    is it working for restricted key figure and calculated key figure ??
    Note Number Fisc Period Opening Days
    1 1 2
    2 1 3
    3 1 0
    because I have other restriction, so I create two restricted key figure..
    RK1  with restriction :  Total Number of Note,
    RK2  with restriction :  Total Opening Days ,
    then I Created a calculated key figure, average opening days in a period
    CK1 = RK2 / RK1..
    in this case, I am not sure if it will work or not..
    for example, during RK2 calclation, it might be this   2+3 = 5, the line with 0 will be ignored..
    during RK1 calcualtion, it might be 1 + 1 + 1 = 3. ---> Not sure in this case, the line with opening days 0 will be calculated or not..
    could you please confirm..

  • How to know the balance and validity of internet data in iPad

    How to know the balance and validity of internet data in iPad?

    Sir I m using internet in ipad4 with airtel network
    They provide me 2gb data with the amount of 255 rupees
    And now I inserted the sim in my ipad4
    And start the surfing on safari n all
    And now I wanted to know how much data is balance.

Maybe you are looking for

  • Acrobat Pro 9 in OS X 10.6.7 won't print

    I am trying to print with my Epson Stylus R280 printer with Acrobat, and it is really strange. I get the print dialogue and it acts like it is going to print, but instead of printing the printer just ejects a blank page for every page I am trying to

  • IMac (Early 2009) always wakes from sleep after Security Update 2010-001

    I posted this already in the Snow Leopard section, but wasn't able to get a resolution to the problem: http://discussions.apple.com/thread.jspa?threadID=2309613&tstart=0 I tried all the suggested things, but my iMac still always wakes from sleep and

  • Load associated files in applicatio​n

    Hi I have created an application that creates input and output files.  I have been able to associate input files to my application so that by doubleclicking on those input files the application will be launched with the inputs loaded.  Now i was wond

  • ML on MP swapped upper & lower optical drives

    I've got 2 SATA burners installed in my early 2008 2x2.8. They are differnt brands (upper is Lite-On, lower is Sony) and both are relatively new- I installed in the past year and used under Lion. When I first installed them, it was trial and error ho

  • New Doro PE 508, old sim 07808800489 [ex Orange] but am unable to send texts.Why

    Unable to send texts, but do recieve texts and calls. How do I correct this problem?Do I need to register something or somewhere?