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

Reg: Custom Object Type

Former Member
0 Likes
385

Hi Friends,

How an instance is being created for an object type, say BUS2032, when we create a sales order? How they are linked? I need to know this because i am creating a custom business object type for a standard transaction. I need an instance to be created (and an event raised) for this object type when the transaction is saved. The transaction doesnt have a std object type associated with it.

Thanks in advance.

Nathan.

2 REPLIES 2
Read only

Former Member
0 Likes
333

Hi,

I believe BUS2032 is hard coded in the program SAPMV45A (sales order program)...You can also search for BUS2032 in the sales order program..

ALso If you create a new business object type for a standard transaction..I believe You will have to change standard sap code also...To triggering the event..

Thanks,

Naren

Read only

Former Member
0 Likes
333

Hey,

Add the include <CNTN01> in your program.

For creating an instance call the macro SWC_CREATE_OBJECT.

For raising an event call the macro SWC_RAISE_EVENT.

~Kiran