Show TOC

Procedure documentationTesting Packages Locate this document in the navigation structure

 

We recommend that you test all packages before making them available to users. Use the Debug script in the Dynamic Script Editor to verify the properties and values of packages.

Using the debug command you can check to see that all properties are assigned the correct values. The debug command has the following syntax:

Debug(value)

The following table describes the value parameters:

Parameter

Description

ON

Enables the debug feature.

APPEND

Enables the debug feature and specifies that debug messages are appended to the package log file.

The package log file can be shown in the Detail log window, which you can open from the View Status window.

After you successfully run the debug script, you must comment out or remove the debug script command in the Dynamic Script Editor before running a Planning and Consolidation application. Use the following syntax to comment out the debug script:

‘Debug(value)

Note Note

If you do not comment out or remove the debug script command, the package log file lists the properties of a package along with their current values.

End of the note.

Procedure

Simulating the Package Script (debug script)
  1. In Excel, from the Data Manager menu, choose Organize Package List..

  2. Open Dynamic Script Editor by choosing   Move   Organize Package List  . Select a package and choose Modify Package. Next to the Package File path, choose View Package.

  3. Choose the Advanced button.

  4. Set the debug script command in the Dynamic Script Editor, and save the package log script. For example, the package log script below includes the debug script command DEBUG(ON).

  5. Choose   Data Manager   Run Package  . In the Local Packages pane, run the package that you modified.

Example Package Log

[EvModifyScript Detail]

------------------------------------------------------------

09-11-2009 18:01:27 - Debug turned ON

TASK(DUMP data, APPSET, PCMS75Mpre)

TASK(CONVERT data, OUTPUTFILE, D:\PC_MS\Data\WebFolders\PCMS75Mpre\PLANNING\DataManager\DataFiles\\Export_debug.txt)

INFO(%MEASURENAME%, PERIODIC)

INFO(DATAMGRGLOBALCLIENTMACHINEID, ICND50075752A)

INFO(MODIFYSCRIPT, DEBUG(ON)

<BR>PROMPT(OUTFILE,,"PLEASE ENTER AN OUTPUT FILE",)

<BR>PROMPT(SELECT,,,,[Category],[P_ACCT],[P_Activity],[P_CC],[P_DataSrc],[RptCurrency],[Time])

<BR>PROMPT(TRANSFORMATION,D:\PC_MS\Data\WebFolders\PCMS75Mpre\PLANNING\DATAMANAGER\TRANSFORMATIONFILES\SYSTEM FILES\EXPORT.XLS,"TRANSFORMATION FILE:",,,EXPORT.XLS)

<BR>PROMPT(COMBOBOX,PERIODIC,"PLEASE SELECT A MEASURE THAT YOU WANT TO EXPORT",1,PERIODIC,Periodic,QTD,YTD)

<BR>INFO(D:\PC_MS\Data\WebFolders\PCMS75Mpre\PLANNING\PrivatePublications\Administrator\TempFiles\Temp5v4i_89_.tmp,D:\PC_MS\Data\WebFolders\PCMS75Mpre\PLANNING\PrivatePublications\Administrator\TempFiles\Tempwgxm_89_.tmp)

<BR>TASK(DUMP DATA,APPSET,PCMS75Mpre)

<BR>TASK(DUMP DATA,APP,PLANNING)

<BR>TASK(DUMP DATA,USER,ICND50075752A\Administrator)

<BR>TASK(DUMP DATA,DATATRANSFERMODE,3)

<BR>TASK(DUMP DATA,MDX,D:\PC_MS\Data\WebFolders\PCMS75Mpre\PLANNING\PrivatePublications\Administrator\TempFiles\FROM_89_.TMP)

<BR>TASK(DUMP DATA,FILE,D:\PC_MS\Data\WebFolders\PCMS75Mpre\PLANNING\PrivatePublications\Administrator\TempFiles\Temp5v4i_89_.tmp)

<BR>TASK(DUMP DATA,GETMEASURE,PERIODIC)

<BR>TASK(CONVERT DATA,INPUTFILE,D:\PC_MS\Data\WebFolders\PCMS75Mpre\PLANNING\PrivatePublications\Administrator\TempFiles\Temp5v4i_89_.tmp)

<BR>TASK(CONVERT DATA,OUTPUTFILE,D:\PC_MS\Data\WebFolders\PCMS75Mpre\PLANNING\DataManager\DataFiles\\Export_debug.txt)

<BR>TASK(CONVERT DATA,CONVERSIONFILE,D:\PC_MS\Data\WebFolders\PCMS75Mpre\PLANNING\DATAMANAGER\TRANSFORMATIONFILES\SYSTEM FILES\EXPORT.XLS)

<BR>TASK(CONVERT DATA,STRUSERNAME,ICND50075752A\Administrator)

<BR>TASK(CONVERT DATA,STRAPPSET,PCMS75Mpre)

<BR>TASK(CONVERT DATA,STRAPP,PLANNING)

<BR>TASK(CONVERT DATA,SELECTIONFILE,D:\PC_MS\Data\WebFolders\PCMS75Mpre\PLANNING\PrivatePublications\Administrator\TempFiles\FROM_89_.TMP))

Verifying Properties of Packages and Values

The following tables show examples of debug output.

Package Script

Description of Command

PROMPT(OUTFILE,,"Please enter an output file",)

'Prompt for selecting output file in the Export package

TASK(CONVERT data,OUTPUTFILE,%FILE%)

‘Prompt for selecting output file in the Export package

Package Properties or Values

Description of Command

INFO(%FILE%, D:\PC_MS\Data\WebFolders\PCMS75Mpre\PLANNING\DataManager\DataFiles\\Export_debug.txt)

‘OUTPUTFILE instruction is generated reserved (%FILE%) variable/ value for transferring into convert task.

TASK(CONVERT data, OUTPUTFILE, D:\PC_MS\Data\WebFolders\PCMS75Mpre\PLANNING\DataManager\DataFiles\\Export_debug.txt)

‘OUTPUTFILE variable(%FILE%) is transferred into Convert Task.

Any software coding and/or code lines / strings ("Code") included in this documentation are only examples and are not intended to be used in a productive system environment. The Code is only intended to better explain and visualize the syntax and phrasing rules of certain coding. SAP does not warrant the correctness and completeness of the Code given herein, and SAP shall not be liable for errors or damages caused by the usage of the Code, except if such damages were caused by SAP intentionally or by its gross negligence.