SAP Function Modules

ISM_JPIDCDASS_WRITE_DOCUMENT SAP Function module - Access Change Documents for ID Code Assignment to Media Product







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

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


Pattern for FM ISM_JPIDCDASS_WRITE_DOCUMENT - ISM JPIDCDASS WRITE DOCUMENT





CALL FUNCTION 'ISM_JPIDCDASS_WRITE_DOCUMENT' "Access Change Documents for ID Code Assignment to Media Product
  EXPORTING
    pvi_tcode =                 " sy-tcode      ABAP Program, Current Transaction Code
    pvi_date =                  " sy-datum      Created On
    pvi_time =                  " sy-uzeit      Time Created
    pvi_user =                  " sy-uname      Created By
*   psi_old_mara =              " mara          IS-M: Assignment of Business Partners to Material
*   psi_new_mara =              " mara          General material data
  TABLES
*   pt_xjptidcdass =            " jptidcdassign  IS-M: Assignment of ID Codes to Material
*   pt_yjptidcdass =            " jptidcdassign  IS-M: Assignment of ID Codes to Material
    pt_jptidass_upd =           " jptidcdassign  IS-M: Assignment of ID Codes to Material
    pt_jptidass_ins =           " jptidcdassign  IS-M: Assignment of ID Codes to Material
    pt_jptidass_del =           " jptidcdassign  IS-M: Assignment of ID Codes to Material
    pt_o_jptidass =             " jptidcdassign  IS-M: Assignment of ID Codes to Material
    .  "  ISM_JPIDCDASS_WRITE_DOCUMENT

ABAP code example for Function Module ISM_JPIDCDASS_WRITE_DOCUMENT





The ABAP code below is a full code listing to execute function module ISM_JPIDCDASS_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_pt_xjptidcdass  TYPE STANDARD TABLE OF JPTIDCDASSIGN,"TABLES PARAM
wa_pt_xjptidcdass  LIKE LINE OF it_pt_xjptidcdass ,
it_pt_yjptidcdass  TYPE STANDARD TABLE OF JPTIDCDASSIGN,"TABLES PARAM
wa_pt_yjptidcdass  LIKE LINE OF it_pt_yjptidcdass ,
it_pt_jptidass_upd  TYPE STANDARD TABLE OF JPTIDCDASSIGN,"TABLES PARAM
wa_pt_jptidass_upd  LIKE LINE OF it_pt_jptidass_upd ,
it_pt_jptidass_ins  TYPE STANDARD TABLE OF JPTIDCDASSIGN,"TABLES PARAM
wa_pt_jptidass_ins  LIKE LINE OF it_pt_jptidass_ins ,
it_pt_jptidass_del  TYPE STANDARD TABLE OF JPTIDCDASSIGN,"TABLES PARAM
wa_pt_jptidass_del  LIKE LINE OF it_pt_jptidass_del ,
it_pt_o_jptidass  TYPE STANDARD TABLE OF JPTIDCDASSIGN,"TABLES PARAM
wa_pt_o_jptidass  LIKE LINE OF it_pt_o_jptidass .

DATA(ld_pvi_tcode) = 'some text here'.
DATA(ld_pvi_date) = '20210129'.
DATA(ld_pvi_time) = 'Check type of data required'.
DATA(ld_pvi_user) = 'some text here'.
DATA(ld_psi_old_mara) = 'some text here'.
DATA(ld_psi_new_mara) = 'some text here'.

"populate fields of struture and append to itab
append wa_pt_xjptidcdass to it_pt_xjptidcdass.

"populate fields of struture and append to itab
append wa_pt_yjptidcdass to it_pt_yjptidcdass.

"populate fields of struture and append to itab
append wa_pt_jptidass_upd to it_pt_jptidass_upd.

"populate fields of struture and append to itab
append wa_pt_jptidass_ins to it_pt_jptidass_ins.

"populate fields of struture and append to itab
append wa_pt_jptidass_del to it_pt_jptidass_del.

"populate fields of struture and append to itab
append wa_pt_o_jptidass to it_pt_o_jptidass. . CALL FUNCTION 'ISM_JPIDCDASS_WRITE_DOCUMENT' EXPORTING pvi_tcode = ld_pvi_tcode pvi_date = ld_pvi_date pvi_time = ld_pvi_time pvi_user = ld_pvi_user * psi_old_mara = ld_psi_old_mara * psi_new_mara = ld_psi_new_mara TABLES * pt_xjptidcdass = it_pt_xjptidcdass * pt_yjptidcdass = it_pt_yjptidcdass pt_jptidass_upd = it_pt_jptidass_upd pt_jptidass_ins = it_pt_jptidass_ins pt_jptidass_del = it_pt_jptidass_del pt_o_jptidass = it_pt_o_jptidass . " ISM_JPIDCDASS_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_pvi_tcode  TYPE SY-TCODE ,
it_pt_xjptidcdass  TYPE STANDARD TABLE OF JPTIDCDASSIGN ,
wa_pt_xjptidcdass  LIKE LINE OF it_pt_xjptidcdass,
ld_pvi_date  TYPE SY-DATUM ,
it_pt_yjptidcdass  TYPE STANDARD TABLE OF JPTIDCDASSIGN ,
wa_pt_yjptidcdass  LIKE LINE OF it_pt_yjptidcdass,
ld_pvi_time  TYPE SY-UZEIT ,
it_pt_jptidass_upd  TYPE STANDARD TABLE OF JPTIDCDASSIGN ,
wa_pt_jptidass_upd  LIKE LINE OF it_pt_jptidass_upd,
ld_pvi_user  TYPE SY-UNAME ,
it_pt_jptidass_ins  TYPE STANDARD TABLE OF JPTIDCDASSIGN ,
wa_pt_jptidass_ins  LIKE LINE OF it_pt_jptidass_ins,
ld_psi_old_mara  TYPE MARA ,
it_pt_jptidass_del  TYPE STANDARD TABLE OF JPTIDCDASSIGN ,
wa_pt_jptidass_del  LIKE LINE OF it_pt_jptidass_del,
ld_psi_new_mara  TYPE MARA ,
it_pt_o_jptidass  TYPE STANDARD TABLE OF JPTIDCDASSIGN ,
wa_pt_o_jptidass  LIKE LINE OF it_pt_o_jptidass.

ld_pvi_tcode = 'some text here'.

"populate fields of struture and append to itab
append wa_pt_xjptidcdass to it_pt_xjptidcdass.
ld_pvi_date = '20210129'.

"populate fields of struture and append to itab
append wa_pt_yjptidcdass to it_pt_yjptidcdass.
ld_pvi_time = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_pt_jptidass_upd to it_pt_jptidass_upd.
ld_pvi_user = 'some text here'.

"populate fields of struture and append to itab
append wa_pt_jptidass_ins to it_pt_jptidass_ins.
ld_psi_old_mara = 'some text here'.

"populate fields of struture and append to itab
append wa_pt_jptidass_del to it_pt_jptidass_del.
ld_psi_new_mara = 'some text here'.

"populate fields of struture and append to itab
append wa_pt_o_jptidass to it_pt_o_jptidass.

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