Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Abap Syntax for a requirment

$
0
0

Hi experts,

 

What is the more convenient abap syntax to code this requirement?

 

What I want to do is to transfer the sold of the last year concerning an account to the current year if the key is similar of course

 

Example:


Account

Field A

Field B

Year

Amount

AAAA

TEST

ABC

2012

100

AAAA

XXX

ABC

2012

150

AAAA

TEST

ABC

2012

300

AAAA

TEST

ABC

2013

200

 

As you can see, line 1 and 3 of my example have the same key (in green)

So what I want to do is to calculate the summation of field Amount and report it in the next year which gives:

 

Summation:

 

Account

Field A

Field B

Year

Amount

AAAA

TEST

ABC

2012

100

AAAA

TEST

ABC

2012

300

AAAA

TEST

ABC

2012

400

 

Report on next year:

 

Account

Field A

Field B

Year

Amount

AAAA

TEST

ABC

2013

200

AAAA

TEST

ABC

2012

400

AAAA

TEST

ABC

2013

600

 

If not clear I can develop more.

 

Thanks for your help.

 

Amine


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>