Field in MB5B T-Code

Hi all,
I am using T-code MB5B.
Can please anybody tell me, which table and field using for opening stock?
here in technical info its showing MARD-LABST but my value doesnt match with table value.
Waiting for your reply.
Thanks in advance

Hi,
Open stock of a material will be available in the Accounting1 View of the material master.
Here is some information to find the opening stock of a material in a period. This information will be stored in the tables MBEWH, MARDH, MCHBH.
As of Release 4.5, stock fields and valuation fields relating to the previous period or to an earlier period are stored in history tables (for example, MBEWH, MARDH, MCHBH), and no longer in those tables in which the current stock data is stored (for example, MBEW, MARD, MCHB).
These history tables can contain one entry for each period. An entry is created in the history table only if the stock-relevant data or valuation-relevant data changes. The value of the entry relates to the end of the period. The history tables do not contain any entries for the current period.
Example
Scenario
At the start of period 02, there are 10 pieces of material 4711 in stock.
Goods receipt
5 pieces are received in period 02.
System response
The system records a stock of 10 pieces in the history table for period 01. At the same time, the system increases the current stock to 15 pieces.
Goods receipt
2 more pieces are received in period 02.
System response
The history table is unaffected by this event because an entry already exists for period 01. The system increases the current stock to 17 pieces.
Goods issue
4 pieces are withdrawn from stock in period 04.
System response
The system records a stock of 17 pieces in the history table for period 03. At the same time, the system reduces the current stock to 13 pieces. (The history table does not contain an entry for period 02 because there were no goods movements in period 03.)
Rules
If the history table does not contain an entry for the previous period, the values for the previous period are the same as those for the current period.
If the history table does not contain an entry for a period n that precedes the previous period, the values for period n are the same as those for period n+1.
Since the second rule can be applied recursively, it is possible to determine (in accordance with both rules) the values for any periods as of the period in which Release 4.5 or a subsequent release was implemented.
Rgds,
Prajith

