ABAP currency field to number
Publish: 2021-05-12 00:23:06
1.
1. First of all, open our computer, enter into the computer desktop, find my world in the computer desktop, enter into my world game
2. Leadership is the power to call on employees to carry out certain behaviors.
3. Bit rate: the number of bits transmitted per second, represented by B / S (B represents bit)
for example, if the data transmission rate is 120 characters / second and each character is 10 bits, the bit rate transmitted is 10 × 120 = 1200 bits / S = 1200 baud
give me the best answer
for example, if the data transmission rate is 120 characters / second and each character is 10 bits, the bit rate transmitted is 10 × 120 = 1200 bits / S = 1200 baud
give me the best answer
4. The so-called 1 Megabyte of 1 Megabyte download is 1MB. Note that the download speed of lowercase B is 1024KB = 128KB (here B is uppercase)
1byte = 8bit
so
1byte = 8bit
so
5. This is the summary of the knowledge point, hope to help you, a little more data< br />money_ format
(PHP 4 >= 4.3.0, PHP 5, PHP 7)
money_ Format - format a number into a currency string
description
money_ format ( string $format , float $number ) : string
money_ Format() returns the formatted version of number. This function wraps the strfmon () in the C function library. The difference is that this implementation can only convert one number at a time
parameter
format
the format string consists of the following parts:
single% character
optional flags
optional field width
optional, left precision
optional, right precision
required, single conversion character
flags
optional multiple tags, which are:
= f
character: =, It is followed by a character (single byte) f for number padding. The default padding character is space
^
disable grouping characters (such as comma in amount). Defined in the local locale
+ or (
format of positive and negative numbers). With +, the equivalent symbols of + and - in the locale will be used. If you use (), negative numbers are surrounded by parentheses. If it is not set, the default value is +< br />!
do not output currency symbols (such as & # 165;)
-
with this symbol, the fields will be left aligned (filled to the right). By default, the fields will be right aligned (filled to the left).
(PHP 4 >= 4.3.0, PHP 5, PHP 7)
money_ Format - format a number into a currency string
description
money_ format ( string $format , float $number ) : string
money_ Format() returns the formatted version of number. This function wraps the strfmon () in the C function library. The difference is that this implementation can only convert one number at a time
parameter
format
the format string consists of the following parts:
single% character
optional flags
optional field width
optional, left precision
optional, right precision
required, single conversion character
flags
optional multiple tags, which are:
= f
character: =, It is followed by a character (single byte) f for number padding. The default padding character is space
^
disable grouping characters (such as comma in amount). Defined in the local locale
+ or (
format of positive and negative numbers). With +, the equivalent symbols of + and - in the locale will be used. If you use (), negative numbers are surrounded by parentheses. If it is not set, the default value is +< br />!
do not output currency symbols (such as & # 165;)
-
with this symbol, the fields will be left aligned (filled to the right). By default, the fields will be right aligned (filled to the left).
6. First, change it into character type, then intercept the substring, and then change it back
7. 1.先定义画面元素来接这个输入的字串,假设定义为c1
SELECTION-SCREEN BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-002.
PARAMETERS : c1(100) type c. SELECTION-SCREEN END OF BLOCK BLK2. 2.再定义一个table: itab
types: begin of itab_type,
num(3) type n, end of itab_type.data: itab type STANDARD TABLE OF itab_type with HEADER LINE. 3.用split来切割c1
SPLIT c1 AT ',' INTO table itab.
然后在对itab里的值进行排序
sort itab DESCENDING BY num ASCENDING .
4.在用loop循环输出itab的值
LOOP AT itab.
WRITE: (3) itab-num,','. ENDLOOP.
SELECTION-SCREEN BEGIN OF BLOCK BLK2 WITH FRAME TITLE TEXT-002.
PARAMETERS : c1(100) type c. SELECTION-SCREEN END OF BLOCK BLK2. 2.再定义一个table: itab
types: begin of itab_type,
num(3) type n, end of itab_type.data: itab type STANDARD TABLE OF itab_type with HEADER LINE. 3.用split来切割c1
SPLIT c1 AT ',' INTO table itab.
然后在对itab里的值进行排序
sort itab DESCENDING BY num ASCENDING .
4.在用loop循环输出itab的值
LOOP AT itab.
WRITE: (3) itab-num,','. ENDLOOP.
8. The format function provided in crystal report can convert string field to number or amount
9. 1. Define a new internal table Git_ Result2, the field type is char
2_ Copy the data in result to Git_ Result2
3. Call FM and it's OK!
2_ Copy the data in result to Git_ Result2
3. Call FM and it's OK!
10.
First, check whether the data in the amount column conform to the decimal specification. Only the string of numbers can be converted to digital format, such as 000012 to 12 and. 55 to 0.55. If a character such as an English symbol is converted, an invalid number type error will be reported
Hot content