on 06-25-2022 8:54 AM
abhishja abhishja0 seconds ago
Hi team,
I can not find https://www.sap.com/documents/2015/08/f8fac683-547c-0010-82c7-eda71af511fa.html as blank..
I need DatamanagerRunPacxkage Import path including Transformation file before running automatically (finish) and see the view status in VBA. Please help me to correct the code asap.
I tried my code but not working
Sub Runpackage()
Dim epm As New FPMXLClient.EPMAddInAutomation
epm.DataManagerRunPackage "Import", "Data Management", "HYPPLAN_SENG_TSG_AGM_BPC LoadFile_FY_122P12_24062022.txt", "GBL_FPADM", "DataFiles\FY22"
End Sub
Please see the below step by step, we need datamanagerRunpackage "Import", "Data Manangment", The file, Transformation File before running Automatically (Finish)....
Thanks,
Abhishek
kindly response asap, Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
let me explain what we need to automate in VBA code.
-- Open Run package - > select Import - > Click Run - > select the file (HYPPLAN_SENG_TSG_AGM_BPC LoadFile_FY_122P12_24062022.txt) from Browse -> click Next > Select the transformation file (HYP PLAN\GBL_HYPPLAN_Trans_CORPACTUAL Category.xls) -> Click each Next - > Click Finish
Screen shot mentioned step by step in process.
the Below code mentioned as per your advise. Please correct if i might be wrong with code.
Sub Runpackage()
Dim epm As New FPMXLClient.EPMAddInAutomation
epm.DataManagerAdvancedRunPackage "System Files\Import.dtsx", "Data Management", "Load external ASCII data in standard format", "Import", "File", "Company (Public)", "0001", "C:\Users\TE276089\Downloads\HYPPLAN_SENG_TSG_AGM_BPC LoadFile_FY_122P12_24062022.txt"
'epm.DataManagerAdvancedCreateLocalResponseFile ""
End Sub
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vadim,
Sorry, i am just correcting First Parameters:- "System Files\Import.dtsx". Please advise
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Kindly response asap Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your reply and support. However i am getting the below error message pop up :-
The below Code: -
Sub Runpackage()
Dim epm As New FPMXLClient.EPMAddInAutomation
epm.DataManagerAdvancedRunPackage "HYPPLAN_SENG_TSG_AGM_BPC LoadFile_FY_122P12_24062022.txt", "Data Management", "Load external ASCII data in Standard format", "Import", "File", "Company (Public)", "0001", "C:\Users\XXXXX\Downloads\HYPPLAN_SENG_TSG_AGM_BPC LoadFile_FY_122P12_24062022.txt"
epm.DataManagerOpenViewStatusDialog
End Sub
My questions :-
First :- while clicking "Import" we have to select the source file and click next select the transformation file in same Import page before clicking Finished (first run option).
Please advise.
Thanks,
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sorry, but what do you mean by first parameter:
"HYPPLAN_SENG_TSG_AGM_BPC LoadFile_FY_122P12_24062022.txt"
???
Has to be DM package chain:
epm.DataManagerAdvancedRunPackage strChain, strPackageCroup, strPackageDesc, strPackage, "Process Chain", strTeam, strUserGroup, strAnswerFileName
epm.DataManagerAdvancedRunPackage "/CPMB/EXPORT_MD_TO_FILE", "Data Management", "Export Master Data to File Service", "Export Master Data to File", "Process Chain", "", "0001", strAnswerFileName
You want to pass prompt parameters to you DM package (2 text parameters).
to create LocalResponseFile
Then use your vba code to generate the same file but replacing file name strings with values you want and saving the file locally.
After the file is prepared use:
Alternative way is to use my code (will perform file generation):
https://blogs.sap.com/2017/06/16/simple-vba-function-to-pass-parameters-to-dm-packages/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.