SAP Function Modules

PLM_PS_MASTER_PS_TRANS SAP Function module







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

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


Pattern for FM PLM_PS_MASTER_PS_TRANS - PLM PS MASTER PS TRANS





CALL FUNCTION 'PLM_PS_MASTER_PS_TRANS' "
  EXPORTING
    i_parobtyp =                " swotentry-objtype
    i_parkey1 =                 " c
    i_parkey2 =                 " c
    i_infoitem =                " c
    i_akttype =                 " sy-ucomm
    i_attr1 =                   " c
    i_attr2 =                   " c
    i_attr3 =                   " c
    i_attr4 =                   " c
    i_trans_type =              " c
  IMPORTING
    e_transaction_code =        " sy-tcode
  TABLES
    et_bdcdata =                " bdcdata
    .  "  PLM_PS_MASTER_PS_TRANS

ABAP code example for Function Module PLM_PS_MASTER_PS_TRANS





The ABAP code below is a full code listing to execute function module PLM_PS_MASTER_PS_TRANS 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:
ld_e_transaction_code  TYPE SY-TCODE ,
it_et_bdcdata  TYPE STANDARD TABLE OF BDCDATA,"TABLES PARAM
wa_et_bdcdata  LIKE LINE OF it_et_bdcdata .


DATA(ld_i_parobtyp) = some text here
DATA(ld_i_parkey1) = 'Check type of data required'.
DATA(ld_i_parkey2) = 'Check type of data required'.
DATA(ld_i_infoitem) = 'Check type of data required'.
DATA(ld_i_akttype) = 'some text here'.
DATA(ld_i_attr1) = 'some text here'.
DATA(ld_i_attr2) = 'some text here'.
DATA(ld_i_attr3) = 'some text here'.
DATA(ld_i_attr4) = 'some text here'.
DATA(ld_i_trans_type) = 'some text here'.

"populate fields of struture and append to itab
append wa_et_bdcdata to it_et_bdcdata. . CALL FUNCTION 'PLM_PS_MASTER_PS_TRANS' EXPORTING i_parobtyp = ld_i_parobtyp i_parkey1 = ld_i_parkey1 i_parkey2 = ld_i_parkey2 i_infoitem = ld_i_infoitem i_akttype = ld_i_akttype i_attr1 = ld_i_attr1 i_attr2 = ld_i_attr2 i_attr3 = ld_i_attr3 i_attr4 = ld_i_attr4 i_trans_type = ld_i_trans_type IMPORTING e_transaction_code = ld_e_transaction_code TABLES et_bdcdata = it_et_bdcdata . " PLM_PS_MASTER_PS_TRANS
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_e_transaction_code  TYPE SY-TCODE ,
ld_i_parobtyp  TYPE SWOTENTRY-OBJTYPE ,
it_et_bdcdata  TYPE STANDARD TABLE OF BDCDATA ,
wa_et_bdcdata  LIKE LINE OF it_et_bdcdata,
ld_i_parkey1  TYPE C ,
ld_i_parkey2  TYPE C ,
ld_i_infoitem  TYPE C ,
ld_i_akttype  TYPE SY-UCOMM ,
ld_i_attr1  TYPE C ,
ld_i_attr2  TYPE C ,
ld_i_attr3  TYPE C ,
ld_i_attr4  TYPE C ,
ld_i_trans_type  TYPE C .


ld_i_parobtyp = some text here

"populate fields of struture and append to itab
append wa_et_bdcdata to it_et_bdcdata.
ld_i_parkey1 = 'some text here'.
ld_i_parkey2 = 'some text here'.
ld_i_infoitem = 'some text here'.
ld_i_akttype = 'some text here'.
ld_i_attr1 = 'some text here'.
ld_i_attr2 = 'some text here'.
ld_i_attr3 = 'some text here'.
ld_i_attr4 = 'some text here'.
ld_i_trans_type = '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 PLM_PS_MASTER_PS_TRANS or its description.