Bapi Material Extension
Bapi Material Extension
com
SAP Courses
SAP Tutorials
SAP Certification
FAQ
Docs
My Account
You are here ? SAPNuts
Tutorials
Tutorial Name
Update custom fields using BAPI extension
Tutorial Description
Update material custom fields using BAPI extension parameter in SAP, update mate
rial custom fields using BAPI_MATERIAL_SAVDATA
Tutorial Area Advanced ABAP
Prerequisites ABAP
Learning Level Intermediate
Estimated Time to learn 30
Save to Learning List
Save to your Learning List
+ Step1 : Requirement and basic explanation
Step2 : Append structure BAPI_TE_MARA
Step3 : Using extension in BAPI_MATERIAL_SAVEDATA
Step1:Requirement and basic explanation Important Top^
Requirement:Update MARA custom fields using material BAPI BAPI_MATERIAL_SAVEDATA
.
We have some custom fields in MARA table, while creating/updating a material I n
eed update them along with material.
To achieve this, we need to follow below steps:
1.Check for the available structure BAPI_TE_<TABLENAME>, here in this requiremen
t BAPI_TE_MARA, and append custom fields using append structure.
2.Pass the structure and values to material BAPI, BAPI_MATERIAL_SAVEDATA.
Step2:Append structure BAPI_TE_MARA Important Top^
Go to SE11, provide name as BAPI_TE_MARA, display
using BAPI extension for MARA
Click on append structure.
BAPI extension for MARA
A pop up will come, provide a append structure name ex: ZBAPI_MARA_EX, enter
Provide custom fields available in MARA to ZBAPI_MARA_EX.
BAPI extension for MARA
Save and Activate.
Step3:Using extension in BAPI_MATERIAL_SAVEDATA Important Top^
Use the below code to use BAPI extension
* RETURNMESSAGES = RETURNMESSAGES
* PRTDATA = PRTDATA
* PRTDATAX = PRTDATAX
extensionin = lt_extensionin
extensioninx = lt_extensioninx.
Author | Ashok Kumar Reddy Last Updated| 03 Feb 2014 | 2 Comments | F Share
? Previous Tutorial Next Tutorial ?
Tutorial Comments
Total Comments: Add your Comment
indrojit mandal
07 Apr 2014
Good tutorial with step by step Update MARA custom fields using material BAPI_MA
TERIAL_SAVEDATA.realy helpful.good work.
Narendra Pal
27 May 2015
This is really a good solution.the way you have provided..thank u so much
Leave a Comment
Your Name:
Your Email :
Comment Text :
Enter Comment Text
Submit Comment
2015 SAPNuts.com Contribute Terms About Contact Feedback Facebook Twitter Googl
ecc