SAP ISPAM_DOC_FLOW_SUCCESSORS Function Module for IS-M/AM: Document Flow Read Successor
ISPAM_DOC_FLOW_SUCCESSORS is a standard ispam doc flow successors SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/AM: Document Flow Read Successor 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 ispam doc flow successors FM, simply by entering the name ISPAM_DOC_FLOW_SUCCESSORS into the relevant SAP transaction such as SE37 or SE38.
Function Group: JHBF
Program Name: SAPLJHBF
Main Program: SAPLJHBF
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISPAM_DOC_FLOW_SUCCESSORS 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 'ISPAM_DOC_FLOW_SUCCESSORS'"IS-M/AM: Document Flow Read Successor.
EXPORTING
IN_VBELN_V = "
* IN_POSNR_V = "
* IN_EINNR_V = "
IN_OBJTYP_V = "
* IN_ARCHIVE = ' ' "Checkbox Field
TABLES
SEARCH_JHTBF = "
L_BUF_JHTBF = "
EXCEPTIONS
NO_DATA_FOUND = 1 WRONG_INPUT = 2
IMPORTING Parameters details for ISPAM_DOC_FLOW_SUCCESSORS
IN_VBELN_V -
Data type: JHTBF-VBELN_VOptional: No
Call by Reference: No ( called with pass by value option)
IN_POSNR_V -
Data type: JHTBF-POSNR_VOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_EINNR_V -
Data type: JHTBF-EINNR_VOptional: Yes
Call by Reference: No ( called with pass by value option)
IN_OBJTYP_V -
Data type: JHTBF-OBJTYP_VOptional: No
Call by Reference: No ( called with pass by value option)
IN_ARCHIVE - Checkbox Field
Data type: XFELDDefault: ' '
Optional: Yes
Call by Reference: Yes
TABLES Parameters details for ISPAM_DOC_FLOW_SUCCESSORS
SEARCH_JHTBF -
Data type: JHTBFOptional: No
Call by Reference: No ( called with pass by value option)
L_BUF_JHTBF -
Data type: JHTBFOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_DATA_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_INPUT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISPAM_DOC_FLOW_SUCCESSORS 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_in_vbeln_v | TYPE JHTBF-VBELN_V, " | |||
| lt_search_jhtbf | TYPE STANDARD TABLE OF JHTBF, " | |||
| lv_no_data_found | TYPE JHTBF, " | |||
| lv_in_posnr_v | TYPE JHTBF-POSNR_V, " | |||
| lt_l_buf_jhtbf | TYPE STANDARD TABLE OF JHTBF, " | |||
| lv_wrong_input | TYPE JHTBF, " | |||
| lv_in_einnr_v | TYPE JHTBF-EINNR_V, " | |||
| lv_in_objtyp_v | TYPE JHTBF-OBJTYP_V, " | |||
| lv_in_archive | TYPE XFELD. " ' ' |
|   CALL FUNCTION 'ISPAM_DOC_FLOW_SUCCESSORS' "IS-M/AM: Document Flow Read Successor |
| EXPORTING | ||
| IN_VBELN_V | = lv_in_vbeln_v | |
| IN_POSNR_V | = lv_in_posnr_v | |
| IN_EINNR_V | = lv_in_einnr_v | |
| IN_OBJTYP_V | = lv_in_objtyp_v | |
| IN_ARCHIVE | = lv_in_archive | |
| TABLES | ||
| SEARCH_JHTBF | = lt_search_jhtbf | |
| L_BUF_JHTBF | = lt_l_buf_jhtbf | |
| EXCEPTIONS | ||
| NO_DATA_FOUND = 1 | ||
| WRONG_INPUT = 2 | ||
| . " ISPAM_DOC_FLOW_SUCCESSORS | ||
ABAP code using 7.40 inline data declarations to call FM ISPAM_DOC_FLOW_SUCCESSORS
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 VBELN_V FROM JHTBF INTO @DATA(ld_in_vbeln_v). | ||||
| "SELECT single POSNR_V FROM JHTBF INTO @DATA(ld_in_posnr_v). | ||||
| "SELECT single EINNR_V FROM JHTBF INTO @DATA(ld_in_einnr_v). | ||||
| "SELECT single OBJTYP_V FROM JHTBF INTO @DATA(ld_in_objtyp_v). | ||||
| DATA(ld_in_archive) | = ' '. | |||
Search for further information about these or an SAP related objects