Table to find BOM valid-till-date

Hi Friends,
  I have to check the vality of BOM components,  through transaction CS03 i could able to see the Valid-till-date and i need to check the same in my code.
Looked into following tables, thre is a field valid-from-date(DATUV) but i'm not getting field Valied-to-date(DATUB).
MAST Material to BOM Link
EQST Equipment to BOM Link
STAS BOMs header
STKO BOM header
STPN BOM follow-Up control
STPO BOM item
STPU BOM sub-item
STST Standard BOM link
STVB Bills of material - Serialisation of posting
STZU Permanent BOM data
Can any one please help me.
Thanks in advance.
/Kiran

Hi kiran,
I think the Valid-to-date is in table AEEF-DATE_HI which can be linked with the BOM Header table STKO by field AENNR. Try this.
Otherwise you can also get the Date using the FM CS_BOM_EXPLOSION....
Use it as follows;
CALL FUNCTION 'CS_BOM_EXPLOSION'
EXPORTING
AUMNG = 0
CAPID = ' '
DATUV = DATVAL "valid-from date
EHNDL = '1'
MKTLS = 'X'
MEHRS = 'X'
MMORY = '1'
MTNRV = MATNR
STLAL = LAL "like mast-stlal default '1'
STLAN = LAN "like mast-stlan default '2'
SVWVO = 'X'
VRSVO = 'X'
WERKS = WERKS
mmaps = 'X'
IMPORTING
TOPMAT = STARTMAT "includes structure CSTMAT
TABLES
STBD = TBD "includes structure CSXDOC
STBE = TBE "includes structure CSXEQUI
STBK = TBK "includes structure CSXKLA
STBM = TBM "includes structure CSXMAT
STBP = TBP "includes structure CSXGEN
STBT = TBT "includes structure CSXTDL
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MISSING_AUTHORIZATION = 3
NO_BOM_FOUND = 4
NO_PLANT_DATA = 5
NO_SUITABLE_BOM_FOUND = 6
OBJECT_NOT_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9.
After the function call you will get the Valid to Date(DATEUB) from table STBP.
Hope this Helps you...
Regards
Karthik D

