BAPI Extension BAPI_ACTIVITYCRM_CREATEMULTI

Hi Experts,
I have one query regarding the bapi - BAPI_ACTIVITYCRM_CREATEMULTI.
i want to add some more fields in TABLES of this BAPI.
In TABLES of this BAPI there is a table named as : EXTENSIONIN. I have tried to add some data in this field which should be reflected in the table CRMD_ACTIVITY_I.
Do anybody have any idea regarding BAPI Extension ??

Please check this link >>
SAP help covers this decision making rather extensively here:
http://help.sap.com/saphelp_nw04/helpdata/en/6b/3f6d016d0711d396a50004ac96334b/frameset.htm
Cheers,
Ashish

Similar Messages

  • How to use BAPI extension for updating field which is not in BAPI stracture

    I am doing a conversion for control cycle create. The data is maintained in DB Table "PKHD". i have to update 12 fields threre through BAPI "BAPI_KANBANCC_CREATE". there are 11 fields in BAPI structure. but 1 field called"BERKZ" is not there . How can i update it through EXTENSION.

    Hi ,
    in the bapi extension check one structure with name BAPIPAREX will available..
    you need to pass custom structure in that..
    ands conactenate 12 field of your structure and pass in to value1 in bapirex structure and append.
    go to se11 and enter >bapiparex> check where it is used -->see the zprogram and check how it is used the add your code according to that..
    Regards,
    Prabhudas

  • BAPI Extension for Purchase requisition

    Hi All,
    I have to add a custom field in EBAN  and have to enhance PR BAPI to include that additional field. What steps shud I follow?
    how can I use BAPI Extensions?
    Any help will be rewarded.
    Regards,
    Pragya

    Hi,
    I am told that I have to use BAPI extension structures to add the field to BAPI.
    But I am not sure how to proceed once I have created the BAPI extension structure.
    also I am not sure of the user exit that I will have to use further?
    Please help.
    Regards,
    Pragya

  • EXTENSION_IN in case of BAPI extension for BP

    I am using BAPI "BAPIBUSISM007_CREATEFROMDATA" to create Business partner for IS Media 4.7.
    BAPI is working fine, But I have added some Zfields in table BUT000. How to use the table parameter EXTENSION_IN to create Business partner along with all Zfields.
    Regards
    Aman

    The note explains the use of EXTENSION_IN wrt to Sales order. You have to apply the same concept to Business Partners.
    There have been similar queries posted in the forum. You can search the forum for the text "BAPI Extensions" and you will find a lot of useful threads.
    -Kiran
    *Please reward useful answers.

  • BAPI Extension Values

    Iam changing  a contract  and updating the tables using  BAPI  BAPI_CUSTOMERCONTRACT_CHANGE.
    Here iam facing the probelm while passing the BAPI Extension values.
    Can you please advice how we need to pass the entire item data into VALUEPARTx fields .
    Please find my code here :
    W_EXTENSIONIN-STRUCTURE = 'BAPE_VBAP'.
      W_ADDITIONAL-ZZ_KUNNR1 = W_FINAL-ZZ_KUNNR1.
      W_ADDITIONAL-ZZ_KUNNR2 = W_FINAL-ZZ_KUNNR2.
      W_ADDITIONAL-ZZ_KUNNR3 = W_FINAL-ZZ_KUNNR3.
      W_ADDITIONAL-ZZ_KUNNR4 = W_FINAL-ZZ_KUNNR4.
      W_ADDITIONAL-ZZ_KUNNR5 = W_FINAL-ZZ_KUNNR5.
      W_ADDITIONAL-ZZ_KUNNR6 = W_FINAL-ZZ_KUNNR6.
      W_ADDITIONAL-ZZ_KUNNR7 = W_FINAL-ZZ_KUNNR7.
      W_ADDITIONAL-ZZ_KUNNR8 = W_FINAL-ZZ_KUNNR8.
      W_ADDITIONAL-ZZ_KUNNR9 = W_FINAL-ZZ_KUNNR9.
      W_ADDITIONAL-ZZ_MONDEPOT = W_FINAL-ZZ_MONDEPOT.
      W_ADDITIONAL-ZZ_TUEDEPOT = W_FINAL-ZZ_TUEDEPOT.
      W_ADDITIONAL-ZZ_WEDDEPOT = W_FINAL-ZZ_WEDDEPOT.
      W_ADDITIONAL-ZZ_THUDEPOT = W_FINAL-ZZ_THUDEPOT.
      W_ADDITIONAL-ZZ_FRIDEPOT = W_FINAL-ZZ_FRIDEPOT.
      W_ADDITIONAL-ZZ_SATDEPOT = W_FINAL-ZZ_SATDEPOT.
      W_ADDITIONAL-ZZ_SUNDEPOT = W_FINAL-ZZ_SUNDEPOT.
      W_ADDITIONAL-ZZ_BANKDEPOT = W_FINAL-ZZ_BANKDEPOT.
      W_ADDITIONAL-ZZ_SCH_ADHOC_DEP = W_FINAL-ZZ_SCH_ADHOC_DEP.
      CONCATENATE W_FINAL-VBELN
                  W_FINAL-POSNR
                  W_ADDITIONAL
                  INTO W_EXTENSIONIN-VALUEPART1.
      APPEND W_EXTENSIONIN TO IT_EXTENSIONIN.
    But here the total line item data is not coming into the VALUEPART1 filed.
    How we will distribute the line item data into  VALUEPARTx fields .
    Please advice?
    Edited by: vinay raj on Feb 15, 2011 5:53 PM

    Nope, you don't need to pass it to value-part2... Basically the quote from SAP help is pretty straight forward...
    If for example, you have 10 fields in BAPI_VBAP making a total of 242 char... Last field is 3 character... You have to basically fill value-part1 with all but two character of BAPI_VBAP... AND then fill the remaining 2 characters in VALUE-PART2... Max has a pretty simple method to do this by filling from 31st position all the characters in BAPI_VBAP...
    If you are not comfortable with this approach, Then you can create two structures,
    STRUCTURE 'A' with two fields 30 characters and second field with 960 characters.. Move your BAPI_VBAP to the second field and structure name to first field... Once the move is complete, move the entire structure to BAPIPAREX...
    If your system is unicode compliant, check out this wiki link for character conversion
    http://wiki.sdn.sap.com/wiki/display/SI/UCCHECK(UnicodeComplaince)-CommonErrorsand+Solutions

  • Sales Order BAPI Extension

    Hi,
        We would like to pass custom fields data to Custom screens in VA01 Standard Sales Order. For that we are extending standard BAPI BAPI_SALESORDER_CREATEFROMDAT2 using EXTENSION parameter. We have appended custom structures to VBAKKOZ. VBAKKOZX, BAPE_VBAK,BAPE_VBAKX and able to pass information from portal upto 480 characters using
    valuepart1 and valuepart2.
    But when we are trying to extend it further, standard sales order BAPI
    BAPI_SALESORDER_CREATEFROMDAT2 is going to dump at :
             CALL METHOD cl_abap_container_utilities=>fill_container_c
                            EXPORTING
                               im_value     = da_bape_vbap
                            IMPORTING
                               ex_container =
    ch_parex+lenstruc(da_length_bape_vbap)
                            EXCEPTIONS
                               illegal_parameter_type = 1
                               OTHERS                 = 2.
    We need to extend it up to 900 chars.
    Any help on this will be greatly apprecited.
    Thanks
    Kalyan

    I found shortly after posting my message that the notes had not been correctly applied as the Notes Assistant ended with an error, and the error that resulted in this failure had not been corrected.  The basis folks failed to inform me that this error had occured in applying the notes.  I discovered it through testing.  Had you applied the notes and run into the same error?
    When we subsequently corrected for this, the issue with lenstruc went away and everything appears to be OK.  The real problem was that due to the error in the Notes Assistant the updated version of LVBAKTOP with the definition of lenstruc did not get activated.  It was left in a state where it needed an SSCR key to be applied manually, which should all have been handled automatically with SNOTE.
    Once this was done and the source was activated, the original error went away.  The two notes seem to have solved the original Unicode issue as well.
    We still have this update in the development area only since the CRM enhancements that caused the original problem with an append to the VBAK structure are also still in development.   We will be testing those changes together before moving everything up.  If there are any further issues that come up, I'll let you know.
    What I am wondering is if you had a similar problem applying the above notes, since the problem went away for us when the notes to handle the Unicode conversion were properly applied.
    Brian
    Edited by: Brian Sammond on Jul 24, 2008 10:55 AM

  • BAPI Extension - Sales Order(VBAK, VBAP)

    Hi all,
              Please help me in the issue .  I have added user custom fields for sales order va01 in header and item . i am using bapi for creating sales order . I need do use Extensionin struture for updating table vbak and vbap. Can anyone brief the procedure for acheiving the same.
    Thanks in advance,

    Hi Eric,
    Extensions for VBAK, VBAP can be filled like this:
    CLEAR e_extension.
    e_extension-structure     = 'BAPE_VBAK'.   ---> For VBAK
    e_extension-valuepart1+10 = VAL1
    e_extension-valuepart1+46 = VAL2.
    e_extension-valuepart1+56 = VAL3.
    e_extension-valuepart1+59 = VAL4
    APPEND e_extension TO t_extension.
    The same for VBAP
    CLEAR e_extension.
    e_extension-structure     = 'BAPE_VBAP'.   ---> For VBAP
    e_extension-valuepart1+10 = VAL1
    e_extension-valuepart1+46 = VAL2.
    e_extension-valuepart1+56 = VAL3.
    e_extension-valuepart1+59 = VAL4
    APPEND e_extension TO t_extension.
    CALL FUNCTION 'BAPI_SALESORDER...."
        TABLES
          extensionin        = t_extension.
    Hope this helps.
    Ernesto
    Edited by: Ernesto Caballero on Feb 24, 2010 3:03 PM

  • Getting error when passing custom fields to BAPI extension

    Hi ,
    I have problem with standard BAPI_PO_CREATE1 bapi function.
    ERROR DETAILS
    when FM:- BAPI_PO_CREATE1 first time executed  getting error  "Check item number 30 in table EXTENSIONIN" and PO not creating.
    when using function key reverse(cntl+f12) in BAPI_PO_CREATE1 in same execution ,po document  creating ,but data is not papulating custom field.
    CODE USING IN MY PROGRAM
    DATA : 
           ltab_extensionin TYPE TABLE OF bapiparex,
           wa_extensionin TYPE bapiparex,
           wa_BAPI_TE_MEPOITEM type BAPI_TE_MEPOITEM.
    wa_bapi_te_mepoitem-po_item = wa_itab-item.
    wa_bapi_te_mepoitem-zvsart  = wa_itab-ship_type.
    move 'BAPI_TE_MEPOITEM' to wa_extensionin-structure.
    move wa_BAPI_TE_MEPOITEM to  wa_extensionin-VALUEPART1 .
    APPEND wa_extensionin TO ltab_extensionin.
       CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader         = wa_pohead
          poheaderx        = wa_poheadx
          testrun          = ' '
        IMPORTING
          exppurchaseorder = v_po_number
        TABLES
          return           = itab_return
          poitem           = itab_poitem
          poitemx          = itab_poitemx
          poschedule       = itab_posched
          poschedulex      = itab_poschedx
          poshipping       = itab_poshipping
          poshippingx      = itab_poshippingx
          extensionin      = ltab_extensionin.
    Could one of u help me ?? .
    Regards,
    Nayak

    Hi,
    Try populating the ltab_extensionin as the code given below:
    Maybe it can help you.
    Constants: c_flag_bape_vbak TYPE  char10 VALUE  'BAPE_VBAK', " Constant
                     c_flag_bape_vbakx TYPE char10 VALUE  'BAPE_VBAKX'," Constant
      wa_bape_vbap-vbeln             = space.
       wa_bape_vbap-posnr            = wa_order_items_in-in_linenumber.
       MOVE c_flag_bape_vbak TO wa_extensionin-structure.
       MOVE c_flag_bape_vbap TO wa_extensionin-structure.
       CALL METHOD cl_abap_container_utilities=>fill_container_c
         EXPORTING
           im_value       = wa_bape_vbap
         IMPORTING
           ex_container = wa_extensionin-valuepart1.
       APPEND wa_extensionin TO it_extensionin.
       CLEAR : wa_extensionin.
       MOVE c_flag_bape_vbapx TO wa_extensionin-structure.
       wa_extensionin-valuepart1+0(10) = space.
       wa_extensionin-valuepart1+10(6) = wa_order_items_in-in_linenumber.
       wa_extensionin-valuepart1+80(3) = abap_true.
       APPEND wa_extensionin TO it_extensionin.
       CLEAR : wa_extensionin.
    Regards,
    Shweta

  • BAPI extension

    Hi all,
    I am dealing with VD02 transaction, the screen of which is enhanced with one more tab in the std screen. The screen field is ZZOSC, which has been added to KNA1 table. Now, i want to update the ZZOSC field value based on a logic. I have found a bapi BAPI_CUSTOMER_EDIT which has all the required fields except ZZOSC. How can i add this field to the bapi above? Is the use of bapi the right way for solving this or i should go for badi or user exits? Name of the badi will be additionally helpful. Preferably, provide a solution through the use of BAPIs. Relevant solutions will be rewarded for sure.
    Vishwanath

    Hi all,
    I am dealing with VD02 transaction, the screen of which is enhanced with one more tab in the std screen. The screen field is ZZOSC, which has been added to KNA1 table. Now, i want to update the ZZOSC field value based on a logic. I have found a bapi BAPI_CUSTOMER_EDIT which has all the required fields except ZZOSC. How can i add this field to the bapi above? Is the use of bapi the right way for solving this or i should go for badi or user exits? Name of the badi will be additionally helpful. Preferably, provide a solution through the use of BAPIs. Relevant solutions will be rewarded for sure.
    Vishwanath

  • Sales Order Change BAPI Extension for Customer Fields

    Hello!
    I am working on customer field enhancement for BAPI_salesorder_change. The extensionin parameter has more than 1000 characters (fields in the structure BAPE_VBAP) and hence, the two fields that I added to VBAP (using append structure) are not getting the data.
    I have followed all the steps that was given in the documentation to fill extensionin like adding the fields to VBAPKOZ and BAPE_VBAP. This is the logic I have used to fill EXTENSIONIN:
    BAPE_VBAP-VBELN = P_order.
    BAPE_VBAP-POSNR = i_vbap-posnr.
    BAPE_VBAP-ZZSTART_DT = sy-datum.
    BAPE_VBAP-ZZdnload_DT = sy-datum.
    T_EXTEN-STRUCTURE = 'BAPE_VBAP'.
    *T_EXTEN+30 = BAPE_VBAP.
    T_EXTEN-valuepart1 = bape_vbap.
    T_EXTEN-valuepart2 = bape_vbap+240(240).
    T_EXTEN-valuepart3 = bape_vbap+480(240).
    T_EXTEN-valuepart4 = bape_vbap+720(240).
    APPEND T_EXTEN.
    Clear t_exten.
    BAPE_VBAPX-VBELN = P_order.
    BAPE_VBAPX-POSNR = i_vbap-posnr.
    BAPE_VBAPX-ZZSTART_DTX = 'X'.
    BAPE_VBAPX-ZZdnload_DTX = 'X'.
    T_EXTEN-STRUCTURE = 'BAPE_VBAPX'.
    T_EXTEN-valuepart1 = bape_vbapx.
    APPEND T_EXTEN.
    CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
    EXPORTING
    salesdocument = p_order
    order_header_inx = ORDER_HEADERX
    tables
    return = T_RETURN
    *ORDER_ITEM_IN = T_LINE
    *ORDER_ITEM_INX = T_LINEX
    EXTENSIONIN = T_EXTEN.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    I guess there is 960 character limitation for BAPIPAREX structure but I would like to know if there is a way to work around it.
    Thanks to all for your time.

    Found BAPI myself...... BAPI_SALESORDER_CHANGE

  • IS/M BAPI EXTENSION

    Hi,
    I need to create a bp updating some custom fields I have created in an append structure to table JGTBP00.
    I'm using BAPIBUSISM007_CREATEFROMDATA but I cannot map corresponding fields in input structure.
    I've tried using EXTENSION_IN, but it requires to implement BADI ISM_BP_BAPI that doesn't contain my custom fields in output structure.
    Is there any other way to achieve it?
    Regards,
           Filomena

    Yes. All M Audio interfaces work very well with Macs running Lion and Logic Pro 9. It all just depends on what specs you're looking for in an interface. Assuming the FireWire solo meeting your demands in terms of sample rate, bit depth, and ins and outs, go for it!!
    Cheers,
    Electrik

  • BAPI_ACTIVITYCRM_CREATEMULTI in CRM

    Hi Experts,
    I have one query regarding the bapi - BAPI_ACTIVITYCRM_CREATEMULTI.
    i want to add some more fields in TABLES of this BAPI.
    In TABLES of this BAPI there is a table named as : EXTENSIONIN. I have tried to add some data in this field which should be reflected in the table CRMD_ACTIVITY_I.
    Do anybody have any idea regarding BAPI Extension ??

    Hi Naresh,
    Yes. We can extend standard Function Modules available in SAP. For that in ECC 6.0 We have FM Extensions.
    Display FM - > Function Module -> Enhance interface.
    But I am not able to see the FM in SE37 which you have given.BAPI_ACTIVITYCRM_CREATEMULTI.
    All the very best to you.
    - MOHAN

  • In LSMW how to include customer fields in BAPI method ?

    Hi all,
    We have a requirement to use BAPI method in LSMW. We have some custom fields defined needs to be handled in BAPI structures.Please tell me how to handle BAPI extension structures(EXTENSIONIN/OUT) in LSMW.

    Hi Venugopal,
    You can use the sold to party field fiield for your requirement.
    Press f4, you will get a pop up to select customer depending on various selection criteria including customer name.
    If can enter the customer name, which will sort out the sold to party number whihc you can use.
    If this is not wat is required you have to copy the transaction and create a new Zreport.
    Hope this helps you.
    Thanks
    Arun

  • BAPI G/L Balance Upload

    Hi,
    I want BAPI for G/L balance upload.
    I want to transfer these fields:
    STYPE(BBKPF-STYPE)
    LDGRP(BKPF-LDGRP)
    BSCHL(Posting key)
    MWSKZ(Tax Code)
    I looked into BAPI's BAPI_ACC_GL_POSTING_POST and BAPI_ACC_DOCUMENT_POST but I didn't find any field like above fields.
    Please suggest which BAPI to use so that I can get all the above fields. Better if someone can provide the code.
    Thanks
    Vinod.

    Hi,
    U can use Bapi "BAPI_ACC_DOCUMENT_POST" to post the G/L balances data.
    Before that u need to activate the BADI "BADI_ACC_DOCUMENT".
    This badi contains structure called "ACCIT" (Check the structure in SE11) which will fill the remaining fields which are not supported by BAPI.
    For this u need to fill BAPI extension parameter. Check the bapi documentation for the procedure to fill the structure.

  • BAPI_PR_CREATE Extension Issue

    Hi
    I am using BAPI_PR_CREATE to upload Purchase Requisition Create data for ME51n Transaction. Here there is screen Enhancement has been added to ME51n.
    When Iam uploading data through BAPI_PR_CREATE the below error message is been shown in RETURN structure:
    No instance of object type PurchaseRequisition has been created. External reference:
    Error transferring ExtensionIn data for enhancement CI_EBANDB.
    In enhancement implemented code is as below for ME51n :
    data: gt_items TYPE mmpur_requisition_items.
    data:wa_header TYPE mereq_header.
      CALL METHOD im_header->get_data
        RECEIVING
          re_data = wa_header.
    *****Get Item Detail
      CALL METHOD im_header->get_items
    EXPORTING
       im_auth_check = MMPUR_NO
       im_release_op = MMPUR_NO
        RECEIVING
          re_items      = gt_items.
    When I checked this enhancement iam not able to find BAPI Extension data.

    Probably:
    Ls_acctx-SERIAL_NO = gc_x.
    should be
    Ls_acctx-SERIAL_NO = '01'.
    And uncomment PREQ_ITEM.
    Regards,
    Jarek

Maybe you are looking for

  • Scaling images in PDF files.

    I apologise if this is the wrong place to post this question but I cannot see any more appropriate discussion group. When creating a book type PDF I want to be able to show image files within pre-determined window sizes but retain the original size o

  • Megafon Russia

    Having subscribed to calls to Russia, can not reach Megafon numbers ("The number you have dialed is currently not serviced" message; the numbers are, in fact, active and reachable without Skype). No problem with MTS.

  • Leopard - the good and bad

    My reviews so far: The good - • Finder is amazing - awesome way to see files without the need to launch apps • Icons look great (the actual image) • printing is a amazing now - the features and how to handle the files • new dock looks cool and the ne

  • How do you run a program on another computer over the network

    Would like to send and receive my aol email and run other applications from my other G4 that I don't have installed in my main computer through the in house network- without opening the application on the main computer. In other words, running the 2n

  • Multiple related columns in JList

    Is it possible to have multiple columns in a JList? My problem is that I have a class called Volunteer who have a name, surname and id number. I would like these to be displayed in a JList like: name surname id name surname id and so on... I have cur