Migration of PO with "free item" indicator not working (BAPI_PO_CREATE1)

Hi experts,
we are using the BAPI_PO_CREATE1 to migrate POs. However, when we try to create a line item with a price of 0.0  and a "free item" indicator, the PO is created with a price and without the "free item" indicator (price seems to be coming from source list).
Did anyone run into this problem before with BAPI_PO_CREATE1?
Thanks!

Hi
I suggest you not to use any price in the field
POITEM - NET_PRICE & donot flag the same in POITEMX
& flag the field POITEM - FREE_ITEM & also check the same in POITEMX
I have tested this & it works fine.
Thanks & Regards
Kishore

Similar Messages

  • BADI to uncheck free item indicator (field UMSON) in PO through ME21N)

    Hi All,
    I have a requirement to remove the UMSON ( free item ") indicator while creating a PO using ME21N transaction based on the input from user. If material starts with 'P' and it is a standard order, then this field should be unchecked for that particular item. I am implementing the BADI ME_PROCESS_PO_CUST and method CHECK. However, I find that though the PO is held and not saved, the value of UMSON field is not changed.
    This is the code.
    DATA:   lt_mepoitem   TYPE purchase_order_items,
            ls_mepoitem   TYPE purchase_order_item,
            ls_mepoheader TYPE mepoheader,
            ls_head       TYPE REF TO if_purchase_order_mm,
            ls_item       TYPE mepoitem,
            ls_local      TYPE ttyp_fieldselection_mm,
            ls_inval      TYPE REF TO if_purchase_order_item_mm,
            l_error       TYPE c.
      INCLUDE mm_messages_mac. "useful macros for message handling
      ls_mepoheader = im_header->get_data( ).
      lt_mepoitem = im_header->get_items( ).
      IF ls_mepoheader-bsart = 'NB' .
        LOOP AT lt_mepoitem INTO ls_mepoitem.
          ls_item = ls_mepoitem-item->get_data( ).
          IF ls_item-matnr(1) = 'P' AND ls_item-umson IS NOT INITIAL .
            ls_item-umson = space.
            l_error = 'X'.
            CALL METHOD ls_mepoitem-item->set_data
              EXPORTING
                im_data = ls_item.
          ENDIF.
        ENDLOOP.
        IF l_error = 'X'.
          ch_failed = 'X'.
          mmpur_message_forced 'E' 'ME' '303' text-001 '' '' ''.
        ENDIF.
      ENDIF.
    Can anyone tell me what I am missing or where this can be implemented?
    Thanks
    S R

    hi,
    With Error it won' t allow you to save PO.
    What i would suggest is that
      either you give message that indicator need to checked or unchecked as per condition. and let user change is manually and 
      you check it in BADI and then save it .
      or  you change free item check as per your requirement in BADi and give a information message that this item is to be checked for  free goods or need to be unchecked .

  • Free Item indicator is SET but value appearing in MB51

    Hello MM Guru’s,
    I have PO with Acc Assignment – Q (Project) and activated Free Item indicator when I do GR with Movement type – 101 / Q accounting document gets generated. As per my understanding SAP standard behavior is if I perform GR for FOC item accounting document should not trigger.
    When I check the same in transaction MB51, I could able to view the Amount in LC for the respective PO which in turn makes inconsistencies in system.
    Please let me know how to clear these inconsistencies in system.
    Revert back in case of any additional information required from my end.
    Note: In PO history tab page Amount in LC not appearing but it is appearing only in transaction MB51.
    Regards,
    Kumar S

    SAP Guru's,
    Replicated the issue in Q environment and issue is appearing as similar to P environment.
    Created 2 Purchase requisition via network
    Created 2 POs w r to Purchase requisition that is Free item tick is activated.
    GR done for 1st PO --> Amount in LC not appearing in MB51
    GR done for 2nd PO --> Amount in LC appearing in MB51.
    In this case price control-V then as per my understanding the stock is updated on a quantity basis only,not on a value basis.
    Hence for the 2nd PO while doing GR amount should not get updated in transaction MB51.
    Please let me know how to clear the inconsistencies in Q environment.If no solution then please let me know whether I can reach out SAP for the same or not.
    Need your valuable input on the same.
    Cheers,
    Kumar.S

  • Free Item Indicator on PO and SAP standards

    Hi,
    1. I'm trying to find the 'free item' indicator on my PO, but I'm not sure where it can be found. Where on the screen would this be located? Can I not find it because it's not configured in SPRO?
    2. Just to confirm, say company X receives 110 items when they made a PO for 100. 10 items are free. Is the SAP standard to GR 100 and make a PO for 10 free items, and then finally GR these 10 free items?
    I've searched on the forum but couldn't come up with anything.
    Thanks in advance,

    Hi,
    According to the description, the scenario can be achieved by "free goods item" via condition
    NR00 in info record.
    1. you allow "grant discount in kind" in vendor master-> purchasing view
    2. allow "Qual.f.FreeGoodsDis" in material master-> purchasing view
    3. in info record-> condition screen->press "Free goods" button, and maintain the condition
        NR00 for example 100 PC/10 PC free.
    4. customizing
        OLME
        ->Discount in Kind (Discount in Form of Bonus Goods)
        ->Define And Assign Discount-in-Kind Schema
        ->Determine Free Goods Schema
        set schema = NR0001 for "purchase group"/"Calculation Schema" combination
    Then when creating PO with quantity 100 PC, apart from the main item, there would be another
    subitem with "subitem category" = 4 derived by system automatically.
    When doing the GR, 2 lines will be proposed, however only main item will be reflected in
    accounting.
    When doing invoice, also only the main item will have amount.
    Hope it helps.
    Thanks and regards,
    Polly

  • PO with FREE item

    HI expert,
                  i want to make a Po with free item. when i ticked on free the net price colume is blank and condition is also not appearing but i want give a value in net price colume so kindly suggest there is any config change is required in system pls revert back a solution its urgent
    Regds
    Pradip

    hi shikha,
    from your requirment it seems that you want to give the price but you not going to pay for it and that means 100% discount???
    If this is the scenario then please goto VOV7 select your item category and ib business data view, make pricing as
    B     Pricing for free goods (100% discount)
    hope this will help

  • Standard report of PO with free items on WBS

    Hi All,
    Is there any standard report from which we can extract the list of POs WBS wise but only with Free item?
    Means if a PO have 2 line item. First is against WBS and second one is free i.e don't have account assignment WBS. So how can we list those POs?
    Please suggest.
    Regards
    Shishir

    Hi,
       Please ensure that you have maintained the value for invoice receipt as "not equal to" X as shown below. The F1 help for the field clearly explains that if the field is not equal to X, then its a FOC material.
       Please cross check the same and test the report again. When I tested in EHP 4, its showing only the FOC item.
    Regards,
    AKPT

  • Bought iPhone as "SIM-Free", but it not work with my local SIM card

    I have bought iPhone Serial No: 82108W75A4T in Canada as "SIM-Free", but it not work with my local SIM (Orange in Israel) card. Where to check: it is or not Factory Unlocked or have any hardware/software problems or have carrier ("adhered" any phone company)

    In the local Orange: They tried with them SIM, the same negative result.
    I have addressed to Canadien phone wireless carriers.
    From some [Rogers'] has already received the answer:
    ... have checked our system and did not find your iPhone listed...  Please contact Apple...

  • Account type M and G/L account with open item management not permitted

    Hi,
    I am getting the following error while applying VL02N (PGI) is "Account type M and G/L account with open item management not permitted".  Before I got an error like posting period and I have closed those posting periods 2008/08 and 2008/07.   Now I am getting this error. 
    Please provide the solutions to overcome this and I want to execute the full transaction.
    Thanks in ADVANCE.
    Kishore

    Hi Kishore,
    Please check these threads
    Account type M and G/L account with open item management not permitted
    Re: Account type M& GL with open item managment not permitted error
    Posting to G/L accounts with open item management are not permitted
    Hope this would help you.
    Good luck
    Narin

  • Free item indicator

    Hi experts,
    Pls help me how to configure the Free item indicator in PO screen will be defaulted as "check" for specific PO doc type.
    appreciate your urgent response.
    Thanks

    Hi,
    Check the field variant assign to document type in spro->MM->Purchasing->PO->Define Document Types
    and check the field status of the  field Free item indicator  for that variant in spro->MM->Purchasing->PO->Define Screen Layout at Document Level
    Regards,
    Chetan

  • Account type M& GL with open item managment not permitted error

    Hi
    We are getting the below error message while trying to do Goods reciepting using MIGO transaction.We have created new plants and done all assignments...
    Account type M&GL account with open item management not permitted....

    Hi
    GL code is assigned for GR/IR clearing account..But in fs00,for GL account/Company code,Open item management is ticked..Can u tell me how to remove the open item management.When i untick the open item management it gives an error message as below...
    (you want to switch off the open item management function
    retroactively for an account, you must first clear all the postings
    currently on this account. You cannot make any changes to the account
    management method until this is done.)
    Iam doing config in development server...In production server open item management is unticked

  • What if sync with new computer does not work. logical connection to old with WindowsXP, 32 bit version of iTunes. New is Windows7 with 64bit version

    What if sync with new computer does not work?
    logical connection to old with WindowsXP, 32 bit version of iTunes.
    New is Windows7 with 64bit version

    Syncing to a new iTunes library or computer will erase your iPod. Only if you back up your iPod manually before syncing, you can restore your device from that backup again. A manual backup does not include the sync process.
    Do this:
    Disable autosync in iTunes, connect your iPod to your new computer and right click on it in the device list and choose backup. iTunes will backup your iPod without syncing.
    Transfer your purchases the same way, choosing "transfer purchases" this time.
    When you connect your phone for the first time, all media content will be erased. But you can restore your settings and app data from your manual backup afterwards.
    Don't forget to set up at least one contact and event on your new computer to be able to merge calendars and contacts when you sync the iPod for the first time.
    Music is one way only, from the computer to your device, unless you bought the songs in iTunes and transferred your purchases.
    There is 3rd party software out there, but not supported by Apple, see this thread: http://discussions.apple.com/thread.jspa?threadID=2013615&tstart=0
    About backups and what's saved: http://support.apple.com/kb/HT4946
    How to back up and restore:http://support.apple.com/kb/HT1414
    How to download apps for free again:http://support.apple.com/kb/HT2519
    Saving other data is also described here. How to back up your data and set up as a new device
    If your iPod can't be recognized by Windows, try these tips: iOS: Device not recognized in iTunes for Windows

  • Programmatically clearing an input item does not work

    Hello,
    I want to clear one input item (RichInputListOfValues) contained in a PanelForm programmatically, after the user presses on the "Clear" button:
    <af:commandToolbarButton text="Clear" id="ctb1"
    actionListener="#{pageFlowScope.UiBindings.clearItem}"/>Where the code that should really clear the item is:
        public void clearItem(ActionEvent actionEvent) {
                getItem().setValue(null);
                // getItem().resetValue(); // even with this, it does not work.
                AdfFacesContext.getCurrentInstance().addPartialTarget(getItem());
        public RichInputListOfValues getItem() {
            return item;
        }However, the above does not clear the item on the page. I have to click a second time to actually see the item empty as expected.
    The problem still appears if I also do addPartialTarget() on the PanelForm container.
    Do you have any idea?

    My test case:
    JDeveloper 11.1.2.2
    page:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <f:view xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
        <af:document title="untitled1.jsf" id="d1">
            <af:form id="f1">
                <af:toolbar id="t1">
                    <af:commandToolbarButton text="Clear" id="ctb1" actionListener="#{viewScope.myBean.clear}"/>
                </af:toolbar>
                <af:inputListOfValues label="Label 1" popupTitle="Search and Result Dialog" id="ilov1"
                                      binding="#{viewScope.myBean.item}"/>
            </af:form>
        </af:document>
    </f:view>bean:
    package view;
    import javax.faces.event.ActionEvent;
    import oracle.adf.view.rich.component.rich.input.RichInputListOfValues;
    import oracle.adf.view.rich.context.AdfFacesContext;
    public class myBean
      private RichInputListOfValues item;
      public myBean()
      public void setItem(RichInputListOfValues item)
        this.item = item;
      public RichInputListOfValues getItem()
        return item;
      public void clear(ActionEvent actionEvent)
        getItem().setValue(null);
        AdfFacesContext.getCurrentInstance().addPartialTarget(getItem());
    }config:
    <?xml version="1.0" encoding="windows-1252" ?>
    <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <managed-bean id="__1">
        <managed-bean-name>myBean</managed-bean-name>
        <managed-bean-class>view.myBean</managed-bean-class>
        <managed-bean-scope>view</managed-bean-scope>
      </managed-bean>
    </adfc-config>It works fine on the first click. Something's not right on your end :)
    John

  • If i bought iphone 5s from apple retail store on t mobile with free contract it will work in egypt

    If i bought iphone 5s from apple retail store on t mobile with free contract it will work in egypt????

    There are conflicted information  in this forum. The contract free T-mobile 5s is not "unlocked" in US, it  is supposed to be unlocked for overseas GSM. However, it is not clear  whether you need to activate it on T-mobile first and wait for 40 days  for unlock code to unlock it before you can use it overseas.
    I contacted both Apple and T-mobile multiple times. None of them answered question with a clear answer.
    The  best way to confirm this is to purchase the 5s from the Apple Store.  Remove the T-mobile SIM before you turn 5s on and replace the SIM with  your international SIM. Turn it on and go through the initial setup to  see if the iPhone is lock or not.
    If  it is locked, simply return to the Apple store with full refund in 30  days. Since Apple is not answering the question, why not try it yourself  on their dime?

  • I have installed the agent 10 or 15 times and one installation hasfailed, no error appeared during the installation but I am havinginconsistent issues with my ethernet card not working here and there. Werebooted and can log into Novell client but th

    I have installed the agent 10 or 15 times and one installation has failed, no error appeared during the installation but I am having inconsistent issues with my ethernet card not working here and there. We rebooted and can log into Novell client but the login prompt did not appear for ESM client or the icon was not in the systray. Everything seems to work, besides at times (a couple times today) it terminates his ethernet card/connection. I would re-image his computer but he has several applications and it would take several hours, so I am hoping someone has an idea to fix this issue. So I was trying to figure out why he did not get the prompt to login and why it's not in the systray and it appears to not have completed the install? I checked the add/remove programs, its not listed within their, I also checked the registry and found nothing for endpoint within their, but the files are within c:\program files\novell\zenworks endpoint security.
    I have also tried uninstalling it but that fails due to it "not being installed", and it will not reinstall over itself either.
    I did notice that stuninstdrv.exe is running in task manager. Any help would be great...
    Windows xp sp3
    ESM 3.5.154
    Thanks,
    Andy

    If you are searching the registry, check for the "Senforce" string. It should be at HKLM\Software\Senforce
    Try running the install program for the ZSC with the following command line:
    setup.exe /V"STUNINSTALL=1"
    If you've specified an uninstall password, try this one instead:
    setup.exe /V"STUNINSTALL=1 STUIP=password"" (please note the double quote at the end)
    Let me know if that helped you.
    Daniel
    >>>
    From: Andy_DeWees<[email protected] du>
    To:novell.support.zenworks.endpoint-security-management
    Date: 2/5/2009 12:52 PM
    Subject: I have installed the agent 10 or 15 times and one installation hasfailed, no error appeared during the installation but I am havinginconsistent issues with my ethernet card not working here and there. Werebooted and can log into Novell client but the login prompt did not appearfor ESM client or the icon was not in the systray. Everything seems towork, besides at times (a couple times today) it terminates his ethernetcard/connection. I would re-image his computer but he has severalapplications and
    I have installed the agent 10 or 15 times and one installation has failed, no error appeared during the installation but I am having inconsistent issues with my ethernet card not working here and there. We rebooted and can log into Novell client but the login prompt did not appear for ESM client or the icon was not in the systray. Everything seems to work, besides at times (a couple times today) it terminates his ethernet card/connection. I would re-image his computer but he has several applications and it would take several hours, so I am hoping someone has an idea to fix this issue. So I was trying to figure out why he did not get the prompt to login and why it's not in the systray and it appears to not have completed the install? I checked the add/remove programs, its not listed within their, I also checked the registry and found nothing for endpoint within their, but the files are within c:\program files\novell\zenworks endpoint security.
    I have also tried uninstalling it but that fails due to it "not being installed", and it will not reinstall over itself either.
    I did notice that stuninstdrv.exe is running in task manager. Any help would be great...
    Windows xp sp3
    ESM 3.5.154
    Thanks,
    Andy

  • My  iphone 3gs with version 4.0 not works for apple  TV should i need to download  any app or any other thng

    my  iphone 3gs with version 4.0 not works for apple  TV  what should  i do?

    Welcome to the Apple community.
    You should update your iPhone software.

Maybe you are looking for

  • Trouble with Remote Desktop Connection to work PC

    Note that I am trying to log into my work PC from my mac at home. My company recently announced we could log in from home with a mac into our work PC. they can't get it to work so I thought I'd try here. We use a mobile site on Safari to obtain a net

  • Activation CS6 Master Collection fails.

    I try to active my CS6 Matsre Collection. I fails, complaining about being offline.

  • Re : T-code for viewing SD document

    Hai      I created sales order delivery billing documents. Let me know the t-code for viewing these document. Thanks mani

  • Mail and Safari crashes after Security Update 2007-006 and update 10.4.10

    I just installed Security Update 2007-006 (Universal) and Mac OS X Update (Intel) 10.4.10 and now neither Mail nor Safari (nor sometimes Microsoft Messanger) will start. They just crash immediately after starting. Safari started working for a short w

  • Need to tune sql

    Hi, Query: SELECT   dim.dim_itm_loc_prcng_expld_key AS dim_itm_loc_prcng_expld_key,          dim.btch_id AS btch_id, dim.intgrtn_id AS intgrtn_id,          dim.src_sys_cd AS src_sys_cd     FROM dim_itm_loc_prcng_expld dim,wrk_dim_itm_loc_prcng_exp_id