09-19-2018 2:33 PM
Hi Experts,
I have a problem with passing a value to a input field, as it is still initial ?
my coding look like below ,
TYPES: BEGIN OF ts_output.
INCLUDE STRUCTURE marc.
TYPES count TYPE i. "hier the field wich will have the count
TYPES END OF ts_output.
Data lv_count type I.
wa_marc TYPE ts_output,
it_marc TYPE STANDARD TABLE OF ts_output,
select * from marc into it_marc
DESCRIBE TABLE it_marc LINES lv_count.
clear wa_marc
wa_marc-count = lv_count
" wa_marc-count is the output field which i have created with type INT4
Best Regrads
Jenie
09-20-2018 2:49 PM
Hi ,
Do you mean that? : (LV_COUNT displays how many records)
select * from MARC into table IT_MARC .
describe table IT_MARC lines LV_COUNT.
clear WA_MARC.
WA_MARC-COUNT = LV_COUNT.
09-20-2018 4:02 PM
Since the code she's posted isn't syntactically correct, she could have meant anything.
09-24-2018 12:48 PM
09-25-2018 9:07 AM
Lucky guess then Omer!
Of course, you can do it in fewer lines.
select * from MARC into table IT_MARC.
clear WA_MARC.
WA_MARC-COUNT = lines( IT_MARC ).
09-26-2018 11:05 AM
Hi Matthew,
how can put your answer as accepted as it is the correct one and I can just put 'like'....
Best Regards
09-20-2018 4:01 PM
Why haven't you posted your actual code. Although I'll give you a little credit for actually using the "code" button...
Since the code you've published isn't syntactically correct, how can anyone help you? Any advice we could give will be guessing what your actual code is.
09-21-2018 10:38 AM
Hi Jeniffer,
I have rearranged your code below, Kindly try this.
types: begin of ts_output,
ls_marc type marc,
count type i, "hier the field wich will have the count
end of ts_output.
data lv_count type i.
data wa_marc type ts_output.
data it_marc type standard table of ts_output.
select * from marc up to 10 rows into table it_marc.
describe table it_marc lines lv_count.
clear wa_marc.
wa_marc-count = lv_count.
09-24-2018 12:51 PM
Hi Matthew,
thank you for your comment , I have tried to make the question easiest possible to figure out the concept..
Best Regards
Jenie
09-25-2018 9:10 AM
But one absolutely necessary thing you must do is ensure that any code you paste is syntactically correct. Unfortunately, it's still not clear what your issue is.
09-26-2018 11:01 AM
many thanks matthew,
this is working
WA_MARC-COUNT = lines( IT_MARC ).
Best Regards
Jenie