Skip to Content
0
Former Member
Jun 28, 2007 at 08:45 PM

help me this report

13 Views

Hi Freinds,

i am doing a report.. pls.. see below OUT PUT DATA..

ouput data :

0 DU 0.00 0.00 0.00 0.00200612NEGA

567612 290 E 0.00 0.00 0.00 0.00200612CAWH

567612 290 E 0.00 0.00 0.00 0.00200612CPWH

567612 290 E 0.00 0.00 0.00 0.00200612SDWH

567612 290 E 0.00 0.00 0.00 0.00200612TRWH

567612 290 E 0.00 0.00 0.00 0.00200612NORM

567616 290 E 0.00 0.00 0.00 0.00200612CAWH

567616 290 E 0.00 0.00 0.00 0.00200612CPWH

567616 290 E 0.00 0.00 0.00 0.00200612SDWH

567616 290 E 0.00 0.00 0.00 0.00200612TRWH

567616 290 E 0.00 0.00 0.00 0.00200612NORM

567620 29 E 0.00 0.00 9.28 0.00200612NORM

567620 29 E 0.00 0.00 0.00 0.00200612TRWH

567620 29 E 0.00 0.00 0.00 0.00200612SSSD

567620 29 E 0.00 0.00 0.00 0.00200612MKTG

567620 29 E 0.00 0.00 0.00 0.00200612GAWH

567620 29 E 0.00 0.00 0.00 0.00200612DCWH

567620 29 E 0.00 0.00 0.00 0.00200612CPWH

567620 29 E 0.00 0.00 0.00 0.00200612CAWH

567621 29 E 0.00 0.00 4.44 0.00200612NORM

567621 29 E 0.00 0.00 0.00 0.00200612TRWH

567621 29 E 0.00 0.00 0.00 0.00200612SSSD

567621 29 E 0.00 0.00 0.00 0.00200612MKTG

567621 29 E 0.00 0.00 0.00 0.00200612GAWH

567621 29 E 0.00 0.00 0.00 0.00200612DCWH

567621 29 E 0.00 0.00 0.00 0.00200612CPWH

567621 29 E 0.00 0.00 0.00 0.00200612CAWH

SEE ABOVE OUT PUT DATA , AFTER 3 RD FIELD.NULL FIELDS ARE AMOUNT FIELDS..

WHEN I AM WRITING THIS BELOW CODE IN MY REPORT THE AMOUNT FIELDS ARE COMING ZEROS.(NULL VAUES).

CODE WRITTEN LIKE THIS :

SORT IT_TMP BY MATNR MATKL LGORT.

LOOP AT IT_TMP.

V_TABIX = SY-TABIX.

v_dmbtr_1 = v_dmbtr_1 + IT_tMP-DMBTR.

v_kwert_1 = v_kwert_1 + IT_TMP-KWERT.

(HERE v_dmbtr_1 v_kwert_1 ARE AMOUNT AVRIEBLES )

AT END OF LGORT.

READ TABLE IT_tmp INDEX V_TABIX.

it_MATNR = IT_TMP-MATNR.

it_MATKL = IT_TMP-MATKL.

it_LGORT = IT_tMP-LGORT.

it_dmbtr = v_dmbtr_1.

it_kwert = v_kwert_1.

APPEND IT_MODEL.

HELP ME REGARDING THIS ISSUE PLS.. ITS VERY URGENT.

REGARDS,