Similar Messages

  • BOM "valid from date" in transaction CSKB

    The business process is like this -
    1. We create sales order ( VA01)
    2. In sales order, we enter configurable materials as items.
    3. Then we freeze/change the BOM for sales order and line item through t-code CSKB.
    The problem is in CSKB, "Valid from date" of order BOM components is defaulted using the "required delivery date" in Sales Order. We want to default current date (system date) as the "valid from date". Please suggest how it can be done.
    Regards,
    Bijay

    Shailesh,
    While creating the BOM have you used the change number ...? if yes then display that change number and check wheather do you have any alternative date mention in it.
    check validity date of change number as well as BOM validity.
    another reason can be you need to apply SAP note 1278790.
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=0001231930
    check it out and revert back for further discussion.
    Hope it helps you.
    Regards
    Ritesh

  • How to change Valid to date in BOM

    Hi Sap experts
    I have two questions:
    1. How to change the valid to date in BOM for either header or component material.
    2. If the answer of the above question is NO, then from where the system takes the value for valid to date in BOM. If its default, then where that default date is actually set in?
    Thanks & Regards
    Akhtar Shaikh

    Dear Akhtar,
    If ECM is not activated then deflaut systems takes Valid to-date as  31-12-9999
    It is inbuilt in program designed by SAP
    Valid from date will be the date which you are creating BOM
    If ECM is activated then you can go with required dates ( with change numbers )
    Check this link in which you can find Mr. Mangalraj and experts Replies
    [ECM|Re: BOM valid to date]
    Regards
    Madhu

  • How to get valid from date in KONH Table

    Hi ,
          I am sending COND_A idoc for MRP. Now when I create a record using VK11,the valid from date is fine.
    But while changing the same using VK12 changed date does not reflect in KONH Table (when the new valid from date is greater the the previous one) .I understand the SAP Logic behind this from previous threads .
    But my issue is this :
    Suppose I have a Material X created with Valid from = 10.01.2011 & valid to = 31.12.9999
    Now I change this Valid from = 28.01.2011 & valid to = 31.01.2011.
    Now how can I send the data for 28.01.2011 in my I-doc , as KONH still has 10.01.2011 as valid from date.

    even if you send the data for 28.01.2011, it should pick up the condition record because the start date for condition record is in past? why do you think it is a problem? now if your concern is that if your input date is 27.01.2011 and it should not pick this condition (that is a different matter altogether)...

  • BOM Validity-ECM

    Hi Gurus,
    How to configure BOM validity from to to date ?
    Before posing this question, I have gone through the threads in SDN.
    As said, I tried to create BOM with ECM. Valid till date is not changing.
    BOM-1 valid from 01.01.2008 to 31.12.9999 with ECM No
    BOM-2 valid from 01.07.2008 to 31.12.9999 with ECM No
    As per the configuration, BOM-1 must be valid till 30.06.2008 and in display mode dates must be 01.01.2008 to 30.06.2008.
    regards
    Ram Kumar

    Hi Ram,
    This is not possible in Standard SAP.
    Eevry time the Vaild to will be 31.12.9999 (this is system setting).
    This is valid if you use ECM or Not.
    But, will ECM you can control this..
    With Revision level concept you can control the BOM explosion also..
    Regards,
    Siva

  • Table for Valid to date in BOM item

    Hi Exeprts,
    Can any one help me on this in which db table Valid to date:DATUB is Updates with reference to Change Number.
    Best Regards,
    Venkata Siva.
    Edited by: venkata siva reddy on Apr 27, 2011 9:28 PM

    Hi
    The Valid-to date will always be set to 31.12.9999. Instead you can get the valid-to date using the below logic.
    -> Get all the BOM from T415A table for the material number into T_T415A
    -->LOOP AT t_t415a.
        ON CHANGE OF t_t415a-matnr OR t_t415a-werks OR t_t415a-stlal.
          IF sy-tabix NE 1.
            MOVE : v_matnr TO t_dates-matnr,
                   v_werks TO t_dates-werks,
                   v_stlan TO t_dates-stlan,
                   v_datuv TO t_dates-datuv,
                   v_stlal  TO t_dates-stlal.
            IF v_matnr NE t_t415a-matnr.
              t_dates-datub = c_99991231.
            ELSE.
              t_dates-datub = t_t415a-datuv - 1.
            ENDIF.
            APPEND t_dates.
            CLEAR :
            v_matnr,
            v_werks,
            v_stlan,
            v_datuv,
            v_stlal.
          ENDIF.
        ENDON.
        v_matnr = t_t415a-matnr.
        v_werks = t_t415a-werks.
        v_stlan = t_t415a-stlan.
        v_datuv = t_t415a-datuv.
        v_stlal = t_t415a-stlal.
      ENDLOOP.
    Regards
    Dhurga

  • Valid to date for BOM Header and Item

    Hello everyone,
    I have been searching for "valid-to" date for BOM header and Items since several days but no luck ..
    I know we can see it using transactions cs11/cs03 etc. But i wish to know the table where they are stored. As I need to extract them to BW.
    Any help will be highly appreciated.
    Thanks in advance!
    Regards,
    Anuj

    Hi Anuj
    In table STPO,the field AEDAT gets updated only when a change number is used,otherwise the valid to date will be shown nil here.
    And also ref the link
    Problem finding Valid To Date or Change number to on BOM
    pavan

  • Valid to dates on KONH table not matching the dates in A* tables- SD pricin

    We have an issue in our KONH/A* tables. Please review the data below:
    A583: ( This is for a Z condition type ZCTR)
    MANDT KAPPL KSCHL  VKORGAU MATNR                DATBI      DATAB      KNUMH                                                                               
    028   V     ZCTR   0006    000000000000031886   03/31/2006 01/01/2006 0071519869
    028   V     ZCTR   0006    000000000000031886   06/30/2008 03/02/2008 0071519869
    KONH
    MANDT KNUMH  DATAB      DATBI    
    028   0071519869 01/01/2006 12/31/9999
    If you look in VK13, for this ZCTR record/material you will see the following dates.  We can see that two records have the same KNUMH , is this a SAP bug?
    Also what is the difference in dates in KONH and A* tables ? I see that the valid from dates match but the valid to date in KONH is the valid to date of the last record in the A table.                                                                           
    MANDT KAPPL KSCHL  VKORGAU MATNR                DATBI      DATAB      KNUMH                                                                               
    028   V     ZCTR   0006    000000000000031886   03/31/2006 01/01/2006 0071519869
    028   V     ZCTR   0006    000000000000031886   12/31/2007 03/13/2007 1032266853
    028   V     ZCTR   0006    000000000000031886   03/01/2008 01/01/2008 1061605348
    028   V     ZCTR   0006    000000000000031886   06/30/2008 03/02/2008 0071519869
    028   V     ZCTR   0006    000000000000031886   12/31/9999 07/01/2008 1093084511

    Thanks for putting so much thought into this, but I still fail to see the advantage/reason of maintaining the original dates in KONH if the new dates are prior to the original date ( in case of valid to). We always have the change log to determine the origibal dates with which the record was created.
    Thanks for all the responses.
    The duplicate KNUMH is causing the issue for us:
    A583: ( This is for a Z condition type ZCTR)
    MANDT KAPPL KSCHL VKORGAU MATNR DATBI DATAB KNUMH
    028 V ZCTR 0006 000000000000031886 03/31/2006 01/01/2006 0071519869
    028 V ZCTR 0006 000000000000031886 06/30/2008 03/02/2008 0071519869
    As you can see two records have the same KNUMH. We were trying to run archiving for condition records and came across an issue.
    As there is a duplication of KNUMH ( which is wrong) the program does not pick up the 2006 record . This is because it considers the 2008 record to be compared against the residency date and skips the older one too. We tried changing the validity dates of the 2008 record to an older date so that both are within the residency date. This is how the records looks now :
    028 V ZCTR 0006 000000000000031886 06/30/2005 03/02/2005 0071519869
    028 V ZCTR 0006 000000000000031886 03/31/2006 01/01/2006 0071519869
    KONH
    Cond.record no. Usage Table Application Condition type Valid From Valid To
    0071519869 A 583 V ZCTR 03/02/2005 12/31/9999
    Once we did this the archiving program was able to pick this record up.
    Has any one faced this issue before? Is this a known SAP issue ? I could not find any OSS for this.
    Edited by: harikrishnan balan on May 28, 2009 11:03 PM

  • Update valid-to date in BOM with ECN

    Hi,
    I'm trying to update the valid-to date in a BOM using an ECN number (e.g. i don't want it to be 12/31/999). I was wondering what the correct procedure was?
    1) what type of ECN to use? (Change Master or ECR; or do both work)
    2) if the BOM was already created without a change number, can you update the valid-to date later with an ECN?
    3) i checked the forums on this site and it says to use without release key (how does this work)?
    4) it seems when i delete a BOM item with an ECN it is gone forever..I just want those items to expire and a new one to be active. how do you do this?
    5) can i do all of the above in CS02?
    6) Also, how can i tell if ECN is active or not?
    Any logical steps on how to update the valid-to date in the BOM would be greatly appreciated. The current forum content doesn't seem to provide the correct steps.
    Thank you very much for your help.

    Dear Priya Rajaram,
    1.We can Use Change number with release key or without release key for
    Changing the material BOM.
    2.Use Change number with Release key for better control over the BOM to change
    the valid to date for the entire BOM or for few BOM items.
    3.Once when you use the change number and do the chnges for the material
    BOM,it becomes valid as per the valid from date of the Change number.
    4.For Eg I have created a Change number with Valid from date as 20.09.2007.
    Using this Change number I'm changing the BOM of A,whose components are
    say B - 1,
    C - 1,
    D - 1,
    Now using the Change number I'm deleting the item D and saving,so the previous
    BOM will be valid till 20.09.2007,and the new BOM be valid from 20.09.2007 i.e
    with items B & C alone.
    5.T codes For Change numbers are CC01,CC02,CC03.
    <u><b>Reward points if useful.</b></u>
    If any more query revert to Forums.
    Regards
    Mangal

  • Help reqd on Changing the Valid from "date"  for both BOM & Routing

    Hi all...
    Pls advise me how to do the changing of Valid from "date"....
    Is there any process in CC01 or ECM???....
    pls reply me in detail step format (step by step analysis)....
    I wrongly created in CS01 and CA01 as 05.10.2007 as my valid from date instead of 01.10.2007.....
    How to change to my actual one......
    I dont know how to change it exactly.....as im beginner in SAP...pls take this into consideration...and post ur replies imm.
    Pls reply me in detail....will be rewarded at the end while closing this issue.
    thanks & regards
    sankar

    Dear Sankarbabu,
    IF there's no setting for Date Check in OS54 - Engineering Change Management
    Control Data,then you can create a change number with past dates,and also to
    use the same one for changing BOM.
    Tell me one thing you are saying you want to use ECM.Was the earlier one
    created without BOM was created without an ECN?
    See already if you have created your BOM with an ECN,then remove the date
    check setting which I have mentioned in OS54.
    Now goto T code CC02 ,enter the Change number and give the valid from date as
    01.10.2007.
    After that check in CS03 whether this date(01.10.2007)is getting reflected or not.
    I'm sure this will solve your problem.
    Regards
    Mangal

  • Table for Valid To date field in C203 Tcode

    Let me know the table name for "Valid To Date" field in C203 transaction.
    Thanks,
    Angavai.E

    Hi Angavai,
    Check with table PLMW.
    Regards,
    Raghu

  • Table to find out the volume of data

    HI Experts,
    Is there any table to find  out the volume of data in the data targets(infocubes and DSO)
    Thanks & Regards,
    Prasad.

    Hey.  I am not aware of anything that can give you a flat list of providers and number of total records.  It would be a fairly simple program to write though. 
    But, you could just go the old school route and just lookup the number of entries on the active table for the DSOs.  Cube would be a bit different and would probably depend on what you really want to meassure but I guess the E table is a place to start.
    I also know there are some DB size summary tables that show you number of records per table.  One of those tables is DBSTATTORA (other similar tables exist).  But again it is at the actual table level and not a provider summary.  And I will not speak to how accurate the data is as I have not tried to validate.  I will say the FM in the link posted above actually just does a number of records select on whatever table you enter. 
    Thanks

  • How are valid-from and valid-to dates set in TRPROD table in APO during CIF

    First question:
    How are the valid-from and valid-to dates set in the APO TRPROD table?
    For example, if I activate a transportaion lane model on March 1, 2008, will the valid-from and valid-to in TRPROD be 20080301 and 99991231?
    Or are these dates defined in the model itself? Or in APO config somewhere?
    Next question:
    Suppose I rerun the model on May 1 2008 to add some records that didn't get added in the March 1 run.  But suppose I want to back-date the valid-from of these records to March 1, rather than use May 1 as the valid-from.
    Can this be done?
    Or is the valid-from always the date of the CIF that creates the TRPROD records?
    Please advise. 
    Thanks

    Hi Srinivas -
    Thanks very much for replying so quickly, but your response didn't answer the questions.
    Let me try again.
    1)
    If I run a CIF on March 1 2008 based on a model that will generate APO TLane data, will the TRPROD valid-from and valid-to get automatically set to 20080301 and 99991231?
    2) 
    If the answer to this question is yes, then is it also true that if I run a new set of records in on May 1, 2008 (no duplications with the original set), then the valid-from and valid-to dates will be 20080501 and 99991231.
    3)
    But if (1) and (2) are both true (if you answer them both "yes", then suppose I want the May 1 record set to have valid-from dates of March 1 (for example, if the May 1 record set includes records that didn't get included in the March 1 set due to an error in selection criteria).  How do I get the valid-from to be March 1 when I run the CIF on May 1?
    On the other hand, if (1) and (2) are NOT true, then how DO the two dates get set during a CIF ????
    Thanks
    djh

  • End valid to data of material BOM

    In the moment  that you create a new material BOM using transaction CS01, 
    have you any chance to introduce a date in the field " Valid to" ?
    Regards, Josu.

    Dear Josu,
    1.While creating the BOM,you can give a valid From date(A Future Date).
    2.The systems defaulty sets the valid to date as 31.12.9999.
    3.This can not be changed,or can be modified unless you use ECN.
    Regards
    Mangal

  • How to set the Valid-to-date (datub) of a BOM item

    Is there a way I can set the "Valid-to-date" of a BOM item?
    According to SAP documentation...
    Quote
    <i>"If you change a BOM using a change number, the system determines the valid-to date dynamically."</i>
    Unquote
    I want to "expire" a BOM item. Meaning I want to set the valid-to-date to a date in the past.
    Is this possible at all?
    Thanks for any input.
    Fred

    Ferry,
    Thanks for you reply.
    I do not see a field for the "Valid-to" date in the function module - CS_BOM_EXPL_MAT_V2. There is one for the "Valid-From" date called DATUV. But I would like to change the "Valid-from" date of the BOM item.
    Or is there another way to set the BOM item's valid-to date using this function module which I am missing?
    Fred

Maybe you are looking for

  • Implicit and explicit cursors

    i want to know when to it is recommended to use the implicit cursors (for rec in….) and when it is recommended to use explicit cursors(open cursors….)

  • Payroll implementation from legacy system - pl help

    Hi friends , we are using legecy system for Payroll and PA,OM,FI we are using SAP . Now we wanted to migrate to SAP Payroll . Please let me know how to do it? my question is How to send legacy data into payroll ?How long project will it take ? approx

  • Newly Created Sub-Directories Don't Have Parent Directory Permissions

    Hoping someone may be able to shed some light on this. Background: Running 10.4.11 as a file server on a PPC G5 in a small creative office. We have a handful of users accessing via AFP. No other services are running. I'm using Workgroup Manager as ad

  • Ducati Demo

    Does anyone know how to open the Ducati demo that comes on the demo disc? The two (what might be) project files are .stmp files and my Logic 8 can't import or open them. Also the video that comes with it already has the music and SFX on it. What am I

  • Screen saver not working with iDVD

    I am having a concern with my iDVD program. When I tell the iDVD to burn a disk-image it looks like everything is working. Note it takes many hours on a 1.25 Ghz G4. For some reason the screen saver and the energy saver for the screen will not kick i