ECP_GEN_DOCUMENT_TO_OBJECT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name ECP_GEN_DOCUMENT_TO_OBJECT into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
ECP_ESERVICE1
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'ECP_GEN_DOCUMENT_TO_OBJECT' "Anzeige Objektverknüpfungen->Originale zum Objekt
* EXPORTING
* pfx_objky = " drad-objky
* pfx_object = " drad-dokob
* psx_drad_extern = " drad_bi
* portaluser = " sy-uname SAP System, user logon name
IMPORTING
pfx_number_of_hits = " sy-tabix
TABLES
ptx_content = " plm_dms_content
ptx_id_docs = " plm_dms_id
EXCEPTIONS
API_ERROR = 1 "
. " ECP_GEN_DOCUMENT_TO_OBJECT
The ABAP code below is a full code listing to execute function module ECP_GEN_DOCUMENT_TO_OBJECT including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).
| ld_pfx_number_of_hits | TYPE SY-TABIX , |
| it_ptx_content | TYPE STANDARD TABLE OF PLM_DMS_CONTENT,"TABLES PARAM |
| wa_ptx_content | LIKE LINE OF it_ptx_content , |
| it_ptx_id_docs | TYPE STANDARD TABLE OF PLM_DMS_ID,"TABLES PARAM |
| wa_ptx_id_docs | LIKE LINE OF it_ptx_id_docs . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_pfx_number_of_hits | TYPE SY-TABIX , |
| ld_pfx_objky | TYPE DRAD-OBJKY , |
| it_ptx_content | TYPE STANDARD TABLE OF PLM_DMS_CONTENT , |
| wa_ptx_content | LIKE LINE OF it_ptx_content, |
| ld_pfx_object | TYPE DRAD-DOKOB , |
| it_ptx_id_docs | TYPE STANDARD TABLE OF PLM_DMS_ID , |
| wa_ptx_id_docs | LIKE LINE OF it_ptx_id_docs, |
| ld_psx_drad_extern | TYPE DRAD_BI , |
| ld_portaluser | TYPE SY-UNAME . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ECP_GEN_DOCUMENT_TO_OBJECT or its description.
ECP_GEN_DOCUMENT_TO_OBJECT - Anzeige Objektverknüpfungen->Originale zum Objekt ECP_FOR_ACTY_EXIT - Checks whether ECP for the activity exist ECP_DELETE_ECP_CO_OBJECT - Delete the co object ECP_DELETE_ACTY_CO_EST_ALL_VER - Deletes all the version of the ECP for an activity ECP_DELETE_ACTY_CO_ESTIMATE - Delete the CO estimate for the networks. ECP_CREATE_WRAP_NETACT - Create the Wrap object for Network Activity