Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to extend a existing BAPI?


I am using a BAPI BAPI_MATERIAL_MAINTAINDATA_RT. I am using the sales data part of it using the Structure BAPIE1MVKERT. Now i have added few Z-fields to the structure BAPIE1MVKERT. How to extend the BAPI BAPI_MATERIAL_MAINTAINDATA_RT now?

What all i should take care of in this?

Thanks in Advance!

Thanks & Regards,


Former Member
Former Member replied

Hi Amrita,

There is a parameter SALESEXT with structure BAPIE1MVKEEXTRT.

You pass the values in the salesext-FIELD1 in the same order without condensing.

And one more structure SALESEXTX where you pass the value 'X' for each field in the FIELD1.

You also fill the material FUNCTION, MATERIAL, SALES_ORG, DISTR_CHAN of each structure.

If length of FIELD1 is not sufficient, then you can use FIELD2 and FIELD3, FIELD4.

Also you need to code user exit EXIT_SAPL1001_003 to transfer the field in the respective structure. ie move the custom fields into structure F_MARC_UEB. (as u already extended MARU_UEB structure.

Apart from this you need to maintain table T130F. You can maintain in SE16. The sample values are:

FNAME = MARA-ZZCUS1 (for example name of the customer field)

FGRUP = 211 (Field group 211 to 240 possible)




Edited by: Venkatesan Nagiah on Apr 22, 2009 12:39 PM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question