Query for checking overdue payments and trigger approval process

Hi All
I need a query to be executed when a user is tries to add a AR Delivery Document for a customer with invoices that have overdue DocDueDates.
Regards
Bongani

You probably want to check overdue dates against closed and canceled items, too:
(This allows a zero dollar document to go through, for repairs or replacements)
SELECT DISTINCT 'TRUE' FROM DBO.OINV T0
WHERE T0.[DocStatus] = N'O' AND T0.[CANCELED] = N'N' AND ($[$22.0.Number]) > 0
AND T0.CardCode = ($[$4.0.0])  AND T0.[DocDueDate] < GETDATE()

Similar Messages

  • Microsoft Query for Office 2013 Home and Business

    Where can I get Microsoft Query for Office 2013 Home and Business version?  I have used it for years on my old XP machine with Office 2003.
    Thank you, Sue

    Hi,
    You seem got an error like "Microsoft query could not be started because it isn’t installed" when you used it. 
    It may be not installed yet. We can go to "Control Panel\All Control Panel Items\Programs and Features\Office 2013 Home and Business\change\Microsoft tools\MS query" and check if it is installed/enabled.
    If it is not installed, please use the Install CD/ full installation copy to reinstall it.
    http://social.technet.microsoft.com/Forums/office/en-US/eb7bfe7d-8fa4-4faf-8563-13ae8b04346d/microsoft-query-could-not-be-started-because-it-isnt-installed?forum=excel (It
    also applies to Excel 2013)
    Regards,
    George Zhao
    TechNet Community Support

  • Adhoc query for Off cycle Payments(infotype 0267)

    Dear All,
    I have a rquirement to create a query for off cycle payments infotype(0267).
    It should show the payment done for each wage type.
    Can we pick the data from PC_payresult from table RT - Results Table.
    If yes, please let me know the process and if not, is there any other way to get the splits of offcycle payment.
    Regards,
    Prasad.

    Hi All,
    Do any one know how to create this query?
    Do we have any standard reports regarding the splits of offcycle payment infotype(0267)..
    Regards,
    Prasad.

  • What is FCHU Create reference for check from payment document?

    Hi,
    I need some help on this T-code FCHU Create reference for check from payment document.
    1) I've post check payment. Do I need to do anything on FCHU, before I review the check register FCHN?
    2) When we should use this t-code FCHU?
    3) What is the purpose of this T-code FCHU?
    Please clarify my doubts. Please provide me step by step on this if possible. Thanks

    Hi,
        all check entries are ... report from table of list ... Issued Checks FCHU - Create reference for check.
        FCHU    Create Reference for Check .(RFCHKU00) to transfer the check number into the invoice document.
    to transfer check# to field Assignment, Reference or Reference 3.
    Exp:Step 1 - Go to ta F110 and get House Bank
    Account ID
    Step 2 - Run programm FCHU
    Regards
    Sridhar

  • Customize Alert messages for checking duplicate value and Success alert

    Hi All,
    I want to show two alert against the same "Submit" button to--
    1. Alert messages for checking duplicate value and show the Duplicate value found alert and
    2. Success Alert if the form is success to commit and no duplicate value found.
    I did all thing but when alert-1 shows and i pressed the ok button of the alert then the second alert also shows which i don't want to show.
    Which i can do in this issue? Have there anyone to help me!
    Arif

    Hi Manu,
    I have placed the following code
    1. against the Submit button--
    if error_code=40508 then
         commit_form;
    elsif :USERDELETION.CANCELLATION_USERID is not null then
    do_key('COMMIT_FORM');
    else null;
    end if;
    2. Code against the key-commit trigger in the form level--
    commit_form;
    DECLARE
    vAlert NUMBER;
    BEGIN
    set_alert_property('ALERT_TO_VERIFY',ALERT_MESSAGE_TEXT, 'Your Form has successfully submitted and your Reference id is '||:USERDELETION.REF_NO);
    vAlert:=SHOW_ALERT('ALERT_TO_VERIFY');
    END;
    3. Code against the on-error trigger in the form level--
    DECLARE
    vAlert NUMBER;
    BEGIN
         if ERROR_CODE = 40508 then
    set_alert_property('ERROR_ALERT',ALERT_MESSAGE_TEXT, 'This user deletion request has already submitted of the user named '||'"'||:USERDELETION.FULLNAME||'"');
    vAlert:=SHOW_ALERT('ERROR_ALERT');
    elsif
              ERROR_CODE = 40202 then
    set_alert_property('ERROR_ALERT',ALERT_MESSAGE_TEXT, 'Existing userid must be filled-up !');
    vAlert:=SHOW_ALERT('ERROR_ALERT');
    else
                   message(error_type||to_char(error_text)||': '||error_text);
    end if;
    END;
    If there have any confusion, please ask me.
    Arif

  • QUERY FOR CUSTOMERS FULL DEBIT AND CREDIT WITH CLOSING BALANCE

    Hi Friends,
       I need query for CUSTOMERS FULL DEBIT AND CREDIT WITH CLOSING BALANCE for selection criteria from date and to date.
       I know the Trial Balance Report will sort out this issue... but i need routeday wise report
    1. Business Partner Master Data - i created one UDF field called U_Routeday (MONDAY, TUESDAY, WEDNESDAY,THURSDAY,FRIDAY)
    2. The query should be like selection criteria 
                                  - Routeday [%0]
                                  - Posting Date [%1]                           
                                  - Posting Date [%2]
    CardCode
    Debit
    Credit
    Balance
    D10503
    25031.50
    24711.50
    2962.00
    D10641
    5466.00
    7460.00
    285.00
    D10642
    2866.00
    142.00
    give any helpful query ASAP... Thanks in advance

    Hi,
    Try this query:
    Declare
    @fromdate as datetime
    Declare
    @Todate as datetime
    Declare
    @Code as nvarchar(25)
    set
    @fromdate = ( select min(Ta.[RefDate]) from OJDT ta where
    Ta.[RefDate] >= [%0])
    set
    @Todate = ( select max(Tb.[RefDate]) from OJDT tb where Tb.[RefDate]
    <= [%1])
    set
    @code = (select max(Tc.[ShortName]) from JDT1 tC where Tc.[ShortName]
    = [%2])
    SELECT
    [Name] as AcctName, [Jan]= sum([1]), [Feb]= sum([2]), [Mar]=
    sum([3]), [Apr]= sum([4]),  [May]= sum([5]), [June]= sum([6]),
    [July]= sum([7]), [Aug]= sum([8]), [Sept]= sum([9]), [Oct]=
    sum([10]), [Nov]= sum([11]), [Dec]= sum([12]), total = sum
    (isnull([1],0)+ isnull([2],0) + isnull([3],0) + isnull([4],0) +
    isnull([5],0) + isnull([6],0) + isnull([7],0) + isnull([8],0) +
    isnull([9],0)+ isnull([10],0) + isnull([11],0) + isnull([12],0))
    from
    (SELECT
    T0.[ShortName] as Name, sum(T0.[Debit]-T0.[Credit]) as T,
    month(T2.[RefDate]) as month FROM JDT1 T0  INNER JOIN OACT T1 ON
    T0.Account = T1.AcctCode INNER JOIN OJDT T2 ON T0.TransId =
    T2.TransId WHERE T2.[RefDate] between @fromdate and @todate and
    T0.[ShortName]  = @code  GROUP BY T0.[ShortName],T2.[RefDate] ) S
    Pivot
    (sum(T)
    For  Month IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12])) P
    group
    by [Name],[1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12]
    Let me know your result.
    Thanks & Regards,
    Nagarajan

  • Query for getting all function and procedure inside the packages

    hi All
    Please provide me Query for getting all function and procedure inside the packages
    thanks

    As Todd said, you can use user_arguments data dictionary or you can join user_objects and user_procedures like below to get the name of the packaged function and procedure names.
    If you are looking for the packaged procedures and functions source then use user_source data dictionary
    select a.object_name,a.procedure_name from user_procedures a,
                  user_objects b
    where a.object_name is not null
    and a.procedure_name is not null
    and b.object_type='PACKAGE'        
    and a.object_name=b.object_name

  • When I use update software from my mobile it take long time for checking update software and no thing happened to update my IOS software

    When I use update software from my mobile it take long time for checking update software and no thing happened to update my IOS software

    Servers have been swamped. Keep trying and be patient. Wait a few days.

  • Sales Order VA01 - "No control data for checking group 04 and checking rule

    Dear Gurus,
    When saving a sales order in VA01, I get the following message: "No control data for checking group 04 and checking rule A"
    Can anyone explain to me what that means?
    How can I correct this error?
    Regards
    Chris

    Check this thread
    [Re: Process Order Material availability check error|Re: Process Order Material availability check error;
    thanks
    G. Lakshmipathi

  • No control data maintained for checking group ZI and checking rule A

    Dear all,
                   When i do the availability check in the sales order i got the message as  No control data maintained for checking group ZI and checking rule A and finally availability check was not carried out, I check all the configuration under the sd-availabilitycheck and i maintained in material master also..........
    Please give me the solution
    Best Regards ,
    Kumar

    Hi,
    Did u maintain the scope of availability check like incluke reqts,planned reqts, purchase requisitions, production order, sales reqts,delivery reqts etc.
    apart from that you have to put check(Tick) mark in Requirment class and scheduleline categorie
    Then u have to maintain in material master individual requirmentss or daily requirments
    checking rule like A,B or if its consignment AW if it is returnable packaging AV etc(ImgS&D-Basicfunctions-Availabiltycheck&Tor---availability check aginst ATP)
    Then Total summarized daily reqts or summarized individual requts
    Plz check above all setting then u will get clear idea.
    Regards,
    Murthy

  • Trigger approval process after adding draft through DI API

    FROM SDK:
    The ApprovalTemplatesService doesn't trigger the approval process for objects that were added through the DI API
    I add a Draft document through the DI API, and the approval process doens't trigger.
    (no record added in OWDD and WDD1)
    How to make it happens ?
    Thank you

    Hello Nicola,
    Exactly what product are you using?
    What version of that product?
    I believe this question is in the incorrect forum, but I need this information to be able to point you in the right direction.
    Also in the future, do not cross post questions to multiple forums as that is against the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]
    Jason

  • Query to check BP Payment terms and Document Payment terms

    Hi All,
    Can any one help me to create an approval query to check the BP payment terms and Document Payment terms are same or not?
    Normally we change our BP payment terms regularly as per the agreements between Customer and us.
    but when we copy any previous document into invoice it calculate the Due date as per previous payment terms. so we need an query to check wether the BP payment terms and document Payment terms are same or not? if it is different they it should ask for authorization from manager or else the document should be saved.
    Thanks in Advance,
    Prachi.

    Hi
    I will test this and will let you know if it works or not?
    Thank you very much.
    Prachi.

  • Approval for Incoming,Outgoing Payments and Deposits

    Hi guys,
    I need to set an approval  whenever the user wants to close or cancel Incoming Payments,OutGoing Payments and Deposits(Just Right Click on the Document and Close/Cancel).
    I tried to get approval when adding the above documents but not able to set for cancel/Close.
    Pls tell me how to achieve this..
    Thanks,
    Vams

    Hi Vams,
    As suggested by Gordon, you won't be ab;e to trigger an approval for this. SP may only block if some one tries to cancel or close the document. You can block the same by using authorizations. So why don't you directly use authorizations??
    Thanks,
    Joseph

  • Standard SMARTFORM  for Check Printing/ Payment Advice

    Hi All,
      I have one important question...
    Standard <b>Script</b> Check Print Program =  <b>RFFOUS_C</b>
    Standart Script Layout Name  = F110_PRENUM_CHCK
                                &  F110_D_AVIS
    We have to modify it as per client requirment.
        But I want to know the <b>Standard SMARTFORM & Standard Smartform driver Program for CHECH printing & payment advice ?????????????</b>
    Is there no Smartform for check printing or if exist then please guide me?????????????????

    hi umesh,
    1)anyone can help me,while extending idoc,i added one segment to idoc by extending debmas.that segment has two fields.while populating data to idoc,i am getting problem like VSV0001.exit is not allowing me to write the code.
    plz anyone can help me on this issue.if you did't understand this problem plz tell me how to extend the idoc.more concentration on while populating the data in to idoc.like which function module i have to use.in customer master idoc.debmas.i am new to this environment.plz help me.like complet work till completion of task.
    2)and my next assignment is in smartforms.plz let me know .i was created the screen.according to that screen.i have to make print program.plz tell me how to give the text elements.
    like we have given in scripts, page window and then F9 to give the text elements.and make the program.like that any one can tell me clearly.how to make the complete smartforms programs.
    plz this requirement is very very urgent,plz could you send it for my [email protected]
    advance thanks for your help.
    thansk&regards,
    radhiks.

  • For our family finances, how do I create a monthly report merging data (by category) from tables for checking, credit card, and savings?

    For our family finances, how do I create a monthly expenditure report that automatically merges data (by category) from checking, credit card, and savings accounts?

    You can set up four tables:
    1) a summary table
    2) a table for pasting Checking transactions
    3) a table for pasting Credit Card transactions
    4) a table for pasting Savings transactions
    You will have catagorize each transaction or using the ones from the bank/credit card
    I used pop-up menus to make the categories (Type) and summed the two accounts in the summary table.

Maybe you are looking for

  • In&nline in Portal

    Hi, I facing issue in portal text.When there is space between first line and second line,in portal it is showing me in&nline. Can anyone help me how to solve this issue? Thanks, Usha

  • Transfer pictures from one MacBook to another

    If I have a bunch of documents like a whole bunch of pictures in a folder on my desktop, and I want to transfer them to another computer, what is the best way to do this? I have Time Capsule so thought of transferring that way, but I'm not sure how?

  • Photo limit in slideshows

    I've seen a few questions about this but none actually answer my specific question. Right...... I've created a slideshow of about 350 photos with music in iPhoto which runs perfectly on the Mac. I then share it into iDVD and add a video, fine. If I v

  • HT4914 How do i  stop the use of my credit card

    I am new to my I pad and would wish to block the use of my card by any one

  • Problems with Layers in CS4

    I have Dreamweaver CS4 setup on a new Win XP Pro computer with 1gb of memory. I was setting up a webpage that would act like a manual photogallery. The user by clicking on one image could change to the next image. Everything was done using AP Div and