Approval query to not allow invoicing if no freight entered

Hi, I have the following query which generates an "internal error" message but then does not trigger the approval process.
select Distinct 'True' From OINV T0  INNER JOIN INV3 T1 ON  T0.DocEntry = T1.DocEntry WHERE T0.OINV.U_Ship = 'Prepaid & Billed' and T1.[LineTotal] is Null and CardCode = $[ORDR.CardCode]
If someone is copying a delivery to an invoice and the there is no freight amount in the freight field when there should be, then I don't want the delivery to become an invoice until that freight amount is filled in. Is there a better way to accomplish this. If not, please help me fix my query. Thanks!

Please try this
select Distinct 'True' From OINV T0 INNER JOIN INV3 T1 ON T0.DocEntry = T1.DocEntry WHERE T0.U_Ship = 'Prepaid & Billed' and T1.LineTotal is Null and CardCode = $[ORDR.CardCode]
You dont need the use of the table name with the alias you've already entered (T0.OINV.U_Ship)
I kindly suggest the use of the transactionNotification, i think it may work better

Similar Messages

  • HTTP Connection to ABAP System - Query String Not Allowed message

    Hi All,
    We are trying to create HTTP Connection to ABAP System on a SAP ECC system.
    Following entries are added
    1 Connection Type: H
    2 Target Host: Host name
    3 Service Number: HTTP Port name
    4 Path Prefix: /sap/XI/engine/?type=entry
    It is not allowing me to enter Path prefix as "/sap/XI/engine/?type=entry". It is throwing a warning message as "Query String Not Allowed message".
    As per the documentation it is mentioned that -<b> If the system displays the Query String Not Allowed message, you can ignore it.</b>
    It is not allowing me to save the entries succesfully . I need to remove the path refix entry then only i am able to save other wise it is not allowing me to proceed at all.
    Please let me know what entry i can put for the same or let me know how can i ignore and proceed by saving the path prefix as "/sap/XI/engine/?type=entry".
    Please provide your valuable help on this.
    Regards,
    Nanda

    Hi Aamir ,
    Thanks for the response.
    Tried both but still same issue .
    Any more inputs .
    Cheers,
    Nanda

  • Firefox will not allow me to use my Enter button in the Address Bar or Search bar

    ''locking as a dupe of https://support.mozilla.org/en-US/questions/941775''
    I installed Firefox today and as of yet, I haven't been able to use the Enter button in the address or search bar. I can use every other key except that one. Thus, it makes Firefox unusable and useless. Can anyone help me out? I even went as far as disabling every single addon that came with the default installation of Firefox and uninstalling my AVG. Nothing has worked.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Also, make sure you update to Firefox 16 to stay secure. [[Update Firefox to the latest version]]
    Did this fix your problems? Please report back to us!

  • Hai all sales order  discription and quantity should not allow modification

    Hi all
    any one plz respond me, my requirement is once the sales order approved then its not allow any modification  like order quantity, discreption and first delivery date in the change mode va02 and va22 plz help me .
    regards,
    venkat.

    You can use user exit   MV45AFZZ and here
    FORM USEREXIT_FIELD_MODIFICATION.
    CASE SCREEN-GROUP3.
      WHEN '900'.
        IF VBAK-VBTYP NE 'A'.
          SCREEN-ACTIVE = 0.
        ENDIF.
    ENDCASE.
    CASE SCREEN-NAME.
      WHEN 'VBAK-VBELN'.
        SCREEN-ACTIVE = 0.
    ENDCASE.
    ENDFORM.
    Write your code between Form and endform.
    try to mention sy-tcode is VA02.
    then it won't distrb others.
    Reward Points if it is helpful
    Thanks
    Seshu

  • Approval Query when a Sales Return Document is Created.

    Hi all,
    When i post a Sale Return Document , the following Approval Query is not working when i try to work out for Approval of a New Sales Return document is Created.
    Select 'TRUE' From ORDN T0 Where T0.DocStatus='O' And Datediff(dd,T0.DocDate,Getdate())=0
    Is there any wrong with this Query?

    Just Opened the Recently Added Return Document with all the other window closed.
    Then, Tools -->Queries --> User Queries --> Approval Procedure (Category where my above sales return query is placed in the Query Manager) --> Sales Return (Return Query)
    When clicking on it...the query Generator window opens with TRUE as the result.
    But When adding the Return Document the REMARKS Window which always Opens for all the Approval Documents isn't Opening

  • The enter button or tapping the keypad will not allow a search to occur after I type in a keyword????

    Firefox will not allow me to use the enter button or even tapping the key pad on the go/magnifying glass button in the search window. I can type in a few keywords in the google or yahoo keyword search window in the top right tool bar but it will not let me enter. It also will not let me search or enter on any website with a search window. I can't even type in a username/password to access my banking. This just occurred several days ago. This is a linux Acer 8gig netbook.
    == This happened ==
    Every time Firefox opened
    == A few days ago.

    This may or may not be the problem but clips need to be in a storyline, not just butted back to back, to apply transitions. Meaning if you lift clips form the main storyline and just have them back to back on the line above (but not in their own storyline) they will not allow effects to be applied. You need to either move them back to the main storyline, or create a new storyline containing the clips, and then apply the transition.

  • System not allowing to post parked vendor invoice

    Hi gurus,
    Why system not allowing to post parked vendor invoice when workflow is used for gl document?????
    It is saying not released and no one is allowed to post???
    Thank you

    Hi Mohit,
    Post can be possible to next authorized level. Check settings or else go to FBV3 ,enter document number ,company code and year > Enter > where you can see the workflow tab > Click on that where you came to know how may release levels are assigned.
    In same view > Click on system in menu bar > services for object > Click on workflow icon > where you came to know who is the next approver.
    Regards
    Mani

  • Approval Query for AP Invoices Containing Budget Related GL Account

    Hi Experts,
    I would like to create a approval template for all AP invoices that include a GL account that is related to the budget. Can you please help me with the approval query?
    Thank you!
    Jane

    Hello Gordon Du,
    "B1 approval will only apply to document level. If you want to check line level, only the first line can be subjected to."
    I was thinking to trigger the approval process based on a document (AP invoice) containing relevant cost centres on a line by line basis as entered via one of the enabled dim fields.
    Writing a trigger query for each cost centre effected? This does not appear to be a good solution, what is a better direction. Is there another way? (PO are not yet used via SAPB1)
    Currently my invoices add, but do not trigger the approval process based on my attempts thus far.
    Can the originator manually choose an approval pathway?
    If this is against posting etiquette delete and advise.
    I am a relative newbie to SAP B1, so am happy to be pointed to relevant help files. I arrived via  google searching and arrived here.
    Thankyou.

  • Approval Query needed for AR Reserve Invoice

    Need to create an approval for delivery doc- If AR reserve invoice not paid need to triger an approval.  how can I cutomise the query to look at base document.
    SELECT DISTINCT  'TRUE' FROM OINV T0 WHERE T0.[isIns] = 'Y' AND  T0.[DocStatus] <> 'C'
    Thanks and Regards

    Hi Anoop,
    This one should do it I believe. I have attachde the query as not everything gets copied in this forum. The query below will not work.
    SELECT distinct 'true' FROM DLN1 T0 WHERE T0.[BaseType] = 13 and  $[$38.45.1] in (SELECT docentry  FROM OINV T0 WHERE isins = 'Y' and paidtodate <> doctotal)
    There are a few limitations with approvals in B1 that are based on values on the linelevel like this one.
    The query can not see past the first line of the document. So it will only check the basedoc of the first item in the Delivery (it is possible to add an item on the first line after copying the Reserve Invoice details into the delivery).
    Apart from that, the query only checks if the payment have been fully done "(paidtodate <> doctotal)", if it has been partially paid it will still trigger the approval. If partial payment is acceptable you can change that to "paidtodate <> 0".
    Hope it helps,
    Jesper

  • How can I print out CC invoices ? I receive a link in an email from Adobe but I am not allowed to view my invoices ???

    I receive a personal link in an email from Adobe telling me that my account has been charged, but I am not allowed to view my invoices ???

    Go to adobe.com. If you're not already logged in with your adobe id, log in. Under your name you should see a small button that says "manage account." Click it. Next select "Plans & Products." Under the Plans section, click "Manage Plan." On the new page, on the right is a "Billing History" section (it may take a second or to two to load to invoice info). Click the small print icon all the way to the right. You'll get a PDF form that you can download or print. Good luck.

  • SRM PO failed: Indicator for GR-based invoice verification used not allowed

    Hi Friends,
        I have an issue with a specific PO failed to transfer from SRM to ECC. We are in ECS scenario, SRM 5.0 Service level 7.0. We are in process of SP upgrade but this issue occured in Production system which is still in old SP level(SP 7.0).
    when I check the App Monitor, I am see the following errors:  but the status shows Auto_Completed
    1. PO: Indicator for GR-based invoice verification used not allowed
    2. PO: Instance XXXXXXXXXX of object type PurchaseOrder could not be changed
    3.  PurchOrder XXXXXXXXXX: Purchase order still contains faulty items
    4.  PO XXXXXXXX: Indicator for GR-based invoice verification used not allowed
    I can see the PO copied over to ECC. but status in SRM PO shows 'Error in Process'.
      BBP_PD for object PO shows:  Created, complete, ordered, In Transfer to Execute, Change was Transmitted  as Inactive status.    Transfer Failed shows Active, Document completed, created.
    I checked BP Maintain  for the vendor and PO and its no different than other POs and Vendors except Vendor had 'Goods Receipt based Invoice Verification' indicator checked in SRM.
    I tried to simulate the same Material, Vendor with GR-IV indicator both on and off, it works fine. Ofcourse this is in Quality box with SP 15 level.
    So, I am not sure if SP level upgrade might help it or not? If there are any other means to test, please advise.
    thanks
    Rao

    I was wondering how I could liquidate the PO by either creating a new PO or ??.
    What you could do to revive the PO in question is that after the upgrade, and after a round of background jobs run for CLEAN_REQREQ_UP and BBP_GET_STATUS_2, ask the buyer to make a dummy change to the PO (for example, change the description of the PO) and order again. This would trigger the transfer to the backend again. And hopefully this time, no error would occur.

  • ERROR MESSAGE : display of the query spec is not allowed

    Hi all,
    I have many queries built under a multiprovider. The problem is if i try to chane a query it is not allowing me to do it. Even for a query which i built it is not allowing. It is displaying an error message 'display of the query spec is not allowed'.
    Can anyone help me in understanding this issue?
    Thanks,
    Raj.

    Have you check your authorizaiton trace with ST01?
    You need authorization for this query in auth obj S_RS_COMP or S_RS_COMP1

  • Residual payment should not allow more than Vendor Invoice

    Hi,
    Eg: Vendor has booked invoice 5000 INR, when user make payment through F-53 or F-58 through "Residual" payment user can pay more than invoice 5002 INR and below accounting entry is posting.
    Bank Cr 5002 INR
            To  Vendor Dr 5000 INR (Invoice amount)
            To  Vendor Dr 02    INR  Excess than invoice 
    Business requirement is system should not allow pay more than invoice amount. How to control suggestion would be appreciated.
    I have done below settings for your understanding here system configuration.
    1. OBA3: Under "Permitted Payment difference" zero for Gain , Loss , Amount, Percent & Adjust Discount By  However "Permitted Payment Differences for Automatic write-Off(Function code AD)" zero.
    2. OBA4: Cash discount per line item: Zero and Under "Permitted Payment difference" Revenues, Expense, Percent & Cash discount  put Zero.
    Regards,
    Babu.

    Hi Prashant,
    I have restricted many fields to use through screen variant now user can not pay more than Invoice amount except through Residual payment process.
    Client side management strongly says that they want to use Partial and Residual payment process options but user should not allow pay more than invoice amount.
    If any solution please guide me.
    Regards,
    Babu.

  • After approv status inquiry, it should not allow to change anything .

    Hi,
    As per the client requirement, we have assigned the three level status profile to in inquiry process like Block status, Review and approve status.
    Block status-It is initial status. After save the document it will be in block status
    Review status u2013It is the 2nd status. After review of authorized person, it will be changed as review status.
    Approve status- If everything is correct, then higher authority will give the approval for same and will change the status.
    Here client requirement is after approval of same inquiry document, it should not allow to anybody to change anything (quantity, material, any addition) in same document with va02 Tcode. Need your support if anything possibility is there for same requirement.
    Thanks
    Utpal mishra
    Sr.SD Consultant

    Already another thread is still open. Please maintain one thread for better monitoring.
    Thanks
    Regards,
    Reazuddin MD

  • If PO is created Or approved   reference PR,  should not allow to change th

    Dear All
    I have one requirement
    If PO is created Or approved   reference PR,  should not allow to change the quantity or line item.
    And is it possible to assign this to user specific whether to allow or not .
    Thanks in advance
    Mahisap

    Thanks for reply
    MY Requirements are
    1)A  PR line item should not be changed after creation of PO or after PO approved
    2)In case PR is referenced for multiple po's then should check all the po's
    3)if po line  item deleted then system should allow to change PR
    4) Assign it to user specific
    plz get me outoff this
    regards
    mahisap

Maybe you are looking for