SAP BAPI_DISPUTE_PROCESS Function Module for FSCM-DM: Process Dispute Case









BAPI_DISPUTE_PROCESS is a standard bapi dispute process SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FSCM-DM: Process Dispute Case 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 bapi dispute process FM, simply by entering the name BAPI_DISPUTE_PROCESS into the relevant SAP transaction such as SE37 or SE38.

Function Group: DISPUTE
Program Name: SAPLDISPUTE
Main Program: SAPLDISPUTE
Appliation area:
Release date: 19-Feb-2003
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BAPI_DISPUTE_PROCESS 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 'BAPI_DISPUTE_PROCESS'"FSCM-DM: Process Dispute Case
EXPORTING
CASE_GUID = "FSCM-DM: GUID (Internal Key of Dispute Case)
PROC_SEQNR_NEW = "FSCM-DM: Sequential Number of Process
PROC_SEQNR_OLD = "FSCM-DM: Sequential Number of Process
* TESTRUN = "Switch to Simulation Session for Write BAPIs
* AMOUNTS_DELTA = "FSCM-DM: BAPI - Amounts

IMPORTING
RETURN = "Return Parameters

TABLES
* ATTRIBUTES = "FSCM-DM: Attribute Value
* NOTES = "FSCM-DM: Text Lines for Notes for Dispute Case
* FILECONTENT = "FSCM-DM: File Content for Attachment to Dispute
* OBJECTS = "FSCM-DM: Objects
* SPLIT_DISPUTE = "FSCM-DM: Dispute Cases to be Created for Split
* SPLIT_ATTRIBUTES = "FSCM-DM: Attributes of Dispute Cases to be Created for Split
* SPLIT_NOTES = "FSCM-DM: Notes for Dispute Cases to be Created for Split
* SPLIT_OBJECTS = "FSCM-DM: Objects of Dispute Cases to be Created for Split
* SPLIT_AMOUNTS = "FSCM-DM: Amounts of Dispute Cases to be Created for Split
.



IMPORTING Parameters details for BAPI_DISPUTE_PROCESS

CASE_GUID - FSCM-DM: GUID (Internal Key of Dispute Case)

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

PROC_SEQNR_NEW - FSCM-DM: Sequential Number of Process

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

PROC_SEQNR_OLD - FSCM-DM: Sequential Number of Process

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

TESTRUN - Switch to Simulation Session for Write BAPIs

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

AMOUNTS_DELTA - FSCM-DM: BAPI - Amounts

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

EXPORTING Parameters details for BAPI_DISPUTE_PROCESS

RETURN - Return Parameters

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

TABLES Parameters details for BAPI_DISPUTE_PROCESS

ATTRIBUTES - FSCM-DM: Attribute Value

Data type: BAPI_DISPUTE_ATTRIBUTE
Optional: Yes
Call by Reference: Yes

NOTES - FSCM-DM: Text Lines for Notes for Dispute Case

Data type: BAPI_DISPUTE_NOTE
Optional: Yes
Call by Reference: Yes

FILECONTENT - FSCM-DM: File Content for Attachment to Dispute

Data type: BAPI_DISPUTE_FILECONTENT
Optional: Yes
Call by Reference: Yes

OBJECTS - FSCM-DM: Objects

Data type: BAPI_DISPUTE_OBJECT
Optional: Yes
Call by Reference: Yes

SPLIT_DISPUTE - FSCM-DM: Dispute Cases to be Created for Split

Data type: BAPI_DISPUTE_SPLIT
Optional: Yes
Call by Reference: Yes

SPLIT_ATTRIBUTES - FSCM-DM: Attributes of Dispute Cases to be Created for Split

Data type: BAPI_DISPUTE_SPLIT_ATTRIBUTE
Optional: Yes
Call by Reference: Yes

SPLIT_NOTES - FSCM-DM: Notes for Dispute Cases to be Created for Split

