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

Record Management: get logical document object from physical doc. object

Former Member
0 Likes
651

Hello,

I'd like to get logical document from physical document (sdok object - stricture containing class and objid).

There is BAPI for "opposite direction": SDOK_LOIO_PHYSICAL_OBJECT_GET. By this FM I can get physical document's sdok object from logical document's sdok object.

Can anybody tell me BAPI's name for it?

I tried SDOK_PHIO_LOGICAL_OBJECT_GET, but this BAPI doesn't exist.

Best regards,

Josef Motl

1 REPLY 1
Read only

Former Member
0 Likes
409

Josef,

There are I don't believe there are any bapi's for this. You probably have to do this via ABAP OO. Create an object of the type CL_SRM_DOCUMENT. This is your logical (LOIO) object of your document. You have to enter the documentclass and the objectid of the document. This class has a method get_variant. This variant is your fysical (PHIO) object of the document. Use version and variant 0 so you will get the latest version object of your document.

If this isn't the answer, can you please explain where do you get the fysical object from if you haven't got the logical first?

Regards,

Tjalling-Jan