Problem to get the availability of a product using BAPI_SALESORDER_SIMULATE

Hi folks,
I am trying to use BAPI_SALESORDER_SIMULATE to get the availability of a product but the BAPI does not send me the expected result :
I am trying to get the availability of a "to be discontinued" product. The available quantity of this product is 592 unit.
1/ Here is what I have in VA01 when I order a quantity of 1000 unit : [VA01|http://img689.imageshack.us/img689/4982/va012.jpg]
--> only 592 units available : OK !
2/ Here is what I have with BAPI_MATERIAL_AVAILABILITY when I order a quantity of 1000 unit : [Table WMDVEX|http://img707.imageshack.us/img707/9793/wmdvex2.jpg]
--> only 592 units available : OK !
3/ Here is what I have with BAPI_SALESORDER_SIMULATE when I order a quantity of 1000 unit : [TableORDER_SCHEDULE_EX|http://img101.imageshack.us/img101/830/orderscheduleex2.jpg]
--> Nothing available : not OK !
For information to run BAPI_SALESORDER_SIMULATE I am filling ORDER_HEADER_IN, ORDER_PARTNERS and ORDER_ITEMS_IN.
Thanks in advance for your help.

@Brad : If I fill ORDER_SCHEDULE_IN-REQ_QTY in place of ORDER_ITEMS_IN-REQ_QTY I receive an error : E-06070-Enter a quantity (I suppose ORDER_ITEMS_IN-REQ_QTY is mandatory).  Which field do you use to specify the schedule quantity ?
For information here are the information I am using to run BAPI_SALESORDER_SIMULATE :
ORDER_HEADER_IN
DOC_TYPE
SALES_ORG
DISTR_CHAN
DIVISION
REQ_DATE_H
PO_METHOD
ORDER_ITEMS_IN
ITM_NUMBER
MATERIAL
REQ_QTY
SALES_UNIT
ORDER_PARTNERS
PARTN_ROLE
PARTN_NUMB

Similar Messages

  • My Adobe Acrobat 9 Standard stopped working after I performed an msconfig. I get the following message: "You cannot use this product at this time. You must repair the problem by uninstalling and reinstalling this product..." I installed this on Jan. 7, 20

    My Adobe Acrobat 9 Standard stopped working after I performed an msconfig. I get the following message: "You cannot use this product at this time. You must repair the problem by uninstalling and reinstalling this product..." I installed this on Jan. 7, 2010 and I have since misplaced the disk.
    How do I fix the problem?

    Hi Ali,
    You can download Acrobat 9 Std. from: https://files.acrobat.com/a/preview/8d640488-4a92-4f7d-b50b-d8eb7f96bff8
    and reinstall the software.
    Regards,
    Rave

  • HT1349 Do I only have a certain window of time to register my Apple Service and Support protection plan before it expires? I certainly hope not I paid for it and could never get the serial numbers for product & protection to sync together!

    Do I only have a certain window of time to register my Apple Service and Support protection plan before it expires? I certainly hope not I paid for it and could never get the serial numbers for product & protection to sync together!

    Normally must register an AppleCare plan before the original warranty on the Mac expires. If you have problems registering the AppleCare plan for your MacBook, call Apple tech support and ask to be connected to AppleCare Plan Adminstration.
    For future posts, please make sure you're in the most appropriate forum for the product or service you're asking about. You'll be most likely to get quick and accurate help that way.
    Regards.

  • Problem in getting the database connection from a connection pool

    Hai All,
    I am facing a problem in getting the database connection from a connection pool created on weblogic server 8.1.
    I am using the Oracle database 8.1.7.
    I have configured my connection pool, datasource and JNDI in weblogic.
    In my java program i have the following code to retrieve the connection.
    import java.sql.*;    
    import java.util.Hashtable;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    class jdbcshp1 {
        public static void main(String[] args) {
         Connection connection = null;
         try {
               Hashtable ht = new Hashtable();
               ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");  // Wanna get rid of this.
               ht.put(Context.PROVIDER_URL,"t3://localhost:7001"); // wanna get rid of this.
               // Get a context for the JNDI look up
               Context ctx = new InitialContext(ht);
            javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("myjndi1");
              //Create a connection object
              connection = ds.getConnection();
         The above code is working fine but, the two ht.put statements are creating problem.
    The problem is, after converting the application into WAR file it can be deployed
    on any machine or different port on same machine. My application fails if its deployed on
    weglogicserver which is at different port.
    Is there any way that i can get rid of those ht.put statements or any other way to solve the problem.
    any help is appreciated.
    Thanks in advance
    Pooja.

    Hai All,
    Firstly, thanks for ur reply.
    Even i have seen some code which uses context constructor with out any parameter and works fine.
    i dont understand why its not working for my code.
    When i remove those ht.put code and use context constructor with out any parameter, it giving an error.
    Context ctx = new InitialContext();
    javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup ("ocjndi");
    connection = ds.getConnection();The error is as follows:
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    the above error is forcing me to include those code but if the port number is changed the code will not work. Plz let meknow if some setting have to be made.
    I appreciate all ur valuable help.
    Thanks once again.
    Pooja.

  • AnyConnect - Posture Assessment Failed: Unable to get the available CSD version....

    Hello all
    I am attempting to get the HostScan posture assessment working so we can check that any device connecting to the ASA is a valid corporate asset.
    I have installed the posture module onto our test client machine (Windows 8.1) using the following software:
    anyconnect-posture-win-4.0.00061-pre-deploy-k9
    Then in ASDM under Remote Access VPN > Host Scan Image I have uploaded the following package:
    disk0:/hostscan_3.1.06073-k9.pkg
    ...and ticked the box 'Enable Host Scan/CSD'.
    Under Remote Access VPN > Secure Desktop Manager I have configured an initial simple Prelogin policy to test it working, this simply just checks that the OS is Windows 8. A success should map this user to a Group Policy I have created that is mapped to a Connection Profile. 
    So, with all that said, when I try to connect I see that the AnyConnect client going through the motions: "Posture Assessment: Checking for updates....", after which I get a pop-up and error message:
    "Posture Assessment Failed: Unable to get the available CSD version from the secure gateway"
    A bit stumped here and haven't quite found much on the web as to how to resolve this.
    Has anyone encountered this before? If so, can you advise on what I can do
    By the way I am connecting using IKEv2 (IPsec) as these are the requirements and the AC version is 4.0.00061, ASA version: 9.2(1).
    Many thanks

    Hello
    Please forgive the shameless bump. Was hoping someone could help?
    Many thanks

  • How to get the Change node in Production Server!!!!!

    Hi Guys,
    Kindly let me know how to get the Change node in Production Server for the Transaction Code Pe03 for generating the Acknowledgement No for the year 2008 .
    Plz provide me the steps how to get the Change Node for Acknowledgement No so tat i can get the configuration done.
    Regards
    Ansuman Mohanty.

    Hi Mr!
    If you want to generate the e-file feature 40ACK, do it in our Customization client box (Golden box) & save the request & move to Quality & production.
    Still if you need to workout only in Production, than with the help of Basis people you can get the Production change mode for 5 to 10 min time & can generate it. But mostly Basis people wont give us change mode for Production box ... with ur request they can do..try it.
    Did u collected 4 quarter TAN no's for 2008 Quarter...if not collect it & generate it at a time.
    All the best:-)
    Kind Regards,
    Saisree.S

  • Does anyone know how to get the vendor ID and product ID for NI-Visa? TIA

    Does anyone know how to get the vendor ID and product ID for NI-Visa? TIA

    This question has already been addressed in this thread:
    Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa?
    John M
    National Instruments

  • Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa? TIA

    Does anyone know how to get the vendor ID and product ID for a USB device in NI-Visa? TIA

    Hello,
    Exactly which USB device are you referring to? Is the device a NI product?
    The Product ID for National Instruments DAQPad-6020E is 0x12C0. The USB vendor ID is 0x3923. This is a 16-bit hexadecimal number(1093) (that is decimal 4243).
    Also, here's a document on our website that will help you in configuring NI-VISA to control your USB device:
    http://zone.ni.com/devzone/conceptd.nsf/webmain/6792BAB18242082786256DD7006B6416?opendocument
    Swapnil P.
    National Instruments Engineer

  • How to get the finished date of production order

    hi guys
    now i want to get the finished date of production date.  when i search in the table afko , i found the field GLTRI is '0000.00.00'.
    BUT IN the production order display view , the confirm date is '2007.1.1'. so how can i get the confirm date with the production order number? thanks.

    For costing report, you have to read the following tables: based on material Qty/value/ Machine rate and machine posting date , machine rate ( T-code kp26)  and also types of material Raw, finished and semi finished ..
    AFRU ,AFPO,AFKO,AFVV,AFVC,CAUFV FOR PRODUCTION ORDER.
    For material calculation MARA, MSEG and MKPF as well as MAKT...
    Hope this’ll help you .
    Thanks

  • Problem in getting the function template object from the repository.

    Hi all,
    I have created a par file. I have a JCO connection in that. I am facing problems in getting the function template object from the repository. This thing is running successfully when i try to deploy it in Tomcat. But i am facing problems when i try to deploy it in SAP EP 6.0.
    Below is statement which is giving error after being deployed to SAP EP6.
    This is executing fine when executed in Tomcat Server.
    // getting the object of function template
    IFunctionTemplate functionTemplate =
    aRepository.getFunctionTemplate("YADDNEWUSER");
    Note : YADDNEWUSER is the name of the RFC which I am calling from my JAVA Code.
    Thanks in advance,
    Divija

    This sounds like a bug in the smart upload code. I have used this stuff before, but it's probably an older version, so maybe they broke something. Enumerations aren't usually guaranteed to keep things in any particular order. I would say for now, make a method to take the enumeration and a param name to find the value. And write to the JSPSmart people.

  • Function to get the availability of a material by Valuation area

    Hi, I need a Function ABAP to get the availability of a material by Valuation area, the bapi  BAPI_MATERIAL_AVAILABILITY shows no   the availability of a material by Valuation area

    Hi, I need to get the availability  of a material by Valuation area BEFORE save a order sales.
    The configuration of MM is by Valuation area. In te tables MBEW and EBEW don't appears  the avaibality, appears the stock and
    the avaibality and the stock dont' is the same.
    Example
    MANDT MATNR                BWKEY  BWTAR     
    200   000000000002000060   5000             
    200   000000000002000060   5000   PRODUCIDO 
    200   000000000002000060   5000   REVENTA   
    The sales order STANDAR verify the availability  by Valuation area, I DONT UNDERSTAND  "a valuation area is not relevant for availability check                                        ".

  • RQL Query to get the specific range of product items from product catalog.

    Hi All,
    I need to do the batch wise query to product catalog.
    For that i have use Query builder but that is giving me repeated items, now i wanted to use RQL using rqlStatement.
    Please help me in solving the issue.
    Query which i have used using QueryBuilder.
                    RepositoryView productView = productRepo.getView("product");          
                    QueryBuilder productBuilder = productView.getQueryBuilder();
                    Query productQuery = productBuilder.createUnconstrainedQuery();           
                    RepositoryItems[] productItems = productView.executeQuery(productQuery,startIndex,endIndex);
    Can anybody help me in writing RQL Query to get the specific range of product items from product catalog.

    Hi Shakuntala,
    There is no executeQuery method defined in RqlStatement Interface, which will accept index for output result.
    So As far as I know, what u are trying to achieve is not possible with RQL statements OOTB way.U can consider range of results based on some condition from Repository items.
    Please let me know if u find any way to implement it.
    Above Query builder should always return different ids if range is not overlapping with previous range.
    Please verify that repeated items ids are same or different,
    Quoting from API docs:
    RepositoryItem[] executeQuery(Query pQuery,
                                  int pStartingIndex,
                                  int pEndingIndex)
                                  throws RepositoryException
        Executes the given query and returns an array of matching RepositoryItems, which are contained within a total potential result set. For example used if one wanted to retrieve elements 50-60 from a query which could return 100 elements.
    Regards,
    Nitin.

  • Failed to get the Availability State on server Distriubtionpoint1 for role SMS Distribution Point

    Distriubtionpoint1-- Server share distribution point
    Distriubtionpoint1-- Acting as site system role (DP)
    Distriubtionpoint1--attached under the primary PR0 (Primary server0)
    Primary server0-- reporting to CS0 (central site 0)
    Distriubtionpoint1-- Windows 2008 sp1 r2 standard
    Infrastructure details:-
    =============
    Distriubtionpoint1 located in different domain with one way trust.
    1) Check ping status with FQDN from both domain and it is success.
    2) Check port 135, 445, 80,443 through telnet from both domain and success.
    3) Primary Server0 account is member of the local admin group on Distriubtionpoint1.
    4) Check the PR0-SCCM-DP$ folder NTFS & Share permission
    Share permission
    a) everyone & local admin group has full control
    Security permission
    a) System has full permission
    b) user has read & exec
    4) Local admin full
    Sitestat.log error message:
    ---->: Failed to get the Availability State on server
    Distriubtionpoint1 for role SMS Distribution Point. SMS_SITE_SYSTEM_STATUS_SUMMARIZER 4/22/2014 9:00:15 PM 952 (0x03B8)
    ---->: Now polling via NAL for SiteObject "["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\" SMS_SITE_SYSTEM_STATUS_SUMMARIZER
    4/22/2014 9:00:15 PM 952 (0x03B8)
    for ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\, no connection account is available SMS_SITE_SYSTEM_STATUS_SUMMARIZER
    4/22/2014 9:00:15 PM 952 (0x03B8)
    ---->: The NAL path ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\ is currently not accessible. SMS_SITE_SYSTEM_STATUS_SUMMARIZER
    4/22/2014 9:00:18 PM 952 (0x03B8)
    Info>: Unable to get available space for the Site Object ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\ SMS_SITE_SYSTEM_STATUS_SUMMARIZER
    4/22/2014 9:00:18 PM 952 (0x03B8)
    STATMSG: ID=4701 SEV=I LEV=M SOURCE="SMS Server" COMP="SMS_SITE_SYSTEM_STATUS_SUMMARIZER" SYS=Distriubtionpoint1 SITE=PR0 PID=4112 TID=952 GMTDATE=Wed Apr 23 01:00:18.002
    2014 ISTR0="\\Distriubtionpoint1\PR0-SCCM-DP$" ISTR1="\\Distriubtionpoint1\PR0-SCCM-DP$" ISTR2="2014 04 4 17 04 31 31 000" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8=""
    ISTR9="" NUMATTRS=0 SMS_SITE_SYSTEM_STATUS_SUMMARIZER 4/22/2014 9:00:18 PM 952 (0x03B8)
    for ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\, no connection account is available SMS_SITE_SYSTEM_STATUS_SUMMARIZER
    4/22/2014 9:00:18 PM 952 (0x03B8)
    ---->: GetOperationsManagementData failed to connect to ["Display=\\Distriubtionpoint1\PR0-SCCM-DP$\"]MSWNET:["SMS_SITE=PR0"]\\Distriubtionpoint1\PR0-SCCM-DP$\; error
    = 5. SMS_SITE_SYSTEM_STATUS_SUMMARIZER 4/22/2014 9:00:20 PM 952 (0x03B8)

    I have tried to access the server share DP from the primary server by using my user
    credential. Yes I can able to access the share.
    But when I use the system credential to access the share received an error message as shown in below screenshot
    Hence i have provided the share and ntfs permission administrators, system, everyone,
    primary server account with full control on both tab. but still i am receiving error message.
    :\temp>whoami
    US\prasath
    c:\temp>dir \\PrimaryServer1\SCCM-DP$
    Volume in drive \\PrimaryServer1\SCCM-DP$ is Data
    Volume Serial Number is 22F0-661B
    Directory of \\PrimaryServer1\SCCM-DP$03/17/2014
    03:33 PM <DIR> .03/17/2014 03:33 PM <DIR> .
    04/01/2014 08:04 AM <DIR> SMSPKG
    0 File(s) 0 bytes
    3 Dir(s) 514,625,064,960 bytes free
    ===========================================
    C:\Windows\system32>whoami
    nt authority\system
    C:\Windows\system32>dir
    \\PrimaryServer1\SCCM-DP$
    Access is denied.

  • Problem about get the workflow context

    There are 2 servers.
    One is Weblogic server (server1), deployed a fusion web project on it.
    Another is BPM server (server2), deployed the bpm process on it.
    On the fusion web project, we use API to get the tasks. But we encountered a problem about get the workflow context.
    There are 2 method to get the workflow context.
    1. getTaskQueryService().authenticate(userId, password, null, null), this method need to pass in useId and password, we can get the user form request but can't get
    password.
    2. getTaskQueryService().createContext(request), we pass the request on server1, but can't get the context on server2, exception thrown.
    Appreciate if you can give some help.

    javax.el.ELException: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[jcooper, ERole]
         at javax.el.BeanELResolver.getValue(BeanELResolver.java:266)
         at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:173)
         at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:200)
         at com.sun.el.parser.AstValue.getValue(Unknown Source)
         at com.sun.el.ValueExpressionImpl.getValue(Unknown Source)
         Truncated. see log file for complete stacktrace
    Exception thrown when createContext()

  • Problem in getting the application login page

    Hi Firends,
    I am facing problem in getting the application login page.
    http://localhost:7777/pls/apex/f?p=102:1
    when i am clicking this link it is not directing me to the login page for this application.please let me know what could be the reason behind this.
    Thanks in advance

    Hi Martin, many thanks for replying. Let me know how this could effect in not getting the login page. I have checked in my application,it is by default "No application authorization required " and other option is " must not be a public user " . Should i change it to " must not be a public user from no application authorization required"
    please put more light on it. Y i am saying this because it was working fine day b4r yesterday but today i am getting problem in finding the login page of my application aftr providing the url. i am following the SSO authentication scheme and under Home>Application Builder>Application 102>Shared Components>Edit Security Attributes , i have given f?p=&APP_ID.:1:&SESSION. as home link and under Home>Application Builder>Application 100>Page 101>Edit Page Process, this code i have provided
    wwv_flow_custom_auth_std.login(
    P_UNAME => v('P101_USERNAME'),
    P_PASSWORD => :P101_PASSWORD,
    P_SESSION_ID => v('APP_SESSION'),
    P_FLOW_PAGE => :APP_ID||':1'
    as a source code.
    i am really stucked into it, and i need to finish is ASAP. Please provide all possible reasons for this problem.

Maybe you are looking for

  • Can I use, and how can I use voice control with my iPad 2?

    Is it possible to use the voice control with my iPad 2? If so, how can I use it? Since there is no siri for iPad yet, I'd like to use something similar to it and I've seen this built in voice control before but I was not sure if it's possible with th

  • How to rename a column

    i cannot rename a column in a table; i tried so many sql statements but with no results; i use the following: alter table tablename rename column old_column to new_columnname;

  • Why can't we change the 9am alarm for all-day events?

    I need these all-day events alarms to be at another time, why can't I do this? Why the arbitrary 9am? Please, don't suggest to not use all-day events, this is not an acceptable solution to a very basic setting change that should be accessible. Using

  • How can I make my iTunes work?  After update, it won't resond at all.

    I've tried EVERYTHING within my power. I need expert advise. Thank you for your time and consideration.

  • IWS 6.0 SP1, document contained no data

    Hello all, I'm working on iWS6.0 SP1 on Solaris 8 and when I start the administration console (Netscape Communicator, port 7777) I see this Netscape error: "the document contained no data. Try again later or contact the server administrator", and the