SAP Function Modules

MATE_PARK_WRITE_DOCUMENT SAP Function module - Generiert durch RSCDOKF0, Änderunsbelege







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

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


Pattern for FM MATE_PARK_WRITE_DOCUMENT - MATE PARK WRITE DOCUMENT





CALL FUNCTION 'MATE_PARK_WRITE_DOCUMENT' "Generiert durch RSCDOKF0, Änderunsbelege
  EXPORTING
    objectid =                  " cdhdr-objectid
    tcode =                     " cdhdr-tcode
    utime =                     " cdhdr-utime
    udate =                     " cdhdr-udate
    username =                  " cdhdr-username
*   upd_dmakt = SPACE           "
*   upd_dmarm = SPACE           "
*   upd_dmlan = SPACE           "
    n_mara =                    " mara
    o_mara =                    " mara
*   upd_mara = SPACE            "
    n_marc =                    " marc
    o_marc =                    " marc
    n_mare =                    " mare
    o_mare =                    " mare
*   upd_marc = SPACE            "
    n_mard =                    " mard
    o_mard =                    " mard
*   upd_mard = SPACE            "
    n_mbew =                    " mbew
    o_mbew =                    " mbew
*   upd_mbew = SPACE            "
    n_mlgn =                    " mlgn
    o_mlgn =                    " mlgn
*   upd_mlgn = SPACE            "
    n_mlgt =                    " mlgt
    o_mlgt =                    " mlgt
*   upd_mlgt = SPACE            "
    n_mpop =                    " mpop
    o_mpop =                    " mpop
*   upd_mpop = SPACE            "
    n_mvke =                    " mvke
    o_mvke =                    " mvke
*   upd_mvke = SPACE            "
  TABLES
    xdmakt =                    "
    ydmakt =                    "
    xdmarm =                    "
    ydmarm =                    "
    xdmlan =                    "
    ydmlan =                    "
    .  "  MATE_PARK_WRITE_DOCUMENT

ABAP code example for Function Module MATE_PARK_WRITE_DOCUMENT





The ABAP code below is a full code listing to execute function module MATE_PARK_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_xdmakt  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_xdmakt  LIKE LINE OF it_xdmakt ,
it_ydmakt  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_ydmakt  LIKE LINE OF it_ydmakt ,
it_xdmarm  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_xdmarm  LIKE LINE OF it_xdmarm ,
it_ydmarm  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_ydmarm  LIKE LINE OF it_ydmarm ,
it_xdmlan  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_xdmlan  LIKE LINE OF it_xdmlan ,
it_ydmlan  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_ydmlan  LIKE LINE OF it_ydmlan .


SELECT single OBJECTID
FROM CDHDR
INTO @DATA(ld_objectid).


SELECT single TCODE
FROM CDHDR
INTO @DATA(ld_tcode).


SELECT single UTIME
FROM CDHDR
INTO @DATA(ld_utime).


SELECT single UDATE
FROM CDHDR
INTO @DATA(ld_udate).


SELECT single USERNAME
FROM CDHDR
INTO @DATA(ld_username).

