Skip to Content
0
Former Member
Apr 11, 2008 at 04:08 AM

PO Data and Number into report

46 Views

Dear all

i have a requirement of adding po date and po number in my y report.

po data is taken from vbkd (bstdk)

po number is taken from vbkd (bstkd)

the values are not fetched in output screen please help on this.

i have done the following

i have declared a itab for vbkd .

DATA : BEGIN OF ITAB_VBKD OCCURS 0,

VBELN LIKE VBKD-VBELN,

BSTKD LIKE VBKD-BSTKD,

BSTDK LIKE VBKD-BSTDK,

END OF ITAB_VBKD.

i have declared po num and po date in final itab too....

select query goes as this

SELECT VBELN BSTKD BSTDK FROM VBKD INTO TABLE ITAB_VBKD FOR ALL ENTRIES IN ITAB3 WHERE

VBELN = ITAB3-AUBEL_I.

then i need to move or read from itab i am not sure so i did the reading part as like this

READ TABLE ITAB_VBKD WITH KEY VBELN = ITAB3-AUBEL_I BINARY SEARCH.

IF SY-SUBRC IS INITIAL.

MOVE ITAB_VBKD-BSTKD TO ITAB3-BSTKD.

MOVE ITAB_VBKD-BSTDK TO ITAB3-BSTDK.

ENDIF.

and i have declared in fieldcat too.

wat could be the reason of displayed in the output screen wat needs to be done please help me on this URGENT!!!!!!!!!111

Edited by: Alvaro Tejada Galindo on Apr 11, 2008 3:23 PM