SAP Function Modules

EXIT_SAPMJ45A_003 SAP Function module - IS-M/SD: Propose Item Data on Creation







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

Associated Function Group: XJK1
Released Date: 28.03.1995
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM EXIT_SAPMJ45A_003 - EXIT SAPMJ45A 003





CALL FUNCTION 'EXIT_SAPMJ45A_003' "IS-M/SD: Propose Item Data on Creation
  EXPORTING
    cjkak =                     " jkak          Order Header
    cjkap =                     " jkap          Order Item
    cjkkd =                     " jkkd          Business Data on Item
    rjkag =                     " rjkag         Sold-To Party Structure
    rjkre =                     " rjkre         Bill-To Party Structure
    rjkrg =                     " rjkrg         Payer Structure
    rjkwe =                     " rjkwe         Ship-To Party Structure
*   cjkap_vg =                  " jkap          Item Data on Previous Item
*   cjkkd_vg =                  " jkkd          Business Data on Previous Item
    cjkaprenew =                " jkaprenew     IS-M/SD: Index for Renewal of Subscriptions
  IMPORTING
    jkap_out =                  " jkap          New Item Data
    jkkd_out =                  " jkkd          New Business Data
    zlsch_out =                 " rjkrg-zlsch   New Payment Method
  CHANGING
    werbeart_out =              " jkprom-werbeart  Sales Source
    werbeakt_out =              " jkprom-werbeakt  Sales Promotion
    .  "  EXIT_SAPMJ45A_003

ABAP code example for Function Module EXIT_SAPMJ45A_003





The ABAP code below is a full code listing to execute function module EXIT_SAPMJ45A_003 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_jkap_out  TYPE JKAP ,
ld_jkkd_out  TYPE JKKD ,
ld_zlsch_out  TYPE RJKRG-ZLSCH .


SELECT single WERBEART
FROM JKPROM
INTO @DATA(ld_werbeart_out).


SELECT single WERBEAKT
FROM JKPROM
INTO @DATA(ld_werbeakt_out).

DATA(ld_cjkak) = 'Check type of data required'.
DATA(ld_cjkap) = 'Check type of data required'.
DATA(ld_cjkkd) = 'Check type of data required'.
DATA(ld_rjkag) = 'Check type of data required'.
DATA(ld_rjkre) = 'Check type of data required'.
DATA(ld_rjkrg) = 'Check type of data required'.
DATA(ld_rjkwe) = 'Check type of data required'.
DATA(ld_cjkap_vg) = 'Check type of data required'.
DATA(ld_cjkkd_vg) = 'Check type of data required'.
DATA(ld_cjkaprenew) = 'Check type of data required'. . CALL FUNCTION 'EXIT_SAPMJ45A_003' EXPORTING cjkak = ld_cjkak cjkap = ld_cjkap cjkkd = ld_cjkkd rjkag = ld_rjkag rjkre = ld_rjkre rjkrg = ld_rjkrg rjkwe = ld_rjkwe * cjkap_vg = ld_cjkap_vg * cjkkd_vg = ld_cjkkd_vg cjkaprenew = ld_cjkaprenew IMPORTING jkap_out = ld_jkap_out jkkd_out = ld_jkkd_out zlsch_out = ld_zlsch_out CHANGING werbeart_out = ld_werbeart_out werbeakt_out = ld_werbeakt_out . " EXIT_SAPMJ45A_003
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_werbeart_out  TYPE JKPROM-WERBEART ,
ld_jkap_out  TYPE JKAP ,
ld_cjkak  TYPE JKAK ,
ld_werbeakt_out  TYPE JKPROM-WERBEAKT ,
ld_jkkd_out  TYPE JKKD ,
ld_cjkap  TYPE JKAP ,
ld_zlsch_out  TYPE RJKRG-ZLSCH ,
ld_cjkkd  TYPE JKKD ,
ld_rjkag  TYPE RJKAG ,
ld_rjkre  TYPE RJKRE ,
ld_rjkrg  TYPE RJKRG ,
ld_rjkwe  TYPE RJKWE ,
ld_cjkap_vg  TYPE JKAP ,
ld_cjkkd_vg  TYPE JKKD ,
ld_cjkaprenew  TYPE JKAPRENEW .


SELECT single WERBEART
FROM JKPROM
INTO ld_werbeart_out.

ld_cjkak = 'Check type of data required'.

SELECT single WERBEAKT
FROM JKPROM
INTO ld_werbeakt_out.

ld_cjkap = 'Check type of data required'.
ld_cjkkd = 'Check type of data required'.
ld_rjkag = 'Check type of data required'.
ld_rjkre = 'Check type of data required'.
ld_rjkrg = 'Check type of data required'.
ld_rjkwe = 'Check type of data required'.
ld_cjkap_vg = 'Check type of data required'.
ld_cjkkd_vg = 'Check type of data required'.
ld_cjkaprenew = 'Check type of data required'.

SAP Documentation for FM EXIT_SAPMJ45A_003


You can use this function module to have the system propose item data when creating new items. ...See here for full SAP fm documentation















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