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

Material Creation

Former Member
0 Likes
507

Hello,

For Material creation/ Changing in SAP...

Currently we are using old BDC technique to solve the purpose.But in the process of SAP Upgrade we are planning to replace the existing functionality with some other options.

As per the process materials getting created in some other third party application ( home grown application of our client ). Whenever a material created in the other system it triggers RFC and sending the data to the SAP system.

Here my question is Can I choose BAPI's as alternative for the BDC's. My client dosent want to use LSMW.

If BAPI's are the needful, what about error handling like BDC session method? Where user can process error records? Is there any other way? Please suggest me the best alternative.

Thanks for your help.

-Johnny

3 REPLIES 3
Read only

Former Member
0 Likes
491

Hi Johnny

I think if you have to link two systems it should be better use IDOC, in this case a log is available and you see and know which trx are right and which trx are wrong and why.

If you replace your BDC program with a new program uses a BAPIs you have to create a your own logs (every BADIs result a messages table) and split your input file in two files: the first one with right trx and other one with wrong trx. In this way you can elaborate only wrong trx again.

Max

Read only

0 Likes
491

Hi Max,

Please give a brief overview about idocs, I know the concept.But I am not sure it works with Non-SAP system also.

Thanks for your help.

-Johnny

Read only

Former Member
0 Likes
491

For creating and changing materials you can use the function module BAPI_MATERIAL_SAVEDATA. You can call it remote via RFC (like all BAPIs I think). You will get the error messages as internal table, similiar to a BDC.

When you are using BDC, one way to react on errors is to play the BDC in visible mode and let the user correct the data manually. Unfortunatly this is not possible with BAPIs.