BAPI or FM to create PIR(Purchasing Info Record)

Hi all,
Is anyone aware of any BAPI or Function module which i can use to create Purchasing Infor Records.
Or else using BDC is the only

Hi Syed,
didnt find any BAPI for creating Info Records, so it seems BDC is the option.
but dere is a BAPI  * BAPI_INFORECORD_GETLIST * for displaying the Info Records
Tk cr..
Regards
Karan

Similar Messages

  • BAPI  for create/change purchase info record

    Hi All,
    Could any one suggest me the BAPI for the create/change purchase info record(ME11/ME12).
    Earliest can be appriciable.
    Regards
    Anil

    Hi,
         I did not get any bapi related to create/change purchase info. But i can give u list of purchase info . if u got revert back to me
    Reward if it is usefull..
    Bye.
    BAPI_INFORECORD_GETLIST

  • Update/create the purchase info records

    Hi All,
    i got a requirment for update/create the purchase info records for the transaction ME11.
    i came to know that the FM <b>ME_DIRECT_INPUT_INFORECORD</b> is suitable for this requirment.
    but when i am trying to test this by passing data to I_EINA and I_EINE.
    it is giving some error message like "<b>Please enter at least one vendor</b>, Number entered not within external number range and etc".
    can any one guid me in passing the data to this function module, i.e. what are the required fields that are to be passed to this FM.
    if i have to update/create the EINA & EINE table data.
    Thanks,
    Rama

    Hi,
    Better use report RM06IBI0 - read its documentation with
    Tcode SE38
    Greetings Andreas

  • Purchasing info record Create BAPI

    Hi experts
       which BAPI can create a purchasing info record?
    BR
    Chris

    try Standard Program RM06IBI0
    Reward if useful.

  • BAPI for Purchase Info record creation - ME11 transaction

    Hi,
      Is there any bapi or function modules which will create the Purchase info record in Me11 transaction and also bapi for change Purchase info record in Me12 transaction?
    Points will be awarded.
    Regards,
    vinoth.

    Hi,
    ME_MAINTAIN_INFORECORD
    ME_UPDATE_INFORECORD
    ME_GET_INFORECORD_CONDITIONS
    ME_PRICING_INFORECORD.
    ME_DIRECT_INPUT_INFORECORD
    ME_POST_INFORECORD.

  • Creating Purchase Info Record in SAP using JCO

    I am trying to create a Purchase Info Record (ME11) in SAP using the below JCo code:
    It executes without fail and throws no error, but i am not able to get the newly created info record in SAP. In ME13 it says info record not found. Can i know what am i missing?
    I am using these FMs :
    1. ME_INITIALIZE_INFORECORD
    2. ME_DIRECT_INPUT_INFORECORD
    3. ME_POST_INFORECORD
    IFunctionTemplate ft1 = mRepository.getFunctionTemplate("ME_INITIALIZE_INFORECORD");
        JCO.Function function1 = ft1.getFunction();
        mConnection.execute(function1);
        IFunctionTemplate ft = mRepository.getFunctionTemplate("ME_DIRECT_INPUT_INFORECORD");
        JCO.Function function = ft.getFunction();
        JCO.ParameterList importparams =function.getImportParameterList();
        //  Setting HeadData Structure Information
        JCO.Structure headStructure = importparams.getStructure("I_EINA");
        //headStructure.setValue("105","MANDT");
        //headStructure.setValue("5300259768", "INFNR");
        headStructure.setValue("MYPART0006", "MATNR");     
        //headStructure.setValue("MYPART0006", "IDNLF");
        headStructure.setValue("100002","LIFNR");
        headStructure.setValue("10000","MATKL");
        headStructure.setValue("KGS","MEINS");
        headStructure.setValue("1","UMREZ");
        headStructure.setValue("1","UMREN");
        headStructure.setValue("SG","URZLA");
        headStructure.setValue("KGS","LMEIN");
        //headStructure.setValue("0000005300259768","URZZT");
        JCO.Structure headStructure1 = importparams.getStructure("O_EINA");
        //headStructure1.setValue("105","MANDT");
        //headStructure1.setValue("5300259768", "INFNR");
        headStructure1.setValue("MYPART0006", "MATNR");    
        //headStructure1.setValue("MYPART0006", "IDNLF");
        headStructure1.setValue("100002","LIFNR");
        headStructure1.setValue("10000","MATKL");
        headStructure1.setValue("KGS","MEINS");
        headStructure1.setValue("1","UMREZ");
        headStructure1.setValue("1","UMREN");
        headStructure1.setValue("SG","URZLA");
        headStructure1.setValue("KGS","LMEIN");
        //headStructure1.setValue("0000005300259768","URZZT");
        System.out.println("General Data Set");
        JCO.Structure purchaseDataStructure = importparams.getStructure("I_EINE");
        //purchaseDataStructure.setValue("105","MANDT");
        //purchaseDataStructure.setValue("5300259768", "INFNR");
        purchaseDataStructure.setValue("1000","EKORG");
        purchaseDataStructure.setValue("1000", "WERKS");
        purchaseDataStructure.setValue("003","EKGRP");
        purchaseDataStructure.setValue("USD","WAERS");
        purchaseDataStructure.setValue("3","APLFZ");
        purchaseDataStructure.setValue("1","PEINH");
        purchaseDataStructure.setValue("1","BPUMZ");
        purchaseDataStructure.setValue("1","BPUMN");
        purchaseDataStructure.setValue("1000","EFFPR");    
        purchaseDataStructure.setValue("0001","BSTAE");    
        purchaseDataStructure.setValue("100000","NETPR");
        purchaseDataStructure.setValue("X","KZABS");
        JCO.Structure purchaseDataStructure1 = importparams.getStructure("O_EINE");
        //purchaseDataStructure1.setValue("105","MANDT");
        //purchaseDataStructure1.setValue("5300259768", "INFNR");
        purchaseDataStructure1.setValue("1000","EKORG");
        purchaseDataStructure1.setValue("1000", "WERKS");
        purchaseDataStructure1.setValue("003","EKGRP");
        purchaseDataStructure1.setValue("USD","WAERS");
        purchaseDataStructure1.setValue("3","APLFZ");
        purchaseDataStructure1.setValue("1","PEINH");
        purchaseDataStructure1.setValue("1","BPUMZ");
        purchaseDataStructure1.setValue("1","BPUMN");
        purchaseDataStructure1.setValue("1000","EFFPR");       
        purchaseDataStructure1.setValue("0001","BSTAE");       
        purchaseDataStructure1.setValue("100000","NETPR");
        purchaseDataStructure1.setValue("X","KZABS");
        mConnection.execute(function);
        IFunctionTemplate ft2 = mRepository.getFunctionTemplate("ME_POST_INFORECORD");
        JCO.Function function2 = ft2.getFunction();
        JCO.ParameterList importparams2 =function2.getImportParameterList();
        importparams2.setValue("MYPART0006", "I_MATNR");
        importparams2.setValue("MYPART0006", "O_MATNR");
        mConnection.execute(function2);
    Edited by: rs_d123 on Dec 17, 2011 10:46 AM
    Edited by: rs_d123 on Dec 17, 2011 10:46 AM

    If i give this much code then it throws an error
    Exception in thread "main" com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Enter Purch. group :
    I have already set the purchase group in the code: EKGRP as 003. Dont know why its still asking for purchase group.
                JCO.Repository mRepository;
             mRepository = new JCO.Repository("SAPConnection", mConnection);
             System.out.println(" Repository Created ");
             IFunctionTemplate ft1 = mRepository.getFunctionTemplate("ZME_INITIALIZE_INFORECORD");
             JCO.Function function1 = ft1.getFunction();
             mConnection.execute(function1);
             IFunctionTemplate ft = mRepository.getFunctionTemplate("ZME_DIRECT_INPUT_INFORECORD");
             JCO.Function function = ft.getFunction();
              JCO.ParameterList importparams =function.getImportParameterList();
              //  Setting HeadData Structure Information
              JCO.Structure headStructure = importparams.getStructure("I_EINA");
              headStructure.setValue("MYPART0006", "MATNR");          
              headStructure.setValue("0000100002","LIFNR");
              headStructure.setValue("000010000","MATKL");
              headStructure.setValue("KGS","MEINS");
              headStructure.setValue("1","UMREZ");
              headStructure.setValue("1","UMREN");
              headStructure.setValue("SG","URZLA");
              headStructure.setValue("KGS","LMEIN");
              System.out.println("General Data Set");
              JCO.Structure purchaseDataStructure = importparams.getStructure("I_EINE");
              purchaseDataStructure.setValue("1000","EKORG");
              purchaseDataStructure.setValue("1000", "WERKS");
              purchaseDataStructure.setValue("003","EKGRP");
              purchaseDataStructure.setValue("USD","WAERS");
              purchaseDataStructure.setValue("1","APLFZ");
              purchaseDataStructure.setValue("1","PEINH");
              purchaseDataStructure.setValue("1","BPUMZ");
              purchaseDataStructure.setValue("1","BPUMN");
              purchaseDataStructure.setValue("1000","EFFPR");          
              purchaseDataStructure.setValue("0001","BSTAE");          
              purchaseDataStructure.setValue("1000","NETPR");
              purchaseDataStructure.setValue("X","KZABS");
              mConnection.execute(function);
             IFunctionTemplate ft2 = mRepository.getFunctionTemplate("ZME_POST_INFORECORD");
             JCO.Function function2 = ft2.getFunction();
              JCO.ParameterList importparams2 =function2.getImportParameterList();
              importparams2.setValue("MYPART0006", "I_MATNR");     
              mConnection.execute(function2);
              System.out.println("Execution Completed");
    Edited by: rs_d123 on Dec 19, 2011 9:04 AM

  • Purchase info record is not showing in po.

    Hi all,
    while creating purchase order i m giving purchase info record no but values from info record
    is not updating in purchase order.plz help.
    best regards.

    Hi Nissinha,
    There are so many ways to be analysed for the cause. Because PIR -Purchase info record:
    Please check in order of priority while diagnosing and finding for the solution:
    1. Check wether the PIR is created for the Vendor of that perticular material or not.
    2. Check for the validity (valid upto which date) mentioned in the PIR
    3. Check for the type of Info record (based on Item category) it is such as Standard, Sub contracting, etc
    Hope it clarifies
    Regards,
    Sapsrin

  • Purchase Info Record - Creation

    Hi,
    I want to create a Purchase Info Record. I came to know that, the following FM's are used for creating a Purchase Info Record.
    ME_INITIALIZE_INFORECORD
    ME_DIRECT_INPUT_INFORECORD
    ME_POST_INFORECORD
    The following are my questions....
    Is there any other FM's available for creating a Purchase Info Record. I want to test these FM's in SE37. Can anyone guide me with the minimum parameters required to run these FM's in SE37. How can I find the info record number created using these FM's.I mean to say.. there are no output parameters available in these FM's to know whether the PIR creation is success/wrong.
    I request everyone to help me with your answers.
    Many thanks !

    Hi,
    I am using the following information to execute the function module ME_DIRECT_INPUT_INFORECORD.
    Material : 123
    Material Group: 12164400
    Vendor Account Number: 100015
    Purchase Order Unit of Measure: PC
    Purchase Organization: 460
    Purchasing Group: 100
    Currency Key: DKK
    Plant: 316
    I get the error 'Please adjust conversion factors in conditions'.
    I do not know the root cause for this error. Can anyone guide me to solve this error? Have I missed any mandatory fields required to run the above mentioned FM?
    Kindly help. Many thanks.

  • Cost Estimate with Purchase info record

    Hello Everyone,
    I have a problem with Cost Estimation ( with Purchase info record), We hare using PIR ( Purchase Info records) for calculating cost estimation. These records are maintained on the base of Vendor and Material. There are some materials extended to more than one plant.Ex: Material: Mat1 are created under Plant PL1 and PL2.
    Problems is when we are executing cost run with parameters Mat1 and PL1, system some times taking PL2 ( the last transaction created with that material - irrespective of the plant )transactions also, please help me how to solve this problem, my user wants, system should take the transactions only selected plants.
    Thanks & Regards

    Hi,
    guess SAPNET note 713111 describes your system behaviour, additional information can be found in 351835.
    Maybe a valuation strategy with "user exit" can find the info-record price you are expecting.
    Best regards, Christian

  • Mass Creation of Purchasing Info Records

    Hi all,
    we want to change the vendor for a certain amount of articles (old vendor e.g. 102, new vendor e.g. 768).
    To order the articles (maybe approx. 1000) by the new vendor, we need to create new Purchasing Info Record (for vendor 768) for every article bought by vendor 102.
    Is there a standard transaction to handle this? MASS_EINE doesn't seem to fit to my problem.
    Regards,
    Tobias

    Hi Tobias,
    You need to go for creating new Inforecord for Article, Vendor, Porg and Site Combination .
    You should not go for Mass Maintanace for changing vendor.
    Go for Uploading by  LSMW or BDC for ME11 tcode.
    Regards,
    Selvakumar. M

  • A report on Purchase Info record.

    hi,
    Is there a way i can get to know who create a Purchase Info record???

    Hi,
    in SE16 goto EINA table and Put the Info record no. execute you will get the person name who created that.
    Regards,
    Ninad Kshirsagar

  • Purchase info record numbering

    Hi,
    I need to create purchase info record for a meterial. for that i have done the following.
    1. Created purchase infor record numbering range and group.
    2. But at the time of creating the purchase info record the number which displaying is not related to
    number i have created.
    Please let me know where purchase info record group is assigned  for numbering.
    regards
    Suresh S

    Hi Suresh,
    I undersatand your requirement.
    SAP has provided only Two standard document Types for Pur. Info Records.
    IL for Stock Material ( with matl No.)
    IN For material Group (w/o MMR).
    By default, if you enter Matl No. in the initial screen, system automatically picks the doc. type IL and the no. range assigned to it.
    If you're not entered matl. no. in the initial screen, and proceed the Transaction further, system picks the doc. type IN and prompts you to enter Matl Group.
    In the second case, the system picks up the no. range as per assignment.
    Here in your case, you want create a new no. range and assign to your IL/ IN.
    For this, you go to the transaction Define No. Ranges in Inforecord, from menu bar, choose Group-> maintain. Here you maintain your new no. range with a name. Now your new group is created with your required no. range.
    Then select your new group ( Check box), select, IL, and click assign button and save.. Your IL is assigned to your new group and system picks the new No. Range when you are creating a Inforecord with Mat No. Similarly, you can change No. range for IN also.
    or one more option you have.
    In the first screen of No. Ranges Transaction, select change intervals tab button, you'll be goto intervals screen. There, from Menu bar, choose Interval-> change current No. Then you reset your current no. to Zero, save it. The again choose Change Interval, then in that screen, change the Interval with your new no. range.
    Here in the second case, u need not maintain new groups. Just changing the Interval for the existing group.
    You can adopt any one of these options.
    Regards,
    kanth

  • Purchase Info Record for Frame work Order

    Hi Friends,
    Do we have Purchase info record for Frame work Order(FO) ?. If yes, Please tell me which info category should i need to select to create a Purchase Info Record.
    Thanks

    Hi
    Is that means, Framework  PO will also use the same standard Purchase info record ?
    Thanks

  • How to correct the net price of Purchase info record

    Hi
    When I create the purchase info record, I input the wrong net price.
    And when I use ME12 to change the purchase info record, i find the net price cannot be modify.
    How to resolve it?
    Thanks a lot.

    MR21 and MR22 are used to modify the value of the stock for the material.
    I understand that you want to change the price in the info record and the field appears as non modifiable.
    In order to modify this value, you should use ME12 and press F8 or the button Conditions and input a new price. Please note that you can also fix a time fence for validity of this data.
    Hope it will help.
    Regards,
    Flaviano.

  • Consignment purchase info record - no tax code found

    Dear all
    I have faced one problem regarding the consignment purchase info records' tax code. When I go to create the consignment pur info record we couldn't find any values existed in the field tax code. However, if I go to change another plant, the tax code information can be selected. (the plant - BP04  country HK is not worked, the plant BP06 country AU is fine). If we created the purchase info record without tax code, we would see a error when we are doing MRKO. Why ??? I have already double checked the configurations, it seems fine. Please see below. Could you help me to solve this ?? thanks  a lot.
    1. define procedure OBQ3
    Step 1,condition type BASB
    Step 2,condition type MWVS (input tax),from 1 to 1, account key VST.
    Step 3,condition type MWAS (output tax),from 1 to 1, account key MWS (out put tax)
    2. Assign country to calculation procedure in OBBG
    3. Define tax codes for sale and purchase in TC FTXP
    input tax indicates V
    output tax indicates A
    4.Assign tax code for non taxble transactional OBCL
    5.Define tax accounts OB40.

    closed

Maybe you are looking for