Need to add days to date on a "batch report in documents structure" report

I am trying to create an expiration date based on  UDF "shelflife" formatted as number for the number of days a product has before it expries ie. 120 days. I have a UDF "expdate" formated as date. I am trying to create a date based on the receive date from purchasing. The basic math would be as follows:
[receiving date]+[shelflife]=[expdate]. I need [expdate] to show up on the report. All UDF are on the Item master.
Thanks for the help in advance. I am new to SAP. I am assuming formatted search. Is there a e-learning on this?

I am believing you are talking about using this query as a Formatted search on the Expiration Field when you creating the Batches either in the Goods Receipt / Production Receipt / AP Invoice (whenever you bring this batched managed Item into inventory)
The query I have given you is supposed to be link to the Expiration Date field on the Batches window where you enter the Batch number, quantity, etc.  The admission date is one of the columns which should be visible on the screen since my query uses this date for calculating the expiration date.
The T0.ReOrderQty field in my query should be substituted by the user field you have on the Item Master for shelf life (I believe this is in days)
Here is the link for formatted search PDF 
https://websmp105.sap-ag.de/~sapidb/011000358700006374892006E/FMS.pdf
Let me know
Suda

Similar Messages

  • Add-days-to-date  throwing error in formcalc

       I am receiving an error of Error: Accessor 'add' is unknow.
    Any help is much appreciated.
    Justin    

    form1.page2.invoiceTable.row1.boosterDate1.rawValue = add-days-to-date(form1.page2.page2Date,4)
    The form1.page2.page2Date is copying a cell that has:
    $.rawValue = num2date(Date(), "MM/DD/YYYY")
    I'm not sure where I'm going wrong here.  I've also tried using javascript and can't get that to work either.  I am trying to take a date and add days to it dynamically.  So user selects "weeks" from a dropdown and "years" from a dropdown and from that point I want to add that amount of days to today's date.  I can get the math to work but for the life of me I can't figure out how to make the Date() function work to add some days to it.
    Justin

  • Add the " expired date" in the batch determination

    Dear Guru
    we are to do the batch determination in the sales order,
    I want to know is it possible to add the " expired date" in the "batch determination" ?
    Thanks.

    If you want to add the Expiry Date then you can maintain the same in Batch Characteristics as Expired Date while creation of Batch.
    Also maintain in the Material Master Record > Plant Date / Storage 1 > Shelf Life Data  - Min. Rem. Shelf Life & Total Shelf Life.
    Best Regards,
    Ankur

  • Add Days To Date

    Hi Everyone,
    I have been reading about adding an onchange event to a field in a form. My dilemma is below;
    I have a form where there is a date field that shows the end date of something. I want to auto populate another field with that same end date plus a number of days. I can already using onchange=$x('P7_DEADLINE').value=P7_ENDDATE.value to populate the deadline field with the exact date entered in the enddate field, but I need to add thirty days to the ENDDATE to create the DEADLINE date.
    Any slick and easy ideas?
    Thanks from a newbie...
    Derek

    Hi,
    Add javascript to page HTML header
    <script type="text/javascript">
    function setDeadline(pStart,pAddDays,pSetItem){
      var d = new Date(pStart);
      d.setDate(d.getDate()+pAddDays);
      $x_Value(pSetItem, (d.getMonth()+1)+"/"+d.getDate()+"/"+d.getFullYear());
    </script>And then item P7_ENDDATE HTML Form Element Attributes
    onchange="setDeadline(this.value,30,'P7_DEADLINE')"In this example date format need to be mm/dd/yyyy
    Br,Jari

  • JS scripted needed to add custom text plus filename to file info in document title

    Would greatly appreciate any help with this one...
    JS script to add custom text plus filename to file info in document title
    many thanks

    Super :O)
    I have a folder of say 50 images and I want to run a JS script batch
    example in the document title :  image Nr 81205
    custom text is "image Nr" +  file name "81205"
    activeDocument.info.title =" image Nr" + decodeURI(activeDocument.name);
    would this be correct without seening the file ext
    many thanks

  • Need to export customer master data in a batch input file

    Hello all,
    I'm searching for a solution to export customer master data out of a R/3 system (Release 470).
    The challenge is that the file must have the same structure like the file for batch input of customer master data (import file of the program RFBIDE00).
    So, has anybody an idea, if there is a standard tool to get such a file? Or has anybody developed a report creating this structure by his own?
    Thanks for your help,
    kind regards,
    Dietmar

    Hi,
              I have also come across the same problem as above. There is a standard program RFBIDET0 which has to be customized to get the file which can be uploaded to RFBIDE00. Do anybody come across this kind of problem before and have  a program already. It will be of great help, if you can forward the program or guide.
    Regards,
    Vishnu Priya

  • UDF: add day to date

    Hi all,
    I'm currently working with IDoc INVOIC02, and while obtaining a date value (E1EDK03-DATUM) i have to sum one day, because for some reason they don't want that the idoc date creation is the same as other date that i map
    The only problem is not i'm not really familiar with Java functions
    - Could you help me by providing an UDF function that obtains a date (idoc format, YYYYMMDD) add 1 day to that date?
    Thanks!!

    Hi sudhir, many thanks for and your response!! (and the mail too!)
    but the problem with graphical mapping is that the map is too big! my map is more than less as your capture, but with context changes so i have to ask many times the same
    let me explain:
    1º if qualf = 002 (obtain date) and if qualf = 012 (obtain the corresponding date) are equal then map qualf012 - date+1 (i have the udf to do that in this post), if not map the date with qualf012
    2º but sometimes qualf = 002 could not come, so i have to check that first (if qualf = 012 is empty i dont need to check because the map is 1.1 so it would fail anyway)
    3º aditionally, after the big IF to check if they're equal, i have to map for if/else the qualf corresponding, but i have to check context AGAIN! because if not i'm getting the wrong qualf (the first one found)
    so i was wondering if i could just do a udf that compares the two dates, and after that sum accordingly!
    here's your example: http://img395.imageshack.us/my.php?image=getattachmentom5.jpg
    here's my map: http://img60.imageshack.us/my.php?image=mymaplz6.jpg
    if i don't do context change all the times i lost the real value!
    the problem is really solved already but i did wanted to simplify that, anyway if that's not possible i maybe left it like it's done now..

  • Help in add days in Date

    i m working with SAP B1 SP01 and i want to put delivery date in Purchase order with the help of formated search which will get date from docdate and add item lead time in this date. i have write a query for this it works well in sql server but gives error in formated search plz do help me
    Select $[OPOR.docdate] + (select leadtime from oitm where itemcode='FL0001')
    Regards
    Rahil Hassan

    Try this:
    Select dateadd(d,(select leadtime from oitm where itemcode='FL0001'),$[OPOR.DocDate])

  • Need help in copying Invoice date to lower level item in Sales order report

    Hello Experts,
    I am debugging into one Sales order report.I need little bit help.The report is displaying Invoice Date for
    Sales order Billing documents for Higher item in Bill of Material Structures.But as per user requirement,
    I am supposed to show the Invoice date for lower level items also.The field for Higher level item is 'UEPOS'.
    I want to copy the Invoice date for Higher level item to lower level item. Can you please guide me in the logic?
    Thanking you in anticipation.
    Best Regards,
    Harish

    Hi BreakPoint,
    Thanks for the information.
    I have applied the same way but it is showing only lower line items now.
    Invoice dates for Higher level items are not there.
    I am pasting the code here which I have applied.
    Then you can give me more guidence.
    This is to be done only for 'ZREP' sales orders.
    if w_vbak-auart EQ 'ZREP' and w_vbak-uepos is not INITIAL.
                          read table t_final into w_final_ZREP with key vbeln = w_vbak-vbeln
                                                                        posnr = w_vbak-uepos.
                             w_final-erdat_i = w_final_ZREP-erdat_i.
                             else.
                    if w_vbak-auart EQ 'ZREP' and w_vbak-uepos is INITIAL.
                      w_final-erdat_i = w_invdate.
                    endif.
                    endif.
    Can you please sugest me changes here?
    Best Regards,
    Harish
    Edited by: joshihaa on Jul 13, 2010 6:22 PM

  • Need to check PO Posting date at schedule line and material document level

    HI All,
    I am facing an issue to reconciliation data with ECC.
    Issue :
    we have a PO,item,schedule line with delivery date, scheduled qty and quantity received from EKET table
    we have PO,item,Material document,movement type,posting date with quantity received from EKBE table
    the standard extractor 2LIS_02_SGR is providing data at
    PO,item,schedule line,material document,movement,posting date
    as if now we are using this extractor to get the posting date at schedule line level.
    can some one let me know how exacty the EKET and EKBE table are joined ???

    Hi,
    The data for the datasource 2lis_02_sgr can be compared in ECC using ME80FN transaction.
    Please check the below Link for all the details reragrding 2LIS_02_SGR datasource.
    [http://help.sap.com/saphelp_dm40/helpdata/en/69/063f3f2615e07fe10000000a114084/content.htm]
    Hope this helps..
    Thanks,
    Nagarjuna

  • How i can add days to a date using sql

    Hi.
    Sorry the question, it's a very simple question, but i'm not finding the answer to that.
    I need some function that act just like the function add_months, but instead adding months, it need to add days to a date.
    I've used the function add_days once, but now, my select returns an error code when i try to use that function.
    My Oracle version is Oracle8 8.0.5.0.0
    runnig under Linux.
    Thanks,
    Klaus Paul

    To add days just do date arthmetic. Ex
    SQL> select sysdate+10 from dual;
    SYSDATE+1
    05-MAR-00
    add_days is a not Oracle date function.
    null

  • Adding days of date

    Dear all
    Using form6i and run in c\s
    is it possible to add days of date.. example the format of date is 02-mar-07
    in text item i enter 3 then the date will become 05-mar-07. it depends what number will be entered in textitem and it will add to the days of date..
    |Another example is: date format is 29-mar-07.. i entered 4 in textitem the date will become 02-apr-07 ...
    Could anyone help me to do this or is there any ideas must simplest than this that can add a days of a date plz help me need in school requirements...

    Say, you have two items
    b_day.txt_refdate - the refernce date.
    b_day.txt_inc - the number which should b added.
    b_day.txt_result - to store the result.
    in WHEN-VALIDATE-ITEM of b_day.txt_inc, write
    begin
    b_day.txt_result := to_date(b_day.txt_refdate + b_day.txt_inc,'dd-mon-rrrr');
    end;

  • How to add a new data type of oracle to SIM(7.0)

    Hi........
    I need to add a new data type(CLOB) to SIM of oracle .can anyone tell me how to modify or add this new data type.
    Any pointers to this will be highly appriciated.......
    thax in advance...

    Hi,
    Easiest way is to download the table eg into an Excel table (if possible) or text table. Drop the table from the database. Build your table with the new key field. Build the database table again and fill it.
    You can do it also over the database into a new table. Drop the old one. Build the enhanced one and fill it. Afterwards drop your (temporary) table.
    Maybe there are other ways, but this works.
    Success,
    Rob

  • I need to add fields in additional fields B the sales order line item

    i  need to add fields in additional fields B beside the field (icon_val_quantity_ structure) in the sales order line item, How to achicve this? please help me..

    Please fined the below solution for achieving your requirement.
    1. Add new filed "B" in table VBAP.
      a) T.code  SE11 --> Enter structure name VBAP --> display
      b) Goto --> Append Structure --> Enter Structure name and new field "B"
    2. request your basis team and take the access key for modification of stabdard program SAPMV45A & Screen: 8459
       a) After receiving access key for standard program then got o SE51 --> enter program name  SAPMV45A & Screen: 8459
       b) click change Button
       c) click layout button
       d) add new field "B" below of the screen (F6 -> enter table name : VBAP --> get from dictionary --> selet new field and past in screen )
    3) write below code in flow logic
    PROCESS BEFORE OUTPUT.
                               Verarbeitung vor der Ausgabe
      MODULE ZZPB_INITIALIZE_8459.
      MODULE ZZPB_OUTPUT_8459.
    PROCESS AFTER INPUT.
      CHAIN.
        FIELD VBAP-New field name "B".
        FIELD ZVC_SALES_EXPORT-ZZAPLHENKO.
      ENDCHAIN.
      MODULE ZZPA_OUTPUT_8459.
    4. functin Module code
    module ZZPB_OUTPUT_8459 output.
      Data: l_v_actve type ale_active,
            l_v_ttyp  type c.
      Data: l_v_tragr type tragr.
    l_v_ttyp = t180-trtyp.
      if l_v_actve is initial.
        l_v_ttyp = 'A'.
      endif.
      LOOP AT SCREEN.
        CASE l_v_ttyp.
          WHEN 'A' OR 'C'.
            SCREEN-INPUT = 0.
        ENDCASE.
      ENDLOOP.

  • How to add more summary data in the MIP of Compensation workbench

    Hi all,
    In the MIP (incentive plan) of the compensation workbench, we need to add more summary data in the summary section. I checked that all the summary data in that section are stored in the table 'ben_cwb_summary'.
    Even we can change the VIEW object for that page (using extension), we can't retrieve it because the new summary data/information we need to add are not stored in the table 'ben_cwb_summary'. We need to write our query to summerize data.
    How to implement it?
    Thanks in advanced!
    Jane

    faiz2000 wrote:
    > How to add more one record in the same time?
    >
    > Please I need your help to add more one record in the
    same time, how can I do
    > that?
    >
    > I have only one text field and the value it is linked
    from other table, if
    > user he bushes bottoms the all data it will copy it to
    new record:
    >
    > Ex.: <input name="textfield" type="text"
    >
    value="<%=(Recordset1.Fields.Item("webgroup").Value)%>">
    >
    >
    Use "Repeat Region"
    Mick

Maybe you are looking for