on 12-13-2023 1:57 PM
Dear all,
I have the following requirement: There's an ADSO with material prices for each month until the last month (no data for the current month).
Then I have material movements with quantities and I have to add the material prices from the above mentioned ADSO. For material movements in the current month, I should join the material prices from last month and for material movements in the past, I should join the material prices from the respective month.
For example:
booking date = today (13th December 2023) --> take the material price from the previous month (11/2023), which is the max. month in this ADSO
booking date = 10th May 2022 --> take the material price from 05/2022
How can I achieve this in AMDP in an end routine of a BW transformation?
For requirement to select the respective month, I can do the following:
OUTTAB = SELECT ....
FROM :INTAB as i
LEFT OUTER JOIN ADSO as pr
ON i.CALMONTH = pr.CALMONTH;
Thanks & best regards,
Yvonne
User | Count |
---|---|
82 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.