Data type: BAPI_DISPUTE_SPLIT_NOTES
Optional: Yes
Call by Reference: Yes

SPLIT_OBJECTS - FSCM-DM: Objects of Dispute Cases to be Created for Split

Data type: BAPI_DISPUTE_SPLIT_OBJECT
Optional: Yes
Call by Reference: Yes

SPLIT_AMOUNTS - FSCM-DM: Amounts of Dispute Cases to be Created for Split

Data type: BAPI_DISPUTE_SPLIT_AMOUNTS
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for BAPI_DISPUTE_PROCESS 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_return  TYPE BAPIRET2, "   
lv_case_guid  TYPE BAPI_DISPUTE_SPLIT-CASE_GUID, "   
lt_attributes  TYPE STANDARD TABLE OF BAPI_DISPUTE_ATTRIBUTE, "   
lt_notes  TYPE STANDARD TABLE OF BAPI_DISPUTE_NOTE, "   
lv_proc_seqnr_new  TYPE BAPI_DISPUTE_WRITE_OFF-PROC_SEQNR, "   
lt_filecontent  TYPE STANDARD TABLE OF BAPI_DISPUTE_FILECONTENT, "   
lv_proc_seqnr_old  TYPE BAPI_DISPUTE_WRITE_OFF-PROC_SEQNR, "   
lt_objects  TYPE STANDARD TABLE OF BAPI_DISPUTE_OBJECT, "   
lv_testrun  TYPE BAPI_DISPUTE_FLAGS-TESTRUN, "   
lv_amounts_delta  TYPE BAPI_DISPUTE_AMOUNTS, "   
lt_split_dispute  TYPE STANDARD TABLE OF BAPI_DISPUTE_SPLIT, "   
lt_split_attributes  TYPE STANDARD TABLE OF BAPI_DISPUTE_SPLIT_ATTRIBUTE, "   
lt_split_notes  TYPE STANDARD TABLE OF BAPI_DISPUTE_SPLIT_NOTES, "   
lt_split_objects  TYPE STANDARD TABLE OF BAPI_DISPUTE_SPLIT_OBJECT, "   
lt_split_amounts  TYPE STANDARD TABLE OF BAPI_DISPUTE_SPLIT_AMOUNTS. "   

  CALL FUNCTION 'BAPI_DISPUTE_PROCESS'  "FSCM-DM: Process Dispute Case
    EXPORTING
         CASE_GUID = lv_case_guid
         PROC_SEQNR_NEW = lv_proc_seqnr_new
         PROC_SEQNR_OLD = lv_proc_seqnr_old
         TESTRUN = lv_testrun
         AMOUNTS_DELTA = lv_amounts_delta
    IMPORTING
         RETURN = lv_return
    TABLES
         ATTRIBUTES = lt_attributes
         NOTES = lt_notes
         FILECONTENT = lt_filecontent
         OBJECTS = lt_objects
         SPLIT_DISPUTE = lt_split_dispute
         SPLIT_ATTRIBUTES = lt_split_attributes
         SPLIT_NOTES = lt_split_notes
         SPLIT_OBJECTS = lt_split_objects
         SPLIT_AMOUNTS = lt_split_amounts
. " BAPI_DISPUTE_PROCESS




ABAP code using 7.40 inline data declarations to call FM BAPI_DISPUTE_PROCESS

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 CASE_GUID FROM BAPI_DISPUTE_SPLIT INTO @DATA(ld_case_guid).
 
 
 
"SELECT single PROC_SEQNR FROM BAPI_DISPUTE_WRITE_OFF INTO @DATA(ld_proc_seqnr_new).
 
 
"SELECT single PROC_SEQNR FROM BAPI_DISPUTE_WRITE_OFF INTO @DATA(ld_proc_seqnr_old).
 
 
"SELECT single TESTRUN FROM BAPI_DISPUTE_FLAGS INTO @DATA(ld_testrun).
 
 
 
 
 
 
 


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!