2009 Apr 23 6:35 AM
Hi everybody,
I am having an issue regarding the declaration of a variable in a standard include.
for std include LV05IFCI, a variable ct_statistics has been added but not declared.
Does anyone know how i can declare that variable.
the sample code is from the std include LV05IFCI
if ct_statistics is requested. "v_n_553503
call function 'RV_INDEX_ARRAY_DELETE'
tables
ct_statistics = ct_statistics.
else.
call function 'RV_INDEX_ARRAY_DELETE'.
endif. "^_n_553503
endif.
Any help will be highly appreciated. Thanks
2009 Apr 23 6:56 AM
what is the issue..?
ct_statistics is the function module table parameter, so no need to define that in top include.
just give the details about your issue..???
Hi, here is my standard LV05IFCI
form index_array_delete.
data: lf_counter1 like sy-tabix,
lf_counter2 like sy-tabix,
lf_counter3 like sy-tabix.
if tvind-maind eq charx.
describe table ad_vapma lines lf_counter1.
describe table ad_vlpma lines lf_counter2.
describe table ad_vrpma lines lf_counter3.
else.
describe table ad_vakpa lines lf_counter1.
describe table ad_vlkpa lines lf_counter2.
describe table ad_vrkpa lines lf_counter3.
endif.
if lf_counter1 > 1000 or
lf_counter2 > 1000 or
lf_counter3 > 1000.
if ct_statistics is requested. "v_n_553503
call function 'RV_INDEX_ARRAY_DELETE'
tables
ct_statistics = ct_statistics.
else.
call function 'RV_INDEX_ARRAY_DELETE'.
endif. "^_n_553503
endif.
endform.
...where declaration locations of global parameters CT_STATISTIC can be found in func:
RV_BILLING_INDEX_UPDATE
RV_DELIVERY_INDEX_SAVE
RV_INVOICE_LIST_INDEX_UPDATE
RV_SALES_DOCUMENT_INDEX_UPDAT
....and defined like:
TABLES:
CT_STATISTICS STRUCTURE ARCH_STAT
2009 Apr 23 6:46 AM
2009 Apr 23 6:49 AM
Hi, here is my standard LV05IFCI
form index_array_delete.
data: lf_counter1 like sy-tabix,
lf_counter2 like sy-tabix,
lf_counter3 like sy-tabix.
if tvind-maind eq charx.
describe table ad_vapma lines lf_counter1.
describe table ad_vlpma lines lf_counter2.
describe table ad_vrpma lines lf_counter3.
else.
describe table ad_vakpa lines lf_counter1.
describe table ad_vlkpa lines lf_counter2.
describe table ad_vrkpa lines lf_counter3.
endif.
if lf_counter1 > 1000 or
lf_counter2 > 1000 or
lf_counter3 > 1000.
if ct_statistics is requested. "v_n_553503
call function 'RV_INDEX_ARRAY_DELETE'
tables
ct_statistics = ct_statistics.
else.
call function 'RV_INDEX_ARRAY_DELETE'.
endif. "^_n_553503
endif.
endform.
...where declaration locations of global parameters CT_STATISTIC can be found in func:
RV_BILLING_INDEX_UPDATE
RV_DELIVERY_INDEX_SAVE
RV_INVOICE_LIST_INDEX_UPDATE
RV_SALES_DOCUMENT_INDEX_UPDAT
....and defined like:
TABLES:
CT_STATISTICS STRUCTURE ARCH_STAT
2009 Apr 23 7:12 AM
Hello erik,
i have tried declaring it as you mentioned but its giving me an error.
2009 Apr 23 6:50 AM
Hello
Try to search "ct_statistics" in programm SAPLV05I.
May be this variable was declared in other include.
2009 Apr 23 6:52 AM
Hi Kevin,
the variable is being used in the form index_array_delete in include LV05IFCI. This form is called from many function modules so that variable might be decalred in the function module.
Regards,
Venkat
2009 Apr 23 6:56 AM
what is the issue..?
ct_statistics is the function module table parameter, so no need to define that in top include.
just give the details about your issue..???
2009 Apr 23 7:10 AM
Hello, my issue is the following. when i try to activate my program in ECC6.0, i get the following error message.
Field "CT_STATISTICS" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement. .
but it works fine in 4.6c. The reason for this is that the field ct_statistics is present in the Include LV05IFCI in ECC6.0 and i can't find a way to declare it.
Thanks
2009 Apr 23 7:13 AM
Try to Activate the Whole Function group instead of activating the Inlcude alone.
2009 Apr 23 7:19 AM
now if i try to declare it as follows:
data ct_statistics like arch_stat.
it gives me the following error:
"IS REQUESTED" is allowed only with function parameters. This means that it is allowed only within the relevant function module and not with pure incoming parameters.
2009 Apr 23 7:22 AM
2009 Apr 23 7:32 AM
I checked the include and i clicked on the table then it showed where it is declared.
The following are the function module in which it is available as Table parameter
RV_BILLING_INDEX_UPDATE
RV_DELIVERY_INDEX_SAVE
RV_INVOICE_LIST_INDEX_UPDATE
RV_SALES_DOCUMENT_INDEX_UPDAT
2009 Apr 23 9:11 PM
Are you working from SE80 editing Function Group V05I? When I go there and activate, it works fine. Have you tried that?
2009 Apr 23 9:20 PM
CT_STATISTICS is a table parameter in the following function modules of Function group V05I.
RV_BILLING_INDEX_UPDATE
RV_DELIVERY_INDEX_SAVE
RV_INVOICE_LIST_INDEX_UPDATE
RV_SALES_DOCUMENT_INDEX_UPDAT
Declaring it as a variable somewhere else will not solve your problem. When all else fails why not just click the activate anyway button? That might actually work for you. I cannot seem recreate your problem on my system.
Edited by: Larry Browning on Apr 23, 2009 3:22 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |