Iconet Services Ltd - SAP ABAP / SAPScript Consultant

Home Page
Company Profile
Search Internet for SAP Information
Subscribe to SAP R3 Mailing list
Sample ABAP Programs
ABAP How to
General Purpose layout set

BAPI_SALESORDER_CREATEFROMDAT2 - USER EXIT

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

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

system automatically continues processing it.

THERE IS AN ERROR IN THE FM DOCUMENTATION. CUSTOM FIELDS START AT VALUPART1+16 not 22.

1. Maintain APPEND structure in table VBAP

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

checkbox for the customer structure. It should be structured

like this:

Field name Data element

ZFIELD1 CHAR1

ZFIELD2 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.

e.g CODE.

* new table for customising fields for VBAP

BAPIPAREX type BAPIPAREX,

T_BAPIPAREX type table of BAPIPAREX,

form EDI_FIELDS .

bapiPAREX-structure = 'BAPE_VBAP'.

bapiPAREX-VALUEPART1+10 = G_POSNR.

bapiPAREX-VALUEPART1+16 = IT902-FILENAME.

bapiPAREX-VALUEPART1+27 = IT902-PTCID.

bapiPAREX-VALUEPART1+30 = IT902-LOCATION.

APPEND BAPIPAREX TO T_BAPIPAREX.

bapiPAREX-structure = 'BAPE_VBAPX'.

CLEAR bapiPAREX-VALUEPART1.

bapiPAREX-VALUEPART1+22 = 'XXX'.

APPEND BAPIPAREX TO T_BAPIPAREX.

Back to How To list