Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

SAP Exam C_ABAPD_2309 Topic 5 Question 21 Discussion

Actual exam question for SAP's C_ABAPD_2309 exam
Question #: 21
Topic #: 5
[All C_ABAPD_2309 Questions]

You have two internal tables itab1 and itab2.What is true for using the expression itab1 = corresponding #( itab2 )? Note: There are 2 correct answers to this question.

Show Suggested Answer Hide Answer
Suggested Answer: B, C

The expression itab1 = corresponding #( itab2 ) is a constructor expression with the component operator CORRESPONDING that assigns the contents of the internal table itab2 to the internal table itab1. The following statements are true for using this expression:

B: itab1 and itab2 must have at least one field name in common. This is because the component operator CORRESPONDING assigns the identically named columns of itab2 to the identically named columns of itab1 by default, according to the rules of MOVE-CORRESPONDING for internal tables.If itab1 and itab2 do not have any field name in common, the expression will not assign any value to itab1 and it will remain initial or unchanged1

C: Fields with the same name and the same type will be copied from itab2 to itab1. This is because the component operator CORRESPONDING assigns the identically named columns of itab2 to the identically named columns of itab1 by default, according to the rules of MOVE-CORRESPONDING for internal tables.If the columns have the same name but different types, the assignment will try to perform a conversion between the types, which may result in a loss of precision, a truncation, or a runtime error, depending on the types involved1

The following statements are false for using this expression:

A: Fields with the same name but with different types may be copied from itab2 to itab1. This is not true, as explained in statement C.The assignment will try to perform a conversion between the types, which may result in a loss of precision, a truncation, or a runtime error, depending on the types involved1

D: itab1 and itab2 must have the same data type. This is not true, as the component operator CORRESPONDING can assign the contents of an internal table of one type to another internal table of a different type, as long as they have at least one field name in common. The target type of the expression is determined by the left-hand side of the assignment, which is itab1 in this case.The expression will create an internal table of the same type as itab1 and assign it to itab11


Contribute your Thoughts:

Wilford
4 months ago
I'm feeling confident about this one. The key is that the field names need to match, so B and C are the way to go. No need to overthink it.
upvoted 0 times
Marjory
3 months ago
User 2
upvoted 0 times
...
Rolland
3 months ago
User 1
upvoted 0 times
...
...
Marcos
4 months ago
Ha, D is just silly. Of course the tables don't need to have the same data type. I'm going with B and C, easy peasy.
upvoted 0 times
Bo
3 months ago
I always use corresponding #( itab2 ) for copying fields with the same name and type. B and C are the way to go.
upvoted 0 times
...
Stefan
3 months ago
Yeah, B and C make sense. It's all about having at least one common field name and same type.
upvoted 0 times
...
Rashad
4 months ago
I agree, D is definitely not true. B and C are the correct answers.
upvoted 0 times
...
...
Rolande
4 months ago
I think option B is also correct because without a common field name, the corresponding #( itab2 ) expression wouldn't work properly.
upvoted 0 times
...
Queen
4 months ago
But what about option B? It says itab1 and itab2 must have at least one field name in common.
upvoted 0 times
...
Catina
5 months ago
This is a tricky one, but I'm pretty sure B and C are the right answers. Gotta love those ABAP tables, am I right?
upvoted 0 times
...
Laura
5 months ago
Hmm, I'm not sure about A. Copying fields with different types seems like it could cause issues. I'm going with B and C.
upvoted 0 times
Oneida
4 months ago
So, we both agree on B and C. Let's go with those as the correct answers.
upvoted 0 times
...
Precious
4 months ago
I agree with you. I also think C is true. Fields with the same name and type will be copied.
upvoted 0 times
...
Delsie
4 months ago
I agree with you. C is also true, fields with the same name and type will be copied.
upvoted 0 times
...
Hyman
4 months ago
I think B is correct. The tables must have at least one field name in common.
upvoted 0 times
...
Vi
4 months ago
I think B is correct. The tables must have at least one field name in common.
upvoted 0 times
...
...
Rolande
5 months ago
I disagree, I believe option C is correct because it specifies that fields with the same name and type will be copied.
upvoted 0 times
...
Gwen
5 months ago
I think the correct answers are B and C. The fields in the two tables must have the same name, and the corresponding fields will be copied over if they have the same data type.
upvoted 0 times
Charolette
4 months ago
C) Fields with the same name and the same type will be copied from itab2 to itab1.
upvoted 0 times
...
Katlyn
4 months ago
B) itab1 and itab2 must have at least one field name in common.
upvoted 0 times
...
Troy
5 months ago
A) Fields with the same name but with different types may be copied from itab2 to itab1.
upvoted 0 times
...
...
Queen
5 months ago
I think option A is correct because it allows fields with the same name but different types to be copied.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77