Need stock on particular date entered on selection screen

I am creating a stock in transit report and need stock on particular date entered by the user on selection screen.How do I calculate stock on a particular date?

same thread...
Re: Stock on a particulare date

Similar Messages

  • Vendor stock on particular date

    vendor stock on particular date..any std Tcode
    plz help
    mb5b,mblb,mc.9 wont work
    thanks
    ramesh reddy(vallur)

    ME2O
    Or
    ME2M & ME2L, choose , Item Category L, and choose selection parameter of your requirement.
    Choose MB5B,
    Choose radio Button Special stock and give special stock as O.It may help u.
    Edited by: sudhansu satapathy on Dec 16, 2011 11:46 AM
    Edited by: sudhansu satapathy on Dec 16, 2011 11:49 AM

  • Functional Specification For Opening And closing stock On Particular Date

    Dear Gurus,
    I am creating report for opening and closing stock on particular date in which batch and storage location should also be included. I want to know the tables and fields for the same.I have searched the forum and got report on month basis but I want this report on posting day basis.kindly suggest tables and fields. Thanks in Advance

    Dear sir,
    There are many other colums that client wants to add which are not present in MB5B transaction.columns which client wants to add are as follows...
    Material Number                                                   
    Material Description                                       
    Material Type                                                                        
    Material Group                                                                     
    External material Group                                                            
    Movement Type     
    Plant     
    Storage Location     
    Customer Number     
    Customer Name     
    Vendor Number     
    Vendor Name     
    Posting Date     Receipt Doc. Number
    Issue Doc. Number     
    Reference Issue Document Number     
    Opening Stock Quanity     
    Material Receipt Quantity     
    Material Issue Quantity     
    Material Closing Stock Quantity      
    Value Of Closing Stock
    And for this I want  tables and logic for the same. kindly provide the solution for the same.

  • Need to add push botton in my selection screen

    Hi
    I am doing a report program . I need to add PUSH BUTTON in my selection screen can u give me any code or suggestions for this.
    IF i press this push button i should get the basic list.
    Regards
    Rasheed.

    Hi Here is a another example.
    U can place a Push button on selection screen by using the satatement..
    SELECTION-SCREEN PUSHBUTTON 2(10) butt USER-COMMAND cli3.
    The push button will start from second character position on Selection screen and of length 10 characters !!
    check this program...
    TABLES sscrfields.
    DATA flag(1) TYPE c.
    SELECTION-SCREEN:
    BEGIN OF SCREEN 500 AS WINDOW TITLE tit,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) but1 USER-COMMAND cli1,
    PUSHBUTTON 12(10) text-020 USER-COMMAND cli2,
    END OF LINE,
    BEGIN OF LINE,
    PUSHBUTTON 2(10) but3 USER-COMMAND cli3,
    PUSHBUTTON 12(10) text-040 USER-COMMAND cli4,
    END OF LINE,
    END OF SCREEN 500.
    AT SELECTION-SCREEN.
    MESSAGE i888(sabapdocu) WITH text-001 sscrfields-ucomm.
    CASE sscrfields-ucomm.
    WHEN 'CLI1'.
    flag = '1'.
    WHEN 'CLI2'.
    flag = '2'.
    WHEN 'CLI3'.
    flag = '3'.
    WHEN 'CLI4'.
    flag = '4'.
    ENDCASE.
    START-OF-SELECTION.
    TIT = 'Four Buttons'.
    BUT1 = 'Button 1'.
    BUT3 = 'Button 3'.
    CALL SELECTION-SCREEN 500 STARTING AT 10 10.
    CASE FLAG.
    WHEN '1'.
    WRITE / 'Button 1 was clicked'.
    WHEN '2'.
    WRITE / 'Button 2 was clicked'.
    WHEN '3'.
    WRITE / 'Button 3 was clicked'.
    WHEN '4'.
    WRITE / 'Button 4 was clicked'.
    WHEN OTHERS.
    WRITE / 'No Button was clicked'.
    ENDCASE.
    Reward me if its helpful.
    Regards
    Ravi

  • FISCAL year from Date  in the Selection Screen.

    Hi Folks,
    Is there any function module which returns the Fiscal year if we provide the date in ranges.
    I mean, I have a select option for date in the selection screen.So,if a user enters the date say 01042007 01042007 it should return the corresponding fiscal year.
    Kindly let me know if anyone here has any idea regarding this.
    Thanks,
    K.Kiran.

    Hello,
    Check these FM's
    FTIS
    FTI_FISCAL_YEAR_MONTH_GET
    KBPA                           Budget/Plan - application-specific
    KBPA_GET_START_FISCAL_YEAR     Determine Start Year for Funds Management
    KBPA_GET_START_FISCAL_YEAR_OPT
    Vasanth

  • Maintaing a default value for a particular field in the selection screen

    Hi all,
    How to maintain a default value for a particular field in the Selection Screen of a Standard report
    Regards
    Ajay

    >
    ajay babu wrote:
    > Hi all,
    >
    > How to maintain a default value for a particular field in the Selection Screen of a Standard report
    >
    > Regards
    > Ajay
    Create a variant for your standard program and assign this variant to the field 'Start with variant' while creating transaction code for the standard program in the transaction 'SE93'.
    Regards
    Rajesh.

  • Requirement date in ME2O selection screen.

    Hi Friends,
    I see that requirement date in ME2O selection screen is no where available in the output . Is this equal to PO creation date?

    Actually in ALV grid list out put, the document date is the Requirement date.
    If you analysis the same, you will find the solution.
    See I have analysis the same.
    In my ME2O transaction, I can see the document date as follow for the Purchase order number
    4700048844.
    Here the document date is showing 20.12.2011.
    When I go to to ME23N to display the PO number 4700048844, I can see the document date is different.
    But when I checked the requirement date, then I can see the same date for the PO number.

  • Inventory cube 0IC_C03 ,Stock on particular date

    Hi All,
       We are trying to get the stock on a particular date using cube 0IC_C03 ,but we are unable to get the total stock on a given date.
    1)Ex: I want stock on 01.12.2009 ,but in the query output I am getting  null values.
      I am only getting the total stock quantity on the loaded date for ex:04.01.2010(which is my data loading date in to the cube).
    2)And when we restrict 0calday with <=01.12.2009 ,i have to get the total stock till 01.12.2009
    Thanks&regards,
    Sunitha

    Hi,
    Check
    Treatment of historical full loads with Inventory cube
    Setting up material movement/inventory with limit locking time
    1)Ex: I want stock on 01.12.2009 ,but in the query output I am getting null values.
       I am only getting the total stock quantity on the loaded date for ex:04.01.2010(which is my data loading date in to the cube).
    For 2LIS_03_BX it will give the extracted date only
    2)And when we restrict 0calday with <=01.12.2009 ,i have to get the total stock till 01.12.2009
    try with below options.
    Use :
    0VALSTCKVAL   " for Value
    0VALSTCKQTY   " for Qty
    0CALMONTH        " for Month
    Use the above combinations in New Selections in columns and go it.
    For Qty Opening:
    New Selection bad drag abd drop following things
    0VALSTCKQTY   " for Qty
    0CALMONTH        " for Month and restrict with less then or equalto option variable (single value, user input)  and set the offeset
                                   value = -1 bcoz if user will give 12.2009 , so it will display 11.2009 closing stock, this is opening for 12.2009.
    For Qty Closing:
    New Selection bad drag abd drop following things
    0VALSTCKQTY   " for Qty
    0CALMONTH        " for Month and restrict with less then or equalto option variable (single value, user input) .
    In the same way build for Value and other Keyfigures on 0IC_C03.
    And
    Drag & drop
    0MATERAIL
    0PLANT  " Give some Input Variable.
    See the steps.
    Treatment of historical full loads with Inventory cube
    Setting up material movement/inventory with limit locking time
    If it is BI 7 then for BX in in DTP in Extraction Tab you need to select Extacrion mode = NON-Cumulative option.
    Thanks
    Reddy

  • Closing Stock on Particular Date(MB5B Tcode)

    Hi Experts,
    I need closing stock as on some particular date. For e.g. closing stock as on 28.02.2014.
    In my requirement i have to use that closing stock value for further calculations in a new customized report.I can see closing stock value by using MB5B tcode.
    Please suggest some way to get closing stock as on some date so that i can use that in my Report.
    Can i directly call MB5B transaction in my Report and get closing stock value?
    Thanks & Regards,
    Pankaj

    Hello Pankaj,
    In your Customised Report use MKPF and MSEG table
    MKPF ----->  Material and date range as the input
    Then Pass Material document number from MKPF to MSEG table
    MSEG ----->  based on material document number from mkpf
    Create Temporary  variable
    values comes from the mseg where have credit and debit entries
    if debit entry "S" then subtract the values of the Mseg table from the temporary variable1
    if credit entry "H" then Add the values of the mseg table to the temporary variable2
    finally Add the temporary variable1 and temporary variable 2 and get the total stock.

  • Stock on particular date (performance issue)

    Hi Folks,
    I m calculating stock at all vendor on a particular date.
    But it takes very long and time_out occurs.
    I m calculating opening closing provided return and rejection based on movement types.
    The report hangs up at following particular Join.
    SELECT MKPFBUDAT MSEGBWART MSEGMATNR MSEGLIFNR SUM( MSEG~MENGE )
                  AS MENGE
                      INTO CORRESPONDING FIELDS OF TABLE IT_OPEN
                      FROM
                         MKPF INNER JOIN MSEG ON
                               MKPFMBLNR = MSEGMBLNR AND
                               MKPFMJAHR = MSEGMJAHR
                       WHERE MKPF~MJAHR = D_YEAR AND
                             MKPF~BUDAT GE D_DATE AND
                             MKPF~BUDAT LT S_BUDAT-LOW AND
                    MSEG~BWART IN ('541','542','543','544','551','702') AND
                             MSEG~XAUTO NE 'X' AND
                             MSEG~MATNR IN S_MATNR AND
                             MSEG~WERKS IN P_WERKS AND
                             MSEG~LIFNR IN P_LIFNR
                  GROUP BY LIFNR MATNR BUDAT BWART.
    Is there any way to increase performance by breaking this inner join into select statements or anyhow.
    Regards
    Sachin

    HI,
    On seeing your code, it seems like,
    SELECT MKPFBUDAT MSEGBWART MSEGMATNR MSEGLIFNR SUM( MSEG~MENGE )
    AS MENGE
    INTO CORRESPONDING FIELDS OF TABLE IT_OPEN
    FROM
    MKPF INNER JOIN MSEG ON
    MKPFMBLNR = MSEGMBLNR AND
    MKPFMJAHR = MSEGMJAHR
    WHERE MKPF~MJAHR = D_YEAR AND
    MKPF~BUDAT GE D_DATE AND
    MKPF~BUDAT LT S_BUDAT-LOW AND
    MSEG~BWART IN ('541','542','543','544','551','702') AND
    MSEG~XAUTO NE 'X' AND
    MSEG~MATNR IN S_MATNR AND
    <b>MSEG~WERKS EQ P_WERKS</b> AND
    <b>MSEG~LIFNR EQ P_LIFNR</b>
    GROUP BY LIFNR MATNR BUDAT BWART.
    Please see the code marked with bold as parameter passing in the select statement must be EQ and not IN.
    Secondly, remove the aggregate function SUM from the select. First select all the records into an internal table and either use control break statements or Collect to sum up the entries.
    Next, while selecting from the database use INTO TABLE IT_OPEN rather than into corresponding fields of table.
    Also remove the movement types from the select and restrict it inside the Loop and Endloop.
    Lakshminarayanan
    Please mark all helpful answers for points

  • Table to see stock on particular date

    Hello SAP Gurus,
       I know that through mb5b report you can see the stock on posting date.But guys can u  tell me that from which table and field it takes the data?

    Please look at transactions MCBE and MCBR.  They are part of the inventory standard analysis.  These will show total consumption for the selected time periods.
    There is a ton of data availablie via the Logistics Information System and I think it is the most under utilized functionality in SAP.  If consultants and users really learned how to use this functionality you could probably do away with 80% of your custom reports.
    You can also use flexiblie analysis against structure/table S032, (not S039), and create your own analysis and reports.  These can be highly customized and saved and reused.  Variants can be created and the results can be saved in personal reports, emailed or downloaded.
    Other structures you might find of use in your particular query would be
    S031 - Movements
    S032 - Stocks
    S033 - Movements (indiv. records)
    S034 - Movements (batches)
    S035 - Stocks (batches)
    S039 as suggested above provides primarily averages which is not what your looking for.
    Craig
    Edited by: Craig Snyder on Apr 30, 2008 1:26 AM

  • Stock on particular date

    How the system finds stock of material on specified date .
    Example In report MB5b system gives stock of material on date we have selected . If I select date 31 Mar 2010 then system displays stock as on 31 Mar . From which table it comes ?
    (In table MBEW we can get stock as on todays date)

    Hi,
    In MB5B, the system will first take in to account of all total valuated stock for the particular valuation area on system date.  This will be in the table S032.  Then it will take in to account total issues and receipts during the back date.  Then the difference will be added or subtracted accordingly from the present stock and value.
    Regards

  • Dynamic Data selection for the Filed entered in Selection Screen.

    Hi All,
    My requirement is as follows.
    1 select options in Selection Screen for MATNR (SO_MATNR)
    1 parameter field in Selection Screen for entering a MARC field name. (P_FIELD)
    Now the Program has to display the values of this Field (Entered by the user as P_FIELD) from MARC table, where MATNR is in SO_MATNR.
    I understand that this would require a dynamic select statemant but could not figure out the correct way.
    Please help me with the code for this requirement
    Regards,
    Sunil

    Not sure If I understand correct, but here's an example on what I think you are looking for. I don't have an ECC system here (we're on CRM), but you should adept it to your tables and fieldname.
    TABLES: but000.
    DATA: lt_feld TYPE TABLE OF name_feld,
          lw_feld LIKE LINE OF lt_feld.
    SELECT-OPTIONS: so_part FOR but000-partner.
    PARAMETERS: field TYPE name_feld DEFAULT 'MC_NAME1'.
    SELECT (field) FROM but000
      INTO TABLE lt_feld
      WHERE partner IN so_part.
    LOOP AT lt_feld INTO lw_feld.
      WRITE:/1 lw_feld.
    ENDLOOP.

  • Need to fill up Data into  the select Tag options value

    Hi ,
    This is my requirement . I am having two select tags inside my jsp page . one for country and one for state .Upon selecting a country the select tag for states should be filled up .
    Right now i need to fill up the data under country select Tag .I am using AJAX for this .On body onload i am calling a function to get Country data .
    //This is inside my servlet
    *               ResultSet res = st.executeQuery("SELECT * FROM countries );*
    *               StringBuffer sb = new StringBuffer();*
    *     sb.append("<countries>");*
    *               while (res.next())*
    *               String result = res.getString(1);*
    *               sb.append("<country>"+result+"</country>");*
    *               sb.append("</countries>");*
    *               response.getWriter().write(sb.toString());*
    This is Inside MY JSP
    if( xmlHttp.readyState==4 )
    if( xmlHttp.status==200 )
    xmlDoc=xmlHttp.responseXML;
    xmlDoc.getElementsByTagName("countries")
    <select name='countrsel' id="countrsel" onchange="call()">
    <option value="<%=%>"><%=%></option>
    </select>
    I am struck up here please help
    Edited by: RaviKIran on Nov 2, 2009 9:51 AM

    Hi ,
    This is my requirement . I am having two select tags inside my jsp page . one for country and one for state .Upon selecting a country the select tag for states should be filled up .
    Right now i need to fill up the data under country select Tag .I am using AJAX for this .On body onload i am calling a function to get Country data .
    //This is inside my servlet
    *               ResultSet res = st.executeQuery("SELECT * FROM countries );*
    *               StringBuffer sb = new StringBuffer();*
    *     sb.append("<countries>");*
    *               while (res.next())*
    *               String result = res.getString(1);*
    *               sb.append("<country>"+result+"</country>");*
    *               sb.append("</countries>");*
    *               response.getWriter().write(sb.toString());*
    This is Inside MY JSP
    if( xmlHttp.readyState==4 )
    if( xmlHttp.status==200 )
    xmlDoc=xmlHttp.responseXML;
    xmlDoc.getElementsByTagName("countries")
    <select name='countrsel' id="countrsel" onchange="call()">
    <option value="<%=%>"><%=%></option>
    </select>
    I am struck up here please help
    Edited by: RaviKIran on Nov 2, 2009 9:51 AM

  • Need to have pop up window in selection screen and capture the user action.

    Hello Friends,
                         I have a requirement, that need to show a pop up window after execution, and to get the action from user using a Push button.
    I create a selection screen and a sub screen as window.
    After user execute from the selection screen, I am popping up this window.
    Window contains some input values to be entered and push button to identify the user action.
    I try to capture the user action using sy-ucomm, but it does not hold any value when user press the button.
    How to overcome this issue.
    Here is the definition of the window.
    Pop Up Window for getting values
    SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW TITLE title .
    PARAMETER : p_vdate LIKE t9aa01-validfrom,
                p_dcggt LIKE t9aa01-hkont,
                p_dcgst1 LIKE t9aa01-hkont,
                p_dcgst2 LIKE t9aa01-hkont,
                p_na LIKE t9aa01-hkont.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN POSITION 20.
    SELECTION-SCREEN PUSHBUTTON 2(10) text-001 USER-COMMAND SVE.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN END OF SCREEN 500.
    Cheers,
    Senthil
    Edited by: Senthil on Jan 7, 2008 11:03 AM

    Hi,
    Try using the below code.
           data : w_var type string.
           CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
             EXPORTING
              DEFAULTOPTION        = 'Y'
               textline1            = 'test '
             TEXTLINE2            = ' '
               titel                = 'check'
             START_COLUMN         = 25
             START_ROW            = 6
             CANCEL_DISPLAY       = 'X'
            IMPORTING
              ANSWER               = w_var.
                     if w_var = 'J'.
                     else.
                     endif.
    Comments : J indicates Yes and N indicates No
    Regards,
    Jeswanth

Maybe you are looking for

  • Can i use multiple ipods on one account

    How do i use multiple ipods on one account so that we can share the music that we own and has been downloaded from cd's

  • Language Supplement

    I am using ECC 6 Unicode Version IA64 bit on Windows Server 2003 with SQL 2005. My System language & secondary language is English, I have been imported successfully Arabic Language. I also supplemented in client 000 with English and other working cl

  • When I print in FF4 the pages have a grey background. How do I get it back to white?

    Why has my printing changed from white background to grey. Its using up all my ink. Help fast please. I want it back to NO background colors. Just white.

  • SDO_INTERSECTION

    Here are 3 Examples with the function SDO_GEOM.SDO_INTERSECTION and unexpected results Can anybody explain the unexpected results? Did anybody find similar problems? Environment: Server: Windows 2000 Server, Oracle Enterprise Edition 9.2.0.1 Client:

  • FTP Transport Method in Data Services SAP Applications Datastore

    Hi, We have SAP ECC and we are trying to install Rapidmarts for SD and Finance.When we try to run the Rapidmart Job.. We are getting the error Error opening the file  c:\temp\billingblock.daa We are using FTP transport method as our SAP servers are U