cancel
Showing results for 
Search instead for 
Did you mean: 

FM for adding Identifiers for already existing Substance

0 Kudos

Hello Friends,

I want to find FM to add identifiers to existing substance. This activity we manually do using tcode CG02.

I came across two FM, BAPI_BUS1077_CREATE and BAPI_BUS1077_CHANGE but I am not sure which of these I can use to add identifiers. I tried both but no success yet. So just thinking, is it even possible to add identifiers to existing substance using FM. If so kindly suggest how can I do it.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

I find sample program RC1_1077_BAPI_EXAMPLE_GENERAL that has many scenarios along with the one that I was looking for.

Thanks a lot guys

Answers (2)

Answers (2)

christoph_bergemann
Active Contributor
0 Kudos

Dear Brijesh

the ABAP example given by Romuald is a good starting point But it will help only if you define something on top:

1.) is there the need to do "update" of identifiers regularly?

2.) should it be done by user?

3.) is there the need to execute "mass" updates (rarely ? if so may be standard EHS import might be an option)

4.) the "inserting"/"update"/"delete" can as well be don using IDOCs

Some "updates" are possible as well using OCC. tale a look here:

For more references in context of BAPIs/(APIs. check e.g:

You will find lots of references

C.B.

0 Kudos

Hi Christoph,

In our project, business have the requirement to add the identifiers for already existing substance and also if required change them. The change part is working fine using the change BAPI but I am struggling with the adding part. Thanks

christoph_bergemann
Active Contributor
0 Kudos
romuald_kler
Employee
Employee
0 Kudos

Hello,

yes, you can add or modify  identifier with these two bapi

you will find a example in : RC1_1077_BAPI_EXAMPLE_CHANGE

Regards

Romuald

0 Kudos

Hello Remuald,

Program you suggested is really helpful to understand how this BAPI works. I checked the part for changing of identifiers, but I think in that program they are just changing the existing identifiers, not adding new identifiers (Line number 1667). Change is working fine, but not sure how I will be adding identifiers using this BAPI. Kindly suggest.