SAP ISMA_INS_GET_PROBLEM_CAUSE Function Module for SDB: (RFC) Insert/get problem causes









ISMA_INS_GET_PROBLEM_CAUSE is a standard isma ins get problem cause SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SDB: (RFC) Insert/get problem causes processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for isma ins get problem cause FM, simply by entering the name ISMA_INS_GET_PROBLEM_CAUSE into the relevant SAP transaction such as SE37 or SE38.

Function Group: ISMA
Program Name: SAPLISMA
Main Program: SAPLISMA
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISMA_INS_GET_PROBLEM_CAUSE pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'ISMA_INS_GET_PROBLEM_CAUSE'"SDB: (RFC) Insert/get problem  causes
EXPORTING
* I_ISMNR = "
* I_LOCATION_GROUP = ' ' "
* I_LOCATION_CODE = ' ' "
* I_DAMAGE_GROUP = ' ' "
* I_DAMAGE_CODE = ' ' "
* I_RESET = 'X' "
* I_POST = ' ' "
* I_NOMSG = ' ' "

TABLES
* INSERT_CAUSES = "
RESULT_CAUSES = "

EXCEPTIONS
SHOW_MESSAGES = 1
.



IMPORTING Parameters details for ISMA_INS_GET_PROBLEM_CAUSE

I_ISMNR -

Data type: DISMP-ISMNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LOCATION_GROUP -

Data type: DITOP-OPGRP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LOCATION_CODE -

Data type: DITOP-OPCOD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DAMAGE_GROUP -

Data type: DITPR-PRGRP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DAMAGE_CODE -

Data type: DITPR-PRCOD
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_RESET -

Data type: T365-AKTYP
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_POST -

Data type: T365-AKTYP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NOMSG -

Data type: T365-AKTYP
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ISMA_INS_GET_PROBLEM_CAUSE

INSERT_CAUSES -

Data type: DITCA
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESULT_CAUSES -

Data type: DITCA
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

SHOW_MESSAGES -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ISMA_INS_GET_PROBLEM_CAUSE Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_i_ismnr  TYPE DISMP-ISMNR, "   
lt_insert_causes  TYPE STANDARD TABLE OF DITCA, "   
lv_show_messages  TYPE DITCA, "   
lt_result_causes  TYPE STANDARD TABLE OF DITCA, "   
lv_i_location_group  TYPE DITOP-OPGRP, "   SPACE
lv_i_location_code  TYPE DITOP-OPCOD, "   SPACE
lv_i_damage_group  TYPE DITPR-PRGRP, "   SPACE
lv_i_damage_code  TYPE DITPR-PRCOD, "   SPACE
lv_i_reset  TYPE T365-AKTYP, "   'X'
lv_i_post  TYPE T365-AKTYP, "   SPACE
lv_i_nomsg  TYPE T365-AKTYP. "   SPACE

  CALL FUNCTION 'ISMA_INS_GET_PROBLEM_CAUSE'  "SDB: (RFC) Insert/get problem causes
    EXPORTING
         I_ISMNR = lv_i_ismnr
         I_LOCATION_GROUP = lv_i_location_group
         I_LOCATION_CODE = lv_i_location_code
         I_DAMAGE_GROUP = lv_i_damage_group
         I_DAMAGE_CODE = lv_i_damage_code
         I_RESET = lv_i_reset
         I_POST = lv_i_post
         I_NOMSG = lv_i_nomsg
    TABLES
         INSERT_CAUSES = lt_insert_causes
         RESULT_CAUSES = lt_result_causes
    EXCEPTIONS
        SHOW_MESSAGES = 1
. " ISMA_INS_GET_PROBLEM_CAUSE




ABAP code using 7.40 inline data declarations to call FM ISMA_INS_GET_PROBLEM_CAUSE

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

"SELECT single ISMNR FROM DISMP INTO @DATA(ld_i_ismnr).
 
 
 
 
"SELECT single OPGRP FROM DITOP INTO @DATA(ld_i_location_group).
DATA(ld_i_location_group) = ' '.
 
"SELECT single OPCOD FROM DITOP INTO @DATA(ld_i_location_code).
DATA(ld_i_location_code) = ' '.
 
"SELECT single PRGRP FROM DITPR INTO @DATA(ld_i_damage_group).
DATA(ld_i_damage_group) = ' '.
 
"SELECT single PRCOD FROM DITPR INTO @DATA(ld_i_damage_code).
DATA(ld_i_damage_code) = ' '.
 
"SELECT single AKTYP FROM T365 INTO @DATA(ld_i_reset).
DATA(ld_i_reset) = 'X'.
 
"SELECT single AKTYP FROM T365 INTO @DATA(ld_i_post).
DATA(ld_i_post) = ' '.
 
"SELECT single AKTYP FROM T365 INTO @DATA(ld_i_nomsg).
DATA(ld_i_nomsg) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!