on 08-19-2018 1:44 PM
Hi experts
We have a model where we have following dimensions.
FLZTYP => Here we have all the airplane types
FLZ => The single airplanes belonging to a FLZTYP (see below)
IDFLZTYP(property)
123HC124HC125HC221HD222HDWe want to write a default logic, where it the script should read FLZTYP from the current view and post the amount to all the members of FLZ, when there is a posting to FLZ_NA
//HERE: "HC" SHOULD NOT BE HARDCODED. IT SHOULD BE TRANSFERED FROM THE CURRENT VIEW //DIMENSION FLZTYP.
*SELECT(%FLZ%,"[ID]",FLZ,"[FLZTYP] = 'HC'")
*WHEN FLZ
*IS FLZ_NA
*FOR %FLZ_Z% = %FLZ%
*REC(EXPRESSION = %VALUE%, FLZ = %FLZ_Z%)
*NEXT
*ENDWHEN
Please can you help ?
*SELECT(%FLZ%,"[ID]",FLZ,"[FLZTYP] = %FLZTYP_SET%")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
True. Default logic would have certain disadvantages over custom logic. meithom can consider run package with automated parameter filling.
Hi Vadim
Sorry. I try to be more specific
The FLZTYP member is coming from the context (it is also the driver dimension of the activity in the BPF).
In this line HC should be replaced by a variable which represents the current context member of FLZTYP as this is a property of FLZ.
*SELECT(%FLZ%,"[ID]",FLZ,"[FLZTYP] = 'HC'")
Regards
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
P.S. Please read my old blog: https://blogs.sap.com/2014/06/09/how-to-write-defaultlgf/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, but requirements are not clear!
Please, explain again using some screenshots.
"We want to write a default logic, where it the script should read FLZTYP from the current view and post the amount to all the members of FLZ, when there is a posting to FLZ_NA"
default logic (default.lgf) is not related to current view! Nothing can be passed to default.lgf from CV, default.lgf has only scope of saved members.
...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.