SAP BUS_NUMBERFIELD_PAI_NEW Function Module for









BUS_NUMBERFIELD_PAI_NEW is a standard bus numberfield pai new 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 bus numberfield pai new FM, simply by entering the name BUS_NUMBERFIELD_PAI_NEW into the relevant SAP transaction such as SE37 or SE38.

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



Function BUS_NUMBERFIELD_PAI_NEW 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 'BUS_NUMBERFIELD_PAI_NEW'"
EXPORTING
I_TABNAME = "Table Name
I_FIELDNAME = "Field Name
* I_CURRENCY = "Currency

IMPORTING
E_VALUE_DB = "

CHANGING
C_VALUE_DYNP = "

EXCEPTIONS
INPUT_NOT_NUMERICAL = 1 INVALID_DATE = 10 INVALID_TIME_FORMAT = 11 INVALID_TIME = 12 INVALID_HEX_DIGIT = 13 UNEXPECTED_ERROR = 14 INVALID_FIELDNAME = 15 FIELD_AND_DESCR_INCOMPATIBLE = 16 INPUT_TOO_LONG = 17 NO_DECIMALS = 18 INVALID_FLOAT = 19 TOO_MANY_DECIMALS = 2 CONVERSION_EXIT_ERROR = 20 MORE_THAN_ONE_SIGN = 3 ILL_THOUSAND_SEPARATOR_DIST = 4 TOO_MANY_DIGITS = 5 SIGN_FOR_UNSIGNED = 6 TOO_LARGE = 7 TOO_SMALL = 8 INVALID_DATE_FORMAT = 9
.



IMPORTING Parameters details for BUS_NUMBERFIELD_PAI_NEW

I_TABNAME - Table Name

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

I_FIELDNAME - Field Name

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

I_CURRENCY - Currency

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

EXPORTING Parameters details for BUS_NUMBERFIELD_PAI_NEW

E_VALUE_DB -

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

CHANGING Parameters details for BUS_NUMBERFIELD_PAI_NEW

C_VALUE_DYNP -

Data type:
Optional: No
Call by Reference: Yes

EXCEPTIONS details

INPUT_NOT_NUMERICAL - Non-numeric input

Data type:
Optional: No
Call by Reference: Yes

INVALID_DATE - Invalid date

Data type:
Optional: No
Call by Reference: Yes

INVALID_TIME_FORMAT - Invalid time format

Data type:
Optional: No
Call by Reference: Yes

INVALID_TIME - Invalid time

Data type:
Optional: No
Call by Reference: Yes

INVALID_HEX_DIGIT - Incorrect hex character

Data type:
Optional: No
Call by Reference: Yes

UNEXPECTED_ERROR - Unintercepted error

Data type:
Optional: No
Call by Reference: Yes

INVALID_FIELDNAME - Field not in Dictionary

Data type:
Optional: No
Call by Reference: Yes

FIELD_AND_DESCR_INCOMPATIBLE - Output field does not match Dictionary description

Data type:
Optional: No
Call by Reference: Yes

INPUT_TOO_LONG - Input longer than output length of output field

Data type:
Optional: No
Call by Reference: Yes

NO_DECIMALS - Decimal separator without subsequent decimal places

Data type:
Optional: No
Call by Reference: Yes

INVALID_FLOAT - Invalid floating point entry

Data type:
Optional: No
Call by Reference: Yes

TOO_MANY_DECIMALS - Too many places after the decimal point

Data type:
Optional: No
Call by Reference: Yes

CONVERSION_EXIT_ERROR - Error in conversion exit

Data type:
Optional: No
Call by Reference: Yes

MORE_THAN_ONE_SIGN - +/- sign input multiple times

Data type:
Optional: No
Call by Reference: Yes

ILL_THOUSAND_SEPARATOR_DIST - Separation between thousands not = 0 mod 3

Data type:
Optional: No
Call by Reference: Yes

TOO_MANY_DIGITS - Too many characters in whole number field

Data type:
Optional: No
Call by Reference: Yes

SIGN_FOR_UNSIGNED - No +/- signs allowed

Data type:
Optional: No
Call by Reference: Yes

TOO_LARGE - Value too large

Data type:
Optional: No
Call by Reference: Yes

TOO_SMALL - Value too small

Data type:
Optional: No
Call by Reference: Yes

INVALID_DATE_FORMAT - Invalid date format

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for BUS_NUMBERFIELD_PAI_NEW 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_tabname  TYPE DD03L-TABNAME, "   
lv_e_value_db  TYPE DD03L, "   
lv_c_value_dynp  TYPE DD03L, "   
lv_input_not_numerical  TYPE DD03L, "   
lv_invalid_date  TYPE DD03L, "   
lv_invalid_time_format  TYPE DD03L, "   
lv_invalid_time  TYPE DD03L, "   
lv_invalid_hex_digit  TYPE DD03L, "   
lv_unexpected_error  TYPE DD03L, "   
lv_invalid_fieldname  TYPE DD03L, "   
lv_field_and_descr_incompatible  TYPE DD03L, "   
lv_input_too_long  TYPE DD03L, "   
lv_no_decimals  TYPE DD03L, "   
lv_invalid_float  TYPE DD03L, "   
lv_i_fieldname  TYPE DD03L-FIELDNAME, "   
lv_too_many_decimals  TYPE DD03L, "   
lv_conversion_exit_error  TYPE DD03L, "   
lv_i_currency  TYPE TCURC-WAERS, "   
lv_more_than_one_sign  TYPE TCURC, "   
lv_ill_thousand_separator_dist  TYPE TCURC, "   
lv_too_many_digits  TYPE TCURC, "   
lv_sign_for_unsigned  TYPE TCURC, "   
lv_too_large  TYPE TCURC, "   
lv_too_small  TYPE TCURC, "   
lv_invalid_date_format  TYPE TCURC. "   

  CALL FUNCTION 'BUS_NUMBERFIELD_PAI_NEW'  "
    EXPORTING
         I_TABNAME = lv_i_tabname
         I_FIELDNAME = lv_i_fieldname
         I_CURRENCY = lv_i_currency
    IMPORTING
         E_VALUE_DB = lv_e_value_db
    CHANGING
         C_VALUE_DYNP = lv_c_value_dynp
    EXCEPTIONS
        INPUT_NOT_NUMERICAL = 1
        INVALID_DATE = 10
        INVALID_TIME_FORMAT = 11
        INVALID_TIME = 12
        INVALID_HEX_DIGIT = 13
        UNEXPECTED_ERROR = 14
        INVALID_FIELDNAME = 15
        FIELD_AND_DESCR_INCOMPATIBLE = 16
        INPUT_TOO_LONG = 17
        NO_DECIMALS = 18
        INVALID_FLOAT = 19
        TOO_MANY_DECIMALS = 2
        CONVERSION_EXIT_ERROR = 20
        MORE_THAN_ONE_SIGN = 3
        ILL_THOUSAND_SEPARATOR_DIST = 4
        TOO_MANY_DIGITS = 5
        SIGN_FOR_UNSIGNED = 6
        TOO_LARGE = 7
        TOO_SMALL = 8
        INVALID_DATE_FORMAT = 9
. " BUS_NUMBERFIELD_PAI_NEW




ABAP code using 7.40 inline data declarations to call FM BUS_NUMBERFIELD_PAI_NEW

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 TABNAME FROM DD03L INTO @DATA(ld_i_tabname).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single FIELDNAME FROM DD03L INTO @DATA(ld_i_fieldname).
 
 
 
"SELECT single WAERS FROM TCURC INTO @DATA(ld_i_currency).
 
 
 
 
 
 
 
 


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!