SAP Function Modules

PPECD_EQRN_WRITE_DOCUMENT SAP Function module







PPECD_EQRN_WRITE_DOCUMENT 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 PPECD_EQRN_WRITE_DOCUMENT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: PVSDBEQR
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM PPECD_EQRN_WRITE_DOCUMENT - PPECD EQRN WRITE DOCUMENT





CALL FUNCTION 'PPECD_EQRN_WRITE_DOCUMENT' "
  EXPORTING
    i_objectid =                " cdobjectv
    i_tcode =                   " cdtcode
    i_utime =                   " cduzeit
    i_udate =                   " cddatum
    i_username =                " cdusername
*   i_planned_change_number = SPACE  " planchngnr
*   i_object_change_indicator = 'U'  " cdchngindh
*   i_planned_or_real_changes = SPACE  " cdchngindh
*   i_no_change_pointers = PPET_TRUE  " cdchngindh
*   is_n_pneqr =                " pneqr
*   is_o_pneqr =                " pneqr
*   i_upd_pneqr = SPACE         " cdchngind
*   is_n_pnodid =               " pnodid
*   is_o_pnodid =               " pnodid
*   i_upd_pnodid = SPACE        " cdchngind
*   i_upd_pnodtx = SPACE        " cdchngind
* TABLES
*   it_xpnodtx =                " cdpnodtx
*   it_ypnodtx =                " cdpnodtx
    .  "  PPECD_EQRN_WRITE_DOCUMENT

ABAP code example for Function Module PPECD_EQRN_WRITE_DOCUMENT





The ABAP code below is a full code listing to execute function module PPECD_EQRN_WRITE_DOCUMENT 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).

DATA:
it_it_xpnodtx  TYPE STANDARD TABLE OF CDPNODTX,"TABLES PARAM
wa_it_xpnodtx  LIKE LINE OF it_it_xpnodtx ,
it_it_ypnodtx  TYPE STANDARD TABLE OF CDPNODTX,"TABLES PARAM
wa_it_ypnodtx  LIKE LINE OF it_it_ypnodtx .

DATA(ld_i_objectid) = 'Check type of data required'.
DATA(ld_i_tcode) = 'Check type of data required'.
DATA(ld_i_utime) = 'Check type of data required'.
DATA(ld_i_udate) = 'Check type of data required'.
DATA(ld_i_username) = 'Check type of data required'.
DATA(ld_i_planned_change_number) = 'Check type of data required'.
DATA(ld_i_object_change_indicator) = 'Check type of data required'.
DATA(ld_i_planned_or_real_changes) = 'Check type of data required'.
DATA(ld_i_no_change_pointers) = 'Check type of data required'.
DATA(ld_is_n_pneqr) = 'Check type of data required'.
DATA(ld_is_o_pneqr) = 'Check type of data required'.
DATA(ld_i_upd_pneqr) = 'Check type of data required'.
DATA(ld_is_n_pnodid) = 'Check type of data required'.
DATA(ld_is_o_pnodid) = 'Check type of data required'.
DATA(ld_i_upd_pnodid) = 'Check type of data required'.
DATA(ld_i_upd_pnodtx) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_xpnodtx to it_it_xpnodtx.

"populate fields of struture and append to itab
append wa_it_ypnodtx to it_it_ypnodtx. . CALL FUNCTION 'PPECD_EQRN_WRITE_DOCUMENT' EXPORTING i_objectid = ld_i_objectid i_tcode = ld_i_tcode i_utime = ld_i_utime i_udate = ld_i_udate i_username = ld_i_username * i_planned_change_number = ld_i_planned_change_number * i_object_change_indicator = ld_i_object_change_indicator * i_planned_or_real_changes = ld_i_planned_or_real_changes * i_no_change_pointers = ld_i_no_change_pointers * is_n_pneqr = ld_is_n_pneqr * is_o_pneqr = ld_is_o_pneqr * i_upd_pneqr = ld_i_upd_pneqr * is_n_pnodid = ld_is_n_pnodid * is_o_pnodid = ld_is_o_pnodid * i_upd_pnodid = ld_i_upd_pnodid * i_upd_pnodtx = ld_i_upd_pnodtx * TABLES * it_xpnodtx = it_it_xpnodtx * it_ypnodtx = it_it_ypnodtx . " PPECD_EQRN_WRITE_DOCUMENT
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_i_objectid  TYPE CDOBJECTV ,
it_it_xpnodtx  TYPE STANDARD TABLE OF CDPNODTX ,
wa_it_xpnodtx  LIKE LINE OF it_it_xpnodtx,
ld_i_tcode  TYPE CDTCODE ,
it_it_ypnodtx  TYPE STANDARD TABLE OF CDPNODTX ,
wa_it_ypnodtx  LIKE LINE OF it_it_ypnodtx,
ld_i_utime  TYPE CDUZEIT ,
ld_i_udate  TYPE CDDATUM ,
ld_i_username  TYPE CDUSERNAME ,
ld_i_planned_change_number  TYPE PLANCHNGNR ,
ld_i_object_change_indicator  TYPE CDCHNGINDH ,
ld_i_planned_or_real_changes  TYPE CDCHNGINDH ,
ld_i_no_change_pointers  TYPE CDCHNGINDH ,
ld_is_n_pneqr  TYPE PNEQR ,
ld_is_o_pneqr  TYPE PNEQR ,
ld_i_upd_pneqr  TYPE CDCHNGIND ,
ld_is_n_pnodid  TYPE PNODID ,
ld_is_o_pnodid  TYPE PNODID ,
ld_i_upd_pnodid  TYPE CDCHNGIND ,
ld_i_upd_pnodtx  TYPE CDCHNGIND .

ld_i_objectid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_xpnodtx to it_it_xpnodtx.
ld_i_tcode = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_ypnodtx to it_it_ypnodtx.
ld_i_utime = 'Check type of data required'.
ld_i_udate = 'Check type of data required'.
ld_i_username = 'Check type of data required'.
ld_i_planned_change_number = 'Check type of data required'.
ld_i_object_change_indicator = 'Check type of data required'.
ld_i_planned_or_real_changes = 'Check type of data required'.
ld_i_no_change_pointers = 'Check type of data required'.
ld_is_n_pneqr = 'Check type of data required'.
ld_is_o_pneqr = 'Check type of data required'.
ld_i_upd_pneqr = 'Check type of data required'.
ld_is_n_pnodid = 'Check type of data required'.
ld_is_o_pnodid = 'Check type of data required'.
ld_i_upd_pnodid = 'Check type of data required'.
ld_i_upd_pnodtx = 'Check type of data required'.

Contribute (Add Comments)

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 PPECD_EQRN_WRITE_DOCUMENT or its description.