Extending bapi BAPI_RE_AO_CREATE

Can you please let me know how to extend BAPI 'BAPI_RE_AO_CREATE' to add values to Zfields of table VIBDAO

see the documentation of this BAPI
EXTENSION_IN by using this u can map  and BADI also.
Regards
peram

Similar Messages

  • Reg: Extended Bapi's

    Hi ,
    Anyone Please tell me 1) What is Extended BAPI.
                                      2) How to Create the Extended BAPI.
                                      3) What is the main purpose of it.
    Thanks & Regards,
    Lakshmi.

    Hi,
    Extension parameters
    You can create extension parameters to enable customers to enhance the functionality of BAPIs without making modifications. For information about extension parameters see Customer Enhancement Concept for BAPIs.
    see the link for detailed documentation:
    http://help.sap.com/saphelp_nw04/helpdata/EN/3e/0e1089c24611d1ad09080009b0fb56/frameset.htm
    Regards,
    Renjith Michael.

  • Extending BAPI for custom fields

    Hi
    i am working on extending BAPI_SALESORDER_CREATE_FROMDAT2.
    i am appending a structure with custom fields of type dats in to the VBAK table and displaying them in the ADDITIONAL DATA TAB B area.
    Now to extend the BAPI in the VBAKKOZ and BAPE_VBAK it is accepting structure with char type only as enhacement category is CHAR.
    can  some one suggest me how can i use 2 different structures one for VBAK table and other for BAPI table?i am skeptical as move-corresponding is used to move the fields from BAPI to table so data type mismatch would happen and would result in error.
    how to overcome this problem

    Hi,
    You can do it with structure EXTENSIONIN. Check Note 143580 - Information on SD BAPIs and customer enhancement concept for futher info.
    Regards,
    Eduardo

  • Problem in Transporting a BAPI structure

    How to transport the extended BAPI structure from D system to Q system.
    BAPI structure is extended by appending a new structure with two fields in Development system. I want to transport it to Q. But there is no transport request for this change. Since i have not done this change i dont know wat has to be done.
    Thank you in advance.
    Regards,
    Umasankar.

    Hi,
    You can use standard program RSWBO052 to change development class.
    In the  line : R3TR FUGR Function Group
    1)check the box
    3)insert the function gruop name
    4)Press F8 or Execute
    5) double click and change the class
    Regards,
    Sooness

  • To update field using BAPI

    Hello experts,
    I have added one field using append structure in table MARC. I want to updated this field usnign BAPI_MATERIAL_SAVEDATA. can anybody tell me the procedure to do that?
    Thanks in advance.

    Hello,
    Check the documentation of the function module BAPI_MATERIAL_SAVEDATA. There is a parameter in the FM - EXTENSIONIN where in new fields added to the table can be used to be updated.
    The documentation of that parameters tells you how this can be achieved.
    Create 2 structures of the type BAPI_TE_MARA and BAPI_TE_MARAX
    Now assign the field structure of the workarea of type BAPIPAREX. Assume gs_extensionin is of type BAPIPAREX and gs_bapi_te_mara is of type BAPI_TE_MARA (this should have the fields that have been added in the table)
    gs_extensionin-structure = 'BAPI_TE_MARA'.
    gs_extensionin-valuepart+0(18) = gs_bapi_te_mara-matnr.
    gs_extensionin-valuepart+18(length of the new field) = ga_bapi_te_mara-<new field added in the structure>.
    append gs_extensionin to gt_extensionin.
    gs_extensioninx-structure = 'BAPI_TE_MARAX'.
    gs_extensioninx-valuepart+0(18) = gs_bapi_te_mara-matnr.
    gs_extensioninx-valuepart+18(1) = 'X'..
    append gs_extensioninx to gt_extensioninx.
    Now pass these tables gt_extensionin and gt_extensionx to the parameters extensionin and extensioninx of the function module BAPI_MATERIAL_SAVEDATA.
    Also try searching SDN using Extending BAPI's
    Hope this will help in solving your query.
    Regards,
    Sachin

  • Extending Plants thru IDOC

    Hi,
    I have created Material using transaction MM01 manually and then going to WE19 and trying to create/extend to plants using the IDOC. It's showing the success status 53 if look at status in WE02 but views are not being created.
    This is being done using a customized FM which is a modification to 'IDOC_INPUT_MATMAS01'.
    Plz reply ASAP if somebody is aware of the issue.
    Rgds,
    Srini

    Finally got it figured out.  Steps I used to generate the new customer BAPI-IDOC interface:
    1.  Created custom structure with data elements desired
    2.  Copied the BAPI_BATCH_REPLICATE and BAPI_BATCH_SAVE_REPLICA function modules to custom function modules
    3.  Add parameter for custom segment to BAPI_BATCH_SAVE_REPLICA
    4.  Extend BAPI object with custom segment
    5.  Generate the ALE interface (this was where I got stuck originally)
    6.  Assign function module to generate message type (BD60)
    7.  Assigned additional change pointer field to message type (BD52)

  • Extension of BAPI - BAPI_SALESORDER_CHANGE

    Hi All,
    I have added some custome fields in the table VBAK. Now i want to update these fields using BAPI_SALESORDER_CHANGE which are not present in it currently. So how can i extend BAPI to update the custom fields ???

    Hi,
    first, go to SE37 and check the BAPI's default documentation for the EXTENSIONIN table parameter. There, it explains analytically what you have to do in order to update Z fields that have been appended in VBAK or VBAP through the standard BAPI.
    NOTE that you MUST have updated accordingly the tables/structures VBAKKOZ, VBAKKOZX, BAPE_VBAK, BAPE_VBAKX
    So, if the sales order number is 1000000001 and your added custom field is named ZZCUST with length 5 chars and you want to set the ZZCUST value to ABCDEm, then append a line in EXTENSIOIN as follows:
    EXTENSIONIN-STRUCTURE = BAPE_VBAK
    EXTENSIONIN-VALUEPART1 = 1000000001ABCDE
    Also, call the BAPI passing the 1000000001 (sales order document number to the SALESDOCUMENT parameter and set the UPDATEFLAG field of the structure ORDER_HEADER_INX to 'X' to make the BAPI actually update the sales document header data (includind the new Z field).
    Try it and READ the BAPI's standard documentation!
    Reward if it helps,
    Regards,
    George

  • What are the steps to send sales order custom field from CRM to ECC

    Hi Xperts,
      We have created a custom field in sales order [ VBAK] and successfully replicate its value from ECC to CRM. But while doing the enhancement to replicate the field value from CRM to ECC [ When the SO is created in CRM ] we are not able to do so.
    We used a FM in CRM0_300, but while replicating the SO from CRM to R/3 it is not getting called.
    Please help us by providing the steps to do the full enhancement to replicate the custom field of SO from CRM to ECC.
    Thanks in Advance.

    Hi Anjaneyulu,
    We are faced with a similar situation as you.
    Here is our scenario with the steps that we performed so far:
    1.  We have added a few custom fields in CRM 7.0 (Ehp1) using AET.
         The BDoc BUS_TRANS_MSG has been automatically extended with these custom fields.
    2.  On ECC side also, same custom fields have been added to VBAK and VBAP, using APPEND STRUCTURE. Fields were added to ADDITIONAL DATA TAB B in VA01 / VA02 transactions.
    3. Extended BAPI structures BAPISDITM and BAPISDITMX in both CRM and R/3 Side.
    4. As mentioned in the note 1053817, we have implemented BADI CRM_DATAEXCHG_BADI -> Method CRM_DATAEXCH_AFTER_BAPI_FILL in CRM (mapped fields from BDOC to BAPI structures)
    5. In the above note, for R/3 BAPI to R/3 API they have given to implement user exit USEREXIT_MOVE_FIELD_TO_VBAP which we found in MV45AFZZ. But in this we are unable to find BAPI Structure to map.
    Our issue is, when a sales order is created in CRM, it is getting replicated on ECC. But, only standard fields are getting replicated. The custom fields that we have added are remaining empty on ECC side.
    In CRM --> txn SMW01, we can see that the BDOC is populated with custom fields also.
    Could you let us know if your issue is solved completely. Are you able to see the value of custom field, in ECC? Did you use AET to add fields in CRM.
    Could you please give us the steps that you have done.

  • How to pass Business place to BAPI_ACC_DOCUMENT_POST

    Hello,
    I am using BAPI_ACC_DOCUMENT_POST to post the accounting documents for  G/Ls. Now iwant to pass the Business Place with GL, as it allows iin FB01, i have searched though the ACCOUNTGL but i didn't find any field for this or like BUPLA.
    I searched in SDN regarding the same but i couldn't find any solution. Please help.
    Regards,
    Kesavaperumal

    Hi,
    Better you use the badi 'BADI_ACC_DOCUMENT'.
    For passing the Business Area you need to use the extention structure of BAPI_ACC_DOCUMENT_POST and then use BADI ACC_DOCUMENT
    with the other parameters you have to populate the extension table of bapi
    data : it_ bapiparex type table of bapiparex,
    wa_bapiparex type bapiparex
    Populate the Extension table
    wa_bapiparex-structure = 'Business Area'.
    wa_bapiparex-valuepart1 = '10'. " Item number
    wa_bapiparex-valuepart2 = ' '. "  pass the value for Business Area
    APPEND wa_bapiparex TO it_bapiparex.
    Call the Bapi to post the document
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
    EXPORTING
    documentheader = wa_docheader
    TABLES
    accountgl = it_bapiacgl09
    accountpayable = it_bapiacap09
    currencyamount = it_bapiaccr09
    return = it_bapiret2
    extension2 = it_bapiparex
    Now create an implementation of BADI ACC_DOCUMENT in SE19 and
    write the following code in method CHANGE of BADI
    DATA: wa_extension TYPE bapiparex,
    wa_accit TYPE accit.
    LOOP AT c_extension2 INTO wa_extension.
    Extend BAPI to have Posting Keys defined by user
    IF wa_extension-structure = 'Business_Area'.
    CLEAR wa_accit.
    READ TABLE c_accit INTO wa_accit
    WITH KEY posnr = wa_extension-valuepart1.
    IF sy-subrc = 0.
    wa_accit-BUS_AREA = wa_extension-valuepart2.
    MODIFY c_accit FROM wa_accit INDEX sy-tabix TRANSPORTING BUS_AREA.
    ENDIF.
    ENDIF.
    ENDLOOP.
    Hope this solves your problem
    Regards,
    Dhina...

  • BAPIPAREX in lsmw

    Hi,
    I added fields in a structure CI_VIBDAO.
    Now i'm working in an LSMW, i use a bapi: BAPI_RE_AO_CREATE.
    In the step of mapping, to can match my new fields with th bapi, i have to use the EXTENTION of the bapi which name: BABIPAREX. I map BABIPAREX-STRUCTURE with CI_VIBDAO and BABIPAREX-VALUEPART1 with the field i added (zzaltitude).
    Then all the steps after are going well, i generate idoc ....
    The pb is: when i go to the transaction REBDAO to see what i create, i have all values except values of field added "zzaltitude".
    Can you help me to find a solution?
    Thanks
    Mehdi,

    Hi,
    Yes, I have already studied that in the help, it's the same.
    Unfortunetly examples they give are not general, in my pb i have a very long structure (CI_VIBDAO) which contains about 30 new fields.
    In the examples, they don't explain how to do when the position of the field is in the middle of the structure (for example). When we have a date the bapi takes 00000000 zeros and not ########, because the ###### are used to fill area of fields we don't use (in the PARTVALUES).
    I tried a lot of combination to succeed my lsmw in vain.
    If it doesn't work, i'll do a recording (i cannot wast more time).
    I hope you have an idea.
    Mehdi,

  • Problem in extending material master data using BAPI?

    Hi all,
    I have created a program to upload material master using BAPI_MATERIAL_SAVEDATA WITH VIEWS
    Basic view, purchase view, account view , storage view and MRP view. I am successful while uploading this data while not  taking  the valuation type  field to account view(passing only valuation area,valuation class and moving price).
    But when i am trying to pass valuation type field also then it is giving error as 'First create the valuation-type-independent data' .
    So i have written another program to extend this material to enter valuation type , then it is giving the error as 'Valuation category does not allow split valuation'.
    Please help me to solve this problem and while modifying what are the mandatory values to pass to BAPI?
    Thanks,
    Vamshi.

    Hi VAMSHI,
    I have your same error but I don't know how to solve it. We have active "material split valuation" and valuation type is mandatory field if using ACCOUNTING and COSTING views.
    Please, let me know.
    Thanks in advance.
    GB

  • Suitable BAPI for extended withholding tax

    we are migrating from classic withholding tax to extended withholding tax for which we are modifying all the programs which were using MRHR (invoice) in the background, since MRHR will be replaced by MIRO in extended withholding tax, in this process when we are trying to modify one program, we could not record MIRO, hence  our technical team suggested for use of BAPI functional module, kindly anybody suggest me which is the suitable BAPI for posting of invocie verification.
    Thanx in advance.
    Krishna

    Hi Krishna,
    Please check BAPI_INCOMINGINVOICE_CREATE and let me know.
    Assign points if it useful.
    Regards
    Ravinagh Boni

  • How to call BAPI in Extended Value Selector in Webdynpro for java

    Hi all
    i need to call a BAPI and populate the data in Extended Value Selector UI element.
    can you please provide sample codes and required help.
    Regards
    Sunil

    Hi,
    Go through the following link
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/391ee590-0201-0010-1c89-f1193a886421]
    [Re: Creat organization tree in OVS]
    and also you can search in SDN, there are lots of threads
    Regards
    Raghu

  • BAPI to extend material to multiple sales organisation

    Hi Experts,
    I need to know a BAPI for extending a material to multiple sales org. at one go. My requirement is detailed below:
    Suppose an user is providing the details as below:
    Material: 90000038
    Sales Org: 0011, 0022, 0033.
    I need a BAPI where I will pass these values at one go and the material will be extended to sales org. 0011, 0022, 0033. I have used BAPI_MATERIAL_SAVEDATA but of no use. I am not willing to use a BDC in this case where I will loop through the Sales Org. and extending the source material.
    Please help me its urgent.....I will reward points for helpful answers.

    Hi Mylene Euridice,
    Thanks a lot for your valuable response. But I want to implement this in ABAP. So can you or anyone else in the forum help me with a BAPI to do the needful as mentioned in my query.
    Thanks Abir.

  • BAPI Extending Vendor for Company Code

    Gurus,
    Is anybody aware of a BAPI which can be used to extend a vendor for multiple compnay codes .
    regards
    jain

    >
    J@Y wrote:
    > in the fm goto> documentation
    >
    >
    With this method you can create or extend a vendor online.
    I think the issue here is that it is an online BAPI - you have to go through the screens.

Maybe you are looking for