cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a link between BUS Object Name and Type

Former Member
0 Kudos

Hi experts,

I need your help on a point.

I have some object type as "BUS0010", "BUS2007", "EQUI"... defined in SWO1.

I want to get for each of them their prefix type (OBART).

Example :

- for BUS0010, the object prefix is "IF"

- for EQUI, prefix is "IE"..

All those prefix can be found in table TBO00.

The problem is I can't found how to link them.

Please help !

Regards,

Sebastien

Accepted Solutions (1)

Accepted Solutions (1)

pokrakam
Active Contributor
0 Kudos

G'Day Sebastien,

There is no relation. BOR Object Types and Status Management Object Types are different things. The confusing part is the same terminology used for both.

SAP uses FM BSVW_OBTYP_BOROT_COMPATIBILITY, this establishes a relationship based on key field compatibility - with a few hardcoded exceptions thrown in.

Regards,

Mike

Former Member
0 Kudos

Hi Mike,

Thanks for this information.

In the FM you're right SAP just check a field compatibility.

What I'm asking is how SAP manage to link these two objects (OBJTYPE "IF", with BOtype "BUS0010") ? It should be possible because in table IFLOT, the field OBJNR is filled with this OBJTYPE....

Thanks for help.

Sebastien

pokrakam
Active Contributor
0 Kudos

Hi Sebastien,

As I understand, the two object concepts were developed independently and there is no formal link. The object type in OBJNR is usually hardcoded into the application, and similar with the BOR type.

Have a look at CL_ERP_SE_BUS0010 and do a search for BUS0010 in CL_FUNCLOCATION_EXTRACT to see what I mean.

It's the same in PS: in tables PROJ and PRPS, the objtype is prefixed with PD and PR. Also hardcoded, along with corresponding BOR objects BUS2001 and BUS2054.

Regards,

Mike

(Note: An obscure link may exist somewhere, but given the amount of hardcoding I wouldn't rely on it anyway).

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Not complete solution but what I found out. May help you

Go to table SWOTDV give OBJTYPE = <BUSINESS OBJECT> and VERBTYPE = 'K' and get REFSTRUCT and REFFIELD.

Now map

TBO00-TABNAME = SWOTDV-REFSTRUCT

and TBO00-KEY01 = SWOTDV-REFFIELD

and get TBO00-OBART ( Object Type )

This works for EQUI.

Now for BUS0010 TBO00-TABNAME is IFLOT(Main table) whereas SWOTDV-REFSTRUCT = IFLO ( database View for IFLOT  ).

Maybe you can analyze some more Object type and can get some logic.

R

Former Member
0 Kudos

Hi Rudra,

Thanks for your reply.

I have done some investigations on what you advise me.

It's working for some 80% of my needed objects.

The remaining 20% are due to table view (IFLO for IFLOT) so it's very hard to use.

If you have more ideas on the subject, please help !

Thanks

Former Member
0 Kudos

Hi Sebastian,

If you could let me know some more examples from your remaining 20% due objects, I will have a look.

R

Former Member
0 Kudos

Hi Rudra,

Here are some examples of what is wrong :

BUS1019 (Task List):

In table SWOTDV,  ref table "PLKO" -  field  "PLNTY".

In table TBO00,      ref table "PLKO"  -  field "TL_PLNTY"

BUS2038 (Maintenance Notification) :

SWOTDV : table "VIQMEL"

TBO00 :     table "QMEL"

LFM1 (org for purchasing vendor) :

SWOTDV : table "EKORG" or "LIFNR"

Not found in TBO00

BUS2014 (contract)

Not found in SWOTD with "K" verb type

BUS2012 (Purchase order) :

        SWOTDV : table EKKO

        TBO00 :     table EKKN

I give you the current list of used objects.

Remind, I have the "BUSxxx", and I just need to get the prefix "OBART"  (eg : IF, IE, PO..) for this object type.

functional_location = BUS0010

std_material = BUS1001006

service = BUS1005

maintenance_tasklist = BUS1019

maintenance_plan = BUS1020

maintenance_order = BUS2007

quotation = BUS2010

purchase_order= BUS2012

purchase_contract = BUS2014

maintenance_notification = BUS2038

measurment_document = BUS2092

purchase_requisition = BUS2105

vendor_account = BUS3008

equipment = EQUI

vendor = LFA1

purch_org_vendor = LFM1

measuring_point = SAP_65106

Thanks for your time

Former Member
0 Kudos

Hi Sebastien,

Thanks.

Is there any transaction that you can see the relation Business Object and Prefix? I could not find any in SWO1.

R

Former Member
0 Kudos

Hi,

I actually didn't find a program where we could have a relation between them.

I searched a lot in all SWOx tcode, with no result.

It seems very strange... I don't know where and how SAP do this relation.

I continue searching, but for the moment the only place I found is into the tables in first post

Sebastien