SAP CED1_PDOC_READ_MARKUP Function Module for NOTRANSL: B2E [PDoc] Read PDoc
CED1_PDOC_READ_MARKUP is a standard ced1 pdoc read markup SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: B2E [PDoc] Read PDoc processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for ced1 pdoc read markup FM, simply by entering the name CED1_PDOC_READ_MARKUP into the relevant SAP transaction such as SE37 or SE38.
Function Group: CED1
Program Name: SAPLCED1
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CED1_PDOC_READ_MARKUP pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'CED1_PDOC_READ_MARKUP'"NOTRANSL: B2E [PDoc] Read PDoc.
EXPORTING
P_PDOCID = "DE-EN-LANG-SWITCH-NO-TRANSLATION
P_LAYERID = "Physical Information Object
* P_TARGET = 'TABLE' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* P_PHIO = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
P_CONTENTSIZE = "
TABLES
* PT_CONTENT = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
NOT_FOUND = 1 DOC_NOT_FOUND = 2 DMS_ERROR = 3
IMPORTING Parameters details for CED1_PDOC_READ_MARKUP
P_PDOCID - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CE_PDCIDOptional: No
Call by Reference: No ( called with pass by value option)
P_LAYERID - Physical Information Object
Data type: CVAPI_DOC_FILE-PH_OBJIDOptional: No
Call by Reference: No ( called with pass by value option)
P_TARGET - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CHAR10Default: 'TABLE'
Optional: Yes
Call by Reference: No ( called with pass by value option)
P_PHIO - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CVAPI_DOC_FILE-PH_OBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CED1_PDOC_READ_MARKUP
P_CONTENTSIZE -
Data type: IOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for CED1_PDOC_READ_MARKUP
PT_CONTENT - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: CET_PDCCTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DOC_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DMS_ERROR - Other Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CED1_PDOC_READ_MARKUP Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_p_pdocid | TYPE CE_PDCID, " | |||
| lv_not_found | TYPE CE_PDCID, " | |||
| lt_pt_content | TYPE STANDARD TABLE OF CET_PDCCT, " | |||
| lv_p_contentsize | TYPE I, " | |||
| lv_p_layerid | TYPE CVAPI_DOC_FILE-PH_OBJID, " | |||
| lv_doc_not_found | TYPE CVAPI_DOC_FILE, " | |||
| lv_p_target | TYPE CHAR10, " 'TABLE' | |||
| lv_dms_error | TYPE CHAR10, " | |||
| lv_p_phio | TYPE CVAPI_DOC_FILE-PH_OBJID. " |
|   CALL FUNCTION 'CED1_PDOC_READ_MARKUP' "NOTRANSL: B2E [PDoc] Read PDoc |
| EXPORTING | ||
| P_PDOCID | = lv_p_pdocid | |
| P_LAYERID | = lv_p_layerid | |
| P_TARGET | = lv_p_target | |
| P_PHIO | = lv_p_phio | |
| IMPORTING | ||
| P_CONTENTSIZE | = lv_p_contentsize | |
| TABLES | ||
| PT_CONTENT | = lt_pt_content | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| DOC_NOT_FOUND = 2 | ||
| DMS_ERROR = 3 | ||
| . " CED1_PDOC_READ_MARKUP | ||
ABAP code using 7.40 inline data declarations to call FM CED1_PDOC_READ_MARKUP
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single PH_OBJID FROM CVAPI_DOC_FILE INTO @DATA(ld_p_layerid). | ||||
| DATA(ld_p_target) | = 'TABLE'. | |||
| "SELECT single PH_OBJID FROM CVAPI_DOC_FILE INTO @DATA(ld_p_phio). | ||||
Search for further information about these or an SAP related objects