Create Orders of Sale from DIAPI,  Approval Procedures not works

Hi Experts,
I generate Orders of sale, from an application for DIAPI, the orders have approval procedures of authorization but they do not apply to the generated orders, which I must do in order that he executes them.
Thanks,
Carlos.
SAP B1 8.8, SQL 2008, WinSvr 2008 x64

Hi
If you create sales order through DI API then it will go not for approval. You can try an alternative first create it as a draft , later when the draft is converted to sales order it will go for approval
Regards
Arun

Similar Messages

  • Approval Procedure not working randomly on sales orders

    Hi Experts,
    We place approval procedure for 2 users in SAP B1 2007B pl15.
    Some SO does not pass approval procedure  and we cannot trace why. The are 2 set up for approval procedure 1 for within on below credit limit. The other one beyond credit limit.
    Does anyone have the same problem with Approval procedure?
    What do I need to check  to isolate the problem?
    Regards,
    Amy

    Hi Gordon,
    We tried to disable the SO query beyond credit limit in a test database to check if the approval procedure will run if there are no other queries checking the credit limit. Now we only have one query running- the SO within credit limit.
    We eliminated another possibility for the error. The error occurs for a newly created BP.  The approval procedure will not work in SO  is the first SO ever created in the system. All subsequent SO will go thru the approval procedure even if the SO, DN and Account balance is zero
    1)We also tried this query and diabled the SO Beyond Credit Limit
    SELECT DISTINCT 'TRUE' from DBO.ORDR T0 INNER JOIN DBO.OCRD T1 ON T0.CardCode=T1.CardCode Where T0.CardCode=$[$4.0.string] and T1.CreditLine >=(
    (case when T1.Balance = 0.00 then 0.00 else T1.Balance end) +
    (case when T1.OrdersBal = 0.00 then 0.00 else T1.OrdersBal end) +
    (case when T1.DNotesBal = 0.00 then 0.00 else T1.DNotesBal end) +
    +$[$29.0.number])
    2) We also tried the Deviation from credlit limit is less than .01. Still error.
    Is this a system error or error in the query?.
    Regards,
    Amy

  • Exec stored procedure from another stored procedure - not working

    Hey, we've got a bunch of .sql files that we run, and some of them are stored procedures. Our programs call the stored procedures from within the .sql files and that works, but we've tried calling a stored procedure from another stored procedure and it won't compile. The syntax looks the same, and we can run that second stored procedure from the SQL*Plus command prompt just fine, so we know it's in there. It doesn't matter whether we type exec or execute in the first stored procedure--it still gives us a compilation error. Here's the relevant bit of the code:
            delete CMHISTORYINDEX;
            commit;
            exec SP_DAILY_TOTAL;
    END SP_DAILY_CLOSING;
    /Here's where we go into SQL*Plus and try to compile it:
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.1.0.3.0 - Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    SQL> @sp_daily_closing.sql
    Warning: Procedure created with compilation errors.
    SQL> show errors
    Errors for PROCEDURE SP_DAILY_CLOSING:
    LINE/COL ERROR
    34/7     PLS-00103: Encountered the symbol "SP_DAILY_TOTAL" when expecting
             one of the following:
             := . ( @ % ;
             The symbol ":=" was substituted for "SP_DAILY_TOTAL" to continue.
    SQL>We've also tried changing SP_DAILY_CLOSING to lowercase, but it doesn't seem to help. As I mentioned before, we can type that same sort of thing in .sql files that are not stored procedures and the exec is compiled fine and runs correctly. What are we doing wrong?

    In the stored procedure remove "exec" :
            delete CMHISTORYINDEX;
            commit;
            SP_DAILY_TOTAL;
    END SP_DAILY_CLOSING;

  • Approval procedure not working

    An approval procedure has been created, for 2 users, for Goods Issue and good receipts, to be approved by 2 other users, for ALL documents.
    The approval procedure is not activating, and allowing these 2 uers to create these docuemnts for all scenarios.  Please assist.
    2007A PL 42

    David,
    Yes, this function is active.   administration - general setting - BP tab - Tick Activate approval procedure and in approval template tick active.
    Hi Gordon,
    Yes, the condition is ALWAYS.  For all GR and GI documents.
    Was is also strang is that exactly the same query is working in another database!

  • Approval Procedures Not Working for Gross Profit %

    Dear all expert,
    I have a problem about approval procedures. I make approval procedures for gross margin less than 0% (minus margin) that will ask approval to approve it. The problem is if I input 1 item that have minus margin, approval procedures run well but if there is more than 1 item that have minus margin, approval procedures is not run...Why this is happen ? Is there any one that use that term has faced same problem too
    Thanks for your help

    Hi,
    as far as i understand you prove if there is any magin less then 0% in a marketing document. So i think you run this approval for each line and that does not work. If you enter one line, the procedure works fine. But any other line will not be proved.
    There is no standard way for approvals based on lines.
    Regards Steffen
    P.S. Of course a bit of SDK will help, but you can not solve this without.

  • Sales Order processing - Sale from stock

    Dear Gurus,
    What are the configuration steps involved in Sales Order Processing- Sales from Stock.
    Kindly let me know.
    Regards
    Prashant Ranalkar

    Go with Make To Stock scenario.  For configuration details, make a search in this forum.
    thanks
    G. Lakshmipathi

  • Make to order and sales from stock

    Hi,
    What are the important differences between make to order and sales from stock?
    Thanks

    Dear Yves,
    Make-to-order
    A type of production in which a product is manufactured for a particular customer.
    Includes both sales order production and engineer-to-order.
    Make-to-stock 
    An inventory of goods that were not manufactured for specific sales orders or projects.
    I hope it will clear for you,
    Regards,
    Murali.

  • Fix Approval Procedures to work on Update

    I opened a ticket with Support concerning the condition where a user who is subject to approval procedure can circumvent the approval process using the Update process. Support suggested I post my recommendation here.
    Say a user is subject to approval procedure whenever they post a Purchase Order above $1000.  Today a user can create a PO for less than $1000 (which doesn't trigger an approval). Next they Update the PO so that the document total is greater than $1000. On Update, NO approval procedure runs. Support said this is current functionality.  This is a huge hole in the approval functionality that makes it practically useless when a user knows it's this easy to circumvent.  Support said this issue was previously reviewed and decided not to fix it.  I'm suggesting that it's imperative this is fixed.

    Agree. The approval procedures are completely useless as it is far too easy for the user to work around them.
    Our risk & Governance department has reviewed SAP Business One and handed out a very bad report because of a few holes in the system.
    We currently use the system for our subsidiaries and it nearly fails every single test executed by the auditors.
    1) Approval procedures must work for an update process (this would fix 80% of the issues).
    2) It must be capable of identifying critical and non critical fields (such as the bank account on the supplier record).
    Vincent

  • Error: Lock profile for approval procedure not maintained in Customizing

    Hi,
    We are working on the CHARM approval process. I have noticed that without selecting an approval procedure, I select the status (Awaiting business approval) on which the approval workflow is triggered, the system gives below error:
    Select an approval procedure first
    Lock profile for approval procedure not maintained in Customizing
    Approval procedure and approval steps are locked automatically
    This locks the approval procedure and the RFC can no longer be processed further. Why is that happening ? Anyone can select the status by mistake and lose the RFC, is there a way to stop this or at least reset it ? the lock procedure is already maintained in approval procedure customizing.
    Best Regards.

    Hi Karthik,
    Thanks for the quick reply, however the settings mentioned on page 38 are already in place i.e. the approval procedure gets determined correctly based on change category (rule policy) and also is locked after putting it to 'Awaiting Approval' 
    But the problem exists - setting the status 'Awaiting App.' without selecting app.proc, will result in a total lock of the RFC.

  • Approval Template Not Working

    Hi Experts.
    I have activated approvals and have a simple approval template working (as a test) whereby AR Invoices exceeding a certain value require approval.
    I have also created an approval template whereby Purchase Orders require approval if they are over the users approval limit but under their manager's approval limit as defined in UDFs against the employee record.  This approval is not working.
    The approval is based on a query:
    select distinct 'true'
    from opor a, por1 b, oact c, ohem d, ohem e
    where a.docentry = b.docentry
    and a.canceled = 'n'
    and a.docstatus = 'o'
    and a.docentry = b.docentry
    and b.acctcode = c.acctcode
    and a.docnum = $[OPOR.DocNum]
    and a.ownercode = d.empid
    and d.manager = e.empid
    and (
         (b.u_budgeted = 'budget'and c.groupmask = 6
              and (a.doctotal-a.vatsum > d.u_budgetexpense or d.u_budgetexpense is null))
    or  (b.u_budgeted = 'budget'and c.groupmask = 1
              and (a.doctotal-a.vatsum > d.u_budgetcapital or d.u_budgetcapital is null))
    or  (b.u_budgeted = 'non-budget' and c.groupmask = 6
              and (a.doctotal-a.vatsum > d.u_nonbudgetexpense or d.u_nonbudgetexpense is null))
    or  (b.u_budgeted = 'non-budget' and c.groupmask = 1
              and (a.doctotal-a.vatsum > d.u_nonbudgetcapital or d.u_nonbudgetcapital is null)) )
    and (
         (b.u_budgeted = 'budget' and c.groupmask = 6
              and a.doctotal-a.vatsum <= e.u_budgetexpense
              and e.u_budgetexpense is not null)
    or  (b.u_budgeted = 'budget' and c.groupmask = 1
              and a.doctotal-a.vatsum <= e.u_budgetcapital
              and e.u_budgetcapital is not null)
    or  (b.u_budgeted = 'non-budget' and c.groupmask = 6
              and a.doctotal-a.vatsum <= e.u_nonbudgetexpense
              and e.u_nonbudgetexpense is not null)
    or  (b.u_budgeted = 'non-budget' and c.groupmask = 1
              and a.doctotal-a.vatsum <= e.u_nonbudgetcapital
              and e.u_nonbudgetcapital is not null) )
    The query will return the value 'true' if executed when the PO document is displayed on the screen, so I am happy with the query.
    I think maybe the problem might be on the Terms tab of the Approval Template because Total Selected Terms = 2.  I think this should be 1.
    There is a tick against Undefined Type under Term and I can remove this so that Total Selected Terms = 1, then I click on Update and OK - but when I go back in again the tick is back and Total Selected Terms = 2 again.
    Any suggestions would be very much appreciated.
    Regards.  Julie

    Hi.
    Thank you for your replies.
    The solution I worked out was to select the Term 'Total Document' as 'Greater than $1.00'.
    This enabled me to successfully de-select the last Term 'Undefined Type'.
    The Alert then fired successfully.
    Regards.
    Julie

  • Plugin created using C++ 6 and Acrobat 6 SDK Not Working in Windows

    I have an Acrobat plugin compiled in Visual C++ 6 using Acrobat 6 SDK. The plugin works flawlessly in Acrobat versions 6 to 9 in Windows XP. While the plugin is able to add a menu iterm and tool bar icon in Windows 7, it causes Acrobat to hang everytime when activated in which event I have to close Acrobat. Since Visual C++ 6 is a 32 bit app, I have to believe that Acrobat 6 SDK is responsible for the behavior described herein in attempting to get the plugin to work in Windows 7. Any comments or suggestions regarding what Visual C++ version to use along with the appropriate Acrobat SDK to get the plugin to work in Windows 7 are appreciated. In doing so, I would also be interested in knowing what backward compatibility one may expect w/regard to previous versions of Acrobat in updating the plugin to work in Windows 7. As for the answer, correct me if I am wrong but I'm thinking Acrobat 9.

    Adobe hasn't supported Acrobat 6, VC6 or the Acrobat 6 SDK for at least 5 years.  You will need to move to the Acrobat 9 SDK if you wish support.
    And Acrobat 9 and its SDK are fine with Windows 7.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 1 Dec 2011 01:15:42 -0800
    To: Leonard Rosenthol
    Subject: Re: Plugin created using C++ 6 and Acrobat 6 SDK Not Working in Windows Plugin created using C++ 6 and Acrobat 6 SDK Not Working in Windows
    Plugin created using C++ 6 and Acrobat 6 SDK Not Working in Windows
    created by gomfp49<http://forums.adobe.com/people/gomfp49> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4056529#4056529

  • Wish to post KeyNote file as pdf. Export from KN to iW not working

    Wish to post KeyNote file as pdf. Export from KN to iW not working - get blank screen. Tried to upload PDF to mobile me and link to that file - also didn't work. I'm not familiar with iFrames but have read about them in this forum - is that my only option? Why wouldn't a KN export work?
    Thanks, Brian

    I have just tried this with a test site and publishing to a folder and it does work perfectly for me.
    I had a Keynote document already so all I did was click on File and then selected the Print option. I then selected the save as pdf option the the pdf document was created on my desktop instantly.
    All I then did was open iWeb and type some words in a text box My Prices. I then highlighted My Prices and opened the Inspector and went to Hyperlink and clicked on the option Hyperlink to a file. I then selected the pdf file from my desktop.
    I then used ftp to a folder on my desktop and when I opened the appropriate page, I click on the words My Prices and the pdf file opened straight away.
    As OT has suggested, check that you have linked to the correct file. If it does not work, either you have not created the pdf correctly or at all or you have not linked to the correct file.
    As I said, it worked for me.

  • Reopen All Windows from Last Session is not working

    The option Reopen All Windows from Last Session is not working, is there any other way to recover the tabs from my last session?
    Last night I fell asleep and my friend shut down my laptop.
    When I woke up in the morning I couldn't restore my last session which had several tabs opened for my research.
    I don't know the exact date when I found them, so I haven't been able to find them in History either.
    I've looked around on the internet, but haven't been able to find anything that helped me out.
    Hope you can help me! Thanks.

    Restart your Mac.
    Check the box for:  Reopen windows when logging back in
    Then check History >  Reopen Windows from Last Session

  • My mail forms created by muse 2014.0.1.30 do not work. PHP 5.4 is enabled by hoster, so they should work. Can anyone help me, for these forms are crucial for my business.

    My mail forms created by muse 2014.0.1.30 do not work. PHP 5.4 is enabled by my hoster, so they should work. Can anyone help me, for these forms are crucial for my business. The forms confirm delivery, but the mails are not recieved. No spam filters enabled.
    Meanwhile, I was able to narrow the problem down: PHP seems not to accept a re-directed mail address as sender of the mail in some cases. So, it has nothing to do with the mail form itself.

    Hi Ingo,
    Please refer to this document, Troubleshooting Muse Form Widgets Used on Third-Party Servers
    Last section, "I've uploaded my new Muse form, and tried submitting it in the browser, but I never receive an email with the form data. What's wrong?"
    - Abhishek Maurya

  • HT201210 trying to download an instal ios 7 on my iphone 4s, after half an hour into the download it came up with a message saying failed and everytime i try again the download doesnt start. tried downloading from itunes aswel but not working. anyone know

    trying to download an instal ios 7 on my iphone 4s, after half an hour into the download it came up with a message saying failed and everytime i try again the download doesnt start. tried downloading from itunes aswel but not working. anyone know why?

    The servers are overloaded. There are a hundred million people all trying to download iOS 7 at one time. Try again later

