BAPI or Fm Inforecords

Hello Experts,
Is there is any BAPI or Fm to update inforecords(ME12).
I want to create new condition types and validity dates for the conditions.
Thanks in Advance
Vasanth

Hi Vasanth,
I am not aware any BAPI available but you can use this FM ME_UPDATE_INFORECORD.
Also please check other FM.
<b>ME_DB_UPDATE_INFORECORDS
ME_UPDATE_INFORECORD_COND
ME_UPDATE_INFORECORD_PD</b>
Hope this will help.
Regards,
Ferry Lianto

Similar Messages

  • Problem while creating Inforecord & Conditions

    Hi all,
    I need to create inforecords with conditions.  I use 'ME_DIRECT_INPUT_INFORECORD' bapi to create inforecords. But i dont know how to create conditions related to inforecord. Help needed.
    Regards,
    Orhan
    Edited by: goktasor on Jul 23, 2010 12:31 PM

    hi,
    thank you guys. i solved own.
    use ME_DIRECT_INPUT_INFORECORD to create inforecord.
    then use BAPI_PRICES_CONDITIONS to create conditions related to it.

  • BAPI/FM to change the PO inforecord condition type netprice

    Hi Frnds,
    Is there any BAPI which changes the PO inforecord net prices based on the condition type values(KSCHL). If anybody has come across such developments, please do reply...
    Regards,
    Karthick C

    Hi,
    You can use the BAPI -
    'BAPI_PRICES_CONDITIONS'. Inside this BAPI, if you go to the tables BAPICONDCT, there is a parameter called as OPERATION. You need to mention this field before using the BAPI.
    003 - Delete: Message contains objects to be deleted
    004 - Change: Message contains changes
    005 - Replace: This message replaces previous messages
    009 - Original: First message for process
    023 - Wait/Adjust: Data should not be imported
    018 - Resend
    You should mention any of the above one parameter for your BAPI calling.
    Regards,
    JLN

  • Creating Scheduling Agreement using Bapi

    Hi Gurus,
           I want to Create Scheduling agreement , InfoRecords using Bapi.
    I use BAPI_AGREEMENT_MAINTAIN .But it's not creating agreement.It throwing error message .
    Useful Answers will be rewarded with Points.

    Hi,
        Error Messages are Not Possible to determine a consumption account and No batch input data for screen.
    Could you suggest what all the Input field  I need to pass it .
    Thanks for Your help

  • FM to upload condition records into inforecord (ME12).

    Hai experts,
    Can any one let me know if there is a FM or BAPI which can be used to update/upload condition records into inforecord (Transaction ME12). I need to know it to write a program for mass change/adding of conditions for huge number of inforecords.
    A sample program would be more helpful for me.
    Thanks in advance.
    Matt.

    Hi,
    Please try given below code.
        CALL FUNCTION 'ME_INITIALIZE_INFORECORD'.
        CALL FUNCTION 'ME_DIRECT_INPUT_INFORECORD'
          EXPORTING
            activity         = 'V'
            i_eina           = ls_eina
            i_eine           = ls_eine
            i_no_suppose     = ' '
            i_vorga          = 'A'
          IMPORTING
            e_eina           = ls_eina_new
            e_eine           = ls_eine_new
          TABLES
            t_head           = lt_head
            t_line           = lt_line
          EXCEPTIONS
            textname_invalid = 1
            OTHERS           = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ELSE.
          CALL FUNCTION 'ME_POST_INFORECORD'
            EXPORTING
              i_matnr  = ls_eina-matnr
              o_matnr  = ls_eina-matnr
            TABLES
              t_eina_i = lt_eina.
          IF sy-subrc IS INITIAL.
            CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                wait = 'X'.
    Regards,
    Narendra

  • How to make BAPI_PO_CREATE1 not to get net price in inforecord, etc...

    Hello Experts,
    If we dont pass any values in the net price, this BAPI gets the default price in the inforecord.
    Now, we do now want this. Instead, what we want is to not create the PO entirely. Is there a way
    to prevent BAPI_PO_CREATE1 to NOT get net price from inforecord?

    Hello
    Try to set the IMPORT paramter NO_PRICE_FROM_PO = 'X'.

  • ME11 Bapi for  Gross Price conditions PB00 : conditions supplement

    Please let me know any bapi for ME 11 gross price conditions pb00 : conditions supplement.
    No one knows about this?
    Edited by: tashvi on Apr 2, 2009 9:31 PM

    I am abale to create inforecord using BAPI's . But the problem is with conditions .
    If a vendor gives discount to a material .
    where do i need to populate those values?
    Edited by: tashvi on Apr 3, 2009 3:26 PM

  • BAPI or FM

    Hi friends,
    my requirement is to develop a program which automatically creates InfoRecord and Sourcelist for a given
    material number,
    the required input fields for the info record and sourcelist will be brought from other ztables.
    Now the problem is to find out the function module or Bapi which performs the exact function of ME11, and ME01.
    i searched in the tcodes SE37 and Bapi for the
    createinforec but could not round up on any because, none of those have any proper documentation,
    has any one come across such a scenario earlier,
    it would heipl me a lot in the future if some one could guide me how to find a function module or BAPI in a set of function modules in SE37.
    Or more precisely, given a tcode how do i find an equivalent BAPI or FM.
    Best Regards.

    Hello Vinay,
                   You can go to the T-Code SWO1 and use the Pattern BUS* and Press F4. You'll see a list of all possible Business Objects. Select the Appropriate (Material Master or something relevant) and DISPLAY it. Inside, you'll find some Methods which will internally use BAPIs.
    Hope I was helpful.
    Thanks and Regards,
    Venkat Phani Prasad Konduri

  • PO creation BAPI

    Dear Gurus,
    I am trying to create an account assignment - "K" - PO through BAPI_PO_CREATE. The condition is that the net price should get updated only from the info-record. But, eventhough we are passing the net price into the BAPI from the input file, the PO is getting created only with the prie from the condition record. I am getting an information message in (I_Return) - Price updated from condition record.
    In the info-record I have maintained the variable order unit = 2 and also maintained the respective condition record.
    Please let me know how to resolve this.
    Regards
    Badrinath Murali

    Hi,
    First and foremost thing is that the conditions in the PO are always time dependent.
    Do you want the system to pick up the price which you entered ---
    1. through BAPI or
    2. should it pick from inforecord or
    3. should it pick up from condition record?
    for the (1) case delete the condition record or change the validity of the condition record and info record to the future date and upload the POs through BAPI
    for the (2) case delete the condition record or change the validity of the condition record and upload the POs through BAPI.
    for the (3) case delete the info record and upload the POs through BAPI
    Hope I clarified ur doubt.
    regards,
    Kannaiah Naidu C

  • BAPI needed

    hi
    I need a BAPI which will be able to create a Inforecord using ME11...
    My other requirement is to change an existing Inforecord's condition type... please assist me in finding one
    Points for all helpful answers

    Hi,
    Have a look at the following BAPI's.
    Function Module : MEWI                           BAPIs for Info Record
    BAPI_INFORECORD_GETLIST        Display Purchasing Info Records
    Function Module : IBAPI_C
    IBAPI_C_GET_INFO_RECORD
    Thanks,
    Samantak.
    <b>Rewards points for useful answers.</b>

  • FM/BADI to create INFORECORD

    Hi all,
    I've searched a lot, but I'm unable to create an INFORECORD.
    When creating a quotation, I need to check if the materials have an inforecord, if they don't have an inforecord I have to create it.
    I'm using ME_PURCHDOC_POSTED badi to input my code.
    How do I accomplish it?
    Witch FM or BAPI do I have to use and how?
    If you have some sample code, I appreciate it a lot!
    Best regards,
    Carlos Constantino

    Hi Carlos,
    I would like to suggest,
    ME_CREATE_COND_INFOREC
    INFORECORD_GETLIST - Display Purchasing Info Records
    HR_ECM_CHECK_INFOTYPE_RECORD - Perform checks on compensation process infotype record data
    CO_MK_IBAPI_GET_INFO_RECORD
    MB_CHK_MATERIAL_FOR_INFORECORD
    BAPI_INFORECORD_GETLIST - Display Purchasing Info Records
    WSTN1_INFO_RECORD_BUILD - Fill data of the purchasing info records
    I would also like to suggest a reference for the code,
    [SDN - Standard Reference for adding inforecord price 2lis_o2_scl |How to add inforecord price to 2lis_o2_scl and coding required;
    [SAP HELP - Standard Reference for Number for purchasing info record|http://help.sap.com/saphelp_nw04/helpdata/en/7b/71d238d7554c49e10000000a11402f/content.htm]
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

  • Updating NETPR field of table EINE using BAPI

    Hello All,
    I have a requirement to update info record data in tables EINE, EINA, KONP. The fields to be updated are KSCHL, KBETR and NETPR. I am able to successfully update KBETR and KSCHL fields using bapi BAPI_PRICES_CONDITIONS. But I am unable to find any field in the bapi structures that would update NETPR field.
    Request you to please suggest how can I update NETPR successfully in table EINE.
    Thanks in advance.
    Anand

    Hi Anand,
                         Use the Function Module 'ME_DIRECT_INPUT_INFORECORD' to update/change the info record values.
    Pass the netpr value in ls_eine structure.
    To get better understanding on using this function module, please have a look on this link
    Create new inforecord with standard-condition via FM
    Regards,
    Arun Prasath Kumar.
    Edited by: Arun Prasath Kumar on Jan 17, 2011 12:09 PM

  • IS-Retail: Create Inforecord

    Hi,
    i have to create an Inforecrod for an existing article in an IS-Retail system. Is there any BAPI to do that? I saw none.
    So the best option seams to read an existing inforecord (eina, eine) and wirte it again to the database with a function module. Is that right?
    Could you suggest me a good FM to do this?
    Thanks a lot,
    Manuel

    There exists an IDOC type INFREC for the inforecord.
    Behind is the FM ME_MAINTAIN_INFORECORD.
    Use the sequence for every article
    'ME_INITIALIZE_INFORECORD'
    'ME_MAINTAIN_INFORECORD'
    'ME_POST_INFORECORD'
    But I guess you will update or create retail master data.
    For easier handling please look at function module
    WRF_MATERIAL_MAINTAINDATA_RT
    It works like the BAPi but can update also the purchasing view and much more data like additionals etc.
    Regards
    B

  • Update PO num and Item num of a Inforecord

    Hello Guys,
      I want to clear the PO number and Item number against a Inforecord for a plant/p.org..
    how can i do?(tcode/bapi/fm)
    thanks

    this field is not editable
    I know only one option (except of hard table updates):  update the inforecords with IDOC method from LSMW.

  • Open Purchase Order UPload Using the BAPI 's

    i need to upload the open Purchase Order using the BAPI function BAPI_PO_CREATE1., below is the given fileds blod are for Header, header will Repeat for the line items,can any one help me out  using the BAIP's for upload the PO, i need sample code for this ........
    Thanks & Regards
    Raghu
    <u>Field Name     Field Description                              Type     Length</u>
    <b>EBELN             Purchasing Document Number                         CHAR     010          X
    BUKRS             Company Code                                                     CHAR    004     MN10     C
    EKORG             Purchasing Organization                              CHAR     004     MN00     C
    EKGRP             Purchasing group                              CHAR     003          X
    BSART             Order type (Purchasing)                              CHAR     004          X
    LIFNR             Account Number of Vendor or Creditor                    CHAR     010          X
    BEDAT             Purchase Order Date                              DATS     010          X
    ZTERM             Terms of payment key                              CHAR     004          X
    WAERS             Currency Key                                   CUKY     005          X
    INCO1             Incoterms (part 1)                              CHAR     003          X
    INCO2             Incoterms (part 2)                              CHAR     028          X</b>
    EBELP             Item Number of Purchasing Document                    NUMC     005          X
    EMATN             Material number                                   CHAR     018          X
    WERKS             Plant                                        CHAR     004          X
    LGORT             Storage location                              CHAR     004          X
    EPSTP             Item category in purchasing document                    CHAR     001          X
    KNTTP             Account assignment category                         CHAR     001          X
    EINDT             Item delivery date                              DATS     010          X
    MENGE            "Purchase order quantity (direct input, transfer of POs)"     CHAR     013          X
    MEINS            Order unit                                   UNIT     003          X
    NETPR            "Net price: Document currency (direct input, transfer of"     CHAR     011          X
    PEINH            "Price unit (direct input, transfer of POs)"               CHAR     005          X
    BPRME            Order Price Unit (Purchasing)                         UNIT     003          X
    BPUMZ            Numerator: Conversion OPUn into OUn (direct input of POs          CHAR     005          X
    BPUMN            Denominator: Conversion OPUn into OUn (direct input of P          CHAR     005          X
    SAKTO            Cost element                                   CHAR     010          X
    KOSTL              Cost Center                                   CHAR     010          X
    VBELN          Sales and Distribution Document Number                    CHAR     010          X
    VBELP          Sales document item                              NUMC     006          X
    WEMPF          Goods recipient                                   CHAR     012          X
    WEBTH          "Amount in local currency (direct input, transfer of POs)"     CHAR     013          X
    WEBTF          "Amount in document currency (direct input, transfer of P"     CHAR     013          X
    WEREF          Flag for treatment of GR/IR (direct input of POs)          CHAR     001          X
    SPINF          Indicator: Update info record                         CHAR     001          X
    WEPOS          Goods Receipt Indicator                              CHAR     001          X
    REPOS          Invoice receipt indicator                         CHAR     001          X

    i need to upload the open Purchase Order using the BAPI function BAPI_PO_CREATE1., below is the given fileds blod are for Header, header will Repeat for the line items,can any one help me out  using the BAIP's for upload the PO, i need sample code for this ........
    Thanks & Regards
    Raghu
    <u>Field Name     Field Description                              Type     Length</u>
    <b>EBELN             Purchasing Document Number                         CHAR     010          X
    BUKRS             Company Code                                                     CHAR    004     MN10     C
    EKORG             Purchasing Organization                              CHAR     004     MN00     C
    EKGRP             Purchasing group                              CHAR     003          X
    BSART             Order type (Purchasing)                              CHAR     004          X
    LIFNR             Account Number of Vendor or Creditor                    CHAR     010          X
    BEDAT             Purchase Order Date                              DATS     010          X
    ZTERM             Terms of payment key                              CHAR     004          X
    WAERS             Currency Key                                   CUKY     005          X
    INCO1             Incoterms (part 1)                              CHAR     003          X
    INCO2             Incoterms (part 2)                              CHAR     028          X</b>
    EBELP             Item Number of Purchasing Document                    NUMC     005          X
    EMATN             Material number                                   CHAR     018          X
    WERKS             Plant                                        CHAR     004          X
    LGORT             Storage location                              CHAR     004          X
    EPSTP             Item category in purchasing document                    CHAR     001          X
    KNTTP             Account assignment category                         CHAR     001          X
    EINDT             Item delivery date                              DATS     010          X
    MENGE            "Purchase order quantity (direct input, transfer of POs)"     CHAR     013          X
    MEINS            Order unit                                   UNIT     003          X
    NETPR            "Net price: Document currency (direct input, transfer of"     CHAR     011          X
    PEINH            "Price unit (direct input, transfer of POs)"               CHAR     005          X
    BPRME            Order Price Unit (Purchasing)                         UNIT     003          X
    BPUMZ            Numerator: Conversion OPUn into OUn (direct input of POs          CHAR     005          X
    BPUMN            Denominator: Conversion OPUn into OUn (direct input of P          CHAR     005          X
    SAKTO            Cost element                                   CHAR     010          X
    KOSTL              Cost Center                                   CHAR     010          X
    VBELN          Sales and Distribution Document Number                    CHAR     010          X
    VBELP          Sales document item                              NUMC     006          X
    WEMPF          Goods recipient                                   CHAR     012          X
    WEBTH          "Amount in local currency (direct input, transfer of POs)"     CHAR     013          X
    WEBTF          "Amount in document currency (direct input, transfer of P"     CHAR     013          X
    WEREF          Flag for treatment of GR/IR (direct input of POs)          CHAR     001          X
    SPINF          Indicator: Update info record                         CHAR     001          X
    WEPOS          Goods Receipt Indicator                              CHAR     001          X
    REPOS          Invoice receipt indicator                         CHAR     001          X

Maybe you are looking for