DATA(ld_upd_dmakt) = 'some text here'.
DATA(ld_upd_dmarm) = 'some text here'.
DATA(ld_upd_dmlan) = 'some text here'.
DATA(ld_n_mara) = 'Check type of data required'.
DATA(ld_o_mara) = 'Check type of data required'.
DATA(ld_upd_mara) = 'some text here'.
DATA(ld_n_marc) = 'Check type of data required'.
DATA(ld_o_marc) = 'Check type of data required'.
DATA(ld_n_mare) = 'Check type of data required'.
DATA(ld_o_mare) = 'Check type of data required'.
DATA(ld_upd_marc) = 'some text here'.
DATA(ld_n_mard) = 'Check type of data required'.
DATA(ld_o_mard) = 'Check type of data required'.
DATA(ld_upd_mard) = 'some text here'.
DATA(ld_n_mbew) = 'Check type of data required'.
DATA(ld_o_mbew) = 'Check type of data required'.
DATA(ld_upd_mbew) = 'some text here'.
DATA(ld_n_mlgn) = 'Check type of data required'.
DATA(ld_o_mlgn) = 'Check type of data required'.
DATA(ld_upd_mlgn) = 'some text here'.
DATA(ld_n_mlgt) = 'Check type of data required'.
DATA(ld_o_mlgt) = 'Check type of data required'.
DATA(ld_upd_mlgt) = 'some text here'.
DATA(ld_n_mpop) = 'Check type of data required'.
DATA(ld_o_mpop) = 'Check type of data required'.
DATA(ld_upd_mpop) = 'some text here'.
DATA(ld_n_mvke) = 'Check type of data required'.
DATA(ld_o_mvke) = 'Check type of data required'.
DATA(ld_upd_mvke) = 'some text here'.

"populate fields of struture and append to itab
append wa_xdmakt to it_xdmakt.

"populate fields of struture and append to itab
append wa_ydmakt to it_ydmakt.

"populate fields of struture and append to itab
append wa_xdmarm to it_xdmarm.

"populate fields of struture and append to itab
append wa_ydmarm to it_ydmarm.

"populate fields of struture and append to itab
append wa_xdmlan to it_xdmlan.

"populate fields of struture and append to itab
append wa_ydmlan to it_ydmlan. . CALL FUNCTION 'MATE_PARK_WRITE_DOCUMENT' EXPORTING objectid = ld_objectid tcode = ld_tcode utime = ld_utime udate = ld_udate username = ld_username * upd_dmakt = ld_upd_dmakt * upd_dmarm = ld_upd_dmarm * upd_dmlan = ld_upd_dmlan n_mara = ld_n_mara o_mara = ld_o_mara * upd_mara = ld_upd_mara n_marc = ld_n_marc o_marc = ld_o_marc n_mare = ld_n_mare o_mare = ld_o_mare * upd_marc = ld_upd_marc n_mard = ld_n_mard o_mard = ld_o_mard * upd_mard = ld_upd_mard n_mbew = ld_n_mbew o_mbew = ld_o_mbew * upd_mbew = ld_upd_mbew n_mlgn = ld_n_mlgn o_mlgn = ld_o_mlgn * upd_mlgn = ld_upd_mlgn n_mlgt = ld_n_mlgt o_mlgt = ld_o_mlgt * upd_mlgt = ld_upd_mlgt n_mpop = ld_n_mpop o_mpop = ld_o_mpop * upd_mpop = ld_upd_mpop n_mvke = ld_n_mvke o_mvke = ld_o_mvke * upd_mvke = ld_upd_mvke TABLES xdmakt = it_xdmakt ydmakt = it_ydmakt xdmarm = it_xdmarm ydmarm = it_ydmarm xdmlan = it_xdmlan ydmlan = it_ydmlan . " MATE_PARK_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_objectid  TYPE CDHDR-OBJECTID ,
it_xdmakt  TYPE STANDARD TABLE OF STRING ,
wa_xdmakt  LIKE LINE OF it_xdmakt,
ld_tcode  TYPE CDHDR-TCODE ,
it_ydmakt  TYPE STANDARD TABLE OF STRING ,
wa_ydmakt  LIKE LINE OF it_ydmakt,
ld_utime  TYPE CDHDR-UTIME ,
it_xdmarm  TYPE STANDARD TABLE OF STRING ,
wa_xdmarm  LIKE LINE OF it_xdmarm,
ld_udate  TYPE CDHDR-UDATE ,
it_ydmarm  TYPE STANDARD TABLE OF STRING ,
wa_ydmarm  LIKE LINE OF it_ydmarm,
ld_username  TYPE CDHDR-USERNAME ,
it_xdmlan  TYPE STANDARD TABLE OF STRING ,
wa_xdmlan  LIKE LINE OF it_xdmlan,
ld_upd_dmakt  TYPE STRING ,
it_ydmlan  TYPE STANDARD TABLE OF STRING ,
wa_ydmlan  LIKE LINE OF it_ydmlan,
ld_upd_dmarm  TYPE STRING ,
ld_upd_dmlan  TYPE STRING ,
ld_n_mara  TYPE MARA ,
ld_o_mara  TYPE MARA ,
ld_upd_mara  TYPE STRING ,
ld_n_marc  TYPE MARC ,
ld_o_marc  TYPE MARC ,
ld_n_mare  TYPE MARE ,
ld_o_mare  TYPE MARE ,
ld_upd_marc  TYPE STRING ,
ld_n_mard  TYPE MARD ,
ld_o_mard  TYPE MARD ,
ld_upd_mard  TYPE STRING ,
ld_n_mbew  TYPE MBEW ,
ld_o_mbew  TYPE MBEW ,
ld_upd_mbew  TYPE STRING ,
ld_n_mlgn  TYPE MLGN ,
ld_o_mlgn  TYPE MLGN ,
ld_upd_mlgn  TYPE STRING ,
ld_n_mlgt  TYPE MLGT ,
ld_o_mlgt  TYPE MLGT ,
ld_upd_mlgt  TYPE STRING ,
ld_n_mpop  TYPE MPOP ,
ld_o_mpop  TYPE MPOP ,
ld_upd_mpop  TYPE STRING ,
ld_n_mvke  TYPE MVKE ,
ld_o_mvke  TYPE MVKE ,
ld_upd_mvke  TYPE STRING .


