BAPI_PO_CREATE1 Works on the First Loop

Dear all,
I have several data in a internal table, base on the data on the internal table I'm using BAPI_PO_CREATE1 to create purchase order.
On my first loop in the internal table, the BAPI_PO_CREATE1 was able to create the first PO. However, for the subsequent loops (second, third etc...) BAPI_PO_CREATE1 was not able to create PO. I have debugged and found out that the KOMP-NETPR has no value & I'm getting an error message "Net price must be greater than 0".
I also tried to pass some value on the net price in the POITEM table of the BAPI_PO_CREATE1 but it doesn't work.
I can't figure out where & why KOMP-NETPR has no value and I also don't know why the first loop always work.
Please shed some light on this. Thanks in advance.

Hello SKJ,
Thank you for your reply. However, the functional consultant insists that all the pricing are well maintained.
I came across a post in this forum with the same problem, they said that they refreshed the buffer/memory for every call on the bapi_po_create1.
I did put this line of code:
PERFORM mepo_refresh(saplmepo).
CALL FUNCTION'BAPI_PO_CREATE1'.
But it didn't work either.
Edited by: totoy_ on Nov 30, 2011 2:41 AM

Similar Messages

  • Button get_url only worked after the first loop

    Hi all,
    I created a new layer, draw a rectangle, converted it to button, made its alpha to 0 and then added a snippet to go to the url. But when it played, the action only worked after the first loop had finished. It didn't work at the beginning.
    Somebody save me
    Thanks

    your button must exist when your code executes.

  • Is there a way to create a fade only for the first loop?

    I have a loop (Modern Guitar Rock 04), which I've extended out so it repeats four times. I select the Fade Tool and X-Fade for drag. I then drag just in front of the loop and onto it, which creates a fade. However, this also creates fades at the beginning of the repeating loops. Is there a way to create a fade only for the first loop?

    The loop function always repeats the same region so of course the fade is also copied. So option+drag the original region to make a (non clone) copy, fade the first region and loop the second one (which you just copied).

  • Video not working on the first run of Android app

    I couldn't find any results regarding this problem. Maybe I'm just using wrong keywords as it is difficult to explain.
    Has anyone else encountered that video is not working on the first run of Android app? By first run I mean directly after installing. I'm using NetConnection, NetStream, Video objects and GPU renderMode. By working I mean it's not showing and can't hear the audio. I haven't yet debugged deeper so I don't know if the problem is actually related to the code loading the video.
    I've encountered the following issues, which may or may not be related, regarding the the first run and Video object:
    - The first run takes about 20 seconds to start. After that, the start is pretty much instant. If you clear app's cache, it again takes the 20 seconds to launch. The video works after clearing app's cache.
    - When creating the first Video object, the app flashes screen to black for a few frames. This is why I create a dummy Video object in the beginning.
    I use AIR 13, going to upgrade to 14, but I'm quite sure this problem and the issues have been for a while.

    I should add that we're using flv, not mp4. And they're progressively downloaded, not local.

  • I just download and install itunes 10.5 and it worked good the first days but since yesterday it crashed up, and everytime i start it it crashes again and logged me out each time. it can´t acces my itunes account. I´m using snow leopard the last version.

    I just download and install itunes 10.5 and it worked good the first days but since yesterday it crashed up, and everytime i start it it crashes again and logged me out each time. it can´t acces my itunes account. I´m using snow leopard the last version. What can i do to solve this problem and and continue using my itunes normally?

    Try doing it in a WIndows Safe mode - Restart computer and hit F8 key right after your see BIOS check and choose "Safe mode with networking"
    Do the SFC /SCANNOW again.
    If that does not work, whilst in safe mode, download Free Malwarebyte software from CNET's Download.com.  Install, update virus definition then perform a full scan.  Remove if it did find some viruses or trojans.  Restart computer.
    Back to regular windows, do the SFC /SCANNOW again.
    If that doesnot work, check to see if your Hard drive has errors or bad sectors
    GO START BUTTON /COMPUTER, right mouse click OS (C:) and choose "Properties"
    Choose "Tools" tab and under error checking, click "Check Now".
    Make sure "Scan for and attempt recovery of bad sectors" is checked and click start.
    Restart windows will perform the above task to fix errors  This may take hours depends on how big is your Hard Drive
    Good Luck!!.

  • Including image in SharePoint survey answer and hiding elements only work on the first page

    Hi All,
    I would like to add some text/remove some text etc on a sharepoint survey page.
       Which i have done using jquery/jscript.
    But unfortunately it only works on the first page.
    Any ideas how i can get it to work on all the pages?
    See a sample here on how you can add the scripts:
        http://sharepointkings.blogspot.com.au/2011/05/include-image-in-sharepoint-survey.html
    Cheers

    Hi Patrick, does the first page use the same ASPX file as the other pages? If not, you will need to add your jquery/jscript to the other page as well.
    Dimitri Ayrapetov (MCSE: SharePoint)

  • TS2972 First night I was able to watch 2 TV shows (45 min each) with no problems, but thereafter programs will not stream without constant pause to buffer. Weather conditions are ideal and my internet comes from crappy hugesnet, but worked fine the first

    First night I was able to watch 2 TV shows (45 min each) with no problems, but thereafter programs will not stream without constant pause to buffer. Weather conditions are ideal and my internet comes from crappy hugesnet, but worked fine the first night.

    The speed may have been ok at that time and is too inconsistent/too slow overall. interference may have proven to be more of an issue since as well. If using public DNS that will provide Intermittant results
    I'm sure using a hotspot would be fine but it depends on your viewing habits. An HD movie is around 4-5GB. It would also be subject to speed. requirements so best to test to see how it compares.
    You would have to check with your Carrier if hotspot it's enabled then just to into your settings and toggle it ON

  • Colors not showing up in Photoshop. Worked fine the first day, now when I click on a color it comes out in gray tones. Pop up about RAM storage?

    Just downloaded Photoshop and there was a pop up box that mentioned my RAM and something about not enough RAM left for certain 3D features, filters, and image/color graphics(?). I continued. Everything was working fine the first time I went to use it, but the next day I opened the program and could not get any colors to show up. How can I fix this?

    Go to Image>Mode and make sure you color is RGB, not gray scale. Also, a preference reset might help: Ctrl/Cmd+Alt/Opt+Shift as you initiate Photoshop startup.
    Benjamin

  • HT4623 I have purchased a Epson Workforce 435, can't AirPrint, will this work with the first gen iPad?

    I have purchased a Epson Workforce 435, can't AirPrint, will this work with the first gen iPad?

    Also i forgot to add after a night of searching how to turn the Epson Workforce 435 printer into Airprint friendly and not iPrint (which are 2 completely different things) i donwloaded a program called (AirPrint Activator) from HandyPrint. The link is below to download the software. Once i installed the application i set my printer to be shared over my Home Network (Wi-Fi Network). Once you have done that, open the AirPrint Activator application you have just downloaded, swtich it ON from OFF mode, and then you should easily see your printer name in my case EPSON Workforce 435 and then just close the application. Then go to your IOS Device like your iphone/ipad/ipod touch select a picture that you want to test print or even an attached PDF from your email, and select Print in the share button. You will then be prompted to select your printer. Your printer you automatically be recongised then just select print. And now you have a complete AirPrint ready printer with a Printer that doesnt even support the function. Im sure you can do this to all Wireless Printers, even if they came out before Apple AirPrint service launch.
    And also if you still need guidance and a video to follow from just click the Youtube link below
    http://www.youtube.com/watch?v=9r75m_VUr0E
    Download AirPrint Activator Link
    http://netputing.com/handyprint/
    I hope that this helps your question and enjoy your day
    Kind Regards
    Ahmed

  • I have 2 hotmail accounts. They worked fine the first month or so, now about 20 seconds after I sign on, it goes to an send message screen but I cannot send. When I go back to inbox, it resets to the send screen again. HELP.

    I have 2 hotmail accounts. They worked fine the first month or so, now about 20 seconds after I sign on, it goes to an send message screen but I cannot send. When I go back to inbox, it resets to the send screen again. HELP.

    Here you can see how you can setup your Hotmail accounts in the Mail App on the iPad; http://convert-dvd-ipad.com/dvdipad/setup-hotmail-microsoft-exchange-ipad-2/

  • HT1349 I recently bought an iPhone and my charger is not working. It worked for the first time but now it is now it is not working. Can i get it replaced in India because i bought this phone from US?

    I recently bought an iPhone and my charger is not working. It worked for the first time but now it is now it is not working. Can i get it replaced in India because i bought this phone from US?

    The warranty is only good in the U.S.
    You woulod have to send it to someone in the U.S.  They could take it in and if it is defective, then it would be replaced.

  • Beginner wants to know how you can on the first loop enter a value then let a feedback number take over from there

    How can I on the first loop enter a number into the amplitude subsection of the simulated signal box, and then from that loop onwards use the feedback number?
    I am using a simulated signal, tone measurements, and case structure with + or - calculations depending on orignal reading to control the amplitude to a user defined value.
    Any help would be very much appreciated, as i have just started out on labview 7
    Cheers

    That's the purpose of a shift register or feedback node. They are the same thing and interchangeable. Loop at the attached picture. You initialize either outside the while loop and then whatever calculations you perform, are passed to the next iteration.
    Attachments:
    feedback with initialization.jpg ‏8 KB

  • HT5479 My brand new ipod nano is no longer connedting to my brand new jbl wireless speaker. It worked fine the first day and now either cannot find the apeaker or the connection "fails."  Any advice?

    I bought my dad a new ipod nano and a jbl wireless speaker from the same apple store. Everything worked perfectly with the bluetooth connectivity the first day. Then my dad accidentally hit the "forget this device" button when he was trying to turn the bluetooth off. Now the nano either does not recognize the device or it will recognize the device but not connect. I would appreciate any advice.

    Does it charge on a computer? Does it appear in iTunes?
    If so:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar          
    Also see:
    - See:      
    iPod touch: Hardware troubleshooting
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.

  • Calling spclientcontext.executeQueryAsync works on the first call, but fails on the second call

    I have a webpart that I'm using to display a tree of folders and files from a SharePoint list. When a folder is clicked, some client side code is used to expand the contents of the folder (the code queries the SharePoint list for any child items of the folder).
    The code works the first time the folder is clicked. However, if I then click on a sub folder, the code fails. If I click on the sub folder a second time, the code succeeds. This pattern continues - every second time I call my function, it fails.
    E.g.
    First Click (clicked on Guides), which succeeds, and expands the Guides folder. Second Click (clicked on "In Progress") (fails)
    Third Click (clicked on In Progress) (succeeds)
    Any ideas why this might happen?
    My code looks like this:
    var _dweb;
    var _dlist;
    var _dwebId;
    var _dlistId;
    var _dfolderUrl;
    var _dchildContainerId;
    var _dactionContainerId;
    var _dlistItems;
    var _rtdocsJsInQuery = 0;
    function expandorcolapsefolder(webId, listId, folderUrl, parentElementId, childContainerId, actionContainerId) {
    var parentElement = $(("#" + parentElementId));
    var childElement = $(("#" + childContainerId));
    if (parentElement.attr("expanded") == "0") {
    parentElement.attr("expanded", "1");
    childElement.css("display", "block");
    } else {
    parentElement.attr("expanded", "0");
    childElement.css("display", "none");
    return;
    if (childElement.attr("dataretrieved") == "0") {
    GetData(webId, listId, folderUrl, childContainerId, actionContainerId);
    function GetData(webId, listId, folderUrl, resultsElementId, actionContainerId) {
    if(_rtdocsJsInQuery==1)
    alert('Please wait for the previous action to finish, before trying again.');
    _rtdocsJsInQuery = 1;
    _dchildContainerId = resultsElementId;
    _dactionContainerId = actionContainerId;
    _dwebId = webId;
    _dlistId = listId;
    ShowActionContainer(actionContainerId);
    try {
    var context = new SP.ClientContext.get_current();
    _dweb = context.get_web();
    _dlist = _dweb.get_lists().getById(listId);
    var query = new SP.CamlQuery();
    query.set_viewXml('<View><OrderBy><FieldRef Name="Title"/><FieldRef Name="FileLeafRef"/></OrderBy></View>');
    query.set_folderServerRelativeUrl(folderUrl);
    _dlistItems = _dlist.getItems(query);
    context.load(_dweb);
    context.load(_dlist);
    context.load(_dlistItems, 'Include(ID,Title,DocIcon,_dlc_DocIdUrl,DisplayName,FileSystemObjectType,FileLeafRef,ServerUrl)');
    context.executeQueryAsync(QuerySuccessful,QueryFailed);
    } catch (e) {
    alert("Failed to execute query... " + e);
    HideActionContainer(actionContainerId);
    function QuerySuccessful(sender, args) {
    try {
    // Code omitted.
    } catch (error) {
    alert("Failed to process query results... " + error);
    _rtdocsJsInQuery = 0;
    window.setTimeout(HideActionContainer(_dactionContainerId), 500);
    function QueryFailed(sender, args) {
    alert('Failed to get list items. \nError: ' + args.get_message() + '\nStackTrace: ' + args.get_stackTrace());
    _rtdocsJsInQuery = 0;
    HideActionContainer(_dactionContainerId);
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

    I fixed this problem by initialising the clientcontext object with a URL (rather than using the get_current property). This suits my needs, as the web that the page the webpart is on, won't always be in the same web as the list.
    I'm still unsure why  "var context = SP.ClientContext.get_current();" fails every second time?!
    Here's the snippet of code I changed, for others reference (namely "var ctx = new SP.ClientContext('/weburl');"):
    function GetData(webId, listId, folderUrl, resultsElementId, actionContainerId) {
    if(_rtdocsJsInQuery==1)
    alert('Please wait for the previous action to finish, before trying again.');
    return;
    _rtdocsJsInQuery = 1;
    _dchildContainerId = resultsElementId;
    _dactionContainerId = actionContainerId;
    _dwebId = webId;
    _dlistId = listId;
    ShowActionContainer(actionContainerId);
    try {
    var ctx = new SP.ClientContext('/eog');
    _dweb = ctx.get_web();
    _dlist = _dweb.get_lists().getById(listId);
    var query = new SP.CamlQuery();
    query.set_viewXml('<View><OrderBy><FieldRef Name="Title"/><FieldRef Name="FileLeafRef"/></OrderBy></View>');
    query.set_folderServerRelativeUrl(folderUrl);
    _dlistItems = _dlist.getItems(query);
    ctx.load(_dweb);
    ctx.load(_dlist);
    ctx.load(_dlistItems, 'Include(ID,Title,DocIcon,_dlc_DocIdUrl,DisplayName,FileSystemObjectType,FileLeafRef,ServerUrl)');
    ctx.executeQueryAsync(QuerySuccessful,QueryFailed);
    return true;
    } catch (e) {
    alert("Failed to execute query... " + e);
    HideActionContainer(actionContainerId);
    return false;
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

  • PDF Embed only works on the first try

    Hi everyone,
    i've finally got it. The PDF Embed worked on my Reports Server.
    But a strange thing is happening.
    When I start the Reports Server and run the report for the first time everything works just fine, but when I try to run the report again i receive the following error:
    REP-1923: PDF Font Embed error
    The report doesn't works again until I stop and restart the Reports Server. And again after i run the report for the first time it doesn't works anymore until new restart.
    I'm using Oracle 9iAS (9.0.2.1) with 2703110 and 2842923 patches installed.
    The system is Red Hat Linux 7.3.
    The uifont.ali file:
    #===============================================================
    [ Global ] # Put mappings for all surfaces here.
    # Mapping from MS Windows
    Arial = helvetica
    "Courier New" = courier
    "Times New Roman" = times
    Modern = helvetica
    "MS Sans Serif" = helvetica
    "MS Serif" = times
    "Small Fonts" = helvetica
    [ PDF:Embed ]
    # This example shows how to embed Type 1 helvetica font into the PDF file:
    # helvetica = "helvetica.afm helvetica.pfa"
    # You need to specify the .afm file before the .pfa file.
    # The font files must exist in one of the folders specified in REPORTS_PATH.
    helvetica = "I2501P.afm I2501P.pfa"
    The Font I'm using is I2501P (a bar code font).
    The I2501P.afm I2501P.pfa files are located in $ORACLE_HOME/reports/samples/demo. This directory is on $REPORTS_PATH.
    The reports is being called by this URL:
    http://caarjrep.caarj.com.br:7778/reports/rwservlet?server=repserver+module=TEST.RDF+destype=cache+desformat=pdf+delimiter=tab+userid=scott/tiger@iasdb
    Anybody can help??
    Thank you all.
    Marcus Oliveira ([email protected])

    Hi Marcus
    I faced the same problem. I understand from Oracle that this has been fixed and will be available in the next patch whenever it becomes available.
    Regards
    Sripathy

Maybe you are looking for

  • How to fix the music in my itunes to be in order?

    Hi I have a problem with my music in the itunes and I was hoping someone could help me find out the solution. The things is some of my music in itunes are not in order but not all of them. I was wondering do it have to do with anything with the lette

  • DocumentBuilder.parse when URI requires a login

    Hello. I am trying to read xml from a URL and am succeeding when the URL does not require a login. However, when a login is required, instead of getting the XML, I am getting what an anonymous user who would access the URL through a browser would see

  • Time Machine Exclude Items Not Working

    So I just started using TM, or rather trying to use it. I have a pretty big HD to backup, and since 200GB of it is just a copy of one large folder on a server I wish to exclude it from backup. So I go into Time Machine and click the "Options" button,

  • Error in updationg the opportunity in data Migration program

    Hi,   I am getting an error in updationg the opportunity in data Migration program. I am using   CALL FUNCTION 'BAPI_BUSPROCESSND_CHANGEMULTI'           TABLES             HEADER        =    li_header             ITEM          =        lt_bapibus2000

  • Flash CS6 crash

    Flash crashes when I am doing very fine work, such as creating a complex mask with a fine pen. The crash notice states:                                                                       'FlashPro crash log (9).mdmp' After I restart Flash (even if