SAP SAMPLE_PROCESS_00420012 Function Module for NOTRANSL: Druckaufbereitung Zahlungsbedingungen zum Lieferanten bzw. Kunde









SAMPLE_PROCESS_00420012 is a standard sample process 00420012 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: Druckaufbereitung Zahlungsbedingungen zum Lieferanten bzw. Kunde 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 00420012 FM, simply by entering the name SAMPLE_PROCESS_00420012 into the relevant SAP transaction such as SE37 or SE38.

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



Function SAMPLE_PROCESS_00420012 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_00420012'"NOTRANSL: Druckaufbereitung Zahlungsbedingungen zum Lieferanten bzw. Kunde
EXPORTING
I_T052 = "Terms of Payment
I_ZTERM = "Terms of Payment Key
I_VALDT = "Value Date
I_LANGUAGE = "Language Key
I_COUNTRY = "Country
I_WAERL = "Currency
I_DATA_TO_LIEF = "

TABLES
TI_RATE_INFO = "
TO_PAYMENT_TEXT = "
.



IMPORTING Parameters details for SAMPLE_PROCESS_00420012

I_T052 - Terms of Payment

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

I_ZTERM - Terms of Payment Key

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

I_VALDT - Value Date

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

I_LANGUAGE - Language Key

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

I_COUNTRY - Country

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

I_WAERL - Currency

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

I_DATA_TO_LIEF -

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

TABLES Parameters details for SAMPLE_PROCESS_00420012

TI_RATE_INFO -

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

TO_PAYMENT_TEXT -

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

Copy and paste ABAP code example for SAMPLE_PROCESS_00420012 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_t052  TYPE T052, "   
lt_ti_rate_info  TYPE STANDARD TABLE OF RATE_INFO, "   
lv_i_zterm  TYPE KOMLFK-ZTERM, "   
lt_to_payment_text  TYPE STANDARD TABLE OF TTEXT80, "   
lv_i_valdt  TYPE KOMLFK-VALDT, "   
lv_i_language  TYPE WBRK_D-SPRAS, "   
lv_i_country  TYPE WBRK_D-TOCOUNTRY, "   
lv_i_waerl  TYPE KOMLFK-WAERL, "   
lv_i_data_to_lief  TYPE WBRK_D-DATA_TO_LIEF. "   

  CALL FUNCTION 'SAMPLE_PROCESS_00420012'  "NOTRANSL: Druckaufbereitung Zahlungsbedingungen zum Lieferanten bzw. Kunde
    EXPORTING
         I_T052 = lv_i_t052
         I_ZTERM = lv_i_zterm
         I_VALDT = lv_i_valdt
         I_LANGUAGE = lv_i_language
         I_COUNTRY = lv_i_country
         I_WAERL = lv_i_waerl
         I_DATA_TO_LIEF = lv_i_data_to_lief
    TABLES
         TI_RATE_INFO = lt_ti_rate_info
         TO_PAYMENT_TEXT = lt_to_payment_text
. " SAMPLE_PROCESS_00420012




ABAP code using 7.40 inline data declarations to call FM SAMPLE_PROCESS_00420012

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 ZTERM FROM KOMLFK INTO @DATA(ld_i_zterm).
 
 
"SELECT single VALDT FROM KOMLFK INTO @DATA(ld_i_valdt).
 
"SELECT single SPRAS FROM WBRK_D INTO @DATA(ld_i_language).
 
"SELECT single TOCOUNTRY FROM WBRK_D INTO @DATA(ld_i_country).
 
"SELECT single WAERL FROM KOMLFK INTO @DATA(ld_i_waerl).
 
"SELECT single DATA_TO_LIEF FROM WBRK_D INTO @DATA(ld_i_data_to_lief).
 


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!