2021 Aug 25 6:42 AM
error-low.pngI want to pass the below highlighted value to some variable so that i use that ..
like : Lv_comp = lv_comp1-low
can you suggest some way of transfering this value
error-low.pngI want to pass the below highlighted value to some variable so that i use that ..
like : Lv_comp = lv_comp1-low
can you suggest some way of transfering this value
2021 Aug 25 6:48 AM
What do you want to transfert and where do you want to transfert ? and what is the problem with your syntax ?
2021 Aug 25 7:08 AM
i am getting this error while transferring the value as : Lv_comp = lv_comp1-low
2021 Aug 25 7:22 AM
"LV_COMP is a table without a header line"
if you do :
data my_table type table_type with header-line.
my_table-field = 'something'you must have an header line, that means, a structure with exactly the same name as the table. This is old ABAP code, could not be use in Abap Object.
Now, to use your LV_COMP, you need to know:
For modification, you could use simple
LOOP AT my_table into data(my_table_line).
IF something = something_else.
my_table_line-field = 'something_else_again'.
UPDATE my_table FROM my_table_line TRANSPORTING field.
ENDIF.
ENDLOOP.if you need to initiate a new entry (empty table).
my_table = values #( ( field = 'something' ) ).
The internal ( ) represente an entry, if you need several entries value #( ( entry one ) (entry two ) ).
and to add you could use statement APPEND
2021 Aug 25 7:30 AM
You should add a basic ABAP tutorial link to that answer, and you'd nailed it.
2021 Aug 25 7:32 AM
I am not sure to not have made error, I wrote it very fast.
So, yes, for any help; you have the transaction : ABAPDOCU (in SAP) and you could enter any statement you will find full help
2021 Aug 25 7:54 AM
aarghhh... You shouldn't talk about header lines unless the OP talks about it, currently I understand that maybe I can try to use a header line even if it's obsolete. Header lines can be used ONLY when there's no other choice, when using or maintaining old programs.
2021 Aug 25 8:28 AM
If you are maintaining old programs, the first thing you must do is to remove those nasty header lines, occurs and tables declarations.
2021 Aug 25 9:00 AM
2021 Aug 25 9:14 AM
I like the idea of having no taboo (in ABAP or whatever). There's just people who throw water on electricity fire ! Just kidding 😉
2021 Aug 25 7:49 AM
If you search the forum, you'll see that the question has been answered lots of times:
"is a table without a header line" site:sap.com
2021 Aug 25 9:14 AM
No taboos, but I'm not convinced that your mention of header lines won't confuse the OP further. Best keep things simple.
I tell you what, let's talk about field groups. 😉
2021 Aug 25 9:15 AM
2021 Aug 25 9:15 AM
2021 Aug 25 9:23 AM
Field groups are never far..., I refreshed my memory 2 days ago by looking at RSNAST00 😄
2021 Aug 25 9:47 AM
2021 Aug 25 10:36 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |