J_1I_EXIM_PM_MODIFY_STATUS 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 J_1I_EXIM_PM_MODIFY_STATUS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
J1IEXIM_PM
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'J_1I_EXIM_PM_MODIFY_STATUS' "Manage Process Management Document Sets Status
EXPORTING
* it_pm_dochdr = " tt_j_1i_pm_dochdr Table Type for J_1I_PM_DOCHDR
* it_pm_docdtl = " tt_j_1i_pm_docdtl Table type for J_1I_PM_DOCDTL
* it_pm_dochdr_del = " tt_j_1i_pm_dochdr Table Type for J_1I_PM_DOCHDR
* it_pm_docdtl_del = " tt_j_1i_pm_docdtl Table type for J_1I_PM_DOCDTL
* modify = " boole_d Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* delete = " boole_d Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
ref_doc_cat = " vbtyp SD document category
pm_doc_id = " j_1i_exim_docid Document ID
pm_doc_type = " j_1i_exim_doctype Document Type
EXCEPTIONS
DB_OPERATION_FAILED = 1 " Database Operation Failed
NO_OPER_FOUND = 2 " PM Management Operation not Maintained
MASTER_DATA_NOT_FOUND = 3 " No Data Passed
. " J_1I_EXIM_PM_MODIFY_STATUS
The ABAP code below is a full code listing to execute function module J_1I_EXIM_PM_MODIFY_STATUS 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_it_pm_dochdr) = 'Check type of data required'.
DATA(ld_it_pm_docdtl) = 'Check type of data required'.
DATA(ld_it_pm_dochdr_del) = 'Check type of data required'.
DATA(ld_it_pm_docdtl_del) = 'Check type of data required'.
DATA(ld_modify) = 'Check type of data required'.
DATA(ld_delete) = 'Check type of data required'.
DATA(ld_ref_doc_cat) = 'Check type of data required'.
DATA(ld_pm_doc_id) = 'Check type of data required'.
DATA(ld_pm_doc_type) = 'Check type of data required'. . CALL FUNCTION 'J_1I_EXIM_PM_MODIFY_STATUS' EXPORTING * it_pm_dochdr = ld_it_pm_dochdr * it_pm_docdtl = ld_it_pm_docdtl * it_pm_dochdr_del = ld_it_pm_dochdr_del * it_pm_docdtl_del = ld_it_pm_docdtl_del * modify = ld_modify * delete = ld_delete ref_doc_cat = ld_ref_doc_cat pm_doc_id = ld_pm_doc_id pm_doc_type = ld_pm_doc_type EXCEPTIONS DB_OPERATION_FAILED = 1 NO_OPER_FOUND = 2 MASTER_DATA_NOT_FOUND = 3 . " J_1I_EXIM_PM_MODIFY_STATUS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ENDIF.
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_it_pm_dochdr | TYPE TT_J_1I_PM_DOCHDR , |
| ld_it_pm_docdtl | TYPE TT_J_1I_PM_DOCDTL , |
| ld_it_pm_dochdr_del | TYPE TT_J_1I_PM_DOCHDR , |
| ld_it_pm_docdtl_del | TYPE TT_J_1I_PM_DOCDTL , |
| ld_modify | TYPE BOOLE_D , |
| ld_delete | TYPE BOOLE_D , |
| ld_ref_doc_cat | TYPE VBTYP , |
| ld_pm_doc_id | TYPE J_1I_EXIM_DOCID , |
| ld_pm_doc_type | TYPE J_1I_EXIM_DOCTYPE . |
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 J_1I_EXIM_PM_MODIFY_STATUS or its description.
J_1I_EXIM_PM_MODIFY_STATUS - Manage Process Management Document Sets Status J_1I_EXCISE_INBOUND_DELIVERY - Capturing Excise Details for SUS and Background J1IEX J_1I_DETERMINE_SER_ACCOUNT - Determine service tax accounts for company code,plant combination J_1I_DETERMINE_CONDITION_DEF - Determine the default tax condition types J_1I_DELETE_BLOCK_VALUES - Delete Block Transaction data J_1I_CO_UPDATE_VENDDET - Columbia: Function module for update task