‎2006 Mar 27 7:02 PM
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
‎2006 May 09 3:14 PM
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