cancel
Showing results for 
Search instead for 
Did you mean: 

How to use BAPI_MATERIAL_SAVEDATA and custom fields with SAPNCO3/SAP Connector?

0 Kudos
114

Hello.

In our current project we are using SAPNCO3 with RFC calls. The requirement is to create material with the function "BAPI_MATERIAL_SAVEDATA" and some custom fields (via EXTENSIONIN). The problem now is how to extend the needed structures "BAPI_TE_MARA/X" so that they can carry the custom fields? I cannot found any function for this.

Please have a look at the Code snippet at the bottom.

Thank you!

Tobias

  var BAPI_TE_MARA = repo.GetStructureMetadata("BAPI_TE_MARA");
                IRfcStructure structure = BAPI_TE_MARA.CreateStructure();
               
                structure.SetValue("MATERIAL", material.Number);
                //structure.SetValue("ZMM_JOB_REFERENCE", "f");
Former Member
0 Kudos

Thank you for visiting SAP Community to get answers to your questions. Since you're new in asking questions here, I recommend that you familiarize yourself with https://community.sap.com/resources/questions-and-answers (if you haven't already), as it provides tips for preparing questions that draw responses from our members.

Should you wish, you can revise your question now by selecting Actions, then Edit.

Finally, if you're hoping to connect with readers, please consider adding a picture to your profile. Here's how you do it: https://www.youtube.com/watch?v=F5JdUbyjfMA&list=PLpQebylHrdh5s3gwy-h6RtymfDpoz3vDS . By personalizing your profile with a photo of you, you encourage readers to respond.

Best regards

Mariah

SAP Community moderator

Accepted Solutions (0)

Answers (0)