SELECT single OBJECTID
FROM CDHDR
INTO ld_objectid.


"populate fields of struture and append to itab
append wa_xdmakt to it_xdmakt.

SELECT single TCODE
FROM CDHDR
INTO ld_tcode.


"populate fields of struture and append to itab
append wa_ydmakt to it_ydmakt.

SELECT single UTIME
FROM CDHDR
INTO ld_utime.


"populate fields of struture and append to itab
append wa_xdmarm to it_xdmarm.

SELECT single UDATE
FROM CDHDR
INTO ld_udate.


"populate fields of struture and append to itab
append wa_ydmarm to it_ydmarm.

SELECT single USERNAME
FROM CDHDR
INTO ld_username.


"populate fields of struture and append to itab
append wa_xdmlan to it_xdmlan.
ld_upd_dmakt = 'some text here'.

"populate fields of struture and append to itab
append wa_ydmlan to it_ydmlan.
ld_upd_dmarm = 'some text here'.
ld_upd_dmlan = 'some text here'.
ld_n_mara = 'Check type of data required'.
ld_o_mara = 'Check type of data required'.
ld_upd_mara = 'some text here'.
ld_n_marc = 'Check type of data required'.
ld_o_marc = 'Check type of data required'.
ld_n_mare = 'Check type of data required'.
ld_o_mare = 'Check type of data required'.
ld_upd_marc = 'some text here'.
ld_n_mard = 'Check type of data required'.
ld_o_mard = 'Check type of data required'.
ld_upd_mard = 'some text here'.
ld_n_mbew = 'Check type of data required'.
ld_o_mbew = 'Check type of data required'.
ld_upd_mbew = 'some text here'.
ld_n_mlgn = 'Check type of data required'.
ld_o_mlgn = 'Check type of data required'.
ld_upd_mlgn = 'some text here'.
ld_n_mlgt = 'Check type of data required'.
ld_o_mlgt = 'Check type of data required'.
ld_upd_mlgt = 'some text here'.
ld_n_mpop = 'Check type of data required'.
ld_o_mpop = 'Check type of data required'.
ld_upd_mpop = 'some text here'.
ld_n_mvke = 'Check type of data required'.
ld_o_mvke = 'Check type of data required'.
ld_upd_mvke = 'some text here'.

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