Table where data of  material against WBS is maintained

Hello Experts.
                     Is there any table to look upon which fetches data related to material assignment against WBS and vice versa.?
Please suggest.
Regards
Edited by: ankur_sau on Feb 15, 2012 11:47 AM

Thanks A Lot Andreas Mann !!!
regards
Ankur

Similar Messages

  • Table where data of a Variant saved will be stored.

    Hi All,
            In normal Custom reports we will be saving some variants so that we can put the same variant after some time for executing the report. Variant will be having a unique name which will be stored in some table and the data(selection screen entries) which we are saving also will be saved some where in SAP tables. If any one of you has knowledge of those tables please help me out.
    Thanks in advance,
    Shyam.

    Hi
    VARIT--> Variant texts
    VARID--> Variant directory
    Using values from Table TVARVC is especially useful in background processing. You do not have to create a new variant for each minor change of values or repeatedly change an existing variant, since you only have to change the values stored in TVARVC.
    However, note that every change of a value in Table TVARVC affects all variants using this particular variable.
    Reward all helpfull answers
    Regards
    Pavan

  • How do I identify records in table where dates overlap?

    Hi
    In a table I can have multiple records per Code. But if you look at the Start and End dates of the last two records they overlap.
    Unique ID Code Start Date End Date
    1 143     28-MAY-02     16-OCT-02     
    2 143     17-OCT-02      22-NOV-02     
    3 143     13-NOV-02     12-MAR-03
    I want to be able to identify these and then change the values to be     
    Unique ID Code Start Date End Date
    1 143     28-MAY-02     16-OCT-02     
    2 143     17-OCT-02      12-NOV-02     
    3 143     13-NOV-02     12-MAR-03
    i.e. set the End Date of the 2nd record to be a day less than the start date of the 3rd record.
    Can anyone please help with how I can do this?
    Thanks
    GB

    You have to make the ordering unique, so I added the column end_date to the ordering.
    And the solution prevented was buggy, so I replaced it with a new SQL statement:
    SQL> create table test_table
      2  as
      3  select 1 uqid, 143 code, date '2002-05-28' start_date, date '2002-10-16' end_date from dual union all
      4  select 2, 143, date '2002-10-17', date '2002-11-22' from dual union all
      5  select 3, 143, date '2002-11-13', date '2003-03-12' from dual union all
      6  select 1, 100, date '2007-02-01', date '2007-02-14' from dual union all
      7  select 2, 100, date '2007-02-15', date '2007-02-15' from dual union all
      8  select 3, 100, date '2007-02-15', date '2007-05-05' from dual
      9  /
    Tabel is aangemaakt.
    SQL> select uqid
      2       , code
      3       , start_date
      4       , end_date
      5       , next_date -1 as replacement_date
      6    from ( select uqid
      7                , code
      8                , start_date
      9                , end_date
    10                , LAG(start_date) over (partition by code order by start_date desc) as next_date
    11             from test_table
    12         )
    13   order by code
    14       , start_date
    15  /
    UQID  CODE START_DATE          END_DATE            REPLACEMENT_DATE
        1   100 01-02-2007 00:00:00 14-02-2007 00:00:00 14-02-2007 00:00:00
        2   100 15-02-2007 00:00:00 15-02-2007 00:00:00
        3   100 15-02-2007 00:00:00 05-05-2007 00:00:00 14-02-2007 00:00:00
        1   143 28-05-2002 00:00:00 16-10-2002 00:00:00 16-10-2002 00:00:00
        2   143 17-10-2002 00:00:00 22-11-2002 00:00:00 12-11-2002 00:00:00
        3   143 13-11-2002 00:00:00 12-03-2003 00:00:00
    6 rijen zijn geselecteerd.
    SQL> select uqid
      2       , code
      3       , start_date
      4       , greatest
      5         ( least
      6           ( lead(start_date,1,end_date+1) over (partition by code order by start_date, end_date) - 1
      7           , end_date
      8           )
      9         , start_date
    10         ) replacement_date
    11    from test_table
    12   order by code
    13       , start_date
    14       , end_date
    15  /
    UQID  CODE START_DATE          REPLACEMENT_DATE
        1   100 01-02-2007 00:00:00 14-02-2007 00:00:00
        2   100 15-02-2007 00:00:00 15-02-2007 00:00:00
        3   100 15-02-2007 00:00:00 05-05-2007 00:00:00
        1   143 28-05-2002 00:00:00 16-10-2002 00:00:00
        2   143 17-10-2002 00:00:00 12-11-2002 00:00:00
        3   143 13-11-2002 00:00:00 12-03-2003 00:00:00
    6 rijen zijn geselecteerd.Regards,
    Rob.

  • Return rows where date between sysdate +- 2 years

    Hi,
    Please let me know how to select rows from table where date = sysdate +- 2 years
    if sysdate is 27/07/2012 then select rows where date between 27/07/2010 to 27/07/2014

    you need all date ? or only specific date ?
    Specific date Purvesh already provided solution
    All
    SELECT * FROM ( SELECT SYSDATE+LEVEL AFTER,SYSDATE-LEVEL befor FROM dual connect BY LEVEL<=365*2 )Or specific
    SELECT Max(AFTER),Min(befor) FROM
    ( SELECT SYSDATE+LEVEL AFTER,SYSDATE-LEVEL befor FROM dual connect BY LEVEL<=365*2 )

  • Work scheduling data of material  is not maintained

    Hi,,
    Work scheduling data of material SAREE is not maintained
        Message no. CO070
    Diagnosis
        You are trying to create a production order/process order for a material
        before the work scheduling data has been maintained.
    System Response
        The production order/process order has not been created.
    Procedure
        Maintain the data for material SAREE in the view for work scheduling in
        the material master.
    please kinldy help me to maintain this work scheduling data,. i cant find this in MM01.
    Thanks

    Hi,
    To maintain work scheduling view go to transaction code MM50 & then in selection fields select maintenance status as A (work scheduling, then enter plant no, material no & material type. After this execute this transaction.
    This will lead you to WS view, on work scheduling view maintain the details as needed.
    Hope this will resolve your problem.
    Best Regards,
    Avinash.

  • Table name of Classification Data in Material Master

    Hi Experts,
    Greetings to all...
    I wish to ask one question.
    I wanted to upload the initial data in material. in initial data I wanted to maintain the classification data for the batch management. Please tell me what is the name of table/field where the material and classification data is stored. I couldnt find anything in the table KLAH, AUSP, CABN, CAWN.
    Thanking you in advance,
    Regards,
    UK.

    Dear UK,
    If you using ALE:
    Follow following sequence:
    CHRMAS Characteristics that contain global and local object dependencies
    KNOMAS (global object dependencies)
    CHRMAS Characteristics that contain global and local object dependencies
    CLSMAS Classes with characteristics and their overwritings, including object dependencies
    The characteristics and characteristic values must be transferred second time
    to create the assignment of the global object dependencies to the characteristics
    and characteristic values.
    BR,
    ian Wong

  • Table where CU50 configuration data is saved

    Hello All
                           Can you please tell me if there is a table in SAP where i can see the charecteristic value selections in CU50 screen, i mean i am looking for a Table where all th charecteristic values selected for a configurable material in Cu50 or VA02?
    Thanks in Advance

    Dear friend,
    Please have a look at standard structure RCUKO  (there is no table, only the structure).
    You can try to get the data using some functional modules, I guess try the
    CU_SINGLE_CONFIGURE
    Good luck!

  • How to make reference wbs custom data carried to new wbs when using custom tab and custom table

    I created a custom tab for WBS elements by using user exit CNEX0007 and custom screen and put a table control in it.
    As table control's data has to be stored in a table I could not use append structure of PRPS.
    When I used reference wbs, PRPS custom fields were carried also but I could not find any solution to fill table control data with reference table.
    I need to get correspondence between reference number's and new id's key data. Is there any exit, enh. that I can store the relationship.

    Solved...
    I've used an enhancement point in include LCNPB_MF38.  CJWB_SUBTREE_COPY exports a table called newnumbers. Here you can find correspondances between copied WBS and new WBS.
    Exported table to memory id.
    And imported it in another user-exit. You can use proper user exit for your need.  ( EXIT_SAPLCNAU_002)

  • Select data from table where field is initial

    I have table that has 10 million records.
    I want to select data from this table where certain date field is blank.
    *SELECT * FROM table*
    INTO TABLE internal table
    WHERE PSTNG_DATE = BLANK.
    Does anybody know how to select data from data base table when certain field is blank.
    I cont select all data once and delete which i dont want, the table is big, it will blow up app server.
    thanks in advance,
    Sachin
    Moderator: Pls do not lock the posting instead provide me the link, its disrespecting.

    Respect the forum rules and common sense, and you will be respected.
    "how to select data from a database table when the field is blank" is very basic, and basic questions will be locked, because they have been asked many times and you can find the answer yourself with a little effort. There is nothing disrespectful about it.
    Thread locked.
    Thomas

  • What is the table name for getting Last Receipt  & issue date of material?

    Hi Friends,
    What is the table name for getting Last Receipt  & issue date of material?
    *Case 1:*
    Here, I am running report in May 2008. But, if there is no goods receipt for the respective material since last 13th March 2007.
    Then in this case Last goods receipt date should be 13th March 2007.
    Please guide me.
    Regards
    Siva

    I checked MSEG table. But, I didn't find any field for date.
    Can you tell me field name.
    Regards
    Siva

  • Need the TABLE where SALES TEXT of a material is stored

    I need the table where the sales text of a material is stored. This can be onbtained from MM03 --> SALES TEXT. Here we can pick it up from the language.I need the table where it is stored.

    Hi Gurpreet
    Please follow the below steps:
    1. Go to MM02.
    2. Select View: <b>Sales Text</b>
    3. When you are in the editor, use menupath: Goto->Header
    Here we can get the details of Text-ID, Text Name, Language, Text Object.
    Use these details for FM: READ_TEXT.
    We can retreive all text in the output of the FM.
    Hope this helps you.
    Kind Regards
    Eswar

  • From where can i find/download it's tables and data? ("Oracle iDS Froms:...

    i have Student Guide named => "Oracle iDS Froms: Build Internet Application I" from
    Oracle Corporation, part number D32772, May 2001. it uses "The Summit Sporting Goods Schema"
    as an example throughout the book.
    from where can i find/download it's tables and data?
    will be thankful for guidence.
    Arif.

    from where can i find/download it's tables and data? ("Oracle iDS Froms:... Jan 22, 2004 6:34 PM
    Reply
    i have Student Guide named => "Oracle iDS Froms: Build Internet Application I" from
    Oracle Corporation, part number D32772, May 2001. it uses "The Summit Sporting Goods Schema"
    as an example throughout the book.
    from where can i find/download it's tables and data?
    will be thankful for guidence.
    Arif.

  • Data Table where all plant addresses are stored in

    I would like to download all plants addresses in my client to a spreadsheet.
    I not sure which table holds this info - any help with table name?
    Thanks

    Thanks Volkan.
    Table V_T001W gives me the plant name & description. I now need the physicall table where the associated adress filds are stores. The fields you provided appear to be held in a stucture - ADDR1_DATA and not a table.
    Any idea whow I can extract theses plant addresse from a structure?

  • How to update the data base table with data

    i have two ztables, one is zfm_kfz and other one is zfm_kmvrg
    zfm_kfz is maintained by using table maintenance generator as well as alv grid control for list display.
    zfm_kfz the field r like this KFZR, GERAET, KOSTENTRAEGER, BEZEICHNUNG, TUVDATUMMMYYYY, ASUDATUMMMYYYY, KMSTAND, HISTO AND REIFEN.
    PROBLEM: all the data in grid control r updated except KMSTAND
    fields in zfm_kmvrg are kostentraeger, kfznr and kmstand i m creating table control for this screen here what ever enter the last km stand is updated in the list.for one kfznr many kostentraegers and kmstand, the last km stand is updated here , go through this code plz hepl me
    CONTROLS tabctrl TYPE TABLEVIEW USING SCREEN 100.
    DATA: cols LIKE LINE OF tabctrl-cols,
          lines TYPE i.
    DATA: ok_code TYPE sy-ucomm,
          save_ok TYPE sy-ucomm.
    DATA: itab TYPE TABLE OF zfm_kmvrg,
          fs_itab LIKE LINE OF itab,
          fl_change TYPE c,
          fl_error  TYPE c.
    *TABLES fs_itab.
    LOOP AT tabctrl-cols INTO cols.
      cols-screen-input = '0'.
      MODIFY tabctrl-cols FROM cols INDEX sy-tabix.
    ENDLOOP.
    *SELECT * FROM spfli INTO TABLE itab.
    CALL SCREEN 100.
    MODULE status_0100 OUTPUT
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SCREEN_101'.
      DESCRIBE TABLE itab LINES lines.
      tabctrl-lines = lines.
    ENDMODULE.                    "status_0100 OUTPUT
    MODULE cancel INPUT
    MODULE cancel INPUT.
      LEAVE PROGRAM.
    ENDMODULE.                    "cancel INPUT
    MODULE read_table_control INPUT
    MODULE read_table_control INPUT.
      MODIFY itab FROM fs_itab INDEX tabctrl-current_line.
    ENDMODULE.                    "read_table_control INPUT
    MODULE user_command_0100 INPUT
    MODULE user_command_0100 INPUT.
      DATA:
        lw_index TYPE i.
      save_ok = ok_code.
      CLEAR ok_code.
      CASE save_ok.
        WHEN 'ADD'.
          LOOP AT tabctrl-cols INTO cols.
            cols-screen-input = '1'.
            MODIFY tabctrl-cols FROM cols INDEX sy-tabix.
          ENDLOOP.
          CLEAR fs_itab.
          APPEND fs_itab TO itab.
        WHEN 'SAVE'.
          IF NOT itab[] IS INITIAL.
            LOOP AT itab[] into FS_ITAB.
              lw_index = sy-tabix.
              IF NOT fs_itab IS INITIAL.
                MODIFY ZFM_KMVRG FROM fs_itab.
                IF sy-subrc EQ 0.
                  UPDATE ZFM_KFZ set kmstand = fs_itab-kmstand
                                        WHERE kfznr = fs_itab-kfznr.
                ELSE.
                  fl_error = 'X'.
                  WRITE:/ 'The record number', lw_index,
                          'has not been updated'.
                ENDIF.
              ENDIF.
            ENDLOOP.
          ELSE.
            MESSAGE s000(0) WITH 'No data is present to update'.
          ENDIF.
      ENDCASE.
      IF fl_error = 'X'.
        LEAVE TO LIST-PROCESSING.
      ELSE.
        MESSAGE s000(0) WITH
              'All the records have been updated successfully'.
      ENDIF.
    ENDMODULE.                    "user_command_0100 INPUT
    IN SE51
    PROCESS BEFORE OUTPUT.
      MODULE STATUS_0100.
      LOOP AT ITAB INTO fs_itab WITH CONTROL tabctrl.
      ENDLOOP.
    PROCESS AFTER INPUT.
      MODULE CANCEL AT EXIT-COMMAND.
      LOOP AT ITAB.
        module read_table_control.
      ENDLOOP.
      module user_command_0100.
    i m trying many times i m not getting proper output, plz help me on this

    Hi,
    I am hereby givng the similar sample code.Check this with your requirement.
    In the flow logic of the screen 9000, write the following code.
    PROCESS BEFORE OUTPUT.
      MODULE set_status.
      MODULE get_t_ctrl_lines.
      LOOP AT i_makt WITH CONTROL t_ctrl CURSOR t_ctrl-current_line.
    * Dynamic screen modifications
        MODULE set_screen_fields.
      ENDLOOP.
    PROCESS AFTER INPUT.
      LOOP AT i_makt.
        FIELD i_makt-pick MODULE check.
        FIELD i_makt-zmatnr MODULE zmatnr .
      ENDLOOP.
      MODULE user_command_9000.
    In the program, write the following code.
    PROGRAM SAPMZTC MESSAGE-ID zz.
    * Tables Declaration
    TABLES: zzz_makt.
    * Internal table Declaration
    DATA : i_makt TYPE STANDARD TABLE OF zzz_makt WITH HEADER LINE.
    * Table control Declaration
    CONTROLS: t_ctrl TYPE TABLEVIEW USING SCREEN '9000'.
    * Variable Declaration
    DATA : flg,           "Flag to set the change mode
           ln TYPE i.     "No. of records
    *&      Module  get_T_CTRL_lines  OUTPUT
    *  Populating data
    MODULE get_t_ctrl_lines OUTPUT.
      SELECT zmatnr zmaktx
             INTO CORRESPONDING FIELDS OF TABLE i_makt
             FROM zzz_makt.
      DESCRIBE TABLE i_makt LINES ln.
    * To make the vertical scroll bar to come on runtime
      t_ctrl-lines = ln + 100.
    ENDMODULE.                 " get_T_CTRL_lines  OUTPUT
    *&      Module  USER_COMMAND_9000  INPUT
    * Triggering event according to the user command
    MODULE user_command_9000 INPUT.
      DATA :lv_fcode LIKE sy-ucomm,    "Function Code
            lv_answer(1) type c.       "Storing the answer
      lv_fcode = sy-ucomm.
      CASE lv_fcode.
        WHEN 'CHANGE'.
    * Setting the flag to make the table control in editable mode[excluding
    * primary key].
          flg = 'Y'.
        WHEN 'DELETE'.
    * Setting the flag to make the table control in editable mode after
    * deleting the selected line
          flg = 'Y'.
    * Confirmation of delete
          CALL FUNCTION 'POPUP_TO_CONFIRM'
            EXPORTING
             TITLEBAR       = 'Confirm'
             text_question  = 'Are you sure to delete from database?'
             TEXT_BUTTON_1  = 'Yes'(001)
             TEXT_BUTTON_2  = 'No'(002)
            IMPORTING
             ANSWER         =  lv_answer.
          if lv_answer eq '1'.
    * Updating the database table from the internal table
            UPDATE zzz_makt FROM TABLE i_makt.
    * Deleting the selected row from the internal table
            DELETE i_makt WHERE pick = 'X'.
    * Deleting the selected row from the database table
            DELETE FROM zzz_makt WHERE pick = 'X'.
            MESSAGE s005 WITH 'Deleted Successfully'.
          ENDIF.
        WHEN 'SAVE'.
    * Inserting new record or updating existing record in database table
    * from the internal table
          MODIFY zzz_makt FROM TABLE i_makt.
          MESSAGE s005 WITH 'Saved Successfully'.
        WHEN 'BACK'.
          SET SCREEN '0'.
        WHEN 'EXIT' OR 'CANCEL'.
    * Leaving the program
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPUT
    *&      Module  set_screen_fields  OUTPUT
    * Setting the screen fields
    MODULE set_screen_fields OUTPUT.
      LOOP AT SCREEN.
        IF flg IS INITIAL.
          screen-input = 0.
        ELSEIF ( flg EQ 'Y' ).
          IF ( ( screen-name = 'I_MAKT-ZMAKTX'
                 OR screen-name = 'I_MAKT-CHECK1' )
                AND t_ctrl-current_line LE ln ) .
    * Making the screen fields as editable
            screen-input = 1.
          ELSEIF ( ( screen-name = 'I_MAKT-ZMATNR' )
                     AND t_ctrl-current_line LE ln ).
    * Making the screen field as uneditable
            screen-input = 0.
          ENDIF.
        ENDIF.
    * Modifying the screen after making changes
        MODIFY SCREEN.
      ENDLOOP.
    ENDMODULE.                 " set_screen_fields  OUTPUT
    *&      Module  zmatnr  INPUT
    * Appending records to the internal table
    MODULE zmatnr INPUT.
      MODIFY i_makt INDEX t_ctrl-current_line.
      IF t_ctrl-current_line GT ln.
        READ TABLE i_makt WITH KEY zmatnr = i_makt-zmatnr.
        IF sy-subrc NE 0.
    * Inserting record if it does not exist in database
          APPEND i_makt.
        ELSE.
         MESSAGE i005 WITH 'Material Number' i_makt-zmatnr 'already exists'.
        ENDIF.
      ENDIF.
    ENDMODULE.                 " zmatnr  INPUT
    *&      Module  set_status  OUTPUT
    * Setting the GUI status
    MODULE set_status OUTPUT.
      SET PF-STATUS 'ZSTATUS'.
      SET TITLEBAR  'ZTITLE'.
    ENDMODULE.                 " set_status  OUTPUT
    *&      Module  CHECK  INPUT
    * Modify the internal table using the current line in table control
    MODULE check INPUT.
      MODIFY i_makt INDEX t_ctrl-current_line.
    ENDMODULE.                 " CHECK  INPUT

  • Database Table where MRP Run results are saved-Urgent

    Hi Gurus
    i need your help in identifying the database table where the MRP Run results are saved , this is needed for creating a custom report similar to MD45(but for entire plant) where i can look and pull the sum of all the receipts and issues, ATP Quantity for a given material in a particular plant
    and ignore zero quantities in the receipts and issues field
    i tried in <b>MDTB</b> table, MDTB-MNG01 Quantity received or quantity required but it has no entries maintained in it and so it cannot be used.
    So can you please help me with the table where i can get this information asap
    thank you very much for your time and solution

    Please use the code below which will help you in extracting data from MRP table.
    You can enhance this program basing on your requirement.
    *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    A sample program to extract data from the MRP table.
    *+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    REPORT ZMRPTABLE.
    TABLES: MDKP,  "Header Data for MRP Document
            MDTB,  "MRP table
            MDTC,  "Aggregated MRP table items
            T457T. "Description of MRP elements
    DATA: BEGIN OF MDTBX OCCURS 0.
            INCLUDE STRUCTURE MDTB.
    DATA: END   OF MDTBX.
    SELECT-OPTIONS: PLANT FOR MDKP-PLWRK OBLIGATORY,
                    MATNR FOR MDKP-MATNR OBLIGATORY.
    CLEAR: MDKP, MDTB.
    SELECT * FROM MDKP WHERE DTART EQ 'MD'
                         AND MATNR IN MATNR
                         AND PLWRK IN PLANT.
        WRITE:/ MDKP-MATNR, MDKP-PLWRK.
        IF MDKP-CFLAG EQ 'X'.
           CLEAR MDTBX. REFRESH MDTBX.
           IMPORT MDTBX FROM DATABASE MDTC(AR) ID MDKP-DTNUM.
           LOOP AT MDTBX.
             MOVE MDTBX TO MDTB.
             SELECT SINGLE * FROM T457T WHERE SPRAS = 'E'
                                          AND DELKZ = MDTB-DELKZ.
             IF MDTB-PLUMI = '-'. MULTIPLY MDTB-MNG01 BY -1. ENDIF.
             WRITE:/ MDTB-DAT00, T457T-DELB1, MDTB-VSTAT,
                                              MDTB-MNG01, MDTB-LGORT.
           ENDLOOP.
        ELSE.
           SELECT * FROM MDTB
                         WHERE DTNUM EQ MDKP-DTNUM
                         ORDER BY PRIMARY KEY.
             SELECT SINGLE * FROM T457T WHERE SPRAS = 'E'
                                          AND DELKZ = MDTB-DELKZ.
             IF MDTB-PLUMI = '-'. MULTIPLY MDTB-MNG01 BY -1. ENDIF.
             WRITE:/ MDTB-DAT00, T457T-DELB1, MDTB-VSTAT,
                                              MDTB-MNG01, MDTB-LGORT.
           ENDSELECT.
        ENDIF.
    ENDSELECT.
    This is taken from www.sap-img.com
    Hope this helps you.

Maybe you are looking for