on 03-21-2024 6:57 AM
Hi Team,
Can someone please help me in getting the logic to split one record with ValidFrom and ValidTo into n number of records based on calmonth. Below is the one example
Source :
Product | ValidFrom | ValidTo | Amount |
P1001 | 20240101 | 20240430 | 100 |
Target :
PRODUCT | CALMONTH | Amount |
P1001 | 202401 | 100 |
P1001 | 202402 | 100 |
P1001 | 202403 | 100 |
P1001 | 202404 | 100 |
Regards,
Praveen.
You can put ValidFrom and ValidTo in a SPMON typped variables (spmon_from,spmon_to).
spmon_from = ValidFrom(6).
Increment of 1 for spmon_from until you reach spmon_to value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.