Skip to Content
author's profile photo Former Member
Former Member

extending a bapi

hi friends,

how do i extend a bapi,

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2007 at 04:04 AM

    Hi ,

    For eg : go for this BAPI: in se37

    BAPI_SALESORDER_CHANGE

    Short text

    Customer Enhancement for VBAK, VBAP, VBEP

    Description

    You can use this parameter to transfer user-specific enhancments to a

    BAPI. The customer has to complete the EXTENSION structure and the

    system automatically continues processing it. If you have not defined

    any user-specific fields, then you can transfer a blank EXTENSIONIN

    structure.

    Technical Information about Customer Enhancements

    The following description uses an example to explain how to proceed with

    customer enhancements to the SD tables VBAK, VBKD, VBAP and VBEP.

    The customer has added their own fields to table VBAP using the INCLUDE

    structure CUTEST. This structure contains 2 fields:

    CFIELD1, CHAR 10

    CFIELD2, CHAR 3.

    The customer also requires that these two fields can be maintained with

    the BAPI.

    1. Maintain structure CUTEST in table VBAP

    2. Because the BAPIs work with checkboxes, you must also define a

    Field name Data element

    CFIELD1 CHAR1

    CFIELD2 CHAR1

    3. Define these customer structures in the structures VBAPKOZ und

    VBAPKOZX using INCLUDE or APPEND.

    4. Add the customer structures to the BAPE_VBAP and BAPE_VBAPX BAPI

    structures using the APPEND technique.

    5. Adjust the following structures for customer enhancements to table

    VBAK:

    a) VBAKKOZ

    b) VBAKKOZX

    c) BAPE_VBAK

    d) BAPE_VBAKX

    6. Adjust the following structures for customer enhancements to table

    VBEK:

    a) VBEPKOZ

    b) VBEPKOZX

    c) BAPE_VBEP

    d) BAPE_VBEPX

    7. Generally, the data should be added to the BAPI interface in the

    internal communication structures (VBAKKOM, and so on). There, you can process the data in the SD tables (VBAK, and so on).

    8. If the EXTENSIONIN parameter contains customer data, you must

    complete at least the key fields in the relevant standard

    parameters.

    For example:

    You want to change customer field VBAP-CFIELD2 for item 20 to "XYZ" in

    order 4711.

    The following entries are expected:

    Import: BAPIVBELN-VBELN = '0000004711' Document number

    BAPISDHD1X-UPDATEFLAG = 'U' UPDKZ for doc header

    Tables: BAPISDITM-ITM_NUMBER = '000020' Item number

    BAPISDITMX-ITM_NUMBER = '000020' Item number

    + BAPISDITMX-UPDATEFLAG = 'U' UPDKZ for item

    You must complete the EXTENSION table as follows:

    STRUCTURE VALUEPART1 1234561234567890123

    BAPE_VBAP 0000004711000020 XYZ

    BAPE_VBAPX 0000004711000020 X

    Rvert back if any issues,

    Regards,

    Naveen

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2007 at 04:15 AM

    Hi Sanjana,

    Check this link:

    http://help.sap.com/saphelp_470/helpdata/en/c5/e4adcc453d11d189430000e829fbbd/frameset.htm

    Kindly Award Points If You Find The Reply Helpful.

    Cheers,

    Chaitanya.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.