For the assignment, gv_target = gv_source.
which of the following data declarations will always work without truncation or rounding? Note: There
are 2 correct answers to this question.
The data declarations that will always work without truncation or rounding for the assignment gv_target = gv_source are B and C. This is because the target data type string is a variable-length character type that can hold any character string, including those of data types c (fixed-length character) and d (date).The assignment of a character or date value to a string variable will not cause any loss of information or precision, as the string variable will adjust its length to match the source value12.
You cannot do any of the following:
A . DATA gv_source TYPE string, to DATA gv_target TYPE c.: This data declaration may cause truncation for the assignment gv_target = gv_source. This is because the target data type c is a fixed-length character type that has a predefined length.If the source value of type string is longer than the target length of type c, the source value will be truncated on the right to fit the target length12.
D . DATA gv_source TYPE p LENGTH 8 DECIMALS 3. to DATA gv_target TYPE p LENGTH 16 DECIMALS 2.: This data declaration may cause rounding for the assignment gv_target = gv_source. This is because the target data type p is a packed decimal type that has a predefined length and number of decimal places.If the source value of type p has more decimal places than the target type p, the source value will be rounded to the target number of decimal places12.
Limited Time Offer
25%
Off
Alise
2 months agoFrancene
2 months agoSabra
1 months agoDenny
1 months agoEulah
1 months agoElise
2 months agoVesta
2 months agoRikki
2 months agoRikki
2 months agoRikki
2 months agoMelina
3 months agoAlise
3 months agoYolando
3 months agoShawna
3 months agoStephaine
3 months agoAlica
2 months agoLisha
2 months agoTheron
2 months agoPansy
2 months ago