Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

problem regarding BAPI_MATERIAL_SAVEREPLICA and customer fields

$
0
0

Hey Team ABAP,

 

we got a program for master data management, which works quite fine.

But now we have found a process where it gets stuck. Maybe one of you guys here has an idea why this happens or how i could overcome it.

 

Via an external interface a material gets created in SAP from a third party program. The created material has very limited data, just whats obligatry.

It gets created with MARA-MTART = 'ZKON'. which means it got created by the construction system (third party program).

Now the customer uses TA MMAM to switch the MARA-MTART of said material, as in the third party program it can not be determined what it will later on.

 

Due to that switching of MARA-MTART we get new mandatory fields, which are NOT filled.

So yeah we now have a material in the system with not all mandatory fields filled. One of those mandatory fields is a customerfield ZZ_TEILE_GR2 and this gives us a hard time.

 

Now our Program comes into play. User loads the material into our program and gives additional info, such as the not yet filled field ZZ_TEILE_GR2.

When ready he wants to post his doings to SAP.

To do so our program uses BAPI_MATERIAL_SAVEREPLICA to post the material info into SAP.

 

The value for the field ZZ_TEILE_GR2 is in structure extensionsin, while the according 'X' is also set in the structure extensionsinx, i debugged that.

When we now try to post that data the bapi tells us that he wont do anything with said material since not all mandatory fields are filled.

 

Sure in the existing material those fields are empty, but the bapi has all information to correct that and fill those fields. it just seems he doesnt want to do it cause there are mandatory fields which are not filled.

I could eliminate all those error messages besides one, by providing values for those fields to the bapi. But this has only worked for SAP-standard fields. For this customer field the bapi still gives error message that the field is not filled, while the bapi would have all information to ignore that and just fill it.

 

Any Ideas?

 

Thanks for taking your time

regards Florian Kemmer


Viewing all articles
Browse latest Browse all 10425

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>