on 10-30-2018 9:41 PM
Hi All,
I have a fiscal period parameter (Ex. 03) and a fiscal year (Ex. 2018) parameter flowing in from a layer of views below. So the select statement now is:
select from <view>
(P_FiscalPeriod: $parameters.P_FiscalPeriod ,P_FiscalYear: $parameters.P_FiscalYear).
Now the user wants to enter a single parameter 03.2018.
To accomodate this change, I would want to separate out the fiscal period and year from this string before the parameter mapping is done - maybe use one of the substring functions.
The problem is that I can't do this within the parameter mapping code. I cant write P_FiscalPeriod: LEFT($parameters.P_FiscalPeriod,2) . It starts giving syntax errors.
I can't figure out the right syntax or other ways to do this. Am not able to find an example either.
Any help would be greatly appreciated.
Regards,
Shyam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shyam,
I have tried to do that in a test system, but this doesn't work.
Sorry, you can't do it in that way....
best Regards
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think normally this should work. I do it in a similar way:
as select from ZI_SalesOrderItem ( P_Date_from: $parameters.P_Date_from,
P_Date_to: $parameters.P_Date_to )
as SOI
This is working for me.
Best regards
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
i did it that way, perhaps that helps you:
with parameters
@Environment.systemField: #SYSTEM_DATE
p_today: abap.dats
left($parameters.p_today,6) as ExtractPeriod,
Best regards
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.