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

Similar Messages

  • How to use upload condition record program RV14BTCI

    Hi
    how to use upload condition record program RV14BTCI.
    kathir.

    Hi,
    To run this program we have to maintain Upload file in Application Directory,
    We have to maintain 3 levels of records in that file.. my feel you upload through BDC or LSMW.
    For your information,
    The batch input program RV14BTCI reads the parameters is necessary
    Giving sequential file and creates (depending on the data
    In the file seq) one or more batch input sessions.
    The data are seq file in the following structure expected:
    - The session a session intent (Table KOBTCI, Record 0)
    All other records until the next session, the intent
    Last session assigned to read
    - The head condition Sentence (Table KOBTCI, record 1)
    All other records until the next condition,
    Last read head appropriate rate
    This includes the corresponding condition
    Condition table
    - The key sentence of a Main (Table KOBTCI, record 2)
    It must be directly on the head set to follow
    It contains the key condition of the table
    + Detail fields
    - The season record has a subordinate clause (Table KOBTCI, record 3)
    The teams relate to the key sentence in the main
    Best Regards,
    KSK

  • Upload condition records in SD

    Hi,
    How to upload more condition records in SD
    kathir.

    Hi,
    U can do it using VK11 itself. If u hv only 100 materials then it is beeter to do it manually. One condition record page itself will take around 10 materials. So just create excel sheet same as vk11 condition record format, copy & paste it.
    otherwise u need to go with BDC or LSMW.
    Regards,

  • Error while uploading conditions records in MEK1

    Hi All,
    I have a code that updates condition records in MEK1 from an excel sheet. The no of records in an excel sheet can go up to 60 k records. If i try to upload 5000 records, the coditions records are saved successfully. But then, if I try to upload 10000 records i get a error saying " Condition blocked by user " . On debugging I found out that the user id is mine. That is, same id as the person who is trying to upload records. The transaction is not open in any window as well.
    My question is, why do we encounter this error and is there any limit to number of records that can be uploaded at a time in MEK1?
    Thanks in advance,
    Sapna

    Hi Rao,
        For blocking you can commit in intevals or you can use wait command but it will take extra time but your records will update in one go,when a condition record is created,then after you try to update for same material or plant thats the reason its blocking,you can either use wait or adjust your excel files and avoid duplication of materials or whatever you are using in sequential manner.

  • Upload Condition Records?

    Hi MM Gurus,
    I would like to upload the condition records. (not info records).
    Are there any standard functionality available for this purpose? I had seen a Standard Direct Input Data Transfer Object in LSMW. But, I don't know how to use this, like for various Access sequences  for a single condition type, even though I know LSMW upload method for Material, POs etc..
    Please can anyone suggest me which will be the better  way to upload the condition records?
    Thanks & Regards,
    Ramkumar

    Hi,
    We use a BDC to load condition records (pricing) for both material and services.
    Cheers !

  • Mass Upload of condition records in APO system.

    Hi All,
    I wanted to mass upload condition records in to the APO system for the transaction /N/SAPCND/AO11 from an external file.
    Is there any FM available?
    If FM is not available...which one is the best way to do this?
    LSMW?? or BDC???
    Please guide me..
    Thanks,
    Babu Kilari

    At least the key fields of the conditiontable
    (here 800) must be filled in structure ls_komg.
    ls_komg-vbeln = '1234567890'.  " document number
    ls_komg-posnr = '000010'.      " item number
    clear wt_komv.
    ls_komv-kappl = 'V '.        " Application V = Sales
    ls_komv-kschl = lc_kschl.    " Condition type
    ls_komv-waers = 'EUR'.       " Currency
    ls_komv-kmein = 'ST'.        " Unit of measurement
    ls_komv-kpein = '1'. 
    ls_komv-krech = 'M'.         " calculation type;
                                  "M = Quantity - monthy price
    ls_komv-kbetr = '1234.56'.   " new condition value
    append ls_komv to lt_komv.
    call function 'RV_CONDITION_COPY'
      exporting
        application              = 'V'
        condition_table          = '800'      " cond. table
        condition_type           = lc_kschl   " cond. type
        date_from                = '20061101' " valid on
        date_to                  = '20061130' " valid to
        enqueue                  = 'X'        " lock entry
        i_komk                   = ls_komk
        i_komp                   = ls_komp
        key_fields               = ls_komg    " key fields
        maintain_mode            = 'A'        " A= create
                                              " B= change,
                                              " C= display
                                              " D= create
      with reference
        no_authority_check       = 'X'
        keep_old_records         = 'X'
        overlap_confirmed        = 'X'
        no_db_update             = space
      importing
        e_komk                   = ls_komk
        e_komp                   = ls_komp
        new_record               = lv_new_record
      tables
        copy_records             = lt_komv
      exceptions

  • BAPI for creation of condition records  MEK1 tcode

    Hi,
        Any one used to upload condition records data for MEK1 transaction code. Please give me reply any once knows.
    Thanks in advance
    Shaik Basha

    Hi Vijay,
        Thanks for giving reply. I checked BAPI_PO_Change and
    BAPI_PO_CREATE1. But in these two PO number is the mandatory field. In mek1 tcode, for particular condtion type key combination i dont have any PO field that time i will use this FMs. Please give me advice regarding this.
    I am also facing some other problem i.e to change the routing master data. I alreay downloded data from routing master in excel and i did changes in excel. Now i';ll upload the excel to sap that will update the routing master. If u have any idea for updating the routing master data.please send me the fm.
    Regards
    Shaik Basha.

  • Shipment Cost - Condition Records

    Hi gurus!
    I need to create 2 programs:
    1-download condition records from TK13
    2-upload condition records and update them like TK11-TK13.
    I found a SAP note (751826) that suggest to use Idoc.
    I give a look at them, but seems a bit too complicated to use (i need to give to user some file they can easy manage and upload the changes).
    There are any BAPI (i didn't find anything under BAPI transaction) or FM to do so?

    I'm looking at IDOC_INPUT_COND_A FM, but i don't know where to put TPLST information that I have in tables A520...A523.
    I'm missing something?

  • Coprying rule-Pricing Condition records

    Hi,
    When copying the condition records, it gave the message "*Copying is incomplete because no rules have been defined."Can anybody pls. guide as to how to define copying rule for pricing condition.
    Regards

    Prerequisites for Copying
    The following general prerequisites apply to copying condition records:
    If the condition tables differ between the source and target condition records, then:
    Only one field may differ between the two condition tables
    The condition tables must contain the same number of fields
    If the condition types differ between the source and target condition records, then each condition type must have the same calculation rule, scale type, condition class, and plus/minus indicator.
    Copying Rules
    Copying rules determine which condition types and condition tables you can use for copying between source and target condition records. The rules are defined in Customizing for Sales and must meet the prerequisites listed above. The standard R/3 System contains standard copying rules. If required, your system administrator can modify the standard copying rules or add new ones to meet your requirements. During processing, you can select from alternative copying rules, depending on what you are trying to copy.
    Examples of Different Copying Scenarios
    The following three scenarios describe how you can copy condition records.
    Scenario 1: Same condition types/same condition tables
    You offer a special discount to a particular price group (a group of customers defined in the customer master record). You want to make this discount available to other price groups by copying pricing details from the existing record. In this type of copying, the condition types (K020) and the condition tables (table 20) are identical for both source and target condition records. The only thing that varies in this case is the value of one of the key fields (the Price group field).
    Scenario 2: Same condition types/different condition tables
    The access sequences for a particular condition type can be defined in Customizing for Sales so that it accesses more than one condition table. This means condition records with the same condition type can have different keys. You can also copy condition records where the condition type is the same but the condition tables are different. Say you offer a material-specific discount to a particular price group (condition type K032, condition table 32). You can copy this material discount and create a new condition record for a specific customer (condition type K032, condition table 5).
    Scenario 3: Different condition types/different condition tables
    You can also copy condition records even when both condition types and condition tables are different. Say you offer a special discount to a particular price group (condition type K020, condition table 20) as you did in the first scenario. Here, however, you want to copy this condition record not to another price group but to a new customer-specific discount (condition type K007, condition table 7). In this case, both condition types and condition tables are different.
    Copying Process
    You can call up the copy function from the Edit menu in any of the following condition record screens:
    Creating
    Creating with reference
    Changing
    Overview
    There are several typical scenarios for using the copying function. You may want to copy an existing condition record into a number of new condition records. In this case, you use the change condition record function. Alternatively, you may want to create a new condition record and copy it to other records all in one step. In this case, you use the create condition record function. In both cases, you can change the copied data before you save the new condition records.
    Note:
    If the existing rules not suited to ur requirment , u have to contact Abapers to write the routines for ur requirement.
    Hope it is useful
    REWARD POINTS IF USEFUL...

  • Condition records and chapter id relation?

    dear All,
    we are having TAXINN procedure for tax calculation.
    I have a doubts like, after maintaining chapter is in J1id for particular material, is it required to maintain condition records using VK11 also? or its not required to maintain condition records?
    how the condition of excise duty gets its value in case of TAXINN procedure?

    Hi
    thanks for looking into my doubts.
    condition records into VK11 was missing into key combination of plant/material/control code.
    now its maitained so its picking correct excise duty. 
    But when we are using Vk11 for maintaining excise rate ... what is the use of maintaining chapter id into J1id for material, chapter id combination for particulat plant? we are not maintaining excise rate here into material and chapter id combination. We are maintaining only master data like chapter id for that particular material. Not excise rate. it means excise rate has to be picked from condition records combination? right?
    Regards,
    Maithili

  • Conversion problem in condition records upload program (BDC tcode: XK15)

    Hello everyone,
        I have downloaded few records from table A017 using key KUMNH (cond no), by the std program RVBTCI01 , i used three structures BRG00, BKOND1, BKOND2 and BKOND3 to download the records.
    into a file (.txt) on the server.
      now i uploaded the same file using the standard prg RV14BTCI (after recording the the transaction XK15 using BDC).
    the amount field in bkond structure BKOND2-KEBTR is giving the conversion error while uploading ,
    it is giving ERROR when the session is processed in sm35
    it is not accepting the decimal places while uploading the amount field.
    when amount field is made integer its working fine..
    this is happening with fields MXWRT and GKWRT too .... (infact in all places where the decimals are used)
    any pointers to solve this ???

    hi avinash,
      the data elt used for KONP-KBETR in table is
                   KBETR_KOND ( which is of type CURR , length 11 and 2 decimal)
      the data elt used for BKOND2-KBETR in structure is
                   BKBETR ( which is of type CHAR , length 15 and 0 decimal)
    so dat i can download len(11)point(1)decimal(2)  total 15 digits in the structure of 15 char
    now the problem comes when i am uploading the same back into the table KONP-KEBTR
    which is of type CURR as mentioned above
    plz help to solve dis

  • Condition Record Price is not updated in Inforecord

    Dear Experts
    For a material , the price in the condituion record is maintained as below.But in the info record the value is showing as 14 , instead of 10 at present.
    Validity from      Validity to      amount
    3/2/2008     3/30/2011     14
    3/31/2011     3/31/2011     10
    4/1/2011     4/30/2011     14
    5/1/2011     12/31/9999     10
    please help how to get the condition record amount in Inforecord.
    Thanks
    chandra

    Hi Chandra,
    You should run the program "RM06INP0" with SE38 to update the latest prices in PIR.

  • To upload the price in the condition record

    Dear all,
               i want to upload the amount in the record,my record combination is sales org /material.I have to upload for 1000 materails.those 1000 materails with amount i have in exel.
    Now i want to create record,when i copy and paste in the record,at a time 20 material with amount only i could be able to copy.
    is there any solution other than lsmw to create record for 1000 material 1 at a time
    venu

    Hi,
    LSMW is a good-option, however, if you are not interested to use LSMW; You may Run BDC-Program upload.
    Following is for your further understanding:
    General flow of a BDC program is like this....
    1) First create recording for the T code which you want to make BDC for... Use T code SHDB for recording.
    2 ) Now save that recording and create pogram from that recording using Create Program button. give the BDC driver program name and create.
    3 ) Now the general logic of BDC program goes like this....
    - Upload Flat file into and internal table using function module "UPLOAD"
    - OPEN BDC GROUP.
    - Now loop at that internal table which contains the data from flat file.
    - move data from internal table to fields of BDCDATA using automatically gebnerated code from BDC.
    - CALL TRANSACTION <T CODE> using BDCDATA...
    - CLOSE BDC GROUP
    A sample program for the same is attatched here for your referance... just go through it..
    report ztej_test_new no standard page heading line-size 255.
    data bdcdata like bdcdata occurs 0 with header line.
    tables: zipcldesigcat.
    data : begin of itab occurs 0,
            mandt like zipcldesigcat-mandt,
            zdesigncd like zipcldesigcat-zdesigncd,
            zdesignation like zipcldesigcat-zdesignation,
            zdesigcat like zipcldesigcat-zdesigcat,
           end of itab.
    *INCLUDE bdcrecx1.
    start-of-selection.
      perform upload.
      perform open.
      loop at itab.
        perform move.
        call transaction 'SE16' using bdcdata mode 'E'.
        refresh bdcdata.
      endloop.
      perform close.
    *&      Form  UPLOAD
          text
    -->  p1        text
    <--  p2        text
    form upload.
      call function 'UPLOAD'
          exporting
            CODEPAGE                = ''
               filename                = ''
               filetype                = 'DAT'
               item                    = 'Your File'
            FILEMASK_MASK           = ' '
            FILEMASK_TEXT           = ' '
            FILETYPE_NO_CHANGE      = ' '
            FILEMASK_ALL            = ' '
            FILETYPE_NO_SHOW        = ' '
            LINE_EXIT               = ' '
            USER_FORM               = ' '
            USER_PROG               = ' '
            SILENT                  = 'S'
       IMPORTING
            FILESIZE                =
            CANCEL                  =
            ACT_FILENAME            =
            ACT_FILETYPE            =
           tables
                data_tab                = itab
          exceptions
               conversion_error        = 1
               invalid_table_width     = 2
               invalid_type            = 3
               no_batch                = 4
               unknown_error           = 5
               gui_refuse_filetransfer = 6
               others                  = 7
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    *CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
        EXPORTING
             filename                = 'C:\TEST.XLS'
             i_begin_col             = 1
             i_begin_row             = 1
             i_end_col               = 3
             i_end_row               = 5
        tables
             intern                  = ITAB
       EXCEPTIONS
            INCONSISTENT_PARAMETERS = 1
            UPLOAD_OLE              = 2
            OTHERS                  = 3
    *IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    endform.                    " UPLOAD
           Start new screen                                              *
    form bdc_dynpro using program dynpro.
      clear bdcdata.
      bdcdata-program  = program.
      bdcdata-dynpro   = dynpro.
      bdcdata-dynbegin = 'X'.
      append bdcdata.
    endform.
           Insert field                                                  *
    form bdc_field using fnam fval.
      if fval <> space.
        clear bdcdata.
        bdcdata-fnam = fnam.
        bdcdata-fval = fval.
        append bdcdata.
      endif.
    endform.
    *&      Form  OPEN
          text
    -->  p1        text
    <--  p2        text
    form open.
      call function 'BDC_OPEN_GROUP'
          exporting
               client              = sy-mandt
            DEST                = FILLER8
               group               = 'ZDESIGCAT_R'
            HOLDDATE            = FILLER8
            KEEP                = FILLER1
               user                = sy-uname
            RECORD              = FILLER1
       IMPORTING
            QID                 =
          exceptions
               client_invalid      = 1
               destination_invalid = 2
               group_invalid       = 3
               group_is_locked     = 4
               holddate_invalid    = 5
               internal_error      = 6
               queue_error         = 7
               running             = 8
               system_lock_error   = 9
               user_invalid        = 10
               others              = 11
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " OPEN
    *&      Form  MOVE
          text
    -->  p1        text
    <--  p2        text
    form move.
    perform bdc_dynpro      using 'SAPLSETB' '0230'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'DATABROWSE-TABLENAME'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ANLE'.
    perform bdc_field       using 'DATABROWSE-TABLENAME'
                                  'ZIPCLDESIGCAT'.
    perform bdc_dynpro      using 'SAPLZIPCLDESIGCAT' '0001'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'VIM_POSITION_INFO'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=NEWL'.
    perform bdc_dynpro      using 'SAPLZIPCLDESIGCAT' '0001'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZIPCLDESIGCAT-ZDESIGCAT(01)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SAVE'.
    perform bdc_field       using 'ZIPCLDESIGCAT-ZDESIGNCD(01)'
                                  '2101'.
    perform bdc_field       using 'ZIPCLDESIGCAT-ZDESIGNATION(01)'
                                  'new'.
    perform bdc_field       using 'ZIPCLDESIGCAT-ZDESIGCAT(01)'
                                  'n'.
    perform bdc_dynpro      using 'SAPLZIPCLDESIGCAT' '0001'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'ZIPCLDESIGCAT-ZDESIGNCD(02)'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=ENDE'.
    perform bdc_dynpro      using 'SAPLSETB' '0230'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/EEND'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'DATABROWSE-TABLENAME'.
    endform.                    " MOVE
    *&      Form  CLOSE
          text
    -->  p1        text
    <--  p2        text
    form close.
      call function 'BDC_CLOSE_GROUP'
           exceptions
                not_open    = 1
                queue_error = 2
                others      = 3.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    endform.                    " CLOSE
    Best Regards,
    Amit

  • Error in BDOC while uploading the pricing condition record to ECC from CRM

    Hi all,
    I have created a condition record for ECC pricing condition type (I have maintained all settings required for maintaining ECC condition type in CRM 7.0) in CRM 7.0. But theis condition record is not uploaded to ECC. I have checked BDOC, it is showing with error status for BDOC type "CND_M_SUP". The errors are as below.
    1. sBDoc CNBCCPSAP005 does not contain structure CDBD_CONDREF
    Message no. CND_MAST064
    2. sBDoc CNBCCPSAP005 does not contain structure CDBD_CONDREF
    Message no. CND_MAST064
    3. Service that caused the error: CND_MAST_INT_DEEP_MB_TO_SBDOC
    Message no. SMO8047Diagnosis
    A service caused/ reported an error.
    Can some one help me in fixing this issue  please.
    Thanks in advance,
    JM
    Edited by: JM on Sep 7, 2010 4:46 PM

    Hi,
    sBDOCs are not used in ECC to CRM or CRM to ECC data replication scenario. You can either ignore the error or disable mobile bridge.
    Regards
    Prasenjit

  • Bulk Pricing condition record upload

    can any body help out for , Is there any transaction code  for uploading the pricing condition record in BUlk.
    Ex: 1000 condition records upload for condition type PR00..
    Ragards

    Dear Ramesh,
                           This you can do by creating an LSMW,one of the mass upload tool.
    Regards,
    AKD
    Edited by: Ashish Dikshit on Sep 19, 2009 9:31 AM

Maybe you are looking for

  • GX60 - Cannot install windows 7

    I just bought a GX60 3AE-216US. I don't want Windows 8 so i decided to install windows 7 on it. i have a boot-able USB drive but after the initial "install now" screen, it asks for drivers. I thought the USB drive would have all the required drivers

  • File to file scenarion

    i have a file to file scenario where a send step in the BPM is sending message to two business-services.... the scenario consist of: one sender business-service(hence one outbound synchronous message-interface), one BPM with one send step and one rec

  • Macbook Pro temp getting hot

    hi,      i am all new to apple Macbook pro and also Mac os, i recently noted that my macbook is get's very hot when i play games on it and usually its temperature is about normal, but as i play game (like Assassin Creed 2, GTA VI or other ) it just g

  • Assembly of pdfs - "insufficent data for an image" and blank page

    Hello. We are using Adobe Livecycle Assembler 8.2 to assemble a set of pdfs uploaded by end-users together with a pdf that our application create. We have been using the assembler and pdf generator for å few years. Lately we have had a couple of situ

  • HT2497 Why does my Airport Utility keep saying "Double NAT"error?

    I had to add a new cable modem to my home network. I keep getting a "Double NAT" error and my modem keeps the yellow light blinking. What do I do?