2019 Mar 13 4:43 AM
How do I add a non table field like char or string variables in internal table using inline declaration?
You should at least tell us what you have learnt by yourself, or any clue, for that homework/interview question?
2019 Mar 13 7:13 AM
You should at least tell us what you have learnt by yourself, or any clue, for that homework/interview question?
2019 Mar 13 10:33 AM
Hi,
Check below
TYPES: BEGIN OF ltyp_sample,
id TYPE i,
name TYPE c LENGTH 50,
address TYPE string,
END OF ltyp_sample.
DATA :
lt_sample TYPE TABLE OF ltyp_sample,
ls_sample TYPE ltyp_sample.
lt_sample = VALUE #(
( id = 1
name = 'Sample'
address = 'sample Address'
)
( id = 2
name = 'Sample2'
address = 'sample Address2'
) ).
Regards
Pavan
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |