Quantcast
Channel: SCN : Discussion List - SAP Planning and Consolidation, version for SAP NetWeaver
Viewing all articles
Browse latest Browse all 5414

Passing Variable value to Advanced Script?

$
0
0

Hi All,

 

My Requirement is to load Transaction Data and to run Account Based Calculation both in a single Package(created a custom process chain).

 

During this Load user should get Prompt Screen for only Time Dimension.

All other Set Selection fields are maintained Static in the Advanced Script.

 

I have created a Prompt with a variable(%DATE%), which stores Time Member that is selected by the user.

 

My problem is I am not able to pass this Variable value into Transaction Data Selection, but able to Pass into Account Based Calculation.

 

For my Transaction Data load it has to take this Variable(%Date%) value for Time Dimension along with hardcoded other Dimension Values.

This variable value is passed to Acc Based Calc. correctly and it is running as required.

If I am maintaining Time value static in Transaction Load Script it is running fine.

 

Data manager Package Script is below:

 

PROMPT(SELECT,%DATE%,,Date,"TIME")

    

INFO(%TEMPNO18%,%INCREASENO%)

INFO(%ACTNO%,%INCREASENO%)

INFO(%KEYDATE%,)

 

TASK(/CPMB/INFOPROVIDER_CONVERT,OUTPUTNO,%TEMPNO18%)

TASK(/CPMB/INFOPROVIDER_CONVERT,ACT_FILE_NO,%ACTNO%)

TASK(/CPMB/INFOPROVIDER_CONVERT,TRANSFORMATIONFILEPATH,\ROOT\WEBFOLDERS\Environment_103\CONSOL\DATAMANAGER\TRANSFORMATIONFILES\NEW_TRASNS.xls)

TASK(/CPMB/INFOPROVIDER_CONVERT,SUSER,%USER%)

TASK(/CPMB/INFOPROVIDER_CONVERT,SAPPSET,%APPSET%)

TASK(/CPMB/INFOPROVIDER_CONVERT,SAPP,%APP%)

TASK(/CPMB/INFOPROVIDER_CONVERT,FILE,0FIGL_C10)

 

TASK(/CPMB/INFOPROVIDER_CONVERT,INFOPROV_SELECTION,<?xml
version="1.0" encoding="utf-16"?><Selections
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SelectionType="Selection"><Attribute><ID>0CURTYPE</ID><Operator>1</Operator><LowValue>10</LowValue><HighValue/></Attribute><Attribute><ID>0CHRT_ACCTS</ID><Operator>1</Operator><LowValue>0010</LowValue><HighValue
/></Attribute><Attribute><ID>0FISCVARNT</ID><Operator>1</Operator><LowValue>%DATE%</LowValue><HighValue/></Attribute></Selection><SelectionType="FieldList"><FieldID>0BAL_FLAG</FieldID><FieldID>0CHNGID</FieldID><FieldID>0CHRT_ACCTS</FieldID><FieldID>0COMP_CODE</FieldID><FieldID>0COSTCENTER</FieldID><FieldID>0CO_AREA</FieldID><FieldID>0CURRENCY</FieldID><FieldID>0CURTYPE</FieldID><FieldID>0FISCPER</FieldID><FieldID>0FISCPER3</FieldID><FieldID>0FISCVARNT</FieldID><FieldID>0FISCYEAR</FieldID><FieldID>0FUNC_AREA</FieldID><FieldID>0GL_ACCOUNT</FieldID><FieldID>0PROFIT_CTR</FieldID><FieldID>0RECORDTP</FieldID><FieldID>0REQUID</FieldID><FieldID>0SEGMENT</FieldID><FieldID>0VALUATION</FieldID><FieldID>0VERSION</FieldID><FieldID>0VTYPE</FieldID></Selection></Selections>)

 

TASK(/CPMB/INFOPROVIDER_CONVERT,KEYDATE,%KEYDATE%)

TASK(/CPMB/LOAD_IP,PREPROCESSMODE,0)

TASK(/CPMB/LOAD_IP,TARGETMODE,0)

TASK(/CPMB/LOAD_IP,INPUTNO,%TEMPNO18%)

TASK(/CPMB/LOAD_IP,ACT_FILE_NO,%ACTNO%)

TASK(/CPMB/LOAD_IP,RUNLOGIC,1)

TASK(/CPMB/LOAD_IP,CHECKLCK,0)

TASK(/CPMB/LOAD_IP,KEYDATE,%KEYDATE%)

 

'This is for Account Based Calculation

 

INFO(%SELECTION%,/Environment_103/CONSOL/PRIVATEPUBLICATIONS/HKANDULA/TempFiles/FROM.TMP@@@SAVE@@@@@@EXPAND@@@|DIMENSION:CATEGORY|Actual|DIMENSION:ENTITY|India|DIMENSION:RPTCURRENCY||DIMENSION:SCOPE|S_INDIA|DIMENSION:TIME|%DATE%|)

 

TASK(/CPMB/FX_RESTATMENT_LOGIC,TAB,%TAB%)

TASK(/CPMB/FX_RESTATMENT_LOGIC,EQU,%EQ%)

TASK(/CPMB/FX_RESTATMENT_LOGIC,SUSER,%USER%)

TASK(/CPMB/FX_RESTATMENT_LOGIC,SAPPSET,%APPSET%)

TASK(/CPMB/FX_RESTATMENT_LOGIC,SAPP,%APP%)

TASK(/CPMB/FX_RESTATMENT_LOGIC,SELECTION,%SELECTION%)

TASK(/CPMB/FX_RESTATMENT_LOGIC,LOGICFILENAME,ABC.LGF)


Viewing all articles
Browse latest Browse all 5414

Trending Articles