Condition on posting Date

Hi Techis
I AM FACING A PROBLEM IN MY REPORT I WANT TO GIVE CONDITION ON IT_FINAL-DMBTR.
The condition is if document postiong date(it_final-budat) is > 30 days then it
should store in  it_final-thirty if postiong date is > 60 days it shpold b store in
it_final-sixty if if postiong date is > 90 then it should store at it_final-ninety .
Pls tell me hw can i do it.(pls tell with same example).
rewards for helpful ans.
Thanks
Santo..

Hi,
I think this should work for u.
if it_final-budat > 30.
         it_final-thirty = <value>
elseif it_final-budat > 60.
         it_final-sixty = <value>
elseif it_final-budat > 90.
         it_final-ninety =<value>.
endif.
Reward points if useful.
Thanks
Edited by: Himanshu Kanekar on Feb 5, 2008 10:59 AM

Similar Messages

  • Posting of cancelled Invoice after posting date is over

    Hello Experts,
    I am stuck up with a situation and as such seek your help.
    A invoice was generated and the subsequent accounting document was also cleared. Now after the posting date was over, someone cancelled the invoice by T.code VF11 and as expected it didnt get posted .The document flow showing is as per below :
    Order - open
    Invoice - completed
    Accounting Document - Cleared
    Cancel Invoice - Open
    Now, the business and their audit policies do not allow the client to cancel the invoice in back date ( within the posting period).
    What are the options do we have to tackle the situation.
    Joy

    The issue has been temporarily addressed by changing the posting date.
    However, now the client wants us to make an ABAP development so that no user is able to cancel the invoice after posting date is over. Now for that I have the following issues. Can someone please help me out in this.
    The basic process details I am following is as per below:
    For Transaction Code VF11 (i.e for Cancellation of Invoice) , when the invoice number which is subject to cancellation is provided, the System should search in VBRK table for the following :-
    1)The System will at first search whether the entry exists or not. If the Entry is not valid then it should give an message u201C Document xxxxx does not Existu201D.This is in line to the existing practice.
    2) If the Document number is valid then it will go to the billing date field and  will fetch the value from the VBRK table . Then it will match  whether the value fetched (i.e. this Invoice date)  is in present posting period or not. The system can find the posting period from the table V_T001B.
    a.If  the  Invoice date lies in the present posting period then the system will allow the cancellation document to be saved. This is in line to the existing process.
    b.If the Invoice date lies beyond the present posting period then the system will not allow to save the cancellation of the Invoice with a pop up message of u201C The Document number subject to cancellation do not lie within the present posting periodu201D .
    Now We have looked both the tables, from VBRK we will get Doc# and Billing date(FKDAT) but when we select Posting Date from table T001B( Permitted Posting Periods) there is some issue.
    1.  What will be the condition for selecting records from T001B table.Since there is multiple key fields
        RRCTY (Record Type) ,
        BUKRS (Posting Period Variant) ,
        MKOAR (Account Type or Masking)
        BKONT (To Account). 
    So, to get unique record what will be the value of this key fields. Is there any relationship with VBRK table ? 
    2.  Which field I have to consider as Posting Date or Period. Because there are many fields related to Posting period.

  • Posting date doubt - FI _GL extractor

    Hi friends,
    I have to load data from ods to cube.
    In the ods,the requests request date is :10.07.06 and update date:11.07.06.
    I have already loaded data with the selection condition,posting date till 30.06.2006.
    Now i have to load the remaining records.
    I don know how to give the selection date???
    The request in the ods is  init request and is updated using 0FI_GL_4.
    That init load was scheduled on 10.07.06.
    at 10.38.46.
    so what i guess is,till that time whatever doc has been posted in R/3 will be in the init request....(correct me if im wrong).
    And the init is finished in bw on 11.07.06.
    So do i need to use 01.07.06 to 11.07.06 as my selection option in the infopack???
    Regads
    ragu
    So to load data

    Hi Ragu,
    The posting date and the updated date that you find in the "manage" of the cube are different dates. You would need to load the data for the selection conidion 01.07 to 11.07 .
    Bye
    Dinesh

  • VAT should post based on PO date or GR date not based on MIRO posting date

    Hi,
    Based on posting date in Invoice(MIRO) & condition record validity period, VAT is calculated & posting on invoice posting.
    Condition record for VAT condition type with tax code(T9):
    01.01.2011 to 31.01.2011-------> 4%
    01.02.2011 to 28.02.2011------->12%
    01.03.2011 to 31.03.2011------->14.5%
    PO created and GR done on February & invoive done on March and syatem calculated VAT amount perfactly based on validity period maintained in condition recod and invoice posted.
    But requirement is  system should post invoice VAT amount as mentioned in the PO ( based on PO date) or GR date to post during Invoice posting in MIRO
    Regards,
    Biju K

    Hi,
    Any other input?
    Regards,
    Biju K

  • Exchange rate coefficient on the basis of latest posting date in invoice.

    Hi,
    I have one query on posting date(picking of exchange rate coefficient from TCURR table) in invoice verification.  Please help.
    Conditions are--
    vender and company code are not in same currencies(ex-USD and INR). exchange currencies are maintained perfectly on every month 1st ie co-efficients in TCURR table ie OB08
    Query---
    1.At the time of parking invoice suppose i enter the date 20th august and i have posted that invoice as parking. It is converting the local currency as per 8th month exchange rate.
    2.And at the time of final posting the invoice supose i posted that date as 10th September. Business wanted that converting the local currency as per 9th month exchange rate But now local currency is converting on the basis of initial entry of posting date ie 8th month only.
    Please advise and guide what configeration that i have to set for picking the exchange rate coefficient on the basis of latest posting date in invoice verification.
    Thanks & Regards,
    MadhuBabu.

    Hi
    I dont think it is possible as once you enter posting date while in parking invoice screen, on that date exchange rate will be calculated and it wil not be different at time of posting invoice. Instead of parking, you have to directly post with current posting period.
    Thanks

  • Invoice verification Invoice date,Posting date and Baseline Date

    Hi Sap Gurus
    Pls Tell Me in detail what Dates should be entered at MIRO transaction,
    Invoice date,Posting date and Baseline Date
    i presumed that the date on the Invoice slip will be Invoice date,
    But in the Invoice the Date is very long back, say a month Older,
    the month of Posting as Posting date, but any posting Date made in MIRO will be Paid after 2 or 3 months so in this case what should be the Posting date.
    at Base line date in the present company Senario the Discount on Vendor payment is literally valid for all the time , say
    In Invoice if the condition is 10% discount if paid in 30 days is given.
    but in actual sense the Vendor is paid 10% less even if he is paid after 4 or 6 months also, so in this case what should be the Entry in Baseline date
    another senario is the vendor has sent only one Invoice for 2 POs how can this be accomadated in SAP
    Pls suggest its Urgent,
    Age may have a Bar, But Points No Bar
    Thanks and Regards
    Sathish

    Hi
    LIV is nothing but You are getting Invoice from the Vendor for your PO   and GR.....and you are checking the Invoice for Price, Qty,Amount etc. by refering the PO  and posting the Invoice...
    Invoice Date : 
               The date of Vendor' Invoice...ie) Date at which the vendor Raised the invoice for his supply against your PO...
    Posting Date :
       The Date at which you actually Verifying Vendor's Invoice and doing the Posting...
    base line date :
        Generally the Posting Date...
    The Imp. of Baseline date is for eg)
    If in the Payment Terms if some conditions are maintained like say
    10% Discount for Payment With in 30 days, if
    PO created on 01.11.2007.
    GR done at 10.11.2007.
    Invoice slip Received at 30.11.2007 but having the Date on it as 20.11.2007...
    So as per your terms you will get 10% Discount if you make the payment on or  20.12.07....
    Here if you keep  inv. Date: 20.11.2007  and Posting Date : 30.11.2007  and Baseline Date as  30.11.2007 ( you cannot maintain baseline date earlier than  Posting date)....even though as per terms the you are  eligible for discount if you make the payment on or before 20.11.2007.....as per the system you are still eligible to get the Discount if you make payment on or 30.12.2007( since you have maintained baseline date as 30.11.2007)...
    this way Baseline date is Importane...
    Generally we use to maintain always Posting Date as Baseline date....
    It is advantageous..
    Reward if useful
    regards
    S.Baskaran

  • 2LIS_04_P_ARBPL - figures are grouped according to latest posting date!!

    We are trying to fill setup table for App 4 and afterwards when we extract the DS 2LIS_04_P_ARBPL we are getting figures clubbed together based on latest posting date
    for ex: a given production order and type, if AFRU table shows below entries:
    16.01.2012      1.5
    17.01.2012      1.0
    19.01.2012      0.2
    then in setup table we have only one row (figures are grouped and shown against the latest posting date!!
    19.01.2012    2.7
    what is the solution?

    Hi,
    Most of the times data won't fill in the base tables, because the reason is, at the time of data entrry by users, there are certain conditions , so until and un less all that conditions fullfill, then only all feilds will fill in the base tables. I faced the same problem for 2lis_04_p_matnr datasource, I'm not getting Batch, so I enhaced teh datasource. So better add ZZ feild to datasource and enhace the ds based on AFUM table (Based on the process order)
    Thanks
    Reddy

  • Posting Date in 2LIS_04_P_ARBPL not always filled

    Who knows a solution to the following issue:
    The posting date (BUDAT) is used for assigning production order data (work center view) extracted with 2LIS_04_P_ARBPL to reporting periods in BW reporting.
    When testing the extraction with 2LIS_04_P_ARBPL, the field "BUDAT" is only rarely filled. (AFRU-BUDAT is filled for the concerned orders). Therefore period reporting is not possible.
    What could be the reason for the missing BUDAT, i.e. when does the extract structure MC04P_0ARB  provide a posting date? What are the conditions which need to be fulfilled in ECC system before extraction?
    Any hint for resolving the issue will be appreciated!
    Edited by: Elisabeth Liberda on Oct 9, 2008 2:39 PM

    Hi,
    Most of the times data won't fill in the base tables, because the reason is, at the time of data entrry by users, there are certain conditions , so until and un less all that conditions fullfill, then only all feilds will fill in the base tables. I faced the same problem for 2lis_04_p_matnr datasource, I'm not getting Batch, so I enhaced teh datasource. So better add ZZ feild to datasource and enhace the ds based on AFUM table (Based on the process order)
    Thanks
    Reddy

  • Cash flow start date and first posting date in REFX-RECN contract

    Hi,
    While reviewing old contracts, I have noticed that in contracts where first posting date is mentioned,  the cash flow start date is not editable in contract change screen.  In contracts where first posting date is not mentioned, the cash flow start date is editable in the change screen.
    Is this standard system behaviour?  Because i have read in the forum that cash flow start date is not editable after first posting of the conditions.
    I tried to change the field status of cash flow start date through RECACUST,  but despite keeping the field status as display,  the cash flow start date remains editable.
    Please help on how to make the field status not editable.
    sadhana

    Hi Sidhharth,
    Thanks a lot for your immediate reply.
    I still have one query.  You have written that
    Where First posting date is not updated it indicates that posting of the contract is yet to be done,not a single posting has been performed hence Cashflow date is editable.
    This means first posting date is always filled up after condition is posted.  but in our system i find that the date is blank and greyed out even after the 1st posting.
    Could it be due to having several conditions in the contract - some with one time posting, some with monthly posting?  eg.most of our contracts have atleast two contions - one for deposit which is one time payment, one for rent.  the first posting date is updated in individual condition for rent in conditions tab  but first posting date in terms tab is blank.     But even in single condition contracts, the first posting date is not getting updated in term tab (the field gets greyout out once contract is activated)
    Thanks once again.
    Sadhana.

  • MB_MIGO_BADI. Post document. Posting date?

    Hi Guys,
    I need your help. I'm using MB_MIGO_BADI, method post_document to change posting date in header. After user changed the posting date I need to check some conditions and if they are fulfilled I want to change this posting date with sending the W-message that posting date was changed. After this user needs to press post again and GR will be posted. My problem is that I cannot change the posting date in is_mkpf structure. In method PAI_HEADER I saved posting date changed by user and now I'm trying to use it to update is_mkpf
    field-symbols: <fs> type mkpf.
    if post_fy > del_fy.
    concatenate cur_fy '0831' into post_date.
    assign is_mkpf to <fs>.
    <fs>-budat = post_date.
    message w895(m7) with 'Posting date changed. Post again.'.
    but I have runtime error "overwriting protected filed". What I need to do to change the posting date with a new value?
    Thanks a lot.

    Hi,
    Create an implementation of this badi in SE19.
    Go to tcode SE19. Give the z implementation name. In the definition name of give MB_MIGO_BADI.
    If the z-fields are in table MSEG I hope it will be available to you in IT_MSEG table as well in the badi.
    Write the code for populating the fields. Save and Activate the badi implementation.
    KR Jaideep,

  • Customers whose latest posting date is older than 2 years

    How to find out the Latest posting date for a customer in the report from the list of Posting date available.
    Sorting option may not be a right Option as i need to create a condition on the formula(Latest posting date(4) -Sy-datum(4) greater than 2 years)
    Please suggest me

    Please let me know for any inputs

  • HttpServletRequest getReader read part of the post data

    Hi all,
    HttpServletRequest getReader read part of the post data (even though the conten length is bigger).
    It stops after 48k (49,152 bytes)
    int sizeOfBuffer = 100;
    char[] cbuf = new char[sizeOfBuffer];
    StringBuffer inputBuffer = new StringBuffer();
    BufferedReader reader = request.getReader();
    int chars = 0;
    while ((chars = reader.read(cbuf)) >= 0) {
    inputBuffer.append(cbuf, 0, chars);
    reader.close();
    inputBuffer includes parts of the data??
    Can anyone help me to know what is wrong??
    Thanks,
    Lior.

    Hi Jakub,
    Yes, you can query TDM files for samples with certain specifications.  Take a look at this Tutorial Introduction to LabVIEW Data Storage VIs.  The section on Query Conditions demonstrates how to look for select samples using the Data Storage express VIs. 
    I hope this is helpful.  Please post if you have further questions!
    Cheers,
    Megan B.
    Applications Engineer
    National Instruments

  • Transformation routine used for GR as at posting date (0GR_VAL_PD KF)

    HI all,
              I have problem in 2lis_02_scl transformation Routine where i am not getting corect data for GR as at posting date (0GR_Val_pd) KF.
    Can anyone tell me what routine shall i try to use.
    Thanks n Regards,
    Gaurav Sekhri

    HI Gaurav,
    The code which you have given does not specify the desired result which you want. Also one more thing you have written a code as follows:
    IF ( SOURCE_FIELDS-PROCESSKEY = '002' or  "WE-Wert
    SOURCE_FIELDS-PROCESSKEY = '012' or
    SOURCE_FIELDS-PROCESSKEY = '022' )
    AND SOURCE_FIELDS-BWAPPLNM EQ 'MM'.
    RESULT = SOURCE_FIELDS-CPPVLC.
    endif.
    What is the above condition does not satisfy. you need to specify a RESULT if the above condition is not met like.
    IF ( SOURCE_FIELDS-PROCESSKEY = '002' or "WE-Wert
    SOURCE_FIELDS-PROCESSKEY = '012' or
    SOURCE_FIELDS-PROCESSKEY = '022' )
    AND SOURCE_FIELDS-BWAPPLNM EQ 'MM'.
    RESULT = SOURCE_FIELDS-CPPVLC.
    ELSE.
    REULT  = " Your desired result if condition is not met".
    endif.
    Hope it helps.
    Regards,
    Satyam

  • Posting date for CM rebates via Extended rebate processing

    Hi,
    we have the following scenarios for an extended rebate processing:
    1> rebate agreemetn validity period  = upto Sept 30 only
    2> Settlement Date = Oct 5
    3> CM posting date of the rebate is Sept 30
    How is it possible to make the CM posting date to the current date and not the valid to date?

    Hi Mark,
    I'm not sure, but I understand that you want to change the value of condition while you are running it. Check BADI SD_ENH_REBATES, method V13A_VERIFICATION, I see that you can change I_E_KONP. I am never use it, only I know it, so I don't tell you what kind of troubles you can find.
    I hope this helps you
    Regards
    Eduardo

  • FORM_TRIGGER_FAILUER does a Rollback of posted data

    Hi
    How can i stop execution a trigger code with RAISE FORM_TRIGGER_FAILURE but not to ROLLBACK the posted data?
    I posted the data in a second form which is called via CALL_FORM from the start-form which raises now the FORM_TRIGGER_FAILURE.
    Before the second (called) form was exited a POST was made.
    Many Thanks in advance
    Martin Koeb

    form trigger (e.g.,on-insert) failure will rollback the changes.
    see the doc below:
    Once a trigger fires, it can end with either success or failure. A trigger fails when it raises an unhandled exception. When this occurs, Form Builder aborts the trigger and performs the appropriate post-failure processing. The specific processing that Form Builder performs depends on the type of trigger that failed.
    The following table shows the post-failure processing for three types of triggers:
    Trigger Type     Result of Trigger Failure
    Key - * (any key trigger)     Trigger failure is ignored.
    Pre-Item     Form Builder attempts to return input focus to the source item.
    On-Insert     Form Builder rolls back all database changes posted by the current commit process and attempts to navigate to the first item in the current record of the block in error.
    When-Validate-Item     Item validation fails. Form Builder sets the error location. When possible, input focus is returned to the source item.
    When a trigger fails, Form Builder tries to undo any conditions that would cause a runtime error as a result of the trigger's failure.
    For example, the Pre-Item trigger fires when Form Builder attempts to move the input focus from a source item to a target item. When a Pre-Item trigger fails, navigation cannot be completed successfully, so Form Builder returns the input focus to the source item.
    Similarly, when a commit processing trigger such as On-Insert fails, Form Builder performs the appropriate rollback to ensure data integrity.

Maybe you are looking for

  • Batch process to add Javascript to PDF files

    Hi All, I have written a small piece of Javascript for my PDF files. The idea is to add a date stamp to each page of the document before printing. To do this, I have added the following code to the "Document Will Print" action: for (var pageNumber =

  • Excel 2002 displays blank sheet when open a report in R/3

    Hi, I am having a problem in the SAP R/3 and office 2002 integration . When i open a report in R/3 and try to display the report using excel view ( Environment -> Options -> select Microsoft Excel for Office integration.). I get a blank excel sheet.

  • Could not create header data delivery 0180000229, system ERP_800

    Hi EWM Gurus, Kinldy help us in resolving the below issue . When we save the inbound delivery in ERP system , we get the below error in SCM(EWM) system. System is not creating the inbound delviery notification in SCM due to this error. ERRORS 1.Could

  • Is iPhone 6 using TLC type?

    What i heard is iPhone 6 using Samsung TLC type. These days, my Korean IT community found some defect on Samsung 840 EVO SSD which is using TLC type I wonder iPhone 6 is safe from that defect What they found is this. They found reading speed is extre

  • Will Solaris 8 binary run on Solaris 2.6?

    Hi! If a C++ application is compiled on Solaris 8, would it run on Solaris 2.6? Are there any flags that need to be set to get binary compatibility across OS versions? Are the dynamic libraries (Cstd, Crun etc.) binary compatible? Any responses would