Similar Messages

  • I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    I need to pass value for Actual GI date field in VL01N t code, I am using BAPI_DELIVERYPROCESSING_EXEC. can any one tell me how can i pass vaule ?

    Hi Abdul,
    Sorry for my unprecise answer, but you talk about a tcode, but you're using a BAPI Call. Maybe you want to call the transaction in batch mode?
    http://help.sap.com/saphelp_erp60_sp/helpdata/de/fa/09715a543b11d1898e0000e8322d00/content.htm
    Regards,
    Franz

  • Having a problem using Workflow to update a field based on ZIP code

    I created a Workflow to update a Yes/No picklist called eligibility based on a Text (Short) field called Applicant ZIP code.
    It's set to update on the Opportunity page:
    Before modified record saved
    And the value function is:
    IIf(InStr("60601_60602",[<stApplicant_Zip_Code_ITAG>|http://forums.oracle.com/forums/]+)>0,"Yes","No")+
    That was a guess of how to try it while relying on my limited MS SQL & Access knowledge.
    It does work correctly using what I did. The problem I have is that I actually need to choose from over 600 ZIP codes. The function window only allows for 256 characters. (And I suspect my way is fairly inelegant for search a multi-thousand character string.)
    Any suggestions?

    I created a Workflow to update a Yes/No picklist called eligibility based on a Text (Short) field called Applicant ZIP code.
    It's set to update on the Opportunity page:
    Before modified record saved
    And the value function is:
    IIf(InStr("60601_60602",[<stApplicant_Zip_Code_ITAG>|http://forums.oracle.com/forums/]+)>0,"Yes","No")+
    That was a guess of how to try it while relying on my limited MS SQL & Access knowledge.
    It does work correctly using what I did. The problem I have is that I actually need to choose from over 600 ZIP codes. The function window only allows for 256 characters. (And I suspect my way is fairly inelegant for search a multi-thousand character string.)
    Any suggestions?

  • Set the default field value to transaction code field, when calling from WD

    Hi all,
    Can we pass the value in a input field of a standard transaction calling from WD application. Suppose we are calling a transaction VA03 in an external window, then how will be pass the value in the VBAK_VBELN screen field.
    Is there any way to pass the value to this transaction field. I have also tried out to set the parameter ID 'AUN' for VA03 transaction VBELN field. But it did not work for me.
    Is there any way to set the default field value to transaction code field, when calling from WD?
    Please suggest, if anyone have any idea.
    Thanks
    Sanket

    Hi,
    I am using the below code to open a standard transaction. It will help you to explain my point more easily.
    DATA: url TYPE string,
              host TYPE string,
              port TYPE string.
    *Call below method to get host and port
      cl_http_server=>if_http_server~get_location(
         IMPORTING host = host
                port = port ).
    *create URL
      CONCATENATE 'http'
      '://' host ':' port
      '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'
       INTO url.
    *get the window manager as we are opening t code in external window.
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_window TYPE REF TO if_wd_window.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    call the url which we created above
      lo_window_manager->create_external_window(
      EXPORTING
      url = url
      RECEIVING
      window = lo_window ).
      lo_window->open( ).
    Note*
    One more query I want to add to this thread, that is there any possibility to call a custom transaction as well?

  • Function Module for splitting(field) in CO02 t-code

    Function Module or enhancement for splitting(field) in CO02 t-code Need function module for inserting a value in field(Max No of splits) in Transaction CO02
    Message was edited by:
            Mohan Kumar

    You can use this SAP enhancement PPCO0012 to display your own additional
    information on a separate tab page in the production order header. You
    can also make user fields avaialble for input, change them, and return
    the changes to the order header.

  • Error ! No field defined for function Code

    Hello ,
    I have defined everything correctly but when i try to use the push button to go to next screen this message comes up 'No field defined for function Code' .Please advise .
    Thank you ,

    Make sure that you put define the name of the OK_CODE field in your screen.  Go to your screen,   click on the element list tab.  You should have a line which as a TYpe as  "OK".   Put the name as OK_CODE.
    Now in your program.....you need a DATA statement for OK_CODE, and you need to handle the OK_CODE in your PAI of the screen.
    data: ok_code type sy-ucomm.
    *      Module  USER_COMMAND_0100  INPUT
    module user_command_0100 input.
      case ok_code.
        when 'BACK' or 'EXIT' or 'CANCEL'.
          clear ok_code
          set screen 0.
          leave screen.
      endcase.
    endmodule.
    Regards,
    RIch Heilman

  • In which table Credit exposure field - OBLIG  (of T code FD32 ) stored

    Dear Friends,
    Colud you please tell In which table Credit exposure field - OBLIG  (of T code FD32 ) stored.
    Thanks in advance,
    pinky

    Dear Friend,
    Yes Khaled is correct. The amount is not stored anywhere but it is dynamically calculated as & when required. It is just like Customer / Vendor Ledger.
    Hope this helps.. .
    Thanks,
    Jignesh Mehta

  • Add field header in T-Code KKED and S_ALR_87013028

    Hi! I need to add the field header in T-Code KKED and S_ALR_87013028.
    a.) Customer Order Qty
    b.) Min Production Qty
    c.) Customer Target Price
    d.) Selling Price
    I'd review the coding many times and make me so confused. p/s: I'm beginner of abap. 
    Can anyone help me? Thanks~!

    try to look for the field catlog of the already existing table
    and try to add this
    by using exits or implicit enhancemnt

  • Error ! No field defined for function Code in MENU EXIT

    Hello All,
    I've created a project in CMOD for the MENU EXIT for handling one menu item in the SAP Standard Menu Bar .
    i.e  under the HELP MENU Item I've included one more sub menu item.
    I've activated the project and I'm able to se the newly added Sub-Menu Item in the activated mode.
    But when I press the newly created Sub Menu Item I'm getting a Message in the Status Bar saying :
    No field defined for the function code
    The Help of it says :
    Message no. 00125
    Diagnosis
    The function code field (OK code field) has not been defined on this screen. If the user selects an application function (not a system function), the system usually provides it in the function code field (OK code field) as well as in SY-UCOMM. This is no longer possible.
    System Response
    The system is unable to inform the application of the current function code. The application should not use field SY_COMM. This field always contains the code of the last function chosen, which is not always identical to the application-relevant code.
    Procedure
    You should always define a field for the function code on every screen. The Screen Painter always proposes such a field (OK category), you only need to assign a name and include the definition in the ABAP program.
    Please let me know what shud be done ?
    Regards,
    Deepu.K

    Don't use this scanrio ! Instead got Access Key and chamged the Std. Program.

  • Orders, deliv. and conRel fields in MD04 transaction code

    Hi All,
    I want to know the database tables and fields for Orders, deliveries and conrel fields in MD04 transaction code.
    In MD04 if you give material and plant as input details and say continue, we are getting the Stock requirement list. In that MRP elements : Orders, deliveries and conrel  and the quantity fields against to these elements ,, from where we are getting the data. Is there any function modules for the same?
    Kindly advice me.
    Thanks in advance.
    Regards
    Ramesh.

    Hi Ram Kumar,
    I'm not sure about the screen enhancements can be done for the transaction FBCJ as we don't have any screen exits.
    But we have only BAdI for FBCJ transaction called CJ_DOCUMENT - Change to External Document before Cash Journal Doc. Check.
    Workaround on the method CHANGE with the changing parameter C_ITCJ_SPLIT_POSTINGS.
    Enhance the structure ISCJ_POSTINGS to add your new fields and write the logic in the BAdI method to populate the values to these fields.
    Please give a try and let us know.
    Regards
    Gangadhar
    Message was edited by: Gangadhar Ragula

  • Block Sensitive field basd on Company Code

    Dear Experts ,
    We are blocking sensitive fields using the Customizing Setting in SPRO
    SPRO –> REF IMG –> Financial Accounting –> Accounts Receivable and Accounts Payable –> Vendors Accounts –> Mast*er Data –> Preparations for Creating Vendor Master Data –> Define Sensitive Fields for Dual Control (Vendors)
    Currently its is blokcing for all the Company Codes
    Can we include a Check that it will block only a specific Company Code ...
    We had cheked all the forums but unable to get the satisfactorily answers for the same.
    Regards,
    Saurabh Goel

    Hi,
    Sensitive fields effects at company code level and cannot be separated.
    You have two options; one is to use user-exit ZXF05U01 in order to block some vendors another one is to customize sensitive fields and approve those vendors which you don’t want to be blocked by coding.
    Best regards
    Melih

  • How to add Material type(MTART) field on Selection screen of MB5B transaction code.

    Hi All,
        Please let me know how to add material type field on selection screen of MB5B transaction
    For that i made copy ZMB5B_COPY of original report RM07MLBD.
    Thanks in adv .
    Samadhan

    Hi,
    Once you copied the standard report to Z report, you can MTART in selection screen like below.
    and in order to inlcude the same in programming logic, we have three option.
    1) Check all related select queries, and include MTART in SELECT query using inner join with MARA.
    2) In START-OF-SELECTION event fill MATNR as shown below.
    3) If user entered any value in MTART, then before displaying the report just check material type of each material in the final internal table(which is used to display report) delete enteries from internal table accordingly.
    START-OF-SELECTION.
    IF MTART[] IS NOT INITIAL AND MATNR[] IS INITIAL.
        SELECT MATNR FROM MARA INTO MATNR-LOW WHERE MTART IN MTART.
          MATNR-OPTION = 'EQ'.
          MATNR-SIGN = 'I'.
          APPEND MATNR.
          CLEAR MATNR.
        ENDSELECT.
    ENDIF.
    The above option has one limitation: The selection screen variables has some restriction, please read the below thread.
    Facing problem in select statement dump DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S
    Getting Dump in the select query has more than 2000 entries
    Hope this will work for you .
    regards,
    Rajesh Sadula.

  • Field and Link T. Code selection for display transaction

    Hi,
    I want to know the transaction code with which we can customize whixh field to be disply when we execute  the display transaction like ME2L  ,ME2M  ,MB5B  , MB51 etc. and as when we click on PO in ME2M we directly switch to ME23N how to do configuration of all this.
    regards,
      zafar

    Hi
    Any report like ME2M, ME2K, ME2L, MB51 already link has been provided . If you click on the purchase order number, material etc., it will take to the dispaly of the particular screen.
    Thanks
    raman

  • Mb5b t.code

    Hi friends,
    i want to add material group in selection-screen. of t.code mb5b.
    (means In input area).
    And also want to display output according to material groupwise.
    i alsready converted standard program into  Z programm but i don't find where they r selecting data which is display in output.
    I also don't find internal table.
    So how can i add material group?
    so plz send me reply its argent.
    Thanks in advance.

    I don't ask for making transaction code i want how to add material group field in input and output.

  • Changing Field Description in  T.Code FBCJ

    Hi SAP Gurus,
    I am facing a problem with the T.Code FBCJ.  In our organisation we have several branches where they use to save the Cash Payment transactions, they do not post it.While posting the transaction at HO, if the authorised person finds that "Business Transaction" assigned to the line item is not correct and wants to correct the Transaction, the system does not permit for that. As the field where changes required remains in DISPALY MODE only. Then please help me how to go for the change in that particular Field of "Business Transaction".
    Please help me ASAP.
    Regards
    Rajesh

    Hi Rajesh,
    When you save a transaction in cash journal system updates your cash register and it generates a cash document number and this is different from the accouting document number. At the time of posting system posts this transaction into accouting and generates an accounting document.
    If system allows you to change the business transaction at the time of posting, then it means two different business transaction assignment for the same cash transaction, which should not be the case and is also not possible. Posting just posts the document in to accounting and if you want to change the business transaction, you need to cancel it and create it with the right business transaction.
    Hope this helps...
    regards,
    Rengaraj

Maybe you are looking for