Skip to Content
0
Former Member
Nov 07, 2008 at 10:21 PM

Declaration of subroutine formal parameters in ecc 6.0

348 Views

In extended syntax check of my program, how can i declare formal parameters ?

the warning is

Program:  ZADI_V_R_869_870_STATUS  Row:    751
 Parameter "P_LV_UNSHIPPED_QTY" is untyped. 
Static type checks and optimizations,
 therefore, cannot take place. 
If a type cannot be declared, use the type ANY.
 ANY. use the type ANY. use the type ANY. 
use the type ANY.
Internal Message Code: MESSAGE GUX
(The message can be hidden with "#EC *)

The formal parameters in the code is nto delcared with type ...

So how to declare here in ecc 6.0 ?

FORM logic_4_ord_status

USING p_lv_canc_date

p_lv_shipped_date

p_lv_order_qty

p_lv_delivery

p_lv_open_qty

p_lv_neworderqty

p_lv_pickedqty

p_lv_j_3acada

p_lv_j_3arqda

p_lv_cancelled1

p_lv_zzactcnt

p_lv_zzstatus

p_lv_cancelled2

p_lv_unshipped_qty

CHANGING p_wa_870_output_rec TYPE t_870_output_rec.

My declaration is

DATA: lv_order_qty TYPE wmeng,

lv_cancelled1 TYPE wmeng,

lv_cancelled2 TYPE wmeng,

lv_delivery TYPE lfimg,

lv_open_qty TYPE lfimg,

lv_neworderqty TYPE lfimg,

lv_pickedqty TYPE lfimg,

lv_unshipped_qty TYPE lfimg,

lv_canc_date(8) TYPE c,

lv_shipped_date TYPE erdat .

DATA: lv_j_3acada TYPE j_3acada,

lv_j_3arqda TYPE j_3arqda.

Please suugest me that TYPE any is sufficient

for all

p_lv_shipped_date

p_lv_order_qty TYPE any

p_lv_delivery TYPE any

p_lv_open_qty TYPE any

p_lv_neworderqty TYPE any

p_lv_pickedqty TYPE any

p_lv_j_3acada TYPE any

p_lv_j_3arqda TYPE any

p_lv_cancelled1 TYPE any

p_lv_zzactcnt TYPE any

p_lv_zzstatus TYPE any

p_lv_cancelled2 TYPE any

p_lv_unshipped_qty TYPE any