cancel
Showing results for 
Search instead for 
Did you mean: 

How to create new resource in EWM using abap

sutono_wu
Explorer
0 Kudos
937

I need to auto create resource from a custom program that i created, but i couldn't find any BAPI/FM/Class Methods that available for that via ABAP.

I did found /SCWM/IF_API_RESOURCE~CREATE_RESOURCE but since the method is private, i can't use it on my custom program.

Please help.

Accepted Solutions (0)

Answers (1)

Answers (1)

DominikTylczyn
SAP Champion
SAP Champion

Hello sutono.wu

The resource API is implemented with the /SCWM/CL_API_RESOURCE class. Its CREATE_RESOURCE and SAVE methods are both public:

Best regards

Dominik Tylczynski

sutono_wu
Explorer

Thanks Dominik Tylczynski

I just realizes that it is an interface not a class. That's why i cannot call the method directly.

sutono_wu
Explorer
0 Kudos

Hi Dominik Tylczynski.

Yes the method is public but the class is protected, any idea how to use it on ABAP ?

Daniil
Active Contributor

if you check Classes friends you see /SCWM/CL_API_FACTORY