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

BAPI_REL_GETRELATIONS when objectid-objkey is multi-part ???

Former Member
0 Likes
990

BAPI_REL_GETRELATIONS takes an importing parm OBJECTID of type bapiborid.

In the bapiborid structure, obkkey is a char 70 field:

OBJKEY SWO_TYPEID CHAR 70

So when my BO is "DRAW" with a complex multi-part key consisting of

DOKAR DOKAR CHAR 3

DOKNR DOKNR CHAR 25

DOKVR DOKVR CHAR 2

DOKTL DOKTL_D CHAR 3

how do I specifiy objkey within objectid?

Do I just concatenate dokar, doknr, dokvr, and doktl into objkey ?????

Please advise.

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
808

yes. Just concatenate them all.

Make sure you take pad the fields with leading zeroes if there are any such fields, before the concatenation.

regards,

ravi

5 REPLIES 5
Read only

Former Member
0 Likes
809

yes. Just concatenate them all.

Make sure you take pad the fields with leading zeroes if there are any such fields, before the concatenation.

regards,

ravi

Read only

0 Likes
808

yup.

pls mind these all field value after concatenation not exceed 70.

Read only

0 Likes
808

Ravi - that's what I thought. Thanks for the confirmation.

Best

djh

Read only

0 Likes
808

Amit -

Thanks also to you for the quick reply.

Best

djh

Read only

Former Member
0 Likes
808

hi use

data: test(3) type c value 'test',

test1(5) type c value 'test',

test2(6) type c value 'test',

test3(7) type c value 'test',

test4(40) type c .

concatenate test test1 test2 test3 into test4 .

write:/ test4 .

if zeros need use the conversion exits