SAP NEXT_DYNPRO_SEARCH Function Module for









NEXT_DYNPRO_SEARCH is a standard next dynpro search 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 next dynpro search FM, simply by entering the name NEXT_DYNPRO_SEARCH into the relevant SAP transaction such as SE37 or SE38.

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



Function NEXT_DYNPRO_SEARCH 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 'NEXT_DYNPRO_SEARCH'"
EXPORTING
I_BSCHL = "Posting key
I_WINFK = "Window function
* I_KTOSL = ' ' "Transaction Key
* I_BSTAT = ' ' "Document status for SAPMF05L (BKPF
I_BUKRS = "Company code
* I_MWART = ' ' "Tax type for SAPMF05L (BSEG)
* I_MWSKZB = ' ' "is no longer used
* I_MWSKZS = ' ' "Tax category in the account master
I_TCODE = "Transaction code
I_UMSKZ = "Special G/L Indicator
* I_BUZID = ' ' "Identification of the line item

IMPORTING
E_DYNNRA = "Screen number
E_MPOOL = "Module pool
E_WINNRZ = "Window number

EXCEPTIONS
BSCHL_NF = 1 BUKRS_NF = 2 DYNNR_NF = 3 NO_BSCHL = 4 NO_BUKRS = 5 NO_TCODE = 6 TCODD_NF = 7 TCODM_NF = 8 WINNR_NF = 9
.



IMPORTING Parameters details for NEXT_DYNPRO_SEARCH

I_BSCHL - Posting key

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

I_WINFK - Window function

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

I_KTOSL - Transaction Key

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

I_BSTAT - Document status for SAPMF05L (BKPF

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

I_BUKRS - Company code

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

I_MWART - Tax type for SAPMF05L (BSEG)

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

I_MWSKZB - is no longer used

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

I_MWSKZS - Tax category in the account master

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

I_TCODE - Transaction code

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

I_UMSKZ - Special G/L Indicator

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

I_BUZID - Identification of the line item

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

EXPORTING Parameters details for NEXT_DYNPRO_SEARCH

E_DYNNRA - Screen number

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

E_MPOOL - Module pool

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

E_WINNRZ - Window number

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

EXCEPTIONS details

BSCHL_NF - Company code not in T001

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

BUKRS_NF - Company code not in T001

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

DYNNR_NF - Screen number not found due to key

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

NO_BSCHL - No posting key transferred

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

NO_BUKRS - No company code transferred

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

NO_TCODE - No transaction code transferred

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

TCODD_NF - Transaction code not in table T020

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

TCODM_NF - Transaction code not in table TSTC

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

WINNR_NF - Window number not found due to key

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

Copy and paste ABAP code example for NEXT_DYNPRO_SEARCH 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_bschl  TYPE TBSL-BSCHL, "   
lv_bschl_nf  TYPE TBSL, "   
lv_e_dynnra  TYPE TSTC-DYPNO, "   
lv_i_winfk  TYPE T019W-WINFK, "   
lv_i_ktosl  TYPE BSEG-KTOSL, "   SPACE
lv_e_mpool  TYPE T019W-MPOOL, "   
lv_i_bstat  TYPE BKPF-BSTAT, "   SPACE
lv_bukrs_nf  TYPE BKPF, "   
lv_i_bukrs  TYPE T001-BUKRS, "   
lv_dynnr_nf  TYPE T001, "   
lv_e_winnrz  TYPE T019W-WINNR, "   
lv_i_mwart  TYPE BSEG-MWART, "   SPACE
lv_no_bschl  TYPE BSEG, "   
lv_i_mwskzb  TYPE BSEG-MWSKZ, "   SPACE
lv_no_bukrs  TYPE BSEG, "   
lv_i_mwskzs  TYPE SKB1-MWSKZ, "   SPACE
lv_no_tcode  TYPE SKB1, "   
lv_i_tcode  TYPE TSTC-TCODE, "   
lv_tcodd_nf  TYPE TSTC, "   
lv_i_umskz  TYPE T019-UMSKZ, "   
lv_tcodm_nf  TYPE T019, "   
lv_i_buzid  TYPE BSEG-BUZID, "   SPACE
lv_winnr_nf  TYPE BSEG. "   

  CALL FUNCTION 'NEXT_DYNPRO_SEARCH'  "
    EXPORTING
         I_BSCHL = lv_i_bschl
         I_WINFK = lv_i_winfk
         I_KTOSL = lv_i_ktosl
         I_BSTAT = lv_i_bstat
         I_BUKRS = lv_i_bukrs
         I_MWART = lv_i_mwart
         I_MWSKZB = lv_i_mwskzb
         I_MWSKZS = lv_i_mwskzs
         I_TCODE = lv_i_tcode
         I_UMSKZ = lv_i_umskz
         I_BUZID = lv_i_buzid
    IMPORTING
         E_DYNNRA = lv_e_dynnra
         E_MPOOL = lv_e_mpool
         E_WINNRZ = lv_e_winnrz
    EXCEPTIONS
        BSCHL_NF = 1
        BUKRS_NF = 2
        DYNNR_NF = 3
        NO_BSCHL = 4
        NO_BUKRS = 5
        NO_TCODE = 6
        TCODD_NF = 7
        TCODM_NF = 8
        WINNR_NF = 9
. " NEXT_DYNPRO_SEARCH




ABAP code using 7.40 inline data declarations to call FM NEXT_DYNPRO_SEARCH

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 BSCHL FROM TBSL INTO @DATA(ld_i_bschl).
 
 
"SELECT single DYPNO FROM TSTC INTO @DATA(ld_e_dynnra).
 
"SELECT single WINFK FROM T019W INTO @DATA(ld_i_winfk).
 
"SELECT single KTOSL FROM BSEG INTO @DATA(ld_i_ktosl).
DATA(ld_i_ktosl) = ' '.
 
"SELECT single MPOOL FROM T019W INTO @DATA(ld_e_mpool).
 
"SELECT single BSTAT FROM BKPF INTO @DATA(ld_i_bstat).
DATA(ld_i_bstat) = ' '.
 
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs).
 
 
"SELECT single WINNR FROM T019W INTO @DATA(ld_e_winnrz).
 
"SELECT single MWART FROM BSEG INTO @DATA(ld_i_mwart).
DATA(ld_i_mwart) = ' '.
 
 
"SELECT single MWSKZ FROM BSEG INTO @DATA(ld_i_mwskzb).
DATA(ld_i_mwskzb) = ' '.
 
 
"SELECT single MWSKZ FROM SKB1 INTO @DATA(ld_i_mwskzs).
DATA(ld_i_mwskzs) = ' '.
 
 
"SELECT single TCODE FROM TSTC INTO @DATA(ld_i_tcode).
 
 
"SELECT single UMSKZ FROM T019 INTO @DATA(ld_i_umskz).
 
 
"SELECT single BUZID FROM BSEG INTO @DATA(ld_i_buzid).
DATA(ld_i_buzid) = ' '.
 
 


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!