BAPI Enhancements - Custom Table

Hi,
I need to update a Custom Table when i call a Bapi of Change Orders.
Is it possible use Parameter Extension_In? And how to develop it?

Ramesh, thanks for your answer.
I know it is possible write code in a Badi or User Exit, but is it possible manage Custom Table as Append Structure for updating Custom Fields?
Is it possible use similar code?
lt_extension_in-structure = 'ZTABLE'.
lt_extension_in-valuepart1 = zvalue1.

Similar Messages

  • Create BAPI for Custom Table in BW - Urgent

    Hello BAPI gurus,
    I am Portal Developer and not an ABAP developer.  I am creating a Web Dynpro screen to insert data into a transparent table in BI ODS.
    I need to create a BAPI to insert/update/delete and select the values from the custom table.   We dont have an ABAP developer in house, so I am trying to create the BAPI my self.  I would really appreciate if some one can give me steps to create a BAPI, and links to any documents.
    I think I have to create a Function Module using SE37.  Is there a way to generate code based on the table structure or do I have to write Manually.  If any one has an example of code to do insert/update/delete and select, I would really appreciate. 
    Thanks
    Raghu

    Hi Raghu,
    Yes you can create a BAPI using Se37 and for deleting,Update or selection we have UPDATE,DELETE,SELECT statements. Just do F1 after writing those keywords and you will get the syntax. All the data you need to update needs to be passed using the IMPORT parameters.
    hope it helps!!!!
    David.

  • Bapi enhancement using user/customer exits

    It is necessary to have access to all calls and purchase orders to be able to maintain the control of the ERS procedure centrally in the TBB system for the functionality u201CBestellselektionu201D [purchase order selection],. Without delay, all necessary purchase order and call data is provided for the table 'ERS'  u201Crealtimeu201D via the interface from SRM. It must be ensured that this table is always filled for SRM scopes synchronous with the SAP standard tables (EKKO, purchase order header data, EKPO purchase order item data, EKAN vendor address, EKPA partner roles etc.). For this purpose, efforts are made to load this table during each creation or change of a purchase order. On the ERP side, the u201EBAPI_PO_CREATE1u201C, which is called by SRM via RFC in the ERP, serves the purpose of creating purchase orders. The BAPI_PO_CHANGE is used for changes in the purchase orders. These BAPIs can be enhanced by the Customer exits EXIT_SAPL2012_003 respective EXIT_SAPL2012_004. With the help of the exits, a function module is called, which then provides the customer-specific fields of the table 'ERS'
    i want to enhance bapi using customer /user exit
    so how shall i proceed with this requirement ??
    how sahll i code the include for this req???
    i m using the functions ::
    1] EXIT_SAPL2012_003
    2] EXIT_SAPL2012_004
    so how can i enhance the bapi using user exits..
    I want to transfer the data from SRM system to TBB system with the customizzed table filled with this data at ERP ie TBB side .. so plz reply how shall i proceed ???

    Thanks Naresh, it helped...
    Can you please help on the below:
    1. For outbound Sales order IDoc- CRMXIF_ORDER_SAVE_M01,need BADIs for modification of the IDoc before it gets generated.
    2. Need program to generate output as outbound IDoc- CRMXIF_ORDER_SAVE_M01  for sales order conformation/acknowledgement.
    3. Need a BADI after the EDI Sales order is saved.
    Thanks in advance
    Vijay

  • How to Fill custom table data using standrad BAPI

    Hello Team,
    I have some clarification on usage of Standard BAPI :  BAPI_Material_savereplica.
    I have some custom fields in MARA and MARC tables so i have used BAPIExtensionin and able to pass custom field of MARA and MARC.
    My issue is in material master the MARC custom fields of a material are going to update in a Z table along with MARC table.
    So can we achieve this functionalioty using BAPI : BAPI_Material_savereplica menas can we upadate custom table by using standarda bapi
    Please let me know the available options ..

    Hi Some,
    You are saying most of the data is resides out of sap, then you try with mapping of those data in sap standard tables if match or if not then develop a custom interface which will read data from outside & will put in your pay roll processor interface,
    and normally your SAP data you can interface through PU12.
    If you want single interface then you need to develop unique interface program.
    All the best.

  • Is there BAPI to insert/del/update/select customer table

    I need to maintain customer table using RFC, but after try, I found that there are some problem.
          Something can execute at ECC system but it will fail at RFC interface, So I would like to know if there is a way to maintain it.

    Hi,
    Check these BAPI's
    BAPI_CUSTOMER_CREATE Create Customer Master Online
    BAPI_CUSTOMER_CREATEFROMDATA1
    Regards,
    Jyothi CH.

  • Enhance MDG BP UI with an custom table

    Hi All,
    I am enhancing MDG Supplier Governance UI Purchase Organisation with an custom table.
    I have created data model also Dependent Object has been created but my issue is in UI where m using List UIBB and want this List UI to be instantiated with customizing table data  ( means 0 to multiple line in list ui). as this entity object is created at BOL layer so how to create multiple object of entity in list UI with predefined data in feeder class.    .
    Please if anyone don't understand my points ask me.
    if there is any doc. please refer.
    thanks in advance.

    I'm still not sure of the problem. I suggest you review these two documents as they detail in a step-by-step manner how you can extend the BP and Supplier data model and UI. Reuse option means a Z table:
    SAP How-To Guide: Extend MDG-S Data Model by a New Field (Reuse Option)
    SAP How-To Guide: Extend the MDG Business Partner - Node Extension (Reuse Option)
    For any extension of MDG, you should always consult this SCN document: Configuration and Enhancement of SAP Master Data Governance

  • Auto-numbering of item field in custom table for EEW enhancements for BUPA

    Hi Experts,
    We have a requirement to generat 3 custom tables in EEWB,for BUPA and assigned it to BP_HEAD. I have done all the generations and it works fine, the problem  is that the tables that are generated is not allowing us to have a data(material) of 0...n cardinality. 
    The table that we are aiming is to allow multiple records, so my solution is to have an extra item number field so that it will allow multiple records for a material. But users are requesting to have the item number field of the tables to be auto-numbering.
    I would like to know if this autonumbering is possible or not? what methods in BP_EEW should i use to implement this logic. I 'm very new to CRM2007, so I'm still not very familiar on how to use the objects generated by the component workbench.
    p.s.
    I've already search the forum but can find any relevant topic related to my request. If you have any known related topic, It would be highly appreciated.
    Thanks and regards,
    JP
    Edited by: John Paul Auditor on Sep 1, 2009 3:36 AM

    Dear Syed,
       You can do many things in table maintenance screen like validation of some field, making some field required or displayed etc.
       For auto increment you have to use Number-Ranges. FM NUMBER_GET_NEXT is helpful in this case.
       Where to write the code??? The Function-Group you have made. There will be includes. You can easily locate the place to write these codes.
       Caution point is that if you re-generate the table maintenance then all code will be gone.
    Regards,
    Deva.

  • 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

  • BAPI Enhancement for updating database.

    HI,
    My task is to enhance a BAPI structure in SRM, "BAPIBUS1006_CENTRAL_ORGAN",
    where, when I am trying to append structures its telling me that the BAPI structure cant be enhanced. PLease find an alternative route, or else tell me how do I add some fields which are already in the SAP tables, to the BAPI.
    Regards,
    Gautam

    Hi
    <b>Documetation on Enhancement Category</b>
    Enhancement Category Selection
    Structures and tables that were defined by SAP in the ABAP Dictionary can be enhanced subsequently by customers using Customizing includes or append structures. The enhancements do not only refer to structures/ tables themselves, but also to dependent structures that adopt the enhancement as an include or referenced structure. Append structures that only take effect at the end of the original structure can also cause shifts - in the case of dependent structures - even within these structures.
    You must select an enhancement category for the following reason: In programs where there is no active Unicode check, enhancements to tables and structures can cause syntax and runtime errors during type checks and particularly in combination with deep structures.
    In programs where there is an active Unicode check, statements, operand checks, and accesses with an offset and length are problematic - for example, if numeric or deep components are inserted into a purely character-type structure and the structure thus loses its character- type nature.
    Depending on the structure definition, the radio buttons allowed in the dialog box are ready for input. Choose one of the possible enhancement categories:
    Cannot be enhanced
    The structure must not be enhanced.
    Can be enhanced or character type
    All structure components and their enhancements must be character-type (C, N, D, or T). The original structure and all enhancements through Customizing includes or through append structures are subject to this limitation.
    Can be enhanced or character-type or numeric
    The structure and its enhancement must not contain any deep data types (tables, references, strings).
    Can be enhanced in any way
    The structure and its enhancement may contain components whose data type can be of any type.
    Not classified
    This category can be chosen, for example, for a transition status; however, it must not be chosen for creating structures.
    The rules for defining the enhancement category result implicitly from the structure setup and the classification of the types used. These rules are as follows:
    If the object contains at least one numeric type or a substructure or component (field has a structure/table/view as its type) that can be enhanced numerically, the object can no longer be enhanced character-type, but is itself, at most, enhanceable character-type or numeric.
    If the object contains a deep component (string, reference, or table type), or it contains a substructure or component that is marked as enhanceable in any way, then the object itself is enhanceable in any way.
    If the object does not contain any substructure or component that is marked as enhanceable, you can select cannot be enhanced. If the structure has not yet been enhanced, you can choose the categorycannot be enhanced in any case.
    If you are creating new tables and structures in the ABAP Dictionary, the system proposes the category can be enhanced in any way as standard value for the classification of the enhancement options. If the developer chooses a more restrictive classification than can be enhanced in any way for a particular structure, then only the classification levels that adhere to the rules above are allowed. It is not possible to choose an enhancement option of a structure that is more restrictive than the classification resulting immplicitly from the structure setup and from the classification of the types used. Therefore, only the allowed categories are proposed for selection in the maintenance user interface.
    If a structure depends on one or several other structures, the smallest category is chosen as implicit classification (in the order cannot be enhanced < can be enhanced and character-type < can be enhanced and character-type or numeric < can be enhanced in any way). This classification is greater than or less than the category in the other structures and also greater than or the same as the category that results from the actual setup in the original structure itself.
    Regards
    - Atul

  • "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB" while updating the custom table

    hi friends...
    i am posting fico document using bapi BAPI_ACC_GL_POSTING_POST.
    after that i am updating the document number to my custom table.
    but in some cases while updating the document in my custom table i am getting the fallowing dump..
    in ST22
    How to correct the error:
    Database error text........: "[1205] Transaction (Process ID 66) was deadlocked
    on lock resources with another process and has been chosen as the deadlock
    victim. Rerun the transaction."
    Internal call code.........: "[RSQL/UPDT/ZIF004_PKT ]"
    Please check the entries in the system log (Transaction SM21).
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
    "ZFI_01_MONTHLY_RESULT_FRM_PKT" or "ZFI_01_MONTHLY_RESULT_FRM_PKT"
    "UPLOAD_SAP"
    Source Code Extract
    LOOP AT i_zif004_pkt_sum .
    UPDATE zif004_pkt SET xblnr = i_zif004_pkt_sum-xblnr ---> i am getting DUMP here
                              gjahr = i_zif004_pkt_sum-gjahr
                              sap_flag_posting = i_zif004_pkt_sum-sap_flag_posting
                          WHERE compcode = i_zif004_pkt_sum-compcode
                         AND ccode = i_zif004_pkt_sum-ccode
                          AND wbselement = i_zif004_pkt_sum-wbselement
                          AND kostl = i_zif004_pkt_sum-kostl
                          AND code = i_zif004_pkt_sum-code
                          AND month1 = l_ltx
                          AND year1 = p_year.
        IF sy-subrc = 0.
          WRITE :/ 'Document ', i_zif004_pkt_sum-xblnr, 'is posted for ', i_zif004_pkt_sum-code.
        ENDIF.
      ENDLOOP.
    kindly give some inputs..
    regards
    Selva

    Hi,
    You will face this issue if your oracle data base is lack of work processes. try to check the work processes and increase them if possible with the helps basis guys.
    check the below thread.
    DI job failed ORA-12537: TNS:connection closed.
    Regards,
    Venkatesh

  • To save the sales order number in custom table while creation of the order.

    Hi Experts,
    Does there exist any exit to save the sales order number in a custom table while the sales order is created in VA01. The requirement is to capture the sales order number in a Z table when a field (payment terms ) is changed during the sales order creation.
    Regards,
    Sunitha

    Hi Sunita,
    You can store your data in the User exit MV45AFZZ in the form 'userexit_save_document'.
    You can navigate to MV45AFZZ from SE38 wherein an access key needs to be generated for that program, if you know to implement enhancement points then you can create an implicit enhancement point in this form without generating an access Key.
    Regards,
    Ravi Kiran

  • RE: Include customized table into MM_EKKO archiving

    I had a customized table, ZEXP_PO that shares the same key as EKKO.
    I want to include this table during the archiving for MM_EKKO.
    Can any guru shares on how to configure it?
    Do I need to create a new customized program to archive as well as  delete?

    Hi,
    You can enhance the write program RM06EW47 using the BAdI ARC_MM_EKKO_WRITE. This BAdI is used to write the customer specific table entries to the archive. It is called within the write program for each  business object between the call function ARCHIVE_NEW_OBJECT and ARCHIVE_SAVE_OBJECT.
    Hope this helps.
    Cheers!
    Samanjay

  • Delimiting the record in custom table

    Hi,
    I have a cretaed a custom table with the from and to date fields.
    In my requirement the date should be delimited to the new date and it should not overlap.
    Eg:if the user gives input as below
    A   B   01.01.2009   31.12.2010
    A   B   01.01.2010    31.12.2010
    then the table entries should be delimited to
    A   B   01.01.2009   31.12.2009
    A   B   01.01.2010   31.12.2010.
    Can any one pls help me in this requirement.
    Thanks,
    Raju

    Hi Chetan,
    This is the custom BAPI they used in the existing program.
        Generate the sales order
          CALL FUNCTION 'Z_V57_BAPI_SALESORDER_CREATE'
               EXPORTING
                    order_header_in     = itab_header
                    testrun             = p_test
                    business_object     = w_busobj
               IMPORTING
                    salesdocument       = w_vbeln
               TABLES
                    return              = itab_order_msg
                    order_items_in      = itab_detail
                    order_partners      = itab_partner
                    order_schedules_in  = itab_schedule
                    order_conditions_in = itab_conditions.
    Here itab_detail table has the two fields VRKME and WAERK, Custom table also have these 2 fields. here i have to populate these values to custom table.
    here i am not able to find where there are populating to custom table .
    Regards,
    Satish.

  • Bapi for customer master update

    hi everybody....
    can anyone tell me the bapi structure for table KNVV and KNVI.
    My requirement is to update the fields below using bapi...
    KUNNR     VKORG     VTWEG     SPART     BZIRK     VKBUR     VKGRP     KDGRP     KONDA     KALKS     PLTYP     VWERK     ZTERM     KNVI-TAXKD
    i need just the BAPI structure for the tables KNVV and KNVI and the function module that will change the datas in the table...
    Can anyone help me out....
    Thnx
    regds

    Look at the following BAPIs :
    <b>BAPI_CUSTOMER_CHANGEFROMDATA</b> alias Customer.ChangeFromData
    PI_ADDRESS     LIKE     BAPIKNA101                               Customer address to be changed
    PI_SALESORG     LIKE     BAPIKNA102-SALESORG                               Sales organization
    PI_DISTR_CHAN     LIKE     BAPIKNA102-DISTR_CHAN                               Distribution channel
    PI_DIVISION     LIKE     BAPIKNA102-DIVISION                               Division
    CUSTOMERNO     LIKE     BAPIKNA103-CUSTOMER                               Customer number of the customer to be changed
    <b>BAPI_CUSTOMER_CHANGEFROMDATA1</b> alias Customer.ChangeFromData1
    PI_PERSONALDATA     LIKE BAPIKNA101_1                          Customer personal data           
    PI_PERSONALDATAX    LIKE BAPIKNA101_1X                         X Customer Personal Data Struc   
    PI_OPT_PERSONALDATA LIKE BAPIKNA105                            Optional customer personal dat   
    PI_OPT_PERSONALDATAXLIKE BAPIKNA105X                           X Optional Customer Personal D   
    PI_COMPANYDATA      LIKE BAPIKNA106                            Customer company data            
    PI_COMPANYDATAX     LIKE BAPIKNA106X                           X Customer Company Data Struct   
    PI_OPT_COMPANYDATA  LIKE BAPIKNA105                            Optional customer company data   
    PI_OPT_COMPANYDATAX LIKE BAPIKNA105X                           X Optional Customer Company Da   
    PI_SALESORG         LIKE BAPIKNA102-SALE                       Sales organization               
    PI_DISTR_CHAN       LIKE BAPIKNA102-DIST                       Distribution channel             
    PI_DIVISION         LIKE BAPIKNA102-DIVI                       Division                         
    CUSTOMERNO          LIKE BAPIKNA103-CUST                       Customer Number of the Customer  
    Regards
    PS: These BAPI are obsolete.

  • Table entries deleted in Customized table.

    Respected Guru's
    table entries in a customized table were deleted in production system, no transports pertaining it was found.
    Table entries were updated using bapi.
    Please help me to know how the table entries were deleted.
    Daya.
    Edited by: Dayananadan Anandan on Nov 12, 2009 11:35 AM

    Hi Johnson,
    you might have to restore the DB Backup for the table to gt back the data....
    Furthermore, if you want to track how the entried were deleted then there are 2 ways to go about it:
    If the Deletion of the records was through an application (FM,Program call) then there should be Chande Documents available for them and you can search them by hitting tables CDHDR and CDPOS...
    If the Deletion of the records was done physically the you can try looking into the tables UASE16N_CD_KEY and UASE16N_CD_DATA (deletion from transaction UASE16N) or tables SE16N_CD_KEY and SE16N_CD_DATA(Deletion from SE16). This will give change pointer documents if the records were deleted using these transactions...
    Another option might be that somebody has used the Database utility and selected the option Delete Data. In this case you can have a look at the object log....
    Hope this helps....
    Regards,
    Sitakant.

Maybe you are looking for

  • Custom Color Palette for Charts / CSS

    Is there a way of creating a custom color palette for charts (as you can do it in WebIntelligence) and install it on the tomcat? Or will I have to set my custom colors in the css? And if so: where can I find a description of classes for Charts? Is th

  • I cannot play cd or dvd on my disc drive

    It is Macbook pro 13-inch with 4GB 1333MHz DDR3, OS X 10.9.4 (13E28), bought in late 2011. Today I have some DVD and CD of my coursebook and want to play it on my Macbook pro, but I could not even insert it into the drive first. Then I go to System P

  • Why do we need to point at main program when activating include?

    Hi There Abapers, Just a quick question, because I faced such issue when implementing OSS notes. When activating objects I am asked to point out the main program for one of includes changed. This inclde is used in ~30 programs. As far as OSS note doe

  • How to open print dialog from web dynpro abap application

    Hi experts,         I have a web dynpro application with several views and onone of the view there is a button that should open print dialog with printers list and all other options (standard print dialog we see in windows). I did reserach on SDN and

  • To log error in jboss 4.0.3

    hi all, how can i write error to the log file using log4j.properties file in jboss 4.0.3 Thanks in advance. Best regards, sanjeev