I am trying to update the Subcontracting type of PO using 'BAPI_PO_CHANGE'. However i am able to update this field . Can someone advice me how to do.

HI,
I am trying to update the Subcontracting type of PO using 'BAPI_PO_CHANGE'. However i am able to update this field .
Can someone advice me how to do.
My code sample is :
wl_poitem-po_item = l_ebelp.
wl_poitemx-po_item = wl_poitem-po_item.
wl_poitemx-po_itemx = c_x.
*C--material procurement indicator need to update
*   the type of procurement
wl_materialind-po_item       = wl_poitem-po_item.
wl_materialindx-po_item      = wl_poitem-po_item.
wl_materialindx-po_itemx     = c_x.
wl_materialind-item_no       = wl_poitem-po_item.
wl_materialindx-item_no      = wl_poitem-po_item.
wl_materialindx-item_nox     = c_x.
wl_materialind-mat_provision = 'S'.
wl_materialindx-mat_provision = c_x.
wl_materialind-sched_line      = '0001'.
wl_materialindx-sched_line     = '0001'.
wl_materialindx-sched_linex    = c_x.
wl_materialind-entry_quantity  = wl_poitem-quantity.
wl_materialindx-entry_quantity = c_x.
wl_materialind-plant           = wl_poitem-plant.
wl_materialindx-plant          = c_x.
wl_materialind-material        = wl_poitem-material.
wl_materialindx-material       = c_x.
wl_materialind-item_cat        = 'L'.
wl_materialindx-item_cat       = c_x.
wl_extensionin-structure  = 'BAPI_TE_MEPOITEM'.
wl_extensioninx-structure = 'BAPI_TE_MEPOITEMX' .
wl_extensionin-valuepart1+222(1) = '1'.
wl_extensioninx-valuepart1+24(1) = c_x.
APPEND wl_poitem  TO tl_poitem.
CLEAR  wl_poitem.
APPEND wl_poitemx TO tl_poitemx.
CLEAR  wl_poitemx.
APPEND wl_materialind TO tl_materialind.
CLEAR  wl_materialind.
APPEND wl_materialindx TO tl_materialindx.
CLEAR  wl_materialindx.
APPEND wl_extensionin  TO tl_extensionin.
CLEAR  wl_extensionin.
APPEND wl_extensioninx TO tl_extensioninx.
CLEAR  wl_extensioninx.
CALL FUNCTION 'BAPI_PO_CHANGE'
   EXPORTING
     purchaseorder = l_ebeln
     versions      = wa_version
   TABLES
     return        = tl_return
*    poitem        = tl_poitem
*    poitemx       = tl_poitemx
     pocomponents  = tl_materialind
     pocomponentsx = tl_materialindx
     extensionin   = tl_extensionin
     extensionout  = tl_extensioninx.
READ TABLE  tl_return WITH KEY type = 'E' TRANSPORTING NO FIELDS.
IF sy-subrc NE 0.
   CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .
ENDIF.

In the above question i mean- I am UNABLE to update

