2008 Jul 29 2:57 PM
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.
2008 Jul 29 2:59 PM
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
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.
2008 Jul 29 2:59 PM
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
2008 Jul 29 3:01 PM
yup.
pls mind these all field value after concatenation not exceed 70.
2008 Jul 29 3:03 PM
Ravi - that's what I thought. Thanks for the confirmation.
Best
djh
2008 Jul 29 3:04 PM
2008 Jul 29 3:03 PM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |