Regarding "BAPI_MATERIAL_AVAILABILITY" (important)

Hi,
In my program, I use BAPI_MATERIAL_AVAILABILITY to get the <u><b>on-hand quantity in CSE.</b></u>
The following is my code:
    CALL FUNCTION 'BAPI_MATERIAL_AVAILABILITY'
      EXPORTING
        plant      = I_ZDAILY_MVMT-WERKS
        material   = I_ZDAILY_MVMT-MATNR
        unit       = 'CSE'
      IMPORTING
        av_qty_plt = bapi_onhand
        return     = return
      TABLES
        wmdvsx     = atp1
        wmdvex     = atp2.
    IF return IS INITIAL.
      READ TABLE atp2 WITH TABLE KEY bdcnt = 0
                                       req_date = sy-datum
                                       com_date = sy-datum.
     IF atp2-com_qty <> '9999999999.000'.
       I_ZDAILY_MVMT-ONHAND_VAL =  atp2-com_qty.
     ELSE.
        I_ZDAILY_MVMT-ONHAND_VAL =  bapi_onhand.
     ENDIF.
    ENDIF.
The problem is that if the commented section above is uncommented, i get extremely large and unreliable data (for example 163,333,333,333,333 - which doesn't make sense.)
On the other hand, when the commented sections are left commented, i get data that seems real.
Which is the right way and what am i doing wrong? How do i check if the data that i am getting is correct?
Thanks,
John
Responses will be rewarded and highly appreciated

Hi,
What are the characteristics of  I_ZDAILY_MVMT-ONHAND_VAL?  Are you referencing bapi_on_hand with the section commented as being a correct value and I_ZDAILY_MVMT-ONHAND_VAL with the section not commented being an incorrect value?
Warren

Similar Messages

  • Exclusive queue regarding very important message

    Hi guru!!
    I have one question regarding very important message in exclusive queue for async.
    i wanted to find a way which is using exclusive queue for it and then let it use only this queue. anyone does know?
    my scenario client java proxy to inbound abap proxy.  should be used by exclusive queue for it during sending to receiving, any another message should not use this queue included xi and ecc queue.
    can anyone explain me?
    thanks & regards;
    venjamin

    Hi Venjamin,
    U may use one queue with ABAP Proxy or a BPM scenario.
    This can be done using: Configure Filter for Queue Prioritization in transaction sxmb_adm.
    Refer the following
    /people/sap.user72/blog/2005/12/12/how-to-prioritize-messages-in-xi
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/59e837d3-0201-0010-c096-dc1869733413
    Similar problem here
    Specific queue for one Scenario.
    Regards,
    Prateek

  • Regarding to import siri in iphone 4

    hello,
         sir i m using iphone4 with OS4.1 n i m in india for 1 year n i had unlock it with geneva turbo sim... n i want to import siri on tht so wat can i do..?s
    please give me an helpful regard...
                                                                     thnk u

    Not possible.
    Allan

  • Regarding MDM Import and Syndication Server

    Hi,
    I have earlier worked in MDM Import Server.
    Today, I successfully did MDM Syndication by
    MDM Syndicator.
    Now, the point is I need to do Import and Syndication
    by MDM Import Server and MDM Syndication Server.
    The MDM Version is 5.5.
    Now, the point is under my installed directory:
    F:\MDM SERVER\Server
    in mds.ini file:
    I need to give the following path:
    Distribution Root Dir=F:\MDMSER~1\Server\Distributions\
    I think other than these I don't have to do any configuration
    in mdis.ini or mdss.ini.
    Also, I have already inbound and outbound ports made and linked
    to inbound and outbound maps.
    Is there any more configuration needed?
    Regards
    Neha Singh

    Hi Neha,
    There are many configuration needed to complete the Automatic import and syndication using MDIS and MDSS.
    Please go through the link below for the same:
    Master Data Management Import Server and Master Data Management Syndication Server - Webinar Powerpoint
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8973bcaf-0801-0010-b7a7-f6af6b1df00e
    This will give you the complete steps to perform the same.
    Hope it helps.
    Thanks and Regards
    Nitin Jain

  • Regarding Export , Import Utilities

    Hi can any one tell me where can i get Oracle server , so that i can use export and import utilities to migrate the data from Oracle 9i to Oracle 11g
    Thanks in advance

    Hi user;
    Hi can any one tell me where can i get Oracle server , so that i can use export and import utilities to migrate the data from Oracle 9i to Oracle 11g You can download it from below link:
    http://www.oracle.com/technology/software/products/database/index.html
    Regard
    Helios

  • Suggestion regarding Oracle import & export utility

    hi
    I am navneet,I want to give some suggestion on Oracle import & export utility to Oracle Corporation. can u tell me where to send these suggestions
    regards
    navneet

    It would seem to me that if they are enhancement requests, then the right way would be to file an enhancement request. If they are bugs, then file SRs so bugs can be entered.
    Dean

  • Hi regarding a important question.

    I have got the design requirements with only field name with table names and remaining part of datsource to reports we have
    to generate by BW person., I am not sure functional guy gives specs to design datasource from what tables shall come.,
    Can anyone please let me know on it., I think BW guy has knowlede once he gives the datasource and from there replicating
    datasource to BI system is BI person job., Can anyone let me know on it.
         Thanks in advance.

    Hi,
    If you know the Datasource name, you can know the table names using the trans RSA2 or RSA3.
    The job of the BW person would be to extract the Datasource in the BW.
    Load the data upto PSA using the Infopackage.
    Create transformations between DS & Datatargets. Activate the DS, transformation & data-targets.
    Then load the data from PSA to datatarget using the DTP.
    Create Multiprovider if required to build queries on it.
    Then do the reporting using BEx.
    Hope it helps!
    If you are looking for anything in particular, please be specific.
    Regards,
    Pavan

  • Regarding content Import in UCM.

    Hi All,
    I am facing an issue while importing content in UCM.
    While importing an archive I am getting the following error:
    Import error for archive 'full_archvie_core_content' in collection 'IT_IAT_DS_02': Unable to execute service IMPORT_ARCHIVE and function Imeta.
    Unable to execute query 'IdsDocMetaDataDocMeta(INSERT INTO DocMeta(dID,xComments,xExternalDataSet,xIdcProfile,............,xPageID,xNDDate) VALUES(7582,'','','','',...........'','','',null))'.
    ORA-29875: failed in the execution of the ODCIINDEXINSERT routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in textindexmethods.ODCIIndexInsert
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01950: no privileges on tablespace 'SYSAUX'
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 751
    The UCM connects to the Oracle database using user Test. There is a tablespace present for this user and it has DOCMETA table in it which is owned by Test. I fail to understand why it is giving the priviliges error.
    Also, when I connect to the database using the Test user, I am able to insert same row manually in the table DOCMETA.
    Can anyone suggest how to troubleshoot this issue.

    Hi Srinath,
    As per the dba, user DEV_OCS has unlimited quota on tablespace DEV_OCS. Here is the output he has sent:
    Time: 02:32 PM                              
    ORACLE FREESPACE REPORT                      
    User: SYS
    Database: VOPNP0151                          
    Host: avgpitcr
                                Allocated         Used         Free      %Used
    TABLESPACE       MB                  MB           MB             MB   Data Files
    DATA01               2,000.0          1.0              1,999.0         .1        1
    DEV_OCS           7,000.0           5,527.5       1,472.5        79.0     1
    Also when I connect individually to each of the servers in the Oracle RAC via. sqldevelepor, I am able to insert row in one of the servers. The other gives the privileges error  for SYSAUX.

  • Regarding the import

    Hello Guru,
    I have transported the tranport request using the transaction STMS. So how i can import in the next system.
    please give me details.
    it is urgent.
    Thanks in advance
    zubera

    Use transaction STMS
    Look at Transport Management System (BC-CTS-TMS) and System Administration Assistant
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCCTSTMS/BCCTSTMS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCRRR/BCRRRSAA.pdf
    Importing Requests
    Use
    You can use three different methods in the TMS import queue to import requests into the target system. You can choose between performing any of the three methods in dialog, or in the background. The best method for you depends on your system landscape and your transport
    strategy [Ext.]. In practice, you will find that a combination of these methods is the most effectiveway of working with the TMS. If you only want to import individual requests or projects into a system, you can change the transport strategy
    Prerequisites
    Before you import the requests from an import queue into an SAP System, ensure that no users are working in this SAP System. Therefore, inform your users about the import times early on, for example by creating a system message.To prevent change requests from still being placed in the import queue shortly before the mass import, and perhaps being imported unintentionally, we recommend closing the import queue before the import. Also read the notes on Precautionary Measures in the Target System
    Functions
    Starting the Import of All Requests in an Import Queue (Mass Transport
    Strategy)
    When you import all the requests from an import queue, they are imported in the order in which they are placed in the queue. Each import step is performed for all requests. First, all the Dictionary objects in the requests are imported, then all the Dictionary objects are activated, and then the main import is performed for all requests. If you use this method to export all your requests from your development system into your quality assurance and production systems, then you are assured of keeping the Customizing and Workbench objects in your systems synchronized. However, this method is less suitable if you develop in different projects at the same time, test them in the QA system, and then import the projects into your production system at different times. This applies especially to the production system.
    Starting the Import of All Requests in One or More Projects
    If you have assigned your transport requests to projects (see Using Projects to Control Transports [Ext.]), you can import all requests that belong to a single project together. The requests are imported in the order in which they are placed in the import queue. This also applies if you want to import all the requests from multiple projects together. All the requests in one project are not imported first, followed by all the requests in the next project. Instead they are imported in the order in which they are placed in the import queue. Each import step is performedfor all requests, just like when you import all requests from a queue. First, all the Dictionary objects in the requests are imported, then all the Dictionary objects are activated, and then the main import is performed for all requests.
    Starting the Import for Individual Requests (Single Transport Strategy)
    As well has having the option of importing all requests in the import queue, or all requests in a project, the TMS also allows you to import individual requests from the import queue. The requests you choose are imported in the order in which they are placed in the import queue. The order of the mport steps corresponds to an import of all requests. Importing single requests can either be _ an exception, if you usually use mass transports _ or the rule if you usually use single transports. Examples for using single transports:
    _ Every week, you import changes into your production system that you have previously tested in your QA system. To do this, you have scheduled an import that periodically imports all waiting requests. If you want to correct an error in the production system between these
    import times, you can import the request into your quality assurance and production system at an earlier time. As standard, the TMS imports a request of this type as a preliminary transport. This means that it stays in the import queue after it has been imported, and is imported again in the next scheduled import of all requests, to avoid inconsistencies. In this scenario you can also use the Transport Workflow [Ext.], as of Release 4.6. Developers make the transports into a test system. Developers have the authorization to import their own requests. Since only individual transports are made into the system in this case, the system administrator sets the system so that the requests do not remain in the import queue after the import (see Starting the Import for Single Requests.To find out about the requirements you need to meet, we recommend that you read the following
    information:
    _ Transport Strategy in the CTS [Ext.]
    _ Transport Strategy for Single Transports [Ext.]
    Test Imports
    Before you start or schedule any of the import methods discussed above, you can test them with a test import. This lets you recognize any conflicts with original objects and repairs.
    Regards

  • Regarding export/import of pages

    Hi
    How do I import a page from one application to another application.
    I have exported the page that is to be transported, and when i try to import it in another application, it says that application id / workspace id not same.
    is there any solution for this.
    Please reply as soon as possible.
    Thanks
    Ameya

    Ameya - Raj describes a procedure for doing this here: Synonyms
    Scott

  • Importing .ISO files into SCVMM2012 R2 - Folder Naming Quirk

    We've run into a folder naming issue in regards to importing .ISO's into the VMM Library. When specifying a folder to import the .ISO into, VMM adds %20 to the folder names where spaces are. Not a huge deal but wonder if anyone has a way around this without
    using dashes or underscores. 
    Orange County District Attorney

    No, it's a bug, I have ran into this all over the UI and has caused me no end of pain. I have reported it but I have had no word if this will ever be fixed 
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. http:\\robbieroberts.wordpress.com

  • Importing  Through DTW : "Invalid ItemName'M'  in Enum 'BO Gender Types

    Dear Members,
    I am trying to import in a Business Partner,the contact person in which the gender and date of birth is to be imported.?its showing an error named "Invalid Item Name'M'  in Enum 'BO Gender Types 65171.
    Can anyone help me in this regard to import through template.
    Thanks ,
    Venkatesh.R

    Hi sudha,
    Thanks a lot,one of my issues has been solved,can you tell me how to import similarly for date of birth.
    Regards,
    Venkatesh.R

  • Can sequences be re-linked to original resources when importing another version of the same project?

    When editing a large event project, I usually set it up and sync cameras/audio into multicam sequences. My current project is of a kickboxing event so 3 of us will take say 5 fights each to edit on different machines. While importing the other guys work into my project works great, I'd love it to not show duplicate resources (bins/clips/sequences etc). You can see what I mean in the below image. Any way to relink to my original file/folder hierarchy?
    I know I could go into each multicam source sequence and right-click a clip and Reveal in Project, then right-click in project pane to Replace Footage but doing it that way 3 times to over 200 assets would be mind numbing haha.

    Hello Mike.
    I'm not aware of a way to merge mailboxes from one Mac to another but regarding the import feature, the mailboxes do appear grayed out but select Choose anyway and the mailboxes within the chosen folder will be made available for import at the next prompt.
    Regarding the directories, IMO it is better to manipulate the mailboxes using the Finder with the Mail.app quit before doing so.
    After using the Import Mailboxes feature and importing the selected mailboxes, quit Mail first and using the Finder go to Home > Library > Mail > Mailboxes. The Imported mailboxes (xxxxxx.mbox files) will be located within an Import folder.
    For all mailboxes to appear at the first level within the mailboxes drawer, each xxxxxx.mbox file must be at the first level within the Mailboxes folder. You can nest a mailbox within a folder that does not contain any messages.
    For example, you can create a folder at the first level within the Mailboxes folder named Business and place business related xxxxxx.mbox files within the Business folder.
    When launching Mail, there will be a Business folder in the mailboxes drawer that is colored white and within, each mailbox that contains messages will be colored blue.
    If he wants to transfer all messages from one mailbox to another and then delete the empty mailbox, transferring messages from one mailbox to another must be done from within Mail.

  • Imported iMovie HD project clips have incorrect capture date - add-on info

    People converting their .dv files from the iMovie HD style into iMovie 09 style report some frustration at having to rename their clips to view them properly. For discussion, see:
    http://discussions.apple.com/thread.jspa?threadID=1344628
    Fortunately, within the thread, a kind soul has posted a solution - many thanks. This posting is an add-on to that thread, posted here because that thread is archived.
    Unfortunately, I could not understand the instructions fully, so I spent some time working out how to make it go, since the solution requires something beyond the usual drag-and-drop to work.
    *To Convert the Dates and Names of DV Files from iMovie HD to the Event-Date Format of iMovie 09*
    1. Download and Unzip the DVRecordingDate file. It produces a folder with four items: COPYING.txt, DVRecordingDate.class, README.txt and DVRecordingDate.java. None of these should be double clicked.
    2. Identify the folder that has your iMovie 6 .dv files. These files will be entirely renamed, so if they are used in any other projects, only work on a copy of them.
    3. Launch the program Terminal - it's in the Utilities folder of the Applications folder
    4. When you see a prompt ending in a $, type +cd /Users/yourname/Downloads/DVrecordingDate-1-1.0+,
    where /Users/yourname/Downloads/DVrecordingDate-1-1.0 is the folder containing the downloaded DVRecordingDate file. This will change the prompt that appears on every line, but it will still end with a $.
    (HINT: you can get the path name of this folder by selecting it in the Finder, and choosing copy. All you then need do is type cd in Terminal, and paste the rest in.)
    Now is when we rename the files - as stated elsewhere, the Finder creation date is NOT changed - it is only the file name that changes. However, this is enough for iMovie 09 to understand when the file was recorded, and where it should be stored within the events system.
    5. At the $ prompt, type +java DVRecordingDate -rename /Users/yourname/Movies/iMovie\ Events.localized/myholiday/Clip\ *.dv+, where +/Users/yourname/Movies/iMovie\ myholiday/+ is the name of the the folder that has your iMovie 6 .dv files. Again, this can be copied from the Finder, and pasted in after typing java DVRecordingDate -rename. The *.dv part os to ensure the program coverts all your files in the folder.
    A list appears:
    Renaming file(s) from, to:
    /Users/yourname/Movies/myholiday/Clip 01.dv clip-2003-08-31 20;37;41.dv
    /Users/yourname/Movies/myholiday/Clip 02.dv clip-2003-09-04 18;43;26.dv
    /Users/yourname/Movies/imyholiday/Clip 03.dv clip-2003-09-04 19;00;50.dv
    etc
    and in the Finder all the files are renamed.
    And that's it. You can now import the .dv files into iMovie 09 and it will give the files their proper dates within the system.
    Hope this saves someone some time...

    No, I mean that when I import old iMovie projects into iMovie 08 the 'capture date' of footage is not correctly imported (the .dv file creation date is read in instead). Sorry to confuse the issue with the comment about the camera: I just meant to say that all the equipment I used in my setup is fairly standard yet there is a glaring bug in this fundamental functionality.
    Regarding re-import: it took me ages to originally import my dv tapes to the computer & not really practical to go through that again.
    FWIW, I've not yet imported anything from dv directly into 08

  • CLM excel import

    Hi CLM gurus,
    I have this problem AGAIN regarding CLM imports. I have successfully outputted an EXCEL file (.xls) from XI. When I open the file, it can be opened as an excel file with no problems. When we tried importing it to CLM, the file was not recognized as an excel file. The file that I created was an XML that was transformed to .xls using xslt mapping. How can we remedy this problem. Isn't xls-transformed excel same as .xls excel?
    Thanks all.
    IX

    Hi XI,
        E-Sourcing does not recognize .XML  extension, instead you will have to use .xml  extension. So in PI Integration Builder,in Communication Channel configured for this scenario ,use .xml as file detention in "File Name Scheme", that will resolve this issue.
    Regards,
    Satish

Maybe you are looking for

  • Urgent Need for Freeing space on time machine

    unable to free space on time machine for backups. Unable to see option to delete various backups by right clicking on the file name in the list on the right side of the screen. I clicked on the "gear icon" on the actual picture of the backup in Time

  • Webtemplate cannot be saved

    Hi, Last night I transported some webtemplates. Now this morning I made modifications to one of the templates but I cannot save it anymore Error message is RSWWW  240 The Object cannot not be processed due to a transport problem any idea how I can re

  • Is it possible to make a global keyboard command for an Applescript application?

    I have created an application with Applescript, and I want to create a global keyboard command that brings up an input dialogue. If that's not possible, is there a way to make a dialogue appear when the Dock icon is clicked?

  • Why does my ipod not show in devices on itunes

    Help!  I used to transfer itunes to my ipod nano without problem but now it's not showing in Devices.  I have tried all the advice from apple, restarting the computer, checking for latest updates, etc but to no avail.

  • MacBook Pro Crashes on Boot

    Hello, I recently purchased the Mountain Lion update for my 13" MacBook Pro which I believe is a 2010 model. The download and install seemed to run smoothly, taking about an hour total, and then Mountain Lion booted up. This computer has several acco