Similar Messages

  • HT201407 I have problem with My IPhone after updating I was asked to enter password etc then asked to agree the terms and conditions which I did but nothing happens it stays on this page can someone help how to complete the last stage of updating?

    I updated my I Phone4 with the latest version iOS7 after updating I was asked to enter I tune password etc and then was asked to accept the terms and conditions which I did......but nothing happens it stays on the same unable to complete the final stage.....my phone does not work I am stuffed can someone help.....cannot get thru to Apple I tried contacting them

    Hi Rajvidya Das,
    Do the following, then try again:
    1.     Close all open apps: Double click on the Home key and then swipe up on each of the thumbnails that appear above the open app icons
    2.     Sign out of the iTunes store: Settings>iTunes & App Store, click on your Apple/iTunes ID, then sign out
    3.     Check Settings>Safari, and make sure that "Block Cookies" is not set to "Always". If it is, change it to either of the other two options
    4.     Make sure you do not have Restrictions turned on. If they are turned on, make sure that access is allowed for Safari, iTunes Store, Installing Apps, and Deleting Apps
    5.     Reset your device (nothing will be lost): Hold down the Home and Power buttons at the same time and continue to hold them down until the Silver Apple appears (up to 30 seconds). Once the Home screen redisplays sign back into iTunes and try again
    Cheers,
    GB

  • I recently reformated my Xp and I have not updated my Palm Hotsync program for treo 755p from sprint for a very long time . Can someone direct me how to do an update on my PC? Thank you

    null
    Post relates to: Treo 755p (Sprint)

    hello pmj54 and welcome to the forums.....
    You can download and install the Desktop software with the Hotsync Manager from this web site.
    http://kb.palm.com/wps/portal/kb/na/deviceselector​/page_en.html#NA%20Phones:Treo%20755p
    Let us know if we can help you come more..
    Thanks,
    Colapop

  • Create T.O using outbound delivery. Need to update the storage type.

    Hi All,
    I am using L_TO_CREATE_DN to create a T.O using an outbound delivery. It creates the T.O. But I need to decide at the time of creating the T.O the storage type to be used.
    I tried using the F.M L_TO_CREATE_MULTIPLE but that does not update the Delivery flow.
    I have already gone over the discussions on forums for L_TO_CREATE_DN but none seem to answer the question of updating the line items of the transfer order yet.
    I was hoping someone could help me out with this.
    Thanks,
    Arup

    Hey,
    Well I do not need to be worried about the storage bins as that is a selection based on a FIFO strategy. It is returned by the system.
    I need to worry about the storage type.
    So here is the complete requirement.
    I have to create TO's for LM05 and LM45. The LM45 To's have to be associate with storage units and this association occurs only if I choose VWT as the storage type..
    When I choose VWO as the storage type then the items are not associated with a Source Storage Unit.  This is because the storage type VWO does not have SU management active whereas VWT has SU management active.
    So, what I am primarily concerned about is the way I could enter the storage type information dynamically.
    Arup

  • I tried to change the file type of the movie, but now I am unable to open/edit it in iMovie, HELP !

    I tried to change the file type of the movie, but now I am unable to open/edit it in iMovie, HELP !

    Thank you very much! This is exactly what I was looking for.
    I appreciate your time and effort in solving my question : )

  • I tried synching my 2nd generation ipod touch and it told me to update the software. Then it said "error 37" and could not complete updating but it has left me with an ipod that is not recognised by my pc and wont turn on or anything- just black

    I tried synching my 2nd generation ipod touch and it told me to update the software. Then it said "error 37" and could not complete updating but it has left me with an ipod that is not recognised by my pc and wont turn on or anything- just black

    Error 20, 21, 34, 37: These errors typically occur when security software interferes with the restore and update process. If you are using a PC, follow this article to resolve this issue.
    Above from:
    http://support.apple.com/kb/TS3694
    You also may have to place the iPod in recovery mode. For how see:
    iPhone and iPod touch: Unable to update or restore

  • I'am using iphone 5 i tried to update the ios 8.0.2 using the shift key in itunes update @ windows 8 i have the file which i downloaded, but it says that firmware version is not compatible. what can i do for it . help me friends

    i'am using iphone 5, i tried to update the ios 8.0.2 using the shift key in itunes update @ windows 8 i have the file which i downloaded, but it says that firmware version is not compatible. what can i do for it . help me friends

    Hello vinoth1986,
    After reviewing your post, I have located an article that can help in this situation. It contains a number of troubleshooting steps and helpful advice concerning update issues:
    If you can't update or restore your iPhone, iPad, or iPod touch
    Thank you for contributing to Apple Support Communities.
    Cheers,
    BobbyD

  • How do I update my iOS? I have the iPad 1 and have tried over and over to try and update the iOS version to iOS 5.1, nothing works it will start updating then say that it did not update? PLEASE HELP!!!

    How do I update my iOS? I have the iPad 1 and have tried over and over to try and update the iOS version to iOS 5.1, nothing works it will start updating then say that it did not update? PLEASE HELP!!! P.s I'm running newest version of iTunes.

    Connect your iPad to your computer and let iTunes back up your iPad. After it does that disconnect it and go into your settings under general and under reset and select erase all content. After you do that reconnect to your computer, open iTunes and follow the screen options to set up your iPad as new. Once it is done doing that see if you have the latest version of iOS installed and if it does then either download gain the apps you had before or restore them from the backup made previous.

  • Using an F2100 printer & can't scan to pdf there is no option in the file type menu there used be ?

    Using an F2100 printer &  can't scan to pdf there is no option in the file type menu there used be ? I'm using xp but had an hp update and have the problem tried unistalling and reinstalling the HP software and even using system restore to be the update .I hope it is just a setting or something simple. Is there another software I can use ? Many thanks

    Follow steps 1 and 2 of this tutorial and you will be able to get a jpg file for each of your book's pages inported into iPhoto: 06 - Creating an iDVD Slideshow From an iPhoto Book.  If you don't have the Automator workflow Save PDF to iPhoto (which should be in the HD/Library/PDF Services folder) you can download it from Toad's Cellar.
    Happy Holidays

  • How to update the value in xml file using transformer after setNodeValue

    Hi,
    This is my code
    I want to set update the values in xml file using transformer..
    Any one can help me
    This is my Xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <place>
    <name>chennai</name>
    </place>
    Jsp Page
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@ page import="javax.xml.parsers.DocumentBuilderFactory,
    javax.xml.parsers.DocumentBuilder,org.w3c.dom.*,org.w3c.dom.Element"
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>JSP Page</title>
    </head>
    <body>
    <% String str="";
    String str1="";
    try
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document doc = db.parse("http://localhost:8084/XmlApplication1/sss.xml");
    out.println("Before change");
    NodeList n11 = doc.getElementsByTagName("name");
    Node n22= n11.item(0).getFirstChild();
    str1 = n22.getNodeValue();
    out.println(str1);
    out.println("After change");
    String name = "Banglore";
    NodeList nlst = doc.getElementsByTagName("name");
    Node node= nlst.item(0).getFirstChild();
    node.setNodeValue(name);
    NodeList n1 = doc.getElementsByTagName("name");
    Node n2= n1.item(0).getFirstChild();
    str = n2.getNodeValue();
    out.println(str);
    catch(Exception e)
    out.println(e) ;
    %>
    <h1><%=str%></h1>
    <%--
    This example uses JSTL, uncomment the taglib directive above.
    To test, display the page like this: index.jsp?sayHello=true&name=Murphy
    --%>
    <%--
    <c:if test="${param.sayHello}">
    <!-- Let's welcome the user ${param.name} -->
    Hello ${param.name}!
    </c:if>
    --%>
    </body>
    </html>

    hi check this exit...
    IWO10012

  • I have a white Macbook 2009 on OSX Lion. It came with the OSX Snow Leopard CD, I erased the HDD and am trying to install the OSX from disc but am getting "cannot install OSX from disc" message. What can I do?

    I have a white Macbook 2009 on OSX Lion. It came with the OSX Snow Leopard CD, I erased the HDD and am trying to install the OSX from disc but am getting "cannot install OSX from disc" message. What can I do?
    I got the macbook from a friend a few years ago and it already had OSX Lion installed. Whenever it boots from the Snow Leopard disc it says it cannot install from disc. Is there anythingI can do or should I take it to an Apple store to get them to boot OSX Lion for me?

    Insert your Snow Leopard disc and restart, press and hold the C key as soon as you hearthe startup chime, hold C until you see the Apple Logo. When your computer starts up you'll be at the first install screen, choose your language and click the arrow to go to the next screen. This screen has a menu bar, from the Utilities menu select Disk Utility, select your hard drive, this is the one with the manufacturers name or numbers, click the partition tab and then delete any existing partitions by selecting them and clicking the minus. In the drop down box select one partition and click apply. Name your hard drive and click erase. When it's done quit DU and go back to the installer, install Snow Leopard. When the installer is done and the computer is back up and running run Software Update to get to 10.6.8

  • My Ipod mini gives error -47 (ipod cannot be updated, the required file is in use).

    When I try to sync my Ipod mini, I get the following error : Error -47 (ipod cannot be updated, the required file is in use).  My software is all up to date and the ipod was restored.  Nothing helped, how do I fix this?  I have a macbook pro.
    Thanks

    I just tries that,
    So you were able to find that setting via Sophos -> Preferences?
    It has to be some other process/application on your system that is trying to access the iPod then.
    B-rock

  • HT4623 How can I update the IOS on my first generation IPAD? There is no software update option in my settings

    How can I update the IOS on my first generation IPAD? There is no software update option in my settings

    See the chart below to determine whether you can upgrade your device and what you can upgrade to. If you do not have a Software Update option present on your iDevice, then you are trying to upgrade to iOS 5 or higher. You will have to connect your device to your computer and open iTunes in order to upgrade.
    IPhone, iPod Touch, and iPad iOS Compatibility Chart
         Device                                       iOS Verson
    iPhone 1                                      iOS 3.1.3
    iPhone 3G                                   iOS 4.2.1
    iPhone 3GS                                 iOS 6.1.x
    iPhone 4                                      iOS 6.1.x
    iPhone 4S                                    iOS 6.1.x
    iPhone 5                                      iOS 6.1.x
    iPod Touch 1                               iOS 3.1.3
    iPod Touch 2                               iOS 4.2.1
    iPod Touch 3                               iOS 5.1.1
    iPod Touch 4                               iOS 6.1.x
    iPod Touch 5                               iOS 6.1.x
    iPad 1                                          iOS 5.1.1
    iPad 2                                          iOS 6.1.x
    iPad 3                                          iOS 6.1.x
    iPad 4                                          iOS 6.1.x
    iPad Mini                                     iOS 6.1.x
    =====================================
    Select the method most appropriate for your situation.
    Upgrading iOS
       1. How to update your iPhone, iPad, or iPod Touch
       2. iPhone Support
       3. iPod Touch Support
       4. iPad Support
         a. Updating Your iOS to Version 6.0.x from iOS 5
              Tap Settings > General > Software Update
         If an update is available there will be an active Update button. If you are current,
         then you will see a gray screen with a message saying your are up to date.
         b. If you are still using iOS 4 — Updating your device to iOS 5 or later.
         c. Resolving update problems
            1. iOS - Unable to update or restore
            2. iOS- Resolving update and restore alert messages

  • I am trying to install the cs5 upgrade on my new laptop, however, I cannot locate my cs4 program to install first.  Am I out of luck?

    I am trying to install the cs5 upgrade on my new laptop, however, I cannot locate my cs4 program to install first.  Am I out of luck?

    You do not need the older version installed in order to install the upgrade version, but you do need the serial number from CS4 to prove that you qualify for using CS5.  During the activation process for CS5, after you successfully enter the CS5 serial number you will be asked to select the qualifying version (CS4) from a list and to enter its serial number.
    If you registered CS4 when you originally installed it then you might be able to find the serial number available in your Adobe account online in the Products section.
    Find your serial number quickly

  • My brand new macbookpro is locked up. It's been trying to select the apps I want to use with my email account for over an hour. Please help

    My brand-new MacBook Pro is locked up. It's been trying to select the apps I want to use with my email account. How can I cancel it I've tried everything that I know of

    - Make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar
    - Or call Apple . You have 90 days of free telephone support
    Complimentary Support (USA)

Maybe you are looking for

  • How to get handle on currently used socket (JDBC)

    Hi all, I am trying to get the handle of the socket I am using for an Oracle JDBC connection. I created an instance of a Socket bound to the server and the port. However, I am not sure exaclt how to go about BINDING the socket to the JDBC call I am m

  • Computer at work, wont recognize Iphone.

    Hello, I have 1.9Ghz Power PC G5 at work with the latest Itunes and all available updates as of 9/16/09. (OS = 10.4.11). My iphone 3gs works fine otherwise but when I try to plug it in via USB/Synch cable at work, the computer just doesn't recognize.

  • Anyone bought a MBP in the last week?

    How is it in regards to the heat, whine, moo issues?

  • Career decision

    I have been working as a oracle forms developer with significant pl/sql development experience for the last three years. I have an opportunity to make a career move. I have two options at this juncture. Job1> pl/sql developer for .net front end. C# i

  • Converting a small php mail app to a cf mail app, is it possible?

    Hello; I am trying to use a small app I picked up and it uses a php email tag in a java scrip / jquery based email applet for a web site. The php tag sends a callback to the jquery when the message is sent, if it doesn't, the jquery throws an error a