SAP SAMPLE_PROCESS_00001040 Function Module for Beschreibung der Prozess-Schnittstelle 00001040









SAMPLE_PROCESS_00001040 is a standard sample process 00001040 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Beschreibung der Prozess-Schnittstelle 00001040 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 sample process 00001040 FM, simply by entering the name SAMPLE_PROCESS_00001040 into the relevant SAP transaction such as SE37 or SE38.

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



Function SAMPLE_PROCESS_00001040 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 'SAMPLE_PROCESS_00001040'"Beschreibung der Prozess-Schnittstelle 00001040
EXPORTING
I_KNA1 = "Kundensegment A
I_KNB1 = "Kundensegment B
I_LFA1 = "Lieferantensegment A
I_LFB1 = "Lieferantensegment B
I_MHNK = "Mahnkopf
I_F150D2 = "Erweiterte Druckstruktur
I_T047E = "Formularcustomizing
I_UPDATE = "

CHANGING
C_FINAA = "Ausgabestruktur
C_ITCPO = "
* C_ARCHIVE_INDEX = ' ' "
* C_ARCHIVE_PARAMS = ' ' "

TABLES
T_FIMSG = "Protokolltabelle
.



IMPORTING Parameters details for SAMPLE_PROCESS_00001040

I_KNA1 - Kundensegment A

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

I_KNB1 - Kundensegment B

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

I_LFA1 - Lieferantensegment A

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

I_LFB1 - Lieferantensegment B

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

I_MHNK - Mahnkopf

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

I_F150D2 - Erweiterte Druckstruktur

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

I_T047E - Formularcustomizing

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

I_UPDATE -

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

CHANGING Parameters details for SAMPLE_PROCESS_00001040

C_FINAA - Ausgabestruktur

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

C_ITCPO -

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

C_ARCHIVE_INDEX -

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

C_ARCHIVE_PARAMS -

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

TABLES Parameters details for SAMPLE_PROCESS_00001040

T_FIMSG - Protokolltabelle

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

Copy and paste ABAP code example for SAMPLE_PROCESS_00001040 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_kna1  TYPE KNA1, "   
lv_c_finaa  TYPE FINAA, "   
lt_t_fimsg  TYPE STANDARD TABLE OF FIMSG, "   
lv_i_knb1  TYPE KNB1, "   
lv_c_itcpo  TYPE ITCPO, "   
lv_i_lfa1  TYPE LFA1, "   
lv_c_archive_index  TYPE TOA_DARA, "   SPACE
lv_i_lfb1  TYPE LFB1, "   
lv_c_archive_params  TYPE ARC_PARAMS, "   SPACE
lv_i_mhnk  TYPE MHNK, "   
lv_i_f150d2  TYPE F150D2, "   
lv_i_t047e  TYPE T047E, "   
lv_i_update  TYPE BOOLE-BOOLE. "   

  CALL FUNCTION 'SAMPLE_PROCESS_00001040'  "Beschreibung der Prozess-Schnittstelle 00001040
    EXPORTING
         I_KNA1 = lv_i_kna1
         I_KNB1 = lv_i_knb1
         I_LFA1 = lv_i_lfa1
         I_LFB1 = lv_i_lfb1
         I_MHNK = lv_i_mhnk
         I_F150D2 = lv_i_f150d2
         I_T047E = lv_i_t047e
         I_UPDATE = lv_i_update
    CHANGING
         C_FINAA = lv_c_finaa
         C_ITCPO = lv_c_itcpo
         C_ARCHIVE_INDEX = lv_c_archive_index
         C_ARCHIVE_PARAMS = lv_c_archive_params
    TABLES
         T_FIMSG = lt_t_fimsg
. " SAMPLE_PROCESS_00001040




ABAP code using 7.40 inline data declarations to call FM SAMPLE_PROCESS_00001040

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.

 
 
 
 
 
 
DATA(ld_c_archive_index) = ' '.
 
 
DATA(ld_c_archive_params) = ' '.
 
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_update).
 


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!