Purchase Info Record Change (ME12) using BDC

Hi All,
We are trying to change the Purchase Info Records using BDCs. We have about 20 condition records to change. Not all condition records change all the time. How can we use page control to identify the particular condition records that we want to change.
Thanks
Hari

Hi Krishna,
The BDC that we are trying to build will have the changes. For ex: When we created the info record (using a BDC) we had 15 condition records. This is coming from an external source.
Now, there has been a change in the pricing (outside the system). This is communicated from the external system. We need to pinpoint which condition types to update in SAP, based on the values in the external system through the BDC.
Regards
Hari

Similar Messages

  • 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

  • Purchasing Info Record Change

    Any bright notion on how to extract INFNR new and old value from CDHDR and CDPOS

    Hi,
    use fm CHANGEDOCUMENT_READ
    CALL FUNCTION 'CHANGEDOCUMENT_READ'                        
                    EXPORTING  OBJECTCLASS        = 'INFOSATZ'    
                               OBJECTID           = '8000004711'  
                            USERNAME           = C_AENDER    
                               TIME_OF_CHANGE     = C_UZEIT     
                               DATE_OF_CHANGE     = C_DATUM     
                    TABLES     EDITPOS            = AUSG        
                    EXCEPTIONS NO_POSITION_FOUND  = 1           
                               OTHERS             = 2.         
    and look abap RM06ICD1
    regards Andreas

  • 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

  • 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.

  • None approval process for Purchasing Info Record

    Hi,
    Are there some approval process in SAP for Purchasing Info Record?
    Now, we use ME11 to creat Purchasing Info Record. And use ME12 to modify Purchasing Info Record. I feel it is very dangerous. Becase if someone make a mistake. Nobody know.
    If the price is lower than actual price, vendor must ask us modify it. If the price is higher than actual price, I am not very sure what will happen.
    So, we are seeking for an approval process in SAP system.
    Dan Yang

    >
    DanYang!@# wrote:
    > Hi,
    >
    > Are there some approval process in SAP for Purchasing Info Record?
    > Now, we use ME11 to creat Purchasing Info Record.
    And use ME12 to modify Purchasing Info Record. I feel it is very dangerous.
    Becase if someone make a mistake. Nobody know.
    >
    > If the price is lower than actual price, vendor must ask us modify it.
    If the price is higher than actual price, I am not very sure what will happen.
    >
    > So, we are seeking for an approval process in SAP system.
    >
    > Dan Yang
    There is no approval process in standard,Since it serves as master.
    Better provide authorization for ME11 & ME12 to restrict it.
    Raise quotation to maintain vendor prices.

  • 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

  • Creation of purchase info records using me11 and me12

    are there any bapis for creation / update  of purchase info records with  pricing conditions using transaction me11 and me12 ?
    plz tell me ?
    Moderator message: please search for available information before asking.
    locked by: Thomas Zloch on Aug 10, 2010 2:52 PM

    looks like it accepted A017.
    Why did you choose basis type COND_A04 ?
    As this one is very special for long material numbers ( more than 18 digit material numbers) do you have such?
    E1VFSCAH is the Scale header in case of dimension specific scales. do you have such?
    Just try it with COND_A01

  • Creating Conditions for Purchase Info Records using IDoc COND_A01

    Hi All,
    we are using IDOC COND_A01 to update and add conditions in ME12 transactions.
    But when we send a condition IDoc which contains 2 condition types (Segment KONP), the standard function call creates only one database entry in the table KONP. The entry in KONP is for  standard condition types PB00, but not  for company specific types (Say: ZABC) .But when we create them manually in ME12 maintaining an purchase info record  we get both the entries in the KONP database table.
    Has anyone come accross such a problem? Is there any special field in the IDoc COND_A01 which controls the creation of the condition types?
    Thanks for any answer!

    U should use basic type INFREC01 instead of NFRECMASS01.
    Within the FM there is a check for basic type like:
    check idoc type
        if f_idoc_control-idoctp <> c_idoctp_infrec01. " INFREC01
          raise wrong_function_called.
        endif.
    Edited by: Joyjit Ghosh on Sep 15, 2008 4:57 PM

  • Change/modify  Purchase info records (EINE table)

    Hi,
    Could you pls help to in providing FM to change/modify purchase info record.
    I have tried to use FM - >  ME_UPDATE_INFORECORD
    and ME_DB_UPDATE_INFORECORDS. but, it's not working .
    Kindly advice.
    Regards,
    Bharat

    hi,
    try report <b>RM06IBI0</b> and read docu to that abap
    A.

  • Upload Purchase info Records using LSMW

    Hi,
      Im uploading purchase info records using LSMW - direct method
    Object               0060   Purchasing info rec.
    Method               0000
    Program Name         RM06IBI0
    i need step by step process for this. any one have done this using this program help me out.
    Regards,
    Vimal

    Hello Jürgen
    and thank you!
    One additional question: When I import info records using LSMW, one condition record (PB00) is created automatically. Is it possible to change the validity of that condition record using LSMW, too? Or can I only create new condition records?
    Thanks again
    Alicia

  • Mass change of text in purchase info record.

    Hi All,
    For purchasing info record, we have maintained copying rules to adopt text from material master.  In copying rule for info record, we have maintained Fixed indicator for material master text "Purchase Order Text."  The texts copied to info records from material master is having status fixed.
    The problem is, since text is having fixed indicator it is not copying to PO unless we make change or adopt it.  Now we do not know how many info record is having the text as fixed since in most PO's text is not getting copied. 
    Is there any way where we can make a mass change so that fixed indicator is removed. If LSMW, how can we know how many info records are having text as fixed indicator "*".  Or is there is some other way.
    Thanks

    Hi Alex
    You can change/ remove the "No material text' check box either by using a
    mass maintenance - transaction MASS,
    object type: BUS3003
    table: EINE
    give the Info record number/Pur org/info-category/ plant
    or using the batch input recording using LSMW.
    You can find the number entries of info-records having 'No Material text' using transaction SE16/SE16N with table EINE
    and select the 'NO Material text' with 'X: and hit number of entries..you will find it
    Thanks
    Sasi

  • How to change the Qty Conversion on a Purchase Info Record.

    I am trying to change the Quantity Conversion for a particular Purchase Info Record as it is incorrect.  The inputs are greyed out on the Purchasing Organization1 Data Screen.   I have also gone to the Conditions screen and the Menu Selection is greyed out when I go to the Menu for EXTRAS->Conversion Factors.  The Conversion Factor has been changed at the Additional Data Screen of the Material Master.   Any help would be greatly apprectiated.  Thanks in Advance.

    I have solved this problem.    From the Condition Record I went to the Menu Path, GOTO->ADDITIONAL DATA.  From here I was able to go to the Conversion Factor and make the changes.

  • Use of Purchase info records in SRM SC in Extended Classic scenario

    Hi All,
    We have implemented SRM 7.13 with Extended classic scenario. If we have Purchase info record in SAP ECC for the material, it gets populated in SRM SC in Source of supply Tab but the price of Purchase info record does not get updated in the SC line item.
    Can anyone let me know which configurations is required to fetch the Purchase info record price or we need to have a customization to achieve this.
    Thanks,
    Ankur

    HI Ankur
    when you say the price did not get updated did you check the sequence which is used for price determination ?
    1. User entry
    2. Contracts
    3.  Info record
    If still you think it is an issue please check the report  EBP_GET_BACKEND_PRICES and let me know if your problem gets fixed?
    Regards
    Vinita

  • Upating Purchase Info Records - ME12

    Hi,
    Do anyone know about BAPI for updating purchase info records for Vendor/Material
    Advance Thanks
    Aadarsh

    There is no BAPI but you can use ME_DIRECT_INPUT_INFORECORD.
    Cheers

