Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to add new fields in BAPI Structure for Material Master through BAPI_MATERIAL_SAVEDATA

0 Likes
5,589

I have a requirement to add additional custom fields to the material master and populate them with data from Material Master Create using BAPI_MATERIAL_SAVEDATA. How do you extend the BAPI_MATERIAL_SAVEDATA structures to include those custom fields?

1 ACCEPTED SOLUTION
Read only

NTeunckens
Active Contributor
0 Likes
4,113

See the Documentation of the BAPI, which references reading up on the Documentation of the BAPI-Structure "EXTENSIONIN" of type "BAPIE1PAREX". Also, SAP-KBA 1650360 offers more information.

You need to create an Append Structure for your Custom Fields and add these in the "EXTENSIONIN". Depending on which table the Custom fields refer to, you need to Create an Append Structure of type "BAPI_TE_MARA" / "'BAPI_TE_MAKT" / "BAPI_TE_MLGN" / ...

StackOverflow-Question and Answer : link

I have a requirement to add additional custom fields to the material master and populate them with data from Material Master Create using BAPI_MATERIAL_SAVEDATA. How do you extend the BAPI_MATERIAL_SAVEDATA structures to include those custom fields?

4 REPLIES 4
Read only

NTeunckens
Active Contributor
0 Likes
4,114

See the Documentation of the BAPI, which references reading up on the Documentation of the BAPI-Structure "EXTENSIONIN" of type "BAPIE1PAREX". Also, SAP-KBA 1650360 offers more information.

You need to create an Append Structure for your Custom Fields and add these in the "EXTENSIONIN". Depending on which table the Custom fields refer to, you need to Create an Append Structure of type "BAPI_TE_MARA" / "'BAPI_TE_MAKT" / "BAPI_TE_MLGN" / ...

StackOverflow-Question and Answer : link

Read only

srikanthnalluri
Active Participant
0 Likes
4,113

I just searched in the forum and found this link- https://archive.sap.com/discussions/thread/2000494

And also check documentation of the BAPI( for the Tables - EXTENSIONIN/EXTENSIONINX)

Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,113

BAPI are (usually) well documented so first step is read BAPI function and parameters documentation.

Read only

0 Likes
4,113

Thank you very much for your help. The issue was around the configuration of the fields. They weren't extended through SPRO to allow for updating. Configuration updated and all is fine now.