Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

problem in uploading the data

Hi,

I am working on a report on which i have to update a table in which i am uploading the on the basis of the 1st date and last date of the month. Its basically functionality is similar to the MSEG table as i am storing the data on last of the months by taking the BLDAT date form the MKPF table.

For many entries it is saving the data and some of them are not coming right . here's d code:-

LOOP AT ITMSEG WHERE WERKS = ITPLANT-WERKS AND LGORT = ITSTLOC-LGORT AND MATNR = ITMATNR-MATNR AND BLDAT BETWEEN ITMON-FDATE AND ITMON-LDATE.

R_FOUND = 1.

IF ITMSEG-SHKZG = 'S'.

V_DEBIT = V_DEBIT + ITMSEG-MENGE.

ELSE.

V_CREDIT = V_CREDIT + ITMSEG-MENGE.

ENDIF.

ENDLOOP.

In this code the last where condition is taking the Document date from MKPF and it will check the value b/w 1st date and last date.

ex, if bldat is 12.08.2008 then the last date would be 31.08.2008 and first date is 01.08.2008.

some of the data is coming right some of it is not.plzz provide me guidelines for solving this problem.

Edited by: ricx .s on Oct 17, 2008 10:59 AM

Tags:
Not what you were looking for? View more on this topic or Ask a question