cancel
Showing results for 
Search instead for 
Did you mean: 

Issue in RUNLOGIC_PH to call Script from another Model to clear Data in Destination Model

praveenboyapati
Participant
0 Kudos
227

Hi There,

We try to clear the data from destination model before sending data from Source model using RUNLOGIC_PH to call clear package script from destination model. Destination App logic working as expected.

See attached document on Test script. And let me know what change i need to make in the code to resolve this issue.

Best Regards,

Praveen.

BW version

runlogic-ph-issue.txt

Accepted Solutions (1)

Accepted Solutions (1)

former_member186338
Active Contributor
0 Kudos

Try upper case <NONE>, not <none>

Try script without CHANGED parameter

Remove VALIDATION=OFF

Use simple script CLEAR_XYZ000.LGF - you define scope for it in the main script!

*START_BADI RUNLOGIC_PH
QUERY=OFF
WRITE=ON
LOGIC=CLEAR_XYZ000.LGF
APPSET = ABC
APP = XYZ
// Dimensions Common in both Models
DIMENSION TIME = BAS(%TIME_SET%)  //!!!!!!! Only required scope
DIMENSION CATEGORY= %CATEGORY_SET%
DIMENSION RPTCURR= LC
// Dimensions that are not in HR Model (But in XYZ Model)
DIMENSION ACCOUNT = <ALL>
DIMENSION CC = BAS(CCTOTAL)
DIMENSION AUDITTRAIL = LB_HR,LB_CT,LB_HC //!!!!!!! Only required scope
DIMENSION COMPANY = 0A10,0B10,0B15
DIMENSION EQUIPMENT = NO_EQS
DIMENSION IO = NO_IO
DIMENSION WBS = NO_WBS
DIMENSION MATERIAL = NO_MATERIAL
DIMENSION FLOW = F_Bal
//Dimensions that are not in XYZ Model (But in HR Model)

DIMENSION HRACCT =  <NONE>
DIMENSION HRAREA = <NONE>
DIMENSION HRAUDIT = <NONE>
DIMENSION HRCLS = <NONE>
DIMENSION HRCONTYPE = <NONE>
DIMENSION HREMPTYPE = <NONE>
DIMENSION HRJOB = <NONE>
DIMENSION HRSCHEDULE = <NONE>
DIMENSION HRSHIFT = <NONE>
DEBUG = OFF
*END_BADI 

// CLEAR_XYZ000.LGF  logic
*WHEN AUDITTRAIL
*IS * //everything is scoped in main script!!!!
*REC(EXPRESSION=0)
*ENDWHEN

Answers (1)

Answers (1)

praveenboyapati
Participant
0 Kudos

Hi Vadim ,

I made the above changes and it is working as expected . Thank you very much for the prompt help.

Best Regards,

Praveen B.