SAP Function Modules

ISPAM_DOC_FLOW_PREDECESSORS SAP Function module - IS-M/AM: Document Flow Read Predecessor







ISPAM_DOC_FLOW_PREDECESSORS 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 ISPAM_DOC_FLOW_PREDECESSORS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: JHBF
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ISPAM_DOC_FLOW_PREDECESSORS - ISPAM DOC FLOW PREDECESSORS





CALL FUNCTION 'ISPAM_DOC_FLOW_PREDECESSORS' "IS-M/AM: Document Flow Read Predecessor
  EXPORTING
    in_vbeln_n =                " jhtbf-vbeln_n
*   in_posnr_n =                " jhtbf-posnr_n
*   in_einnr_n =                " jhtbf-einnr_n
    in_objtyp_n =               " jhtbf-objtyp_n
*   in_one_plane =              "
  TABLES
    search_jhtbf =              " jhtbf
    l_buf_jhtbf =               " jhtbf
  EXCEPTIONS
    NO_DATA_FOUND = 1           "
    .  "  ISPAM_DOC_FLOW_PREDECESSORS

ABAP code example for Function Module ISPAM_DOC_FLOW_PREDECESSORS





The ABAP code below is a full code listing to execute function module ISPAM_DOC_FLOW_PREDECESSORS 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:
it_search_jhtbf  TYPE STANDARD TABLE OF JHTBF,"TABLES PARAM
wa_search_jhtbf  LIKE LINE OF it_search_jhtbf ,
it_l_buf_jhtbf  TYPE STANDARD TABLE OF JHTBF,"TABLES PARAM
wa_l_buf_jhtbf  LIKE LINE OF it_l_buf_jhtbf .


SELECT single VBELN_N
FROM JHTBF
INTO @DATA(ld_in_vbeln_n).


SELECT single POSNR_N
FROM JHTBF
INTO @DATA(ld_in_posnr_n).


SELECT single EINNR_N
FROM JHTBF
INTO @DATA(ld_in_einnr_n).


SELECT single OBJTYP_N
FROM JHTBF
INTO @DATA(ld_in_objtyp_n).

DATA(ld_in_one_plane) = 'some text here'.

"populate fields of struture and append to itab
append wa_search_jhtbf to it_search_jhtbf.

"populate fields of struture and append to itab
append wa_l_buf_jhtbf to it_l_buf_jhtbf. . CALL FUNCTION 'ISPAM_DOC_FLOW_PREDECESSORS' EXPORTING in_vbeln_n = ld_in_vbeln_n * in_posnr_n = ld_in_posnr_n * in_einnr_n = ld_in_einnr_n in_objtyp_n = ld_in_objtyp_n * in_one_plane = ld_in_one_plane TABLES search_jhtbf = it_search_jhtbf l_buf_jhtbf = it_l_buf_jhtbf EXCEPTIONS NO_DATA_FOUND = 1 . " ISPAM_DOC_FLOW_PREDECESSORS
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_in_vbeln_n  TYPE JHTBF-VBELN_N ,
it_search_jhtbf  TYPE STANDARD TABLE OF JHTBF ,
wa_search_jhtbf  LIKE LINE OF it_search_jhtbf,
ld_in_posnr_n  TYPE JHTBF-POSNR_N ,
it_l_buf_jhtbf  TYPE STANDARD TABLE OF JHTBF ,
wa_l_buf_jhtbf  LIKE LINE OF it_l_buf_jhtbf,
ld_in_einnr_n  TYPE JHTBF-EINNR_N ,
ld_in_objtyp_n  TYPE JHTBF-OBJTYP_N ,
ld_in_one_plane  TYPE STRING .


SELECT single VBELN_N
FROM JHTBF
INTO ld_in_vbeln_n.


"populate fields of struture and append to itab
append wa_search_jhtbf to it_search_jhtbf.

SELECT single POSNR_N
FROM JHTBF
INTO ld_in_posnr_n.


"populate fields of struture and append to itab
append wa_l_buf_jhtbf to it_l_buf_jhtbf.

SELECT single EINNR_N
FROM JHTBF
INTO ld_in_einnr_n.


SELECT single OBJTYP_N
FROM JHTBF
INTO ld_in_objtyp_n.

ld_in_one_plane = 'some text here'.

Contribute (Add Comments)

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 ISPAM_DOC_FLOW_PREDECESSORS or its description.