Maybe you are looking for

  • Why can't I print to a printer ?

    I have a Windows 7 Sony and Acrobat 9.  When I attempt to print to my printer from Acrobat a window labeled "Print to File" opens and nothing goes to the printer. Prior to this I could print from Acrobat, and I can print from Word, Powerpoint, etc. 

  • Poor 4G coverage in my building

    Hello,          I am located at 60661 in Chicago and from past 1 year I have such a poor reception in my location. If I am basement of this building my speeds are sky rocketing, as soon as you come up to the 10th floor, everything drops down to less

  • Validating data in spatial

    Hi, I converted a shape file to oracle format and loaded the data . But when i validated it it gives me 13011 error which means out of bounds. I not sure what srid (i chose 8307) and the bounds for it ??? data which looks as follows:(open_sapce.dat f

  • HTML Portlet Error

    The insert html wizard (HTML Portlet)seems to reject code in certain instances even where that html is well formed. The following error is generated: (WWC-00000). The HTML used is below. Is there a limited on the size of HTML? Thanks in advance <html

  • Error deploying EAR - weblogic.management.ApplicationException:None

    Hello, When deploying a EAR, I get the following exception: [Deployer:149033]preparing application esb on <xxx-admin> [Deployer:149033]failed application esb on <xxx-admin> [Deployer:149034]An exception occurred for task [Deployer:149026]Deploy appli