Structure MDEZ

Hello,
Does anybody knows how to extract data of stock availabily by day? It is the available qty that appear in the transaction MD04 in R3
Thanks & Regards,
Adriana Oliveira

Hi,
No problem. Hope you got the answer for your question.
Thanks,
Arun

Similar Messages

  • How to retreive data from structure MDEZ in T.code CO09

    As per our requirement 2 new columns are needed in a customize report .i.e
    - u201Cinc. lot dateu201D
    - u201Cavailable inc. lotu201D
    u201Cinc. lot dateu201D:to get the values for inc.lot.date
    From second screen of CO09(program: SAPLATP4 and screen number: 400) pick first date where MRP element is u201CPOitemu201D, u201CShpgNtu201D or u201CPrdOrdu201D.
    u201Cavailable inc. lotu201D: to get the values for available inc.lot
    Pick u201CCum. ATP QTyu201D from the same row.
    These data are stored in structure MDEZ. Actually I want dat00 and MNG04 based on field DELB0. If DELB0 filed is POitem or Prdord or ShpgNt then only I should retrieve the dat00 and MNG04. IF there are more than one POitem in MRP element then we should pick the first POitems' mrp date and *** ATP qty  .Can you please help me out how to get these data from the structure MDEZ.
    input parameters to get the values are material number and plant.

    Hi,
    First of all data is never stored in structure so there is no way you can retrive data from structure.
    you are looking into the screen field and it is not mandatory that it will always point to a table.
    Now  the qestion remains how to get the data ?  you need to find database table for that field there are many ways like SE84 or SE11 where used etc.
    Try to find the table if you still have the problem feel free to get back.
    Regards
    Bikas

  • Finding Table name from structure

    Hi,
    I need to find the trans. table name for the field ATP Quntity, It's coming from the Structure MDEZ field name MNG04. Please Help me guys??????????/
    I tried where used list, it's giving 2 tables But both are not having any data. Please guide me is there is anyother way can i achieve this?????????

    Hi Hari,
    Thanks for ur help. Can i add Program manipulated field value into Search help display. B'cos in selection criteria we can only create view for tables. How i can display manipulated value that's not in table to display in Search help result screen?
    I need to add extra display result in material field's Search help result screen like Stock on hand plant details.
    thanks,
    Subha

  • Dependent Requirements report required

    Hi All
    I'm searching for transaction which will generate a report with total of dependent requirements for a given FG material list:
    Do you know if there are such type of transactions in SAP?
    Kind Regards
    Andrey

    Hello!
    We had the same problem, and our solution was making this report in ABAB. In ABAB you can call structure MDEZ and filter it by "MRP element"= DepReq.
    Other solution, rather temporary, is report based on table RESB (using e.g. transaction se16/se16n, SQVI, or ABAB). In that table field BDART='SB' means requirements coming from DepReq. The problem is, that RESB table can be huge, and searching in that way can take a lot of time.
    Best Regards,
    Marcin

  • Restrict Data Package Size

    hi all,
    I have created a generic data source which is extracting data using the FM.
    I wana restrict my data by packet size. how can i do this?
    my FM is
    FUNCTION zstock_requirement.
    ""Local interface:
    *"  IMPORTING
    *"     VALUE(I_DSOURCE) TYPE  RSISOURCE OPTIONAL
    *"     VALUE(I_REQUNR) TYPE  RSREQUNR
    *"     VALUE(I_MAXSIZE) TYPE  RSMAXSIZE DEFAULT 1000
    *"     VALUE(I_INITFLAG) TYPE  RSINITFLG OPTIONAL
    *"     VALUE(I_UPDMODE) TYPE  RSUPDMODE OPTIONAL
    *"     VALUE(I_DATAPAKID) TYPE  RSDATAPID DEFAULT 50000
    *"     VALUE(I_READ_ONLY) TYPE  SBIW_BOOL DEFAULT SBIW_C_FALSE
    *"  TABLES
    *"      I_T_SELECT TYPE  SBIWA_T_SELECT OPTIONAL
    *"      I_T_FIELDS TYPE  SBIWA_T_FIELDS OPTIONAL
    *"      E_T_DATA STRUCTURE  MDEZ OPTIONAL
    Maximum number of lines for DB table
      STATICS: s_s_if TYPE srsc_s_if_simple,
    counter
              s_counter_datapakid LIKE sy-tabix,
    cursor
              s_cursor TYPE cursor.
      DATA : lt_mdezx TYPE TABLE OF mdez,
              la_mdezx LIKE LINE OF lt_mdezx.
    Initialization mode (first call by SAPI) or data transfer mode
    (following calls) ?
      IF i_initflag = sbiwa_c_flag_on.
    Initialization: check input parameters
                    buffer input parameters
                    prepare data selection
    Check DataSource validity
        CASE i_dsource.
          WHEN 'ZSTOCK_REQUIREMENT1'.
          WHEN OTHERS.
            IF 1 = 2. MESSAGE e009(r3). ENDIF.
    this is a typical log call. Please write every error message like this
            log_write 'E'                  "message type
                      'R3'                 "message class
                      '009'                "message number
                      i_dsource   "message variable 1
                      ' '.                 "message variable 2
            RAISE error_passed_to_mess_handler.
        ENDCASE.
        APPEND LINES OF i_t_select TO s_s_if-t_select.
    Fill parameter buffer for data extraction calls
        s_s_if-requnr    = i_requnr.
        s_s_if-dsource = i_dsource.
        s_s_if-maxsize   = i_maxsize.
    Fill field list table for an optimized select statement
    (in case that there is no 1:1 relation between InfoSource fields
    and database table fields this may be far from beeing trivial)
        APPEND LINES OF i_t_fields TO s_s_if-t_fields.
      ELSE.                 "Initialization mode or data extraction ?
    Data transfer: First Call      OPEN CURSOR + FETCH
                   Following Calls FETCH only
    First data package -> OPEN CURSOR
        IF s_counter_datapakid = 0.
          SELECT matnr FROM mara INTO TABLE i_matnr
                            WHERE mtart IN ('ZFIN','ZRAW','ZSMI').
          If not i_matnr is initial.
          SELECT matnr werks FROM marc INTO TABLE i_input FOR ALL ENTRIES IN i_matnr
                                           WHERE matnr = i_matnr-matnr.
           endif.
            CLEAR wa_input.
            LOOP AT i_input INTO wa_input.
              CALL FUNCTION 'MD_STOCK_REQUIREMENTS_LIST_API'
                EXPORTING
       PLSCN                          =
                  matnr                          =  wa_input-matnr
                  werks                          =  wa_input-werks
       BERID                          =
       ERGBZ                          =
       AFIBZ                          =
       INPER                          =
       DISPLAY_LIST_MDPSX             =
       DISPLAY_LIST_MDEZX             =
       DISPLAY_LIST_MDSUX             =
       NOBUF                          =
    IMPORTING
       E_MT61D                        =
       E_MDKP                         =
       E_CM61M                        =
       E_MDSTA                        =
               TABLES
       MDPSX                          =
                 mdezx                          =   lt_mdezx
       MDSUX                          =
               EXCEPTIONS
                 material_plant_not_found       = 1
                 plant_not_found                = 2
                 OTHERS                         = 3.
              IF sy-subrc <> 0.
                MESSAGE i000(abc) WITH 'information'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
              ENDIF.
              LOOP AT lt_mdezx INTO la_mdezx.
                APPEND la_mdezx TO e_t_data.
              ENDLOOP.
            ENDLOOP.
          ENDIF.
          s_counter_datapakid = s_counter_datapakid + 1.
        ENDIF.              "Initialization mode or data extraction ?
      ENDFUNCTION.

    Hi,
    One thing why u want to restrict data package. Anyway if it is delta enbaled u will make it as a initial load then delta load.
    Its very complex to implement datapackage as well as cursor and fetch statement in function module.
    Thanks,
    Debasish

  • Tables in MD04 list

    Hi,
    Does anyone know in which table the main fields that are displayed in MD04 are held?
    I know they are in the structure MDEZ, but I need the associated tables.
    Thanks in advance and best regards to everyone.
    Ben.

    Hi
    I'm note sure for what fields you are looking for.
    But in table
    MDKP use material, Plant as input and get "No. MRP table"
    Use "No. MRP table"  for MDTB . to get other fields in MDTB
    Below are the tables involving MRP
    Thanks
    Prashanth
    Reward point if this info was usefull
    MDDMAP                         Mapping Table for External User for MRP Evaluati
    MDFD                           MRP firming date
    MDFDDB                         Firming Data of MRP - MRP Area
    MDIP                           Material: MRP Profiles (Field Contents)
    MDKP                           Header Data for MRP Document
    MDKPDB                         Header Data for MRP Document
    MDLG                           Customizing: MRP Area Storage Location
    MDLL                           Customizing: MRP Area Subcontractor
    MDLV                           Customizing MRP Area
    MDLW                           Customizing: MRP Area Plants
    MDMA                           MRP Area for Material
    MDPB                           Read View of Plnnd Ind. Reqmts for MRP (see also
    MDPBDB                         View plnnd independent reqmts for MRP area in MR
    MDPUW                          Customizing: Scope of Planning MRP Unit
    MDQM                           MRP View of the QM Inspection Lot
    MDSA                           MRP View of the Run Schedule (Table SAFK)
    MDSEQ                          Customizing: Sequence of MRP in Scope of Plannin
    MDTAB                          Cluster Table Initial Screen SRList/MRP List (Sh
    MDTB                           MRP Table
    MDTC                           Aggregated MRP table items
    MDVM                           Entry in MRP File

  • '0610.05.20 data lies before start of factory calendar'

    hi,
    the error of '0610.05.20 data lies before start of factory calendar.' how to correct it.
    but somentimes is ok ,no error.
    regards
    sophia

    hi.
    if i use the plant as selection option,there has error,
    if i use the plant and MRP controller as selection option,there has no error,why? i hope someone help me,thank you.
    now i provide the program code  :
    report zreq_list message-id z01 .
    tables:
          mara,
          marc,
          mdez,
          scal.
    data:begin of i_alv occurs 0,
         matnr like mara-matnr,
         maktx like makt-maktx,
         werks like marc-werks,
         week like scal-week,
         extra like mdez-extra,
         meins like mara-meins,
         meins1(3),
         mng01 like mdez-mng01,
    end of i_alv.
    data: begin of i_cx occurs 0.
    include structure mdez.
    data: matnr(18).
    data: werks(4).
    data: week like scal-week.
    data: maktx(40).
    data: meins(3).
    data: end of i_cx.
    data:begin of i_mara occurs 0,
    matnr like mara-matnr,
    werks like marc-werks,
    dispo like marc-dispo,
    end of i_mara.
    data: i_mdez like mdez occurs 0 with header line.
    define add_field.
      wa_field-fieldname = &1.
      wa_field-reptext_ddic = &2.
      append wa_field to it_field.
    end-of-definition.
    type-pools slis.
    data: gs_layout type slis_layout_alv.
    data: g_repid type sy-repid.
    data: it_field type slis_t_fieldcat_alv.
    data: wa_field type slis_fieldcat_alv.
    g_repid = sy-repid.
    gs_layout-colwidth_optimize = 'X'.
    if sy-langu = '1' .
       add_field 'MATNR' '&#29289;&#26009;&#21495;&#30721;'.
       add_field 'MAKTX' '&#29289;&#26009;&#25551;&#36848;'.
       add_field 'WERKS' '&#24037;&#21378;'.
       add_field 'WEEK' '&#38656;&#27714;&#26102;&#38388;'.
       add_field 'EXTRA' 'MRP&#20803;&#32032;'.
       add_field 'MEINS1' '&#21333;&#20301;'.
       add_field 'MNG01' '&#38656;&#27714;&#37327;'.
    else.
       add_field 'MATNR' 'Material No'.
       add_field 'MAKTX' 'Material description'.
       add_field 'WERKS' 'Plant'.
       add_field 'WEEK' 'Requirements date'.
       add_field 'EXTRA' 'MRP element'.
       add_field 'MEINS1' 'Unit'.
       add_field 'MNG01' 'Requirement quantity'.
    endif.
    data: file(100) type c .
                         SELETION-SCREEN
    selection-screen begin of block block1 with frame .
    select-options:
                    s_delb0 for mdez-delb0 ,"MRP &#20803;&#32032;
                    s_matnr for mara-matnr ,"&#29289;&#26009;&#32534;&#21495;
                    s_werks for marc-werks default '1000' ,"&#24037;&#21378;
                    s_dispo for marc-dispo,"MRP&#25511;&#21046;&#32773;
                    s_week  for scal-week."&#38656;&#27714;&#26102;&#38388;
    parameters:
                   p_plscn like plsc-plscn default '000',"&#35745;&#21010;&#26041;&#26696;
                   p_inper like mdst-inper,"&#20869;&#37096;&#26399;&#38388;&#26631;&#35782;
                   p_ergbz  like t462-ergbz."&#36873;&#25321;&#35268;&#21017;
    selection-screen end of block block1.
      B E G I N  S E L E C T I O N
    start-of-selection.
    data i_exit.
    perform get_data.
    check i_exit ne 'X'.
    perform display_data.
    *&      Form  get_data
          text
    -->  p1        text
    <--  p2        text
    form get_data.
    select maramatnr marcwerks marc~dispo into table i_mara
              from mara inner join marc on maramatnr eq marcmatnr
              where mara~matnr in s_matnr
                and marc~werks in s_werks
                and marc~dispo in s_dispo.
    loop at i_mara.
       perform  call_req using i_mara-matnr
                               i_mara-werks
                               p_plscn
                               p_inper.
    endloop.
    if sy-subrc <> 0.
    message i000 with 'Non data!'.
    i_exit = 'X'.
    exit.
    endif.
    loop at i_cx.
       call function 'DATE_GET_WEEK'
            exporting
                    date = i_cx-dat00
            importing
                   week = i_cx-week.
      modify i_cx.
      clear i_cx.
    endloop.
    loop at i_cx where week in s_week..
    move-corresponding i_cx to i_alv.
    collect i_alv.
    clear i_alv.
    endloop.
    sort i_alv by werks matnr.
    endform.                    " get_data
    *&      Form  call_REQ
          text
         -->P_I_MARA_MATNR  text
         -->P_I_MARA_WERKS  text
         -->P_P_PLSCN  text
         -->P_P_INPER  text
    form call_req using    v_matnr
                           v_werks
                           v_plscn
                           v_inper.
    call function 'MD_STOCK_REQUIREMENTS_LIST_API'
      exporting
        plscn                          = p_plscn
        matnr                          = i_mara-matnr
        werks                          = i_mara-werks
        inper                          = p_inper
        ergbz                          = p_ergbz
    importing
       e_mt61d                        = i_mt61d
    tables
        mdezx                           = i_mdez
    exceptions
       material_plant_not_found       = 1
       plant_not_found                = 2
       others                         = 3.
    loop at i_mdez where delb0 in s_delb0..
       move-corresponding i_mdez to i_cx.
       i_cx-matnr = v_matnr.
       i_cx-werks = v_werks.
       append i_cx.
       clear i_cx.
    endloop.
    endform.                    " call_REQ
    *&      Form  display_data
          text
    -->  p1        text
    <--  p2        text
    form display_data.
    call function 'REUSE_ALV_GRID_DISPLAY'
         exporting
              i_callback_program        = g_repid
             i_callback_user_command  = 'USER_COMMAND'
              it_fieldcat               = it_field
             IT_SORT                  = it_SORT
              is_layout                 = gs_layout
              i_save                    = 'A'
             IT_EVENTS                 = i_EVENTS[]
             is_variant                = i_variant
         tables
              t_outtab           = i_alv
         exceptions
              program_error               = 1
               others                      = 2.
        if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " display_data

  • Required ATP Table field name

    Hello Gurus,
    As per my client requirement, durig the time of internet sales, The customer (user) while ordering for a material there should be a field where in customer can view the available quantity for that particular material.
    I ve checked in MD04 and i got the structure MDEZ [field MNG04]. But i want to know whether i can fetch data from this field or is there any other table/field where i can get the GATP quantities for the particular material. Anybody please provide the exact Table and field name.......
    Thanks in advance....
    Edited by: Praveen on Jan 7, 2009 5:59 AM
    Edited by: Praveen on Jan 7, 2009 9:35 AM
    Edited by: Praveen on Jan 7, 2009 9:52 AM

    Dear Praveen
    In Table MDTB,  you can see fields like
    -  MNG01:::Recd / Req.quantity
    -  MNG02:::Scrap
    -  MNG03:::Shortage Quantity
    You can make use of these fields according to your requirement.
    thanks
    G. Lakshmipathi

  • MD04 - Available quantity

    Hi....
       I m creating a Report to display the available quantity for a
    particular material on a particular date....same way it is displayed
    in the standard tcode MD04.
    Also I need to display the projected usage quantity for next three
    months where user will input the date. I need to find this projected
    usage quantity again like MD04 transaction code. This tcode uses
    structures MDEZ and MDSU to display the available quantity and other
    data.
    Are there any function modules availble to get it or are there any
    tables from where i can get this required data?
    Thanks in advance,
    Prasad

    Maybe you could use the function module MD_STOCK_REQUIREMENTS_LIST_API?

  • Table name for ATP

    Dear freinds,
    Please advice in which table i can get the data for  ATP stocks for a storage location.
    Thanks,
    Senthil

    The data stored in the structure MDEZ now you can ask the developer that how you can access the data from the sturcture.
    I am sure without progrma oyu can not do it but i don't have much knowledge of ABAP.

  • MRP element Indicators

    Hi All:
    Did anyone ever work on MRP Indicator and table MDEZ. In the program for R/3 report, I couldn't find the source fields for DELKZ (MRP element Indicator) and MNG01(Quantity received or issued). They are in the structure MDEZ. But how can I get these into BW unless I know the table they are pulling from?
    Thanks,
    Manasa.

    hi,
    check with table MDTB, i think it may help you.
    regards,
    Ram.

  • Md04 TRANSACTION

    Hello,
    I'm in the MD04 transaction and i see that the table control that is in that transaction is filled based on the structure MDEZ, but know i want to know how the structure mdez is populated, where does the mdez is going to get the data?
    Thanks,

    Dear Kiran,
    I do not know whether you are technical or functional consultant. Before execution of PBO event of the screen, code in subroutine pool / program will be executed for collection of data. You can include in this command before / after collection of data. I could not explain in detail with names of program or subroutine as I am not familiar with MD04 transaction.
    I can tell you technically if you have problem.
    Regards,
    Prasanth

  • How to use one Account dimension for multiple account structures

    We are implementing a HFM application to replace two general ledger applications, one being Corporate and the other a new subsidiary. We need to maintain both of the chart of accounts and their unique rollup structures. We are facing the difficulty in attempting to combine the two chart of accounts into one HFM Account Dimension because a few of the subsidiary accounts have the same account numbers but they are meant different things. 
    Question:
    How can we set up two distinct account structures in HFM and also have the subsidiary accounts rolled into the Corporate accounts for consolidation reporting? 
    Appreciate your help.

    Hope this help.
    _http://technet.microsoft.com/en-us/library/cc164331(v=exchg.65) .aspx

  • Message: "The database structure has been modified" every time I log to SAP

    Hello,
    "The database structure has been modified. In order to resume this process, all open windows will be closed". Every time I log to one of my companies in SAP Business One this message appears.
    I haven't installed any new addons and made no changes in database structure (and any other user hasn't done any changes), but this message appears always when I log to company for the first time (when I try to log on another user or log to another company there is no message). Can anyone help me with this problem?
    Best regards
    Ela Świderska

    Hi Ela Świderska,
    You may check this thread first:
    UDFs disappeared
    Thanks,
    Gordon

  • Transfer structure

    Hi All
    i have to create a transfer structure.
    in dso and cube i have 27 fields.
    but in tranfer structure it is showing 50 fields.
    i have to select the 27 fields out of 50 or i have to activate 50 fields in transfer structure.
    Thanks & Regards
    krishna

    Hi,
    Basically when creating the transfer structure you need to map the transfer structure fields with the ODS/Cube fields that are present in the communication structure.
    You just need to Transfer the fields, that you have identified in Data source to the transfer structure and map the relevant fields in the Transfer structure.
    Once the mapping is done. Just activate the Transfer structure.
    Most importatnt would be to decide on the mapping between data source and Communication structure fields.
    Hope it helps!!!
    Regards,

Maybe you are looking for

  • Checkpoint not complete in alert log file Oracle 11gR2 RAC

    Hi, I found checkpoint not complete in alert log file, almost every 3 seconds . In metalink i saw for this error, archive_lag_target=0, already this value was set to 0 in my database. We have 7 redo log groups for each instance, each group is of two

  • 1003 error at invoke node in .exe

    Hello! I Have a problem at an invoke node when running an .exe and I have no idea what the problem is. There's no problem in the development system. Here's a picture of the code.. Thanks in advance Attachments: exe_error.JPG ‏72 KB exe_error1.JPG ‏72

  • IMac with Snow Leopard - Mail 4.5 not downloading e-mails

    Hi there, I am using an iMac with Snow Leopard 10.6.8, which has Mail 4.5 on it.  Since yesterday, my Mail application will no longer download e-mails.  When I open it, the little tray in the corner says it is downloading message 26 of 26, but after

  • Same Artist Listed Multiple times on iPod..

    Before anyone tells me about changing the artist info of the song, I know about that. The problem is not the file info, I haven't changed the artist's info in about 6 months but all of sudden, on my iPod only not iTunes, the same artist is listed abo

  • Default Currency

    Hi all. SRM 4.0, server 5.0, backend R/3 4.6C. Just a short question: When you in the PPOMA for a user define two different currencies, say CAD and USD, and you mark one of the to be default - can it really be true that the user will never be able to