Maybe you are looking for

  • Master Details Forms- Report getting error

    Dear All, I have used master details form . In details form , i am having 50 fields . i am able to add row. after that it is showing error ike below. Error: ============================================================================= Error in mru in

  • How to get FLV on On2VP6 codec from Premeire Element 11,

    Good Afternoon, We are currently using Premeire Elements 11 in conjunction with Captivate 6 to publish our elearning modules. We edit our videos in Premeire. I need to be able to change the .flv codec to be On2VP6 so our modules can be published usin

  • Lens Profiles in Lightroom 3

    I've created a lens profile for the Olympus E-P2 M.9-18mm F4.0-5.6 lens using the Adobe Lens Profile Creator. I used RAW files converted to DNG. However, I cannot figure out where to put the profile so that Lightroom recognizes it. Initially, I saved

  • HTML code gets displayed

    I'm running the Weblog service with OS 10.4.6. When creating an entry on a weblog most of the HTML code gets translated correctly; image links, html links, etc. But on certain HTML tags the code gets displayed and it's not translated. For Example if

  • SAP NetWeaver 7.0 Trial Hardware key

    Hi, I installed the SAP NetWeaver 7.0 ABAP Trial Version, i used it, but my logon is expired. I would like to request a new license key, but i have a little problem. I don't know my Hardware key /or Hardware ID/. The question is: How can i get my Har