Menu

How to Extend the SAP IMG with Custom Objects

DevWorkbench    Wednesday May 7th, 2014   

Extend the IMG structure

Via the buttons at the top, you can now add new structure nodes and activities to the IMG structure. You’ll first want to add a structure node to group your extension. In my example, I’ve extended the “Enterprise Structure” node with my structure node.

Inserting a structure node into the IMG via S_IMG_EXTENSION

Inserting a structure node into the IMG via S_IMG_EXTENSION

Once that is done, mark it and click the “Insert activity one level lower” button to add an executable activity to it.

Enter an activity into S_IMG_EXTENSION

Enter an activity into S_IMG_EXTENSION

This will take you to the IMG object attribute screen you already know from my last post, only this time you can define your IMG object yourself. Enter an ID and a name; the name will show up in the IMG tree in SPRO so make sure it is a sensible description of the customizing activity.

Adding documentation to an IMG node

Adding documentation to an IMG node

Also, you should enter a document key and create some documentation for your IMG node, this will appear if the user clicks the documentation icon in the IMG.

Almost done! Now change to the tab “Maint. objects” and enter another ID/name combination for the maintenance object. Add your table to the table control and make sure you select “S” as the object type. If you had another type of object, like a transaction or a view cluster with a maintenance dialog, you could of course add it here accordingly. Set the transaction to “SM30” and save your IMG object.

Adding a Customizing Object to an IMG node

Adding a Customizing Object to an IMG node

Be careful, there’s one more step to do! Return to the “Change IMG” structure view by pressing F3 or clicking the green arrow at the top. Once you’re there, you need to save again, otherwise your created object will not be added to the IMG.

That’s it! Once your changes are saved, change to the SPRO transaction to see the effects:

The extended IMG node in transaction SPRO

The extended IMG node in transaction SPRO

This is what the final object looks like. We’ve added a structure node and an activity node with a table maintenance dialog behind it. Now, you’ll be able to use this just like you use the standard IMG objects.