SAP ISM_SO_COMPLAINT_DATA_INIT Function Module for









ISM_SO_COMPLAINT_DATA_INIT is a standard ism so complaint data init SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ism so complaint data init FM, simply by entering the name ISM_SO_COMPLAINT_DATA_INIT into the relevant SAP transaction such as SE37 or SE38.

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



Function ISM_SO_COMPLAINT_DATA_INIT 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 'ISM_SO_COMPLAINT_DATA_INIT'"
EXPORTING
PV_ORDNBR = "
* PV_XPERIOD_CHANGED = 'X' "
* PV_XCOMPLTYPE_CHANGED = ' ' "
PV_POSNBR = "
* PV_COMPLREASON = "
* PV_COMPLRESULT = "
* PV_COMPLORIGIN = "
* PV_COMPLTYPE = '4' "
* PV_COMPLDATE = SY-DATUM "
* PV_MISSINGFROM = SY-DATUM "
* PV_MISSINGTO = SY-DATUM "

CHANGING
PS_JVTFEHLER = "
PS_RJKCOMPL = "
PT_RJKCOMPLTC = "

EXCEPTIONS
WRONG_INPUT = 1 NOT_AUTHORIZED = 2 ORDER_NOT_FOUND = 3
.



IMPORTING Parameters details for ISM_SO_COMPLAINT_DATA_INIT

PV_ORDNBR -

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

PV_XPERIOD_CHANGED -

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

PV_XCOMPLTYPE_CHANGED -

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

PV_POSNBR -

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

PV_COMPLREASON -

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

PV_COMPLRESULT -

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

PV_COMPLORIGIN -

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

PV_COMPLTYPE -

Data type: ISM_WWWCOMPLTYPE
Default: '4'
Optional: Yes
Call by Reference: No ( called with pass by value option)

PV_COMPLDATE -

Data type: ISM_COMPLDATE
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

PV_MISSINGFROM -

Data type: FEHLERSEIT
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

PV_MISSINGTO -

Data type: FEHLERBIS
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for ISM_SO_COMPLAINT_DATA_INIT

PS_JVTFEHLER -

Data type: JVTFEHLER
Optional: No
Call by Reference: Yes

PS_RJKCOMPL -

Data type: RJKCOMPL
Optional: No
Call by Reference: Yes

PT_RJKCOMPLTC -

Data type: RJKCOMPLTC_TAB
Optional: No
Call by Reference: Yes

EXCEPTIONS details

WRONG_INPUT -

Data type:
Optional: No
Call by Reference: Yes

NOT_AUTHORIZED -

Data type:
Optional: No
Call by Reference: Yes

ORDER_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISM_SO_COMPLAINT_DATA_INIT 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_pv_ordnbr  TYPE SHIPORDNBR, "   
lv_wrong_input  TYPE SHIPORDNBR, "   
lv_ps_jvtfehler  TYPE JVTFEHLER, "   
lv_pv_xperiod_changed  TYPE XFELD, "   'X'
lv_pv_xcompltype_changed  TYPE XFELD, "   SPACE
lv_pv_posnbr  TYPE SHIPORDPOSNBR, "   
lv_ps_rjkcompl  TYPE RJKCOMPL, "   
lv_not_authorized  TYPE RJKCOMPL, "   
lv_pt_rjkcompltc  TYPE RJKCOMPLTC_TAB, "   
lv_pv_complreason  TYPE FVGRUND, "   
lv_order_not_found  TYPE FVGRUND, "   
lv_pv_complresult  TYPE ISM_REKLERGB, "   
lv_pv_complorigin  TYPE FVVERURS, "   
lv_pv_compltype  TYPE ISM_WWWCOMPLTYPE, "   '4'
lv_pv_compldate  TYPE ISM_COMPLDATE, "   SY-DATUM
lv_pv_missingfrom  TYPE FEHLERSEIT, "   SY-DATUM
lv_pv_missingto  TYPE FEHLERBIS. "   SY-DATUM

  CALL FUNCTION 'ISM_SO_COMPLAINT_DATA_INIT'  "
    EXPORTING
         PV_ORDNBR = lv_pv_ordnbr
         PV_XPERIOD_CHANGED = lv_pv_xperiod_changed
         PV_XCOMPLTYPE_CHANGED = lv_pv_xcompltype_changed
         PV_POSNBR = lv_pv_posnbr
         PV_COMPLREASON = lv_pv_complreason
         PV_COMPLRESULT = lv_pv_complresult
         PV_COMPLORIGIN = lv_pv_complorigin
         PV_COMPLTYPE = lv_pv_compltype
         PV_COMPLDATE = lv_pv_compldate
         PV_MISSINGFROM = lv_pv_missingfrom
         PV_MISSINGTO = lv_pv_missingto
    CHANGING
         PS_JVTFEHLER = lv_ps_jvtfehler
         PS_RJKCOMPL = lv_ps_rjkcompl
         PT_RJKCOMPLTC = lv_pt_rjkcompltc
    EXCEPTIONS
        WRONG_INPUT = 1
        NOT_AUTHORIZED = 2
        ORDER_NOT_FOUND = 3
. " ISM_SO_COMPLAINT_DATA_INIT




ABAP code using 7.40 inline data declarations to call FM ISM_SO_COMPLAINT_DATA_INIT

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.

 
 
 
DATA(ld_pv_xperiod_changed) = 'X'.
 
DATA(ld_pv_xcompltype_changed) = ' '.
 
 
 
 
 
 
 
 
 
DATA(ld_pv_compltype) = '4'.
 
DATA(ld_pv_compldate) = SY-DATUM.
 
DATA(ld_pv_missingfrom) = SY-DATUM.
 
DATA(ld_pv_missingto) = SY-DATUM.
 


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!