Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

declaration of variable in standard include

Former Member
0 Likes
1,845

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,773

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 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

13 REPLIES 13
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
1,773

Check for SAP notes for the same.

Read only

Former Member
0 Likes
1,773

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

Read only

0 Likes
1,773

Hello erik,

i have tried declaring it as you mentioned but its giving me an error.

Read only

Former Member
0 Likes
1,773

Hello

Try to search "ct_statistics" in programm SAPLV05I.

May be this variable was declared in other include.

Read only

Former Member
0 Likes
1,773

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

Read only

Former Member
0 Likes
1,774

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..???

Read only

0 Likes
1,773

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

Read only

0 Likes
1,773

Try to Activate the Whole Function group instead of activating the Inlcude alone.

Read only

0 Likes
1,773

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.

Read only

0 Likes
1,773

i am activating the whole program itself

Read only

0 Likes
1,773

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

Read only

0 Likes
1,773

Are you working from SE80 editing Function Group V05I? When I go there and activate, it works fine. Have you tried that?

Read only

0 Likes
1,773

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