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

Get BusObj objectkey

c_c2
Participant
0 Likes
2,152

HI all,

I'm getting a little problems, i need to get a business Object Key from a busobj type (example bus1065), or possibly the table where that info is remained and used on swo1.

thks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,047

Hi,

Use function module "SWO_QUERY_KEYFIELDS" to get the key fiels of Business Object. Pass Business Object ID as the input parameter. Key field information will be available in output structure INFO.

Regards

Vinod

9 REPLIES 9
Read only

Former Member
0 Likes
2,048

Hi,

Use function module "SWO_QUERY_KEYFIELDS" to get the key fiels of Business Object. Pass Business Object ID as the input parameter. Key field information will be available in output structure INFO.

Regards

Vinod

Read only

0 Likes
2,047

Hi Vino, thks for your answer, i already had found that FM, but it only worked with some BO... with bus1065 it returns nothing..

Read only

0 Likes
2,047

Hi,

I checked the FM for Business object BUS1065. It returned one record in structure INFO, Which is similar to the properties mentioned in SWO1.

Key field : NUMBER
Editelem : Number
Reference Struture : PAKEY
Reference field : PERNR

Regards

Vinod

Read only

Former Member
0 Likes
2,047

Check

SWW_CONTOB, SWW_CONT - Workflow table for BO

TOJTB - Master data table for BO

Read only

Former Member
0 Likes
2,047

Hi ,

Go to trnasction SWO1>BUS1065>Display and Expand Key fields

-->and double click on the Employee abstract number

see ref table:-PAKEY

see ref field :-PERNR

Search Help :-PREM

it is available in structure SWCONTEDIT

regards,

Prabhudas

Read only

c_c2
Participant
0 Likes
2,047

.

Read only

0 Likes
2,047

thks Vino,

is there a way to create a screen based on the structure returned from that ?

Read only

Former Member
0 Likes
2,047

Hi,

Use Function module SWU_OBJ_KEY_GET to create a Popup Screen based on the Key fields of Business Object.

Regards

Vinod

Read only

0 Likes
2,047

hi vinod,

You read my mind, i'm already using that function, and i also found SWO_DIALOG_OBJECT_KEY_EDIT thats also good in some needs...

thks