Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Clear package from an other Application

Hi!

Is it possible to run a clearpackage from from one application that runs the clear on an other package.

I am in the application "rapport" and I will like to run a clear on the application "Prognos".

I put this "info" line in the package but the clear is still made on the "rapport" application

INFO(%APP%, PROGNOS)

INFO(%TEMPFILE%,%TEMPPATH%%RANDOMFILE%)

'Modify Export task

'----


TASK(EXPORT_ZERO,APPSET,%APPSET%)

TASK(EXPORT_ZERO,APP,%APP%)

TASK(EXPORT_ZERO,USER,%USER%)

TASK(EXPORT_ZERO,FILE,%TEMPFILE%)

TASK(EXPORT_ZERO,SQL,%SQLDUMP%)

TASK(EXPORT_ZERO,DATATRANSFERMODE,2) 'Export from sql

'Modify Load Cube task

'----


TASK(LOAD CUBE,APPSET,%APPSET%)

TASK(LOAD CUBE,APP,%APP%)

TASK(LOAD CUBE,USER,%USER%)

TASK(LOAD CUBE,FILE,%TEMPFILE%)

TASK(LOAD CUBE,DATATRANSFERMODE,4) 'import into Cube

TASK(LOAD CUBE,DMMCOPY,0) 'Accept Calc member

TASK(LOAD CUBE,PKGTYPE,0) 'Clear Package Type

TASK(LOAD CUBE,CHECKLCK,%CHECKLCK%)

TASK(CLEAR COMMENTS,APPSET,%APPSET%)

TASK(CLEAR COMMENTS,APP,%APP%)

TASK(CLEAR COMMENTS,USER,%USER%)

TASK(CLEAR COMMENTS,DATATRANSFERMODE,0) ' 0 means clear comments

TASK(CLEAR COMMENTS,SELECTIONORFILE,%TEMPFILE%)

TASK(CLEAR COMMENTS,ENABLETASK,%ENABLETASK%) '1 means execute , others will skip this task

TASK(CLEAR COMMENTS,CHECKLCK,%CHECKLCK%)

'----


< Detail> -


'Should not change below

'----


BEGININFO (%SQLDUMP%)

select %FACTDIMS%,0 as SIGNEDDATA

FROM

( SELECT %FACTDIMS%,0 as SIGNEDDATA FROM TBLFACT%APP% WHERE %SELECTION%

UNION ALL

SELECT %FACTDIMS%,0 as SIGNEDDATA FROM TBLFACTWB%APP% WHERE %SELECTION%

UNION ALL

SELECT %FACTDIMS%,0 as SIGNEDDATA FROM TBLFAC2%APP% WHERE %SELECTION%

) as ZeroTable

group by %FACTDIMS% OPTION(MAXDOP 1)

ENDINFO

Former Member
Not what you were looking for? View more on this topic or Ask a question