cancel
Showing results for 
Search instead for 
Did you mean: 

SAP TM / Business object creation

0 Kudos

Hi,

this my first posting, so please excuse that I am still searching for the right place to put my message ...

I hope this is the right group.

I have some questions concerning SAP Transportation management; I haven't seen a special group for that, so I am here now.

In SAP TM there are some business objects like shipment requests, shipment orders and so on. Is there any documentation available how to program with these objects?

I have found some ways to access them by going through the SAP source code, but that's sometimes very hard, and I couldn't find yet the place where the node ids for the nodes pf the object are created.

Best regards

Martin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Martin,

We usually use business objects in the context of SAP Workflow. A creation of one object (eg PO) triggers a workflow (approvals).

You program with these objects exactly as you would any "object" in the OO programming paradigm. There are object methods, events, attributes etc. Usually most object methods are implemented using BAPIs, but I have seen some that do direct "CALL TRANSACTIONS".

Transaction SWO1, which you probably have already found out, is where you can browse/create/test business objects. You can use transaction SWDD if you are building workflow templates. You will also need to get familiar with a list of canned macros that usually start with SWC_. In 46C, these macros are documented in include <CNTN01>.

Edited by: Keerthi Hiremath on Jun 3, 2008 9:43 AM

Edited by: Keerthi Hiremath on Jun 3, 2008 1:45 PM

0 Kudos

Hi Keerthi,

thanks for your answer. I think that there is something different in the case of TM business objects. I can't see them in SWO1, and have not found any BAPI to handle the objects.

There is a transaction /TMSF/CONF_UI to display and change the business objects in SAP TM; and there are some menu items to create dictionary elements, access classes and wrapper classes, but they don't work (and I am not sure if this is the right way). In SAP TM source code, there are some general classes and interfaces that are used to access the TM business objects (like /SCMTMS/IF_LCP_FACADE), but they are all TM specific, so perhaps there is really a big difference between TM objects and other business objects. Maybe SAP has only chosen the same name for them.

SAP TM is still in an early phase of development, so I could imagine that there are still some missing things inside. But at least I managed to do some object access using the same methods as SAP did.

Best regards

Martin

0 Kudos

Hi,

now I have found the solution by myself looking further into the source code.

For those who want to know it:

The interface /SCMTMS/IF_LCP offers the method MODIFY which is able to change, but also to create TM business objects. To view an example, look into method NODE_CREATE_BY_REFERENCE of class /SCMTMS/CL_UI_ASSISTANCE_BASE. You can also set an external breakpoint and then choose "Create Time-Releated Selection Attributes" from SAP GUI or NetWeaver Business Client, to see a simple example how an object is created. Please note that the transaction has to be committed after calling modify to make the changes permanent (/SCMTMS/IF_LCP_TRANSACTION->SAVE_TRANSACTION).

Best regards

Martin

Former Member
0 Kudos

Hi Martin,

It would be a good idea to blog/wiki this.