Skip to Content
0
Jul 04, 2006 at 06:23 AM

ERR: SIMPLE REPORT

17 Views

hai friends

i got an error on the following report. please mention how to rectify the error

thanks & regards

vallamuthu

REPORT ZREP_PURCHASE_ORDER .

TABLES: EKKO, EKPO.

DATA: BEGIN OF IT_PURORDER,

EBELN LIKE EKKO-EBELN, "STO NUMBER

BEDAT LIKE EKKO-BEDAT, "DOCUMENT DATE

BSART LIKE EKKO-BSART, "DOCUMENT TYPE STO/PO.

LIFNR LIKE EKKO-LIFNR, "VENDOR NAME

WERKS LIKE EKPO-WERKS, "SUPPLYING PLANT

END OF IT_PURORDER.

SELECT-OPTIONS

S_EBELN FOR EKKO-EBELN.

START-OF-SELECTION.

SELECT ABEDAT ABSART ALIFNR BWERKS

FROM EKKO AS A INNER JOIN EKPO AS B ON AEBELN = BEBELN

INTO ( IT_PURORDER-BEDAT, IT_PURORDER-BSART,

IT_PURORDER-LIFNR, IT_PURORDER-WERKS )

WHERE A~EBELN = S_EBELN.