SAP Function Modules

ISMAM_ISSUE_CHANGE_TO_PU SAP Function module - IS-M/AM: Change Production Units (API: Change an Issue)







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

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


Pattern for FM ISMAM_ISSUE_CHANGE_TO_PU - ISMAM ISSUE CHANGE TO PU





CALL FUNCTION 'ISMAM_ISSUE_CHANGE_TO_PU' "IS-M/AM: Change Production Units (API: Change an Issue)
  EXPORTING
    ps_jdtvausgb =              " jjb1_jdtvausgb_str
*   pv_xtest =                  " xfeld         Test Mode
    pv_issue_changetype =       " tjd71-chtype_issue  Issue change type
  IMPORTING
    pt_jjtpe_old =              " jjb1_jjtpe_tab
    pt_jjtpe_changed =          " jjb1_jjtpe_tab
  EXCEPTIONS
    PROCESS_CANCELED = 1        "               Process Canceled
    .  "  ISMAM_ISSUE_CHANGE_TO_PU

ABAP code example for Function Module ISMAM_ISSUE_CHANGE_TO_PU





The ABAP code below is a full code listing to execute function module ISMAM_ISSUE_CHANGE_TO_PU 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_pt_jjtpe_old  TYPE JJB1_JJTPE_TAB ,
ld_pt_jjtpe_changed  TYPE JJB1_JJTPE_TAB .

DATA(ld_ps_jdtvausgb) = 'Check type of data required'.
DATA(ld_pv_xtest) = 'Check type of data required'.

SELECT single CHTYPE_ISSUE
FROM TJD71
INTO @DATA(ld_pv_issue_changetype).
. CALL FUNCTION 'ISMAM_ISSUE_CHANGE_TO_PU' EXPORTING ps_jdtvausgb = ld_ps_jdtvausgb * pv_xtest = ld_pv_xtest pv_issue_changetype = ld_pv_issue_changetype IMPORTING pt_jjtpe_old = ld_pt_jjtpe_old pt_jjtpe_changed = ld_pt_jjtpe_changed EXCEPTIONS PROCESS_CANCELED = 1 . " ISMAM_ISSUE_CHANGE_TO_PU
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_pt_jjtpe_old  TYPE JJB1_JJTPE_TAB ,
ld_ps_jdtvausgb  TYPE JJB1_JDTVAUSGB_STR ,
ld_pt_jjtpe_changed  TYPE JJB1_JJTPE_TAB ,
ld_pv_xtest  TYPE XFELD ,
ld_pv_issue_changetype  TYPE TJD71-CHTYPE_ISSUE .

ld_ps_jdtvausgb = 'Check type of data required'.
ld_pv_xtest = 'Check type of data required'.

SELECT single CHTYPE_ISSUE
FROM TJD71
INTO ld_pv_issue_changetype.

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