SAP NATRAB_FIND_ART_TAB Function Module for NOTRANSL: Naturalrabatt: Aufruf der Pflegedialoge









NATRAB_FIND_ART_TAB is a standard natrab find art tab SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Naturalrabatt: Aufruf der Pflegedialoge 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 natrab find art tab FM, simply by entering the name NATRAB_FIND_ART_TAB into the relevant SAP transaction such as SE37 or SE38.

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



Function NATRAB_FIND_ART_TAB 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 'NATRAB_FIND_ART_TAB'"NOTRANSL: Naturalrabatt: Aufruf der Pflegedialoge
EXPORTING
APPLICATION = "
ACTION = "
KOTABLE = "
USAGE = "

IMPORTING
FOUNDSUBRC = "
FOUNDTABNR = "
FOUNDKSCHL = "
.



IMPORTING Parameters details for NATRAB_FIND_ART_TAB

APPLICATION -

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

ACTION -

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

KOTABLE -

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

USAGE -

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

EXPORTING Parameters details for NATRAB_FIND_ART_TAB

FOUNDSUBRC -

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

FOUNDTABNR -

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

FOUNDKSCHL -

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

Copy and paste ABAP code example for NATRAB_FIND_ART_TAB 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_foundsubrc  TYPE SY-SUBRC, "   
lv_application  TYPE T683-KAPPL, "   
lv_action  TYPE T180-AKTYP, "   
lv_foundtabnr  TYPE T681-KOTABNR, "   
lv_kotable  TYPE T681-KOTAB, "   
lv_foundkschl  TYPE T685-KSCHL, "   
lv_usage  TYPE T180-KVEWE. "   

  CALL FUNCTION 'NATRAB_FIND_ART_TAB'  "NOTRANSL: Naturalrabatt: Aufruf der Pflegedialoge
    EXPORTING
         APPLICATION = lv_application
         ACTION = lv_action
         KOTABLE = lv_kotable
         USAGE = lv_usage
    IMPORTING
         FOUNDSUBRC = lv_foundsubrc
         FOUNDTABNR = lv_foundtabnr
         FOUNDKSCHL = lv_foundkschl
. " NATRAB_FIND_ART_TAB




ABAP code using 7.40 inline data declarations to call FM NATRAB_FIND_ART_TAB

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 SUBRC FROM SY INTO @DATA(ld_foundsubrc).
 
"SELECT single KAPPL FROM T683 INTO @DATA(ld_application).
 
"SELECT single AKTYP FROM T180 INTO @DATA(ld_action).
 
"SELECT single KOTABNR FROM T681 INTO @DATA(ld_foundtabnr).
 
"SELECT single KOTAB FROM T681 INTO @DATA(ld_kotable).
 
"SELECT single KSCHL FROM T685 INTO @DATA(ld_foundkschl).
 
"SELECT single KVEWE FROM T180 INTO @DATA(ld_usage).
 


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!