Application Development 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: 

Depreciation planned value in AS03

raffinkira
Participant
0 Kudos

Hi all,

I have already known the company code, asset number, fiscal year and post date.

I can see the posted value in table ANLP.

Now how can I get the planned value of period for the given criteria.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Did you analyze a standard report like RABEST_ALV01 to understand how the planned values are evaluated from ANLC?

Hint: If don't want to analyze thre report, you could just submit it and import its result from memory


* itab for result

DATA lt_outtab  TYPE TABLE OF fiaa_salvtab_rabest.

* Execute report

SUBMIT rabest_alv01 AND RETURN

      WITH  bukrs    = i_bukrs

      WITH  anlage    IN ir_anln1

      WITH  untnr     IN ir_anln2

      WITH  berdatum = i_date

      WITH  bereich1 = i_afabe

      WITH  p_table  = abap_true. " trigger export to memory

*   get data back from memory.

IMPORT table TO lt_outtab FROM MEMORY ID 'RABEST_ALV01'.

FREE MEMORY ID 'RABEST_ALV01'.

Regards,

Raymond

6 REPLIES 6

raymond_giuseppi
Active Contributor
0 Kudos

Did you analyze a standard report like RABEST_ALV01 to understand how the planned values are evaluated from ANLC?

Hint: If don't want to analyze thre report, you could just submit it and import its result from memory


* itab for result

DATA lt_outtab  TYPE TABLE OF fiaa_salvtab_rabest.

* Execute report

SUBMIT rabest_alv01 AND RETURN

      WITH  bukrs    = i_bukrs

      WITH  anlage    IN ir_anln1

      WITH  untnr     IN ir_anln2

      WITH  berdatum = i_date

      WITH  bereich1 = i_afabe

      WITH  p_table  = abap_true. " trigger export to memory

*   get data back from memory.

IMPORT table TO lt_outtab FROM MEMORY ID 'RABEST_ALV01'.

FREE MEMORY ID 'RABEST_ALV01'.

Regards,

Raymond

0 Kudos

I have run the report and it showed "

Fiscal year change not yet made for company code 1000

"

I am sure that in AS03 I can see the asset.

0 Kudos

Ask functionals for end of year closing operations (missing execution of AJRW in your dev system?)

(I'm able to display some data with a report date in the future)

Regards,

Raymond

0 Kudos

I will ask her later.

BTW, would FM like ' RA_AFABUCHEN' help?

0 Kudos

RA_AFABUCHEN : Yes if you want to simulate depreciation.

In a dev usyem, you can execute AJRW it's only kind of "technical" transaction (with prerequisites on actual execution of FI-AA postings and year closing of year-2)

Regards,

Raymond

0 Kudos

Thanks.

The problem is solved.

As you said, the functional did the closing op and the program works.