Add a new field in the existing structure BAPIEBANC
I have added a custom field in the table EBAN called 'field1' . I'm using a BAPI to create a Req - 'BAPI_REQUISITION_CREATE'.
I have to create this new field in the strcture BAPIEBANC so that I can pass the values to the BAPI. I don't know how to add a field to this structure. There is an Append available for this structure called BAPIEBANC_APP.
What do I have to do to create this ' field1' in this strcture?
Naimesh Patel replied
I haven't used this before for the BAPI_REQUISITION_CREATE.
When I searched in the OSS, it says we need to use the strcuture BAPI_TE_REQUISITION_ITEM and append our fields in the included strcuture CI_EBANDB.
SO, create the same custom fields in the CI_EBANDB. Make sure you have the same name of the fields.
In your BAPI call you need to fill the EXTENSIONIN like this:
T_EXTENSIONIN-STRUCTURE = 'BAPI_TE_REQUISITION_ITEM'. concatenate l_item FIELD1 FIELD2 into T_EXTENSIONIN-VALUEPART1. APPEND T_EXTENSIONIN.