Finance Automation SAP FPA REL Functions
The following SAP FPA REL functions are used in the SAP FPA flavor. The functions reside in the Redwood_FCA
library.
You call these functions by specifying =<partition>.Redwood_FCA.<function>
.
The examples on this page assume the definition which calls these functions resides in the same partition as the library, specified as $
.
The default partition of the library is FCA
. The REL functions can be accessed via RedwoodScript from the
com.redwood.scheduler.custom.fca.fpa.rel.FlSapFpaRel
class.
defaultFPAParameters
Retrieves the default parameter specified in the table. The default parameter is retrieved using the organization structure (from parameters KOKRS,BUKRS). If the value is not found, it will try to retrieve it from the next higher level). In cases where the parameter can still not be found, the following alternatives are attempted:
- Find subentries and concatenate. Example
PARM
was not found, then searchPARM_1
. If found, concatenate withPARM_2
- Find parent parameter. Example
PARM_TEST
andPARM_TEST_1
were not found, then searchPARM
note
Parameter must be Runtime!
Syntax
Redwood_FCA.defaultFPAParameters(Long jobId, String inParameter, String inKOKRS, String inBUKRS)
Example
=$.Redwood_FCA.defaultFPAParameters(jobId,'BATCH_USER', parameters.KOKRS, parameters.BUKRS)
Result
Returns JDOE
on this system.
defaultFPAParametersJob
Retrieves the default parameter specified in the table. The default parameter is retrieved using the current organization structure (from parameters KOKRS,BUKRS,WERKS). If the value is not found, it will try to retrieve it from the next higher level). In cases where the parameter can still not be found, the following alternatives are attempted:
- Find subentries and concatenate. Example
PARM
was not found, then searchPARM_1
. If found, concatenate withPARM_2
- Find parent parameter. Example
PARM_TEST
andPARM_TEST_1
were not found, then searchPARM
note
Parameter must be Runtime!
Syntax
Redwood_FCA.defaultFPAParametersJob(Long jobId, String inParameter)
Example
=$.Redwood_FCA.defaultFPAParametersJob(jobId,'BATCH_USER')
Result
Returns JDOE
on this system.
getSapFpaReplacement
Converts the input string using the SAP FPA Replacement definitions.
Syntax
Redwood_FCA.getSapFpaReplacement(Long jobId, String repl)
Example
=$.Redwood_FCA.getSapFpaReplacement(jobId,'${F:BATCH_USER}')
Result
Returns JDOE
on this system.
financeTopic