Skip to Content

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

BSAD and BSID data i need to put in one internal table

hi experts,

from BSAD i will get cleared items , from BSID i will get open items .

i wnt to display display boath in one report how i make code plz help me.

if i select all items check box ( PLZ corect my code ) .

IF P_EX3 = 'X'.

SELECT BELNR BUKRS BLART BUDAT XBLNR FROM BKPF INTO TABLE it_final WHERE bukrs = p_bukrs

AND blart in p_blart AND budat IN budat.

SELECT belnr kunnr BUKRS augbl FROM BSID INTO TABLE it_final WHERE belnr = it_final-belnr AND kunnr in p_kunnr

AND bukrs = p_bukrs .

SELECT belnr kunnr BUKRS augbl FROM BSAD INTO TABLE it_final WHERE belnr = it_final-belnr

AND kunnr in p_kunnr AND bukrs = p_bukrs .

*IF SY-SUBRC = 0 .

APPEND it_final.

CLEAR it_final.

*endif.

*ENDSELECT.

*ENDSELECT.

*ENDSELECT.

ENDIF.

plz correct my code

Regards,

Kumar.

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