Skip to Content
2
Former Member
Jun 29, 2007 at 09:37 AM

help me this report

16 Views

Hi Freinds,

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

ouput data :

v_dmbtr_1 v_kwert_1

567612 290 E 0.00 0.00 0.00 0.00 200612CAWH

567612 290 E 0.00 0.00 0.00 0.00 200612CPWH

567612 290 E 0.00 0.00 0.00 0.00 200612SDWH

567612 290 E 0.00 0.00 0.00 0.00 200612TRWH

567612 290 E 0.00 0.00 0.00 0.00 200612NORM

567616 290 E 0.00 0.00 0.00 0.00 200612CAWH

PRINT THE DATA FOR THIS AMOUNT FEILSDS v_dmbtr_1 v_kwert_1

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

amount fields are declared like this,

v_dmbtr_1 like MSEG-DMBTR,

v_kwert_1 like konv-kwert.

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

but i want print the values.(DATA)

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,