Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Code update for Asset Report

Former Member
0 Likes
645

HI Guru's

This code iam using to get assets transaction details from BKPF and BSEG..

But following Documents are not displaying..

A1SG 5000000092 2003 WE 10.03.2004 GR TEST MKPF 50000002522004

A1SG 5000000093 2003 WE 10.03.2004 GR MKPF 50000002532004

Fiscal year not tally..

&----


*& Form FM_GET_ANEP

&----


  • Get from ANEP

----


FORM FM_AWKEY_ANEP .

RANGES: R_BWASL FOR ANEP-BWASL.

CLEAR WA_ANEP.

LOOP AT IT_ANEP INTO WA_ANEP.

CONCATENATE WA_ANEP-BELNR

WA_ANEP-BUKRS

WA_ANEP-GJAHR

INTO WA_ANEP-AWKEY.

MODIFY IT_ANEP FROM WA_ANEP TRANSPORTING AWKEY.

CLEAR WA_ANEP.

ENDLOOP.

REFRESH R_BWASL.

R_BWASL-SIGN = 'I'.

R_BWASL-OPTION = 'EQ'.

R_BWASL-LOW = '105'. APPEND R_BWASL.

R_BWASL-SIGN = 'I'.

R_BWASL-OPTION = 'EQ'.

R_BWASL-LOW = '120'. APPEND R_BWASL.

LOOP AT IT_ANEP INTO WA_ANEP

WHERE BWASL IN R_BWASL.

CLEAR WA_ANEP-AWKEY.

CONCATENATE WA_ANEP-BELNR

WA_ANEP-GJAHR

INTO WA_ANEP-AWKEY.

MODIFY IT_ANEP FROM WA_ANEP TRANSPORTING AWKEY.

CLEAR WA_ANEP.

ENDLOOP.

ENDFORM. " FM_GET_ANEP

&----


*& Form FM_GET_BKPF

&----


  • Get from BKPF

----


FORM FM_GET_BKPF .

RANGES: MKPF FOR BKPF-AWTYP.

REFRESH IT_BKPF.

SELECT BUKRS

BELNR

GJAHR

BUDAT

INTO TABLE IT_BKPF

FROM BKPF

FOR ALL ENTRIES IN IT_ANEP

WHERE BUKRS EQ IT_ANEP-BUKRS

AND BUDAT IN SO_BUDAT

AND AWTYP IN ('MKPF', 'BKPF', 'AMBU', 'AIBU' , 'AMDP' , 'BKPFF',

'CAJO')

AND AWKEY EQ IT_ANEP-AWKEY.

SORT IT_BKPF BY BUKRS BELNR.

DELETE ADJACENT DUPLICATES FROM IT_BKPF COMPARING BUKRS BELNR.

ENDFORM. " FM_GET_BKPF

&----


any one give me the solution..

thanks

regards

JK

1 ACCEPTED SOLUTION
Read only

andreas_mann3
Active Contributor
0 Likes
538

do you see the documents in the asset explorer (tcode AW01N)?

2) analyse tcode AB03

A.

Edited by: Andreas Mann on Nov 26, 2008 11:58 AM

1 REPLY 1
Read only

andreas_mann3
Active Contributor
0 Likes
539

do you see the documents in the asset explorer (tcode AW01N)?

2) analyse tcode AB03

A.

Edited by: Andreas Mann on Nov 26, 2008 11:58 AM