BAPI /BDC for contract data VA41

hi all,
    We have a requirement. We have Contract data in legacy system, and need to migrate that into SAP (VA41). Should i use BAPI or BDC for this.
If i have to use BAPI, Please let me know the BAPI name.
Regards,
Kavitha

Hi Kavitha,
               May be this thread provides you some help.
Have a look.
Link:[Thread|Re: Creating Contracts using BAPI_CONTRACT_CREATEFROMDATA;
Have a best day ahead.

Similar Messages

  • Tables for Contract data

    Hi all,
    if you know any tables for contract data(For Contract report),
    please tell me.....
    Thanks,
    kishore.

    VBAK-contract header
    VBAP-contract item
    VEDA-changed contracts
    KONV-condition records
    MARA-material related to contract

  • BAPI/FM for uploadng DATA in CS40

    Hi
    Any  BAPI/FM for uploadng DATA Thru CS40 T code
    Regards
    Rasheed

    try this
    BAPI for filling variant configuration in an equipment

  • BAPI Contract, input structure for "Contract data" ?

    Hi All,
    I am trying to create contract using BAPI:BAPI_CONTRACT_CREATEFROMDATA. But I am not able to find the structure to fill Header tab "Contract data" like
    - contract start date
    - contract end date
    - Val.period.category
    - Contractval.period and soo on ?
    Could anyone kindly help..as to how these data could be uploaded ?
    Thanks,
    Kushi

    Hi Kushi
    Try these links
    BAPI-step by step
    http://www.sapgenie.com/abap/bapi/example.htm
    bapis
    http://www.planetsap.com/list_all_bapis.htm
    BTW, are you the same Kushi I think you are? Did you do your ABAP certification in Hyd in Aug'05? Just asking as I had a class mate with the same name
    If you find my answer useful, please reward me for the same.
    Good luck
    Karthik Potharaju

  • Function module Vs BDC for master data upload

    Hi ,
    Please advice we should use the following function modules for master data upload or we should go for BDC.
    MP_RFC_SINGLE_CREATE
    MP_RFC_INACT_CHANGE
    MPLAN_CREATE
    MPLAN_CHANGE
    MPLAN_SET_DELETION_INDICATOR
    ASSET_MASTERRECORD_MAINTENANCE
    MPLAN_ITEM_CREATE
    MPLAN_ITEM_CHANGE
    GL_ACCT_MASTER_SAVE
    GL_ACCT_MASTER_SAVE
    GL_ACCT_MASTER_SAVE
    Actually, we have already used these function modules in our upload program, but we are not sure if these function modules will create any data inconsistency.
    Please let me know, if we should continue using the FMs, or there is any risk using the FMs and we should replace them by BDC.
    Thanks in advance.

    HI Vikram,
    Better to serch for the BAPI for uploading the master data.Becuase we have problems with BDC and FM's.
    If you use FM's it does n't contain all the fields which you want.IF you go for BDC this is not maintainable for future releaseas.IF you upgrade then screen may change.
    IF don' have any BAPI then better go for BDC.
    Thanks

  • How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K

    HI Experts,
    how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
    Requirement:
    Already the contract having two line items using ME31K.
    Custom program has to add new line items in existing contract.
    Thanks,
    Sendil

    I got the solution:
    We can do like this:
    1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
    2. After getting results, append new line item. Then use your BAPI.
    Check this posting program.. where this bapi is used, use the same coding technique.
    IDOC_INPUT_PURCONTRACT_CHANGE

  • Bdc for ip01, data upload in table control

    I was working on a bdc for ip01 . there is a table control - whose 5 rows are visible and I need to fill data upto 6 row . 6th row get filled by scrolling . will scrolling get captured in recording . whether this is possible or not sir . If yes then how?
    Sir please help me.
    With regards,

    Hi
    Scrolling does not get recorded while recording. You can achieve it by having ok_code to p+ or p++.
    Refer the following link for detailed description.
    http://wiki.sdn.sap.com/wiki/display/ABAP/BatchInputFAQ#BatchInputFAQ-Howtoscrollatablecontrol%3F
    Hope this helps you.
    Regards
    Vinodh

  • BDC for Uploading data from XL sheet with unknown order of fields

    Hi SAP Gurus,
    My requirement is as follows,
    A BDC is to be developed for uploading data from an XL sheet, but the problem here is , the order of fileds in the sheet can be changed .
    ie,  for example the fields in the XL sheet are :-
      matnr    maktx   menge  amount
    but the user can give as
      matnr  amount  menge  maktx
      or
    maktx   matnr  amount  menge
    how i can solve this problem.
    Thanks and Regards,
    pavan.

    Hi Pavan,
    You need to handle it by your self, you can create a dynamic table based on the file value.
    The field name pass from file with the record as a header, and based on the header name create your dynamic table.
    afterward you can pass your value to BDC.
    for creating dynamic table you can use this method
    call method cl_alv_table_create=>create_dynamic_table
      exporting
       i_style_table             =
        it_fieldcatalog           = it_field[]
       i_length_in_byte          =
      importing
        ep_table                  = dyn_tab
       e_style_fname             =
      exceptions
        generate_subpool_dir_full = 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.
    endif.
    -Dhirendra

  • Extend campaign for Contract data

    Hi Experts,
    Campaign screen already have assignment block for 'Purchase Goods / Services'. Requirement is to Add two custom fields Contract ID, Contract line item# to this list.  after input of two fields, on pressing <Enter> call should go to ERP to validate Contract ID (to EKPO-SRM_CONTRACT_ID ) and line item# (EKPO-SRM_CONTRACT_ITM) . If invalid, raise message, else fetch the related data for other standard fields from ERP and show it on UI.
    Z fields are added to BOL model by enhancing item related node.
    Which BAPI/ BADI can I use to fetch ERP data on <Enter> or refresh event?
    Regards,

    Hi Ratna,
    The actual use case is to "Validate and fetch data from ERP, and populate on CRM UI".
    Do you suggest to use DO_VALIDATE for both validation and also to set other context attributes ?
    basically, if the input is valid in ECC, I need to get related data from ECC and populate related attributes on CRM UI.
    Regards,

  • BAPI/ BDC for repartnering of customers in SAP

    HI Gurus!
    Our MDM goes through a tedious data clean-up process when moving one ship-to partner from one sold-to partner to a new sold-to partner.
    They are required to delete the ship-to partner from current sold-to location in all sales organizations.  Then partner the sold-to information for each sales organization.
    If the ship-to location has a business location ID.  Expire the current role and change the operator to the new Sold-to. 
    So I need to create a program to accomplish the above steps to will improve data integrity and reduce the number of accounts to manage.
    So i need to develop a program that can re-partner ship-to locations from one ship-to partner from one sold-to partner to a new sold-to partner.  Produce an exception log for any bill-to, payer, customer contact information that has moved but could possibly be incorrect.  Create a new role in the Business Location ID.
    Using an ALV only allowing user to move records that can be transferred:
    u2022     Only allow ship-to transfer for non-marked for deletion records. 
    u2022     Only allow transfer of ship-to records that are currently partnered to sold-to. 
    u2022     Do not allow transfer of ship-to records that have different sold-to/bill-to/payer accounts.  These will need to be move manually. 
    u2022     Only allow change if the valid Operator number is the same customer number as the sold-to or the re-partnered sold-to.
    So I was just wondering if there is any BAPI  that can be used for it or dow e go by BDC or if there is a way to do this in a better manner.
    COuld anyone please help me assist in as how to approch the program and go forward please.
    Thanks
    Aarav

    Which "partnering" are you talking about?
    The whole idea about a BAPI is that you create the transaction and calling context yourself, then you can use the stable interface of the BAPI for the core business logic below it (also remotely, and consistantly beyond release boundaries and the user's influence).
    I can understand that Rob and many others are starting to complain about your obscure and unclear questions.
    Also, if you close another thread with a "." then I will delete your boss's user ID on SDN... (just joking - please close threads properly. The comment field is not mandatory).
    Cheers,
    Julius

  • BDC for appending data for t-code FK02

    Hi,
    I want to append data for t-code FK02 through BDC.
    Like if for particular lifnr and bukrs, there is existing 2 line items
    then my BDC should starting appending data from 3rd line item.
    Thanks

    first u count line item
    select count(*) into cnt
               from LFBW as a
               where a~lifnr = itab-lifnr
                 and a~bukrs = itab-bukrs.
    then put logic for
    if cnt > '06'.
            tme = cnt / 6.
            cnt = cnt mod 6.
            do tme times.
                perform bdc_dynpro using 'SAPMF02K' '0610'.
                perform bdc_field using 'BDC_CURSOR' 'LFBW-QSREC(01)'.
                perform bdc_field using 'BDC_OKCODE' 'P+'.
            enddo.
        endif.

  • Error in BAPI  'BAPI_PPMSRVAPS_SAVEMULTI_30A'  for PPM data change

    Dear All,
    I have a assignment to upload variable cost  against Plan number for a particular product and location in PPM master data.
    I have used a bapi 'BAPI_PPMSRVAPS_SAVEMULTI_30A'  to update cost in SCM 5.0 version.It works fine,but if i use same bapi in SCM 4.0 it doesn't work and throw following error:
    1.Plan number is already exit.
    2.Plan couldn't found.
    but all entries are maintained in master data leaving cost that i have
    to upload.
    I have to update cost only in SCM 4.0.
    Please help.
    Thanks
    Mohit Khandelwal

    Hi,
    Refer:
    * BAPI to change the PR details
        CALL FUNCTION 'BAPI_REQUISITION_CHANGE'
          EXPORTING
            number                = v_banfn            "<--PR Number
          TABLES
            requisition_items_old = it_old_detail      "<--pass in old PR details
            requisition_items_new = it_new_detail      "<--pass in new PR details
            return                = it_return_change.  "<--return table
    *   "read for error message while changing details for PR
        READ TABLE it_return_change INTO wa_return_change WITH KEY type = 'E'.
        IF sy-subrc = 0.
          "check for ERROR
        ENDIF.
    Hope this helps you.
    Regards,
    Tarun

  • Error "Unable to interpret '\' as number" whe run a BDC for integer data

    Dear All,
    I am trying for the BDC of the user define table and have to upload data but the system is giving error for the field whose domain i have made as QUAN Error is : "Unable to interpret '\' as number".
    Please clarify the situation and solution for the problem
    Regards,
    vishal.

    Hi Vishal,
    Check whether '\' is getting populated in any of the field on the screen in which it is giving an error. I think it is not because of your QUAN field. The error may be in some other field on the same screen.
    Regards,
    Swapna.

  • BAPI Required for MRN9 Data

    Dear all,
    I want to import MRN9 Data into my ABAP Program.
    is there any BAPI function available.
    or i have to create a zcopy of it and use export import function.
    Regards,
    Gaurav

    I have resolved the issue by making copy of the MRN9m program and exporting data fro Use

  • BDC for customer data

    Hi,
    I am recording customer. I am going through shdb after entering all, finally in the contact person tab its throughing  error like enter valid value. In the contact persong tab fields are fromof,name,firstname,telephone no,department,function and description.
    what to do?
    Regards
    Srinu

    see already crated screen.
    example go to display mode . see default entries.
    same value enter in newly created customer.

Maybe you are looking for