Skip to Content
0
Former Member
Sep 08, 2007 at 07:30 AM

Using macro sum, date is displaying wrong.....

17 Views

Hi Experts,

I am using macros in ALV like :

define m_fieldcat.

add 1 to w_fcat-col_pos.

w_fcat-fieldname = &1.

w_fcat-seltext_m = &2.

w_fcat-outputlen = &3.

w_fcat-decimals_out = &4.

w_fcat-do_sum(1) = &5.

w_fcat-ref_tabname = &6.

Data : w_fcat type slis_fieldcat_alv,

lt_fieldcat type slis_t_fieldcat_alv.

FORM f_cat .

m_fieldcat 'SRNO' 'Serial No' '9' '' '' 'IT_OUT'.

m_fieldcat 'VBELN' 'Order No' '10' '' '' 'IT_OUT'.

m_fieldcat 'POSNR' 'Item' '4' '' '' 'IT_OUT'.

m_fieldcat 'ERDAT' 'Order Date' '10' '' '' 'IT_OUT'.

m_fieldcat 'MATNR' 'Material No' '18' '' '' 'IT_OUT'.

m_fieldcat 'ARKTX' 'Material Description' '40' '' '' 'IT_OUT'.

m_fieldcat 'ORD_QTY' 'Order Qty' '10' '0' 'X' 'IT_OUT'.

m_fieldcat 'PEND_QTY' 'Pending Qty' '11' '0' 'X' 'IT_OUT'.

m_fieldcat 'NETWR' 'Net Value' '10' '' 'X' 'IT_OUT'.

m_fieldcat 'KUNNR' 'Customer' '10' '' '' 'IT_OUT'.

m_fieldcat 'NAME1' 'Cust Name' '30' '' '' 'IT_OUT'.

But the date format is comming like 20060214, i want 14.02.2006 and Sum of Order Qty is not showing. Pl. guide me.

Yusuf

Message was edited by:

YUSUF BHORI