Retrieving the Destination details of a publication
Hi there,
I have a requirement to retrieve the Destination details from an existing publication and copying that (or setting the same) to a new publication.
Can someone point out the code/APIs that I would need to use for this?
I spent some time going through the methods & props of a publication and could not find anything.
Thanks in advance for your help.
Please ignore my previous request. Actually, what I require is, to set up a publication to burst a report into multiple reports. All this via code.
For this I have set the Dynamic Recipient section with a crystal report template as source doc. I have also mapped the fields from the source doc to send the Publication. i.e. set the Recipient Identifier, Full name and Email.
I have also set up the Personalization section and mapped it appropriately.
Now I want the files to be generated in a destination folder and each file to be named uniquely based on the unique field which is used for bursting (as specified in the Personalization).
So I set the destination for the publication as File System and in the Use Specific Name section, put the following-
%SI_NAME%_%SI_USERFULLNAME%.%EXT%
The publication gets saved appropriately with these details.
However, in the file names, the %SI_USERFULLNAME% is replaced with the user that is running the code instead of the unique ID that is mapped in the publication.
What am I doing wrong?
Part of the code is as below-
// Set destination folder
string destinationQueryString = @"Select * from CI_SYSTEMOBJECTS Where
SI_PARENTID=29 And SI_NAME = 'CrystalEnterprise.DiskUnmanaged'";
InfoObjects destinationObjects = infoStore.Query(destinationQueryString);
schedulingInfo = newPublication.SchedulingInfo;
//schedulingInfo.Destination.Clear();
if (destinationObjects != null && destinationObjects.Count > 0)
StringBuilder destinationPath = new StringBuilder();
InfoObject destinationObject = destinationObjects[1];
DestinationPlugin destinationPlugin = (DestinationPlugin)destinationObject;
DiskUnmanaged diskUnmanaged = (DiskUnmanaged)destinationPlugin;
DestinationOptions destinationOptions = diskUnmanaged.ScheduleOptions;
DiskUnmanagedOptions diskUnmanagedOptions = new DiskUnmanagedOptions(destinationOptions);
destinationPath.Append(@"F:\CeesReportingPOC\GeneratedReports\")
.Append("%SI_NAME%_%SI_USERFULLNAME%_%SI_EMAIL_ADDRESS%.").Append(schedulerInfoEntity.ReportFormat);//.Append(schedulingInfo.)
diskUnmanagedOptions.DestinationFiles.Add(destinationPath.ToString());
schedulingInfo.Destination.SetFromPlugin((DestinationPlugin)destinationObject.PluginInterface);
newPublication.Save();
infoStore.Schedule(newPublicnInfoObjects);
Similar Messages
-
Pronlem in LOP while retrieving the employee details
Hi,
I am new to HR for ABAP developing,
I have a Pronlem in a report for LOP (loss of pay) while retrieving the employee details.
(i.e) while retrieving employee details by individual it shows the correct details.
But, in the group of 10 employess out of 9 doesn't have the LOP and the 1 is having LOP. While retrieving this it shows all the
10 members have LOP. It shows some amount for that 1 person also.
Kindly i need ur help for the above issues.
Waiting for ur valuable replies.Hi swarna,
Herewith i attached my code, would u please suggest me wer shud i make changes.
Rgds,
Karthik
START-OF-SELECTION.
IF P_1 = 'X'.
W_EXT = '.csv'.
ELSE.
W_EXT = 'err.csv'.
PR_PATH = '/obrm/in/asset/'.
ENDIF.
CLEAR:W_PR_FNAME,
W_STR,
W_PATH1,
W_LEN,
W_F6_TMP.
CLEAR:WA_MESSTAB,WA_UP_SUCC,WA_FINAL,WA_FILE.
REFRESH:IT_FINAL, IT_MESSTAB,IT_UP_ERROR,IT_UP_SUCC,ITFILE,ITFILE1 .
W_GO = 'X'.
CALL FUNCTION 'SUBST_GET_FILE_LIST'
EXPORTING
DIRNAME = PR_PATH
FILENM = '*'
TABLES
FILE_LIST = ITFILE
EXCEPTIONS
ACCESS_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE TEXT-102 TYPE C_I.
EXIT.
ENDIF.
LOOP AT ITFILE INTO WA_FILE.
IF WA_FILE-NAME CS W_EXT.
APPEND WA_FILE TO ITFILE1.
CLEAR WA_FILE.
ENDIF.
ENDLOOP.
LOOP AT ITFILE1 INTO WA_FILE.
IF SY-TABIX > 1.
CLEAR IT_FINAL[].
ENDIF.
CONCATENATE PR_PATH WA_FILE-NAME INTO W_PR_FNAME.
OPEN DATASET W_PR_FNAME FOR INPUT IN TEXT MODE ENCODING DEFAULT.
CLEAR : IT_SOURCE[].
DO.
READ DATASET W_PR_FNAME INTO W_STR.
IF SY-SUBRC NE 0.
EXIT.
ENDIF.
SPLIT W_STR AT ';' INTO
WA_FINAL-F1
WA_FINAL-F2
WA_FINAL-F3.
CLEAR WA_SOURCE.
WA_SOURCE-F1 = WA_FINAL-F1.
WA_SOURCE-F2 = WA_FINAL-F2.
WA_SOURCE-F3 = WA_FINAL-F3.
SO_SER-LOW = WA_FINAL-F1.
SO_SER-SIGN = 'I'.
SO_SER-OPTION = 'EQ'.
APPEND SO_SER.
APPEND WA_SOURCE TO IT_SOURCE.
APPEND WA_FINAL TO IT_FINAL.
ENDDO.
CLOSE DATASET W_PR_FNAME.
IF IT_FINAL[] IS INITIAL.
MESSAGE TEXT-E01 TYPE C_I.
EXIT.
ENDIF.
PERFORM MATERIAL_DOCS_GET.
IF SY-SUBRC NE 0.
MESSAGE TEXT-M01 TYPE 'S'.
RETURN.
ENDIF.
DELETE IT_MDOCS WHERE BWART = '102'.
LOOP AT IT_MDOCS INTO WA_MDOCS.
WA_AMT_SUM-EBELN = WA_MDOCS-EBELN.
WA_AMT_SUM-SHKZG = WA_MDOCS-SHKZG.
WA_AMT_SUM-DMBTR = WA_MDOCS-DMBTR.
COLLECT WA_AMT_SUM INTO IT_AMT_SUM.
ENDLOOP.
PERFORM SERIAL_NUMBERS_GET.
IF IT_SRNO[] IS INITIAL.
RETURN.
ENDIF.
ENDLOOP.
CALL SCREEN 100.
END-OF-SELECTION.
IF PR_TEST NE 'X'.
PERFORM DISPLAY_LOG.
ENDIF.
FORM MATERIAL_DOCS_GET .
SELECT MATNR
FROM MARA INTO TABLE IT_MATNR
WHERE MATKL in ('DTH_STB','DTH_STBSC') AND
MTART EQ 'UNBW' AND
LVORM EQ ' '.
IF IT_MATNR IS NOT INITIAL.
LOOP AT IT_MATNR INTO WA_MATNR.
SO_MATNR-SIGN = 'I'.
SO_MATNR-OPTION = 'EQ'.
SO_MATNR-LOW = WA_MATNR-MATNR.
APPEND SO_MATNR.
ENDLOOP.
ELSE.
MESSAGE TEXT-M06 TYPE 'S'.
RETURN.
ENDIF.
SELECT A~OBKNR A~SERNR A~MATNR B~OBKNR B~MBLNR B~MJAHR B~BWART
FROM OBJK AS A INNER JOIN SER03 AS B ON A~OBKNR = B~OBKNR
INTO CORRESPONDING FIELDS OF TABLE IT_SER03
WHERE A~SERNR IN SO_SER AND
A~MATNR IN SO_MATNR AND
B~BWART IN ('101','102','122') and
B~LIEFERANT <> ' '.
IF IT_SER03 IS NOT INITIAL.
SELECT MBLNR MJAHR ZEILE EBELN EBELP LFBNR LFBJA LFPOS SJAHR SMBLN SMBLP BWART SHKZG WAERS MENGE MEINS KUNNR
FROM MSEG INTO CORRESPONDING FIELDS OF TABLE IT_MSEG
FOR ALL ENTRIES IN IT_SER03
WHERE MBLNR = IT_SER03-MBLNR AND
MJAHR = IT_SER03-MJAHR AND
BWART IN ('101','102','122') AND
MATNR IN SO_MATNR AND
DMBTR > 0 .
ENDIF.
IF IT_MSEG IS NOT INITIAL.
SELECT * FROM ZPOVAL_ASSET INTO CORRESPONDING FIELDS OF TABLE IT_PO
FOR ALL ENTRIES IN IT_MSEG
WHERE EBELN = IT_MSEG-EBELN.
SELECT KUNNR REGIO
FROM KNA1 INTO CORRESPONDING FIELDS OF TABLE IT_KNA1
FOR ALL ENTRIES IN IT_MSEG
WHERE KUNNR = IT_MSEG-KUNNR.
ENDIF.
DELETE IT_MSEG WHERE EBELN = '6100000124'.
LOOP AT IT_SER03 INTO WA_SER03.
WA_MDOCS-SERNR = WA_SER03-SERNR.
WA_MDOCS-MATNR = WA_SER03-MATNR.
READ TABLE IT_MSEG INTO WA_MSEG1 WITH KEY MBLNR = WA_SER03-MBLNR.
IF SY-SUBRC = 0.
MOVE-CORRESPONDING WA_MSEG1 TO WA_MDOCS.
READ TABLE IT_PO INTO WA_PO WITH KEY EBELN = WA_MSEG1-EBELN.
IF SY-SUBRC = 0.
WA_MDOCS-DMBTR = WA_PO-DMBTR.
ENDIF.
READ TABLE IT_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_MSEG1-KUNNR.
IF SY-SUBRC = 0.
WA_MDOCS-KUNNR = WA_KNA1-KUNNR.
WA_MDOCS-REGIO = WA_KNA1-REGIO.
ENDIF.
APPEND WA_MDOCS TO IT_MDOCS.
ENDIF.
ENDLOOP.
SORT IT_MDOCS BY SERNR MJAHR MBLNR DESCENDING.
DELETE ADJACENT DUPLICATES FROM IT_MDOCS COMPARING SERNR.
IF SY-SUBRC EQ 0.
LOOP AT IT_ZFT_POSTED_MDOCS1 INTO WA_ZFT_POSTED_MDOCS1.
CONCATENATE TEXT-M09 WA_ZFT_POSTED_MDOCS1-MBLNR TEXT-M10 INTO WA_LOG-MSG SEPARATED BY SPACE.
WRITE: /5 WA_LOG-MSG.
DELETE IT_MDOCS WHERE MBLNR EQ WA_ZFT_POSTED_MDOCS1-MBLNR.
ENDLOOP.
ENDIF.
CLEAR WA_LOG.
REFRESH IT_LOG[].
IF IT_MDOCS[] IS INITIAL.
SY-SUBRC = 4.
RETURN.
ENDIF.
*copy material docs for dumping in ZFT_POSTED_ASSET
IT_ZFT_POSTED_ASSET[] = IT_MDOCS[].
ENDFORM. " material_docs_get
FORM DISPLAY_LOG .
IF IT_LOG[] IS INITIAL.
RETURN.
ENDIF.
LOOP AT IT_LOG INTO WA_LOG.
WRITE: /5 WA_LOG-MSG.
ENDLOOP.
ENDFORM. " display_log
FORM SERIAL_NUMBERS_GET.
DATA: WA_SRNO1 TYPE TY_SRNO.
SELECT MBLNR MJAHR BUDAT
FROM MKPF INTO CORRESPONDING FIELDS OF TABLE IT_MKPF
FOR ALL ENTRIES IN IT_MDOCS
WHERE MBLNR = IT_MDOCS-MBLNR AND
MJAHR = IT_MDOCS-MJAHR.
LOOP AT IT_MDOCS INTO WA_MDOCS.
MOVE-CORRESPONDING WA_MDOCS TO WA_SRNO.
READ TABLE IT_MKPF INTO WA_MKPF WITH KEY MBLNR = WA_MDOCS-MBLNR MJAHR = WA_MDOCS-MJAHR.
IF SY-SUBRC = 0.
WA_SRNO-BUDAT = WA_MKPF-BUDAT.
ENDIF.
APPEND WA_SRNO TO IT_SRNO.
ENDLOOP.
LOOP AT IT_SRNO INTO WA_SRNO WHERE BWART EQ '101'.
READ TABLE IT_SRNO INTO WA_SRNO1 WITH KEY SERNR = WA_SRNO-SERNR
BWART = '122'.
IF SY-SUBRC EQ 0 AND WA_SRNO-MBLNR LT WA_SRNO1-MBLNR.
DELETE IT_SRNO.
ENDIF.
ENDLOOP.
DELETE IT_SRNO WHERE BWART = '122'.
DESCRIBE TABLE IT_SRNO LINES W_COUNT.
SORT IT_MDOCS BY SERNR.
SORT IT_SRNO BY SERNR.
SORT IT_FINAL BY F1.
LOOP AT IT_SRNO.
READ TABLE IT_MDOCS WITH KEY SERNR = IT_SRNO-SERNR.
IF SY-SUBRC = 0 .
IT_SRNO-VALUE = IT_MDOCS-DMBTR.
IT_SRNO-EBELN = IT_MDOCS-EBELN.
READ TABLE IT_FINAL WITH KEY F1 = IT_SRNO-SERNR.
IT_SRNO-CAPDT = IT_FINAL-F2.
CONCATENATE IT_FINAL-F26(4) IT_FINAL-F20(2) IT_FINAL-F2+3(2) INTO IT_SRNO-CAPDT.
CLEAR KNA1.
SELECT SINGLE * FROM KNA1 WHERE KUNNR = IT_FINAL-F3.
IF SY-SUBRC = 0 .
IT_SRNO-KUNNR = IT_FINAL-F2.
IT_SRNO-REGIO = KNA1-REGIO.
ENDIF.
SELECT SINGLE * FROM ZFT_100_ASSET WHERE SERNR = IT_SRNO-SERNR.
IF SY-SUBRC = 0.
IT_SRNO-VALUE = 0 .
ENDIF.
MODIFY IT_SRNO.
MOVE-CORRESPONDING IT_SRNO TO IT_ASSET .
IT_ASSET-ASSET_ACT_DT = IT_SRNO-CAPDT.
CONCATENATE 'A' W_FREENUM2 INTO IT_ASSET-ASSET_ID.
COLLECT IT_ASSET.
MOVE-CORRESPONDING IT_ASSET TO IT_ASSET_POST.
COLLECT IT_ASSET_POST.
ENDIF.
ENDLOOP .
SORT IT_ASSET_POST BY ASSET_ID ASSET_ACT_DT REGIO.
IF PR_TEST NE 'X'.
LOOP AT IT_ASSET_POST.
CLEAR W_FREENUM2.
SELECT SINGLE * FROM ZFT_STATE_COST WHERE REGIO = IT_ASSET_POST-REGIO AND TYPE = 'E' .
IF SY-SUBRC <> 0 .
MESSAGE X899(FI) WITH 'No cost center for the region'.
ENDIF.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = '01'
OBJECT = C_NRANGE1
IMPORTING
NUMBER = W_FREENUM2
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8.
IF SY-SUBRC = 0.
ENDIF.
CONCATENATE 'A' W_FREENUM2 INTO IT_ASSET_POST-ASSET_ID.
IT_ASSET_POST-KOSTL = ZFT_STATE_COST-KOSTL.
MODIFY IT_ASSET_POST.
CLEAR ZFT_100_ASSET.
ENDLOOP.
ENDIF.
SORT IT_ASSET_POST BY ASSET_ACT_DT REGIO.
SORT IT_ASSET BY ASSET_ACT_DT REGIO.
LOOP AT IT_ASSET.
READ TABLE IT_ASSET_POST WITH KEY ASSET_ACT_DT = IT_ASSET-ASSET_ACT_DT REGIO = IT_ASSET-REGIO MATNR = IT_ASSET-MATNR.
IF SY-SUBRC = 0 .
IT_ASSET-ASSET_ID = IT_ASSET_POST-ASSET_ID .
IF IT_ASSET-VALUE = 0.
IT_ASSET-TEXT = 'Asset Already Created'.
ELSE.
ENDIF.
MODIFY IT_ASSET.
ENDIF.
ENDLOOP.
ENDFORM. " serial_numbers_get
FORM ASSET_CREATE .
DATA :LW_CNT TYPE I.
LOOP AT IT_ASSET_POST WHERE VALUE > 0.
CLEAR: IT_ASSET1[],LW_CNT.
IT_ASSET1[] = IT_ASSET[].
DELETE IT_ASSET1 WHERE ASSET_ID <> IT_ASSET_POST-ASSET_ID.
DESCRIBE TABLE IT_ASSET1 LINES LW_CNT.
MOVE IT_ASSET_POST-ASSET_ID TO WA_ANLA-ANLN1.
CALL FUNCTION 'ASSET_EXISTENCE_CHECK'
EXPORTING
I_ANLN1 = WA_ANLA-ANLN1
I_BUKRS = '5100'
EXCEPTIONS
ANLAGE_DEAKTIV = 1
ANLAGE_GELOESCHT = 2
ANLAGE_GESPERRT = 3
ANLAGE_NOT_FOUND = 4
ANLAGE_IST_INVM = 5
OTHERS = 6.
IF SY-SUBRC EQ 0.
CONCATENATE TEXT-M02 IT_ASSET_POST-ASSET_ID TEXT-M05 INTO W_MSG SEPARATED BY SPACE.
WA_LOG-MSG = W_MSG.
APPEND WA_LOG TO IT_LOG.
CLEAR: WA_LOG, W_MSG.
CONTINUE.
ENDIF.
IF SY-SUBRC <> 0.
ENDIF.
WA_ANLA-BUKRS = '5100'. "company code
IF IT_ASSET_POST-MATNR = '000000000030000452'.
WA_ANLA-ANLKL = '00009021'. "asset class for STB
ELSEIF IT_ASSET_POST-MATNR = '000000000030000700'.
WA_ANLA-ANLKL = '00009033'. "asset class for HD STB Box
ENDIF.
WA_ANLA-ANLN1 = IT_ASSET_POST-ASSET_ID. "wa_srno-sernr.
CONCATENATE 'STB - ' IT_ASSET_POST-ASSET_ID INTO WA_ANLA-TXT50 SEPARATED BY SPACE.
WA_ANLA-AKTIV = IT_ASSET_POST-ASSET_ACT_DT.
WA_ANLZ-KOSTL = IT_ASSET_POST-KOSTL . "'1711121'.
WA_ANLA-MENGE = LW_CNT.
WA_ANLA-MEINS = 'EA'.
CALL FUNCTION 'CREATE_ASSET'
EXPORTING
I_ANLA = WA_ANLA
I_ANLV =
I_ANLZ = WA_ANLZ
I_DARK = 'X'
I_NASSETS_FIX = ' '
I_CALLED_BY_PURCHASE_ORDER = ' '
TABLES
T_ASSETS = IT_ASSETS
EXCEPTIONS
MISSING_COMPANY_CODE = 1
MISSING_ASSET_CLASS = 2
MISSING_ASSET_MAINNUMBER = 3
INTERNAL_ERROR = 4
OTHERS = 5
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
IF SY-SUBRC EQ 0.
COMMIT WORK.
SELECT SINGLE * FROM ANLB WHERE BUKRS = '5100' AND ANLN1 = WA_ANLA-ANLN1 AND AFASL = 'Z001'.
IF SY-SUBRC = 0 .
ANLB-AFABG = '20071201'.
MODIFY ANLB.
COMMIT WORK.
ENDIF.
SELECT SINGLE * FROM ANLB WHERE BUKRS = '5100' AND ANLN1 = WA_ANLA-ANLN1 AND AFASL = 'IN14'.
IF SY-SUBRC = 0 .
ANLB-AFABG = '20071201'.
MODIFY ANLB.
COMMIT WORK.
ENDIF. -
Retrieving the destination location of output for a specific instance
Hi,
I have reports that run daily and create output PDFs in Enterprise location. I am now trying to access these output PDFs using a C# program using SDK. I see that when i query for PDF instances, the query does not give me SI_SCHEDULEINFO. How do I access the destination location information for all output instances?
I am using CRS 2008. Thanks for the help.
Bin.I just found it. It is in the SI_FILES property. Select SI_FILES in the query and infoobject.files would give the file information you need.
-
Script to get the user details by running a view from powershell
Hi,
I have a use-case of getting the list of users, who got modified in last one week or so. There was no direct way of getting the results as office-365 doesn't have the option. As i posted in a forum they suggested to use view based for retrieving
the user details. I was able to get some user details through UI. When i asked for the option of getting it from powershell they suggested to post in this forum. Link on the question posted in forum is
community.office365.com/en-us/forums/148/p/212305/646170.aspx#646170 your help is appreciated. Thanks in AdvanceHi Sam,
My list of servers are exported from CMDB data base and filter criteria i have used is role,status and first few characters of the server name.
$CIlist = Import-Csv C:\Scripts\DiskSpace\Servers_CI.csv
$diskspace = @()
$CIlist | where {($_.Name -like '*XXXXXXXX*') -and ($_.Role -like '*XXXXXXXXXX*') -and ($_.Status -like '*XXXXXXXXXXXXXX*') } |
select Name | FT
# This part gives the list of servers.
# below script gives the hard disk details of servers from a list
$comp= Get-Content "C:\Scripts\DiskSpace\systems.txt"
$diskvalue = @()
foreach($pc in $comp)
if (test-connection -CN $pc -Count 1 -erroraction silentlycontinue)
$diskvalue += Get-WmiObject -Class Win32_logicaldisk -ComputerName $pc -Filter DriveType=3 |
Select SystemName , DeviceID , @{Name=”size(GB)”;Expression={“{0:N1}” -f($_.size/1gb)}}, @{Name=”freespace(GB)”;Expression={“{0:N1}” -f($_.freespace/1gb)}}
$diskvalue | Export-Csv C:\Scripts\DiskSpace\DiskReport.csv -NoTypeInformation
else
"$pc `t offline" | Out-file C:\Scripts\DiskSpace\offlinesystems.csv -encoding ASCII -append
Is there any option to pass the result of first part to second part without exporting to a csv ot txt. or club this both together ??
ToJo -
How to retrieve the system used in an iview?
hello,
i'm currently having trouble retrieving the proper attribute of an iview to retrieve the system used by it.
it seem like the strings identifying the system in the iview differ in some iviews.
using either:
myIView.getAttribute(IAttriView.PORTAL_SYSTEM)
or
myContext.getAttributes("").get("System").get().toString()
produce errors.
while get("System") sometimes provides the correct system alias the attribute is none existant for other iviews where the string would be "Systemalias".
IAttriView.PORTAL_SYSTEM doesn't seem to work at all.
i did implement fail safe code if the attribute isn't present, however i don't know how to retrieve the system attribute without doing a case switch or something similar for all the different strings, which i would prefer not to do.
also, is there an easy way to retrieve all iviews which use a specific system without parsing the whole pcd and checking the attributes?Prerequisite : Create the System Alias for the systems used in the application.
Use the below code to retrieve the system details:
HashMap mapattr = new HashMap();
HashMap map = new HashMap();
IUser user = WDClientUser.getCurrentUser().getSAPUser();
IPrincipal principal = (IPrincipal)user;
ArrayList list = UMFactory.getSystemLandscapeWrappers();
ISystemLandscapeWrapper systemLandscape = (ISystemLandscapeWrapper)list.get(0);
//Portal System ALias name
ISystemLandscapeObject landScapeObject = systemLandscape.getSystemByAlias("<system alias name>");
IUserMappingData userMapping = (IUserMappingData) UMFactory.getUserMapping().getUserMappingData(landScapeObject,principal);
userMapping.enrich(map);
mappedUserId = map.get("user").toString(); // String "UserId"
mappedPassword = map.get("mappedpassword").toString(); //String "Password"
catch(Exception e)
e.printStackTrace();
wdComponentAPI.getMessageManager().reportException("Exception during retrieving the User Details - " + e.getMessage(),true);
Thanks & Regards,
Amar Bhagat Challa -
As I re installed OS after formatting, I've lost the registration details of FCS 6 X. Based on serial key(bar code key), can I retrieve my registration details?
Ask this question in FCP Studio forum.
-
Exception when retrieving the WS invoker using the execution destination
We got exception when we had tried to call WS in Web Dynpro for Java (NWDS 7.1 SP 5):
"Exception when retrieving the WS invoker using the execution destination".
We imported model as Adaptive Web Service Model with destination and
implemented Component Controller using document
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e
We used:
1. Netweaver 7.1 CE
2. Backend R/3 system with RFC wrapped by Web Service without autorization on R/3
3. In our CE system we created two logical destinations (metadata and execution) to R/3 Web ServiceHi Yuriy,
It would be great if you can say how exactly you solved the problem as i am encountering the same error.
Regards,
Tekumalla -
How to retrieve the path and the name of the destination file in a link annotation
Hi,
In C++:
How to retrieve the path and the name of the destination file in a link annotation and a Launch action.
Sample of my code:
//Determine if the annotation is a Link annotation
if (PDAnnotGetSubtype(annot) == ASAtomFromString("Link")) {
//Determine if the action is a Launch action
if (PDActionGetSubtype(action) == ASAtomFromString("Launch")) {
// What is the method ?
Regards
David GIn general, get the annotation as a Cos object and examine it, in
accordance with the PDF Reference.
Aandi Inston -
Hi All,
We have two BizTalk nodes, from both nodes we are getting this error from today morning, nothings has changed from application end.
Error : The Messaging Engine failed to retrieve the configuration from the database. Details:"c0002a1f".
Warning : Cannot perform encryption or decryption because the secret is not available from the master secret server. See the event log for related errors.
Can you please suggest step where need to check.
I don't have any knowledge where the master secret file saved during installation.
Regards
SumanMost of the time, master secret server is not backup frequency. Mostly its is done during the time when the servers have been setup. If anything changed between the time the master secret has been backed up and now, then you don't have the correct version
of master secret file backed up. This is why its is always a good practice to backup the master secret periodically and also try restoring in any of the test server to verify the backed up file is correct and also to make us conformable in restore
process.
You have one option now, try restoring with the file what you have (4 years old). If the backed version is not the correct version, then only option is to reconfigure the BizTalk.
MSDN: How to Restore the Master Secret
You cannot backup the master secret file now as ii could have been corrupted. That the reason we're suggesting to restore the corrupted master secret file. For your future reference, following the steps as suggested in this article to take backup of master
secret.
MSDN: How to Back Up the Master Secret
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
SAP Cloud Application Studio How to retrieve the details based on OVS in Product ID
Hi Experts,
I have small requirements in AdvanceListPanel. I have custom BO as mention below,
businessObject Demo {
element ID : ID;
node Sporoduct [0,n] {
element P_ID : ProductID;
element P_DES : SHORT_Description;
element P_QTY : Quantity;
element P_NET : Amount;
I have attached the OVS on Product ID (P_ID) element.
I want to auto-fill the details under the AdvanceListPanel ( Product Desc , Product Net value ( Price) )
1) How to get the details of Product ( Prod Descr, Product Price etc ).
Please anyone have idea about this share your thoughts.
Many Thanks,
MithunHi, Mithun
What you want is to auto-fill the related details when you select a product from your OVS.
That means you have to write your codes in Event After Modify.
We normally use QueryByElements or some other query options given for a particular standard BO.
It would be like that.
var query=Product.QueryByElements;
var selParams=query.CreateSelectionParams();
selParams.Add(query.ProductID ,"I","EQ",this.P_ID );
var result=query.Execute(selParams);
for(var product in result){
this.P_DES =product.Description;
What I have just written is just a sample code. You have to find the exact name of the attributes of a standard BO in Repository Explorer.
Hope this helps,
Fred. -
Error could not retrieve the virtual desktop template details
Dear Sir&Madam
I have windows server 2012 R2 DataCenter and I installed Hyper-v , after that i create Template , then I make Preper Shutdown (in C:\windows\System32\SysPrep\SysPrep.exe) Run As Administrator, then choose Generalized , Then Shutdown ,when I make a collection
I got this error (error could not retrieve the virtual desktop template ) please is there any solution for this issue it is very Urgent !!!!!!!!!!!!
Best regards
Rawa ZanganaHi,
Thank you for posting in Windows Server Forum.
From the error description it suspects that there is some configuration issue. Also agree with Jeremy, please check whether it has 1024 MB of memory. Then suggest you to recheck the steps with below link and then verify the result.
You can run the following command line:
Windows 7: %windir%\system32\sysprep\sysprep.exe /generalize /oobe /shutdown
Windows 8: %windir%\system32\sysprep\sysprep.exe /generalize /oobe /shutdown /mode:vm
Deploying VDI for RDS 2012 / 2012R2 – Part II – Publishing a Windows 7 Pooled Desktop
Hope it helps!
Thanks.
Dharmesh Solanki
TechNet Community Support -
How to retrieve the values from a Transient View Object
Hi Experts,
I am using Jdevelpoer11.1.1.5.0. I created one Transient view object with attributes EmpId,Salary.
In Backing Bean i will create rows for that view object and display it in the form of <af:Table> like Empid, Salary and an Update Link.
Now my problem is i want to update the salary of the particular EmpId. For Example if the EmpId is 100 and salary is 10000 now i want to increase the salary to 20000 and if i click on the update button; i want to retrieve the particular employee details in my backing bean. How can i acheive this?
Thanks in advance.A better approach would be to programmatically populate rows in the <VO>Impl.java by overriding the executeQueryForCollection(0 as specified here -
http://adfpractice-fedor.blogspot.in/2011/01/adf-bc-programmatically-populated-vo.html
You can write the logic to update the salary in an AM method then on click of Update or in the getter of Salry field if logic is valid for all fields... -
How to get the destination path in an photoshop sdk export plugin when using a batch action?
Hello,
I've written an exporter plugin (not save-as) that exports a given file to a custom format.
I was able to open a file selector dialog and choose a path that is then transported to the saving location.
Now my problem is: Another intended use is batch exporting many files. The user records an action with the export step and then applies a batch on it.
The PS batch window allows you to select the destination to be a directory where the exporter should write the data. Fine.
Now how do I get this path? When running in batch mode the silent flag is set for my plugin so I do not spawn a file selector dialog to annoy the user.
But I am also unable to obtain the path which was selected by the user in the batch window.
The SDK automation plugin Getter has some code to retrieve the path of the file and even that fails as it cannot obtain anything.
PropertyUtils.h has some PIGetWorkPathIndex and PIGetPathName functions but I always get 0 when asking PIGetNumberPaths, and get -1 with PIGetWorkPathIndex.
I would be thankful if somebody could hint me how I can retrieve directories.
It even seems impossible for me to get the path where the file is actually saved. The filter plugin called Propertizer utilizes a function called PIGetDocumentName but this only outputs the file name, not the full path.
(Just to be sure: The file on which the tests run is already saved to disk, if that matters)
Another fun part is: When I record an export step, what is the directory I am exporting into?Ok, after lots of reading the sdk sample outbound I've realized that or plugin is broken.
When recording an action the outbound plugin stores the current path to gAliasHandle which is then recorded as a scripting parameter. Now when I execute the action I get the alias handle.
However how is this supposed to work with an export plugin and batch processing with a "destination" set to a target? Is this even possible or do I need to double click the export step in the action and "reset" the location even if that causes the entire exporter to run again? -
Function module to retrieve the account number linked to an SD invoice item
Hi all,
I should retrieve the gl account number linked to a certain SD invoice item. The
program starts from VBRK and VBRP data. Is there a function module which
enables to get it starting from these header lines? I already used the function
module: RV_INVOICE_ACCOUNT_DETERM ( release: 4.0 ), but in some cases it
doesn't seem to function properly ( the export table TKOMV doesn't contain a
value for the SAKN1 field ). For the invoices for which the function isn't able to
retrieve the account number, the standard accounting analysis functionality returns
the following message: account determination carried out via KOFI type. So I'm
searching for a function module that's able to retrieve the account number in these
cases also.
Thanks in advance.
Adriano.Dear Adriano,
Try with Function Module 'SD_DETERMINE_ACCOUNT_INVOICE '.
Additional Info:
BAPIs related salesorder:
BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
BAPI_SALESORDER_CONFIRMDELVRY Sales Order: Confirmation of Delivery; Document Flow Update
BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
BAPI_SALESORDER_GETLIST Sales order: List of all Orders for Customer
BAPI_SALESORDER_GETSTATUS Sales Order: Display Status
BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
FM:
MB_ADD_PURCHASE_ORDER_QUANTITY (Reading and adding open purchase order quantities)
SD_SALES_ORDER_STATUS_WWW for complete details including the delivery information.
Hope this will help.
Regards,
Naveen. -
Description:
A specific group of users/customers (using Windows7 OS with IE and FireFox web browsers) are facing problems with retrieving the applet File, after they upgraded the JRE on the system(PC) to JRE 1.7.0_25-b17 from JRE version 1.6.0_29-b11.
With JRE 1.7.0_25-b17 it is noticed that when the Java plugin requests for the applet File; it sends a request to the Domain Controller of the user, which causes a delay of 2 to 5 minutes and sometimes hangs. The problem occurs consistently.
The current temporary workaround for this group of users is to use JRE version 1.6.0_29-b11.
Problem analysis:
To investigate the problem the below steps were executed:
1) Collected the Java console outputbelow details from the user's system. (The complete output is not posted due to lengthy content, though can be added further to this post if required.)
(a) Works fine with JRE version 1.6.0_29-b11. Kindly refer to Java console output in the code ‘section A’ towards the end of this post.
(b) The problem occurs with problem with JRE version 1.7.0_25-b17. Kindly refer to Java console output in the code ‘section B’ towards the end of this post. The step where the problem is observed, is indicated as(##<comment>##).
2) The network settings in the user's browser was checked. Internet Options > Connections > LAN setting
The configured option is 'Use automatic configuration script' and the value is http://www.userAppX.com/proxy.pac
This configuration remains the same irrespective of the JRE version in use.
3) The network settings in the Java Control Panel was checked.
The used/selected option is "Use browser settings", although values for 'Use proxy server' and 'use automatic proxy configuration script' are filled-in as 'user-proxy.com' and 'http://www.userAppX.com/proxy.pac' respectively.
This configuration remains the same irrespective of the JRE version in use.
4) The proxy PAC file was checked and debugging was done for the request 'https://myAppletHost.com/download/...'. The FindProxyForUrl function (including the conditions defined in it, for the hostname and domain checks) returns PROXY user-proxy.com:80
5) The user also tried the below
a. Changed the option in the network settings in the browser to 'Proxy server' with Address 'user-proxy.com' and Port '80'
b. Restarted the browser.
c. Tried with Java Plug-in 1.6.0_29, JRE version 1.6.0_29-b11. There was no problem and no request to the Domain Controller of the user.
d. Tried with Java Plug-in 10.40.2.43, JRE version 1.7.0_40-b43. The problem occurs with the delay and a request to the Domain Controller of the user is observed.
Kindly refer to Java console output in the code ‘section C’ towards the end of this post.
6) The user also tried setting the below property in the Java Control panel; restarted the browser, and try with JRE 1.7.0_40-b43. The problem stil persists.
-Djava.net.preferIPv4Stack=true
7) The Global Policy Management of the Domain Controller was verified by the user. It has GPO for proxy setting but nothing related to Java security.
Questions:
The problem seems be specific to a particular (user) environment setup, and the user faces the problem when using JRE 1.7.
We would like to know if the issue is in the (user) environment setup or in JRE 1.7.
Could you please help with information/ideas/suggestions to identify the root cause and solution for this problem?
Section A:
Java Plug-in 1.6.0_29
Using JRE version 1.6.0_29-b11 Java HotSpot(TM) Client VM
User home directory = C:\Users\userA
basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-b1bb5056c5b0e83f=2; Path=/"
network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-b1bb5056c5b0e83f=2; Path=/"
security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Loading certificates from Internet Explorer ROOT certificate store
security: Loaded certificates from Internet Explorer ROOT certificate store
security: Checking if certificate is in Deployment denied certificate store
network: Connecting https://myAppletHost.com/download/myApplet.jar with cookie "JSESSIONID=0000IK4bEMoqXH10zsl88rwvoRI:175oe9tjd; BCSI-CS-b1bb5056c5b0e83f=2"
network: Downloading resource: https://myAppletHost.com/download/myApplet.jar
Content-Length: 403.293
Content-Encoding: null
Dump system properties ...
https.protocols = TLSv1,SSLv3
java.vm.info = mixed mode, sharing
java.vm.name = Java HotSpot(TM) Client VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Sun Microsystems Inc.
java.vm.specification.version = 1.0
java.vm.vendor = Sun Microsystems Inc.
java.vm.version = 20.4-b02
javaplugin.nodotversion = 160_29
javaplugin.version = 1.6.0_29
javaplugin.vm.options =
os.arch = x86
os.name = Windows 7
os.version = 6.1
trustProxy = true
deployment.proxy.auto.config.url = http://www.userAppX.com/proxy.pac
deployment.proxy.bypass.local = false
deployment.proxy.http.host = user-proxy.com
deployment.proxy.http.port = 80
deployment.proxy.override.hosts =
deployment.proxy.same = false
deployment.proxy.type = 3
deployment.security.SSLv2Hello = false
deployment.security.SSLv3 = true
deployment.security.TLSv1 = true
deployment.security.mixcode = ENABLE
Section B:
Java Plug-in 10.25.2.17
Using JRE version 1.7.0_25-b17 Java HotSpot(TM) Client VM
User home directory = C:\Users\userA
basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@12adac5
basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
(##THE ABOVE REQUEST CAUSES THE DELAY OR HANGS##)
network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
security: Loading certificates from Deployment session certificate store
security: Loaded certificates from Deployment session certificate store
security: Loading certificates from Internet Explorer ROOT certificate store
security: Loaded certificates from Internet Explorer ROOT certificate store
network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-2d4ce94a2ae7b460=2; Path=/"
network: Connecting https://myAppletHost.com/download/myApplet.jar with cookie "JSESSIONID=0000UQuXWY5tjxjpwcKHlfJKe_8:175oe9j45; BCSI-CS-2d4ce94a2ae7b460=2"
network: ResponseCode for https://myAppletHost.com/download/myApplet.jar : 200
network: Encoding for https://myAppletHost.com/download/myApplet.jar : null
network: Server response: (length: -1, lastModified: Thu Feb xx yy:yy:yy CET 2013, downloadVersion: null, mimeType: text/plain)
network: Downloading resource: https://myAppletHost.com/download/myApplet.jar
Content-Length: -1
Content-Encoding: null
Section C:
Java Plug-in 10.40.2.43
Using JRE version 1.7.0_40-b43 Java HotSpot(TM) Client VM
User home directory = C:\Users\userA
basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-1d67c8b6508ca09c=2; Path=/"
network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
(##THE ABOVE REQUEST CAUSES THE DELAY OR HANGS##)
network: Checking for update at: https://javadl-esd-secure.oracle.com/update/blacklist
network: Checking for update at: https://javadl-esd-secure.oracle.com/update/blacklisted.certs
network: Checking for update at: https://javadl-esd-secure.oracle.com/update/baseline.version
network: Connecting https://javadl-esd-secure.oracle.com/update/blacklist with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
network: Connecting https://javadl-esd-secure.oracle.com/update/baseline.version with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
network: Connecting https://javadl-esd-secure.oracle.com/update/blacklisted.certs with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre7\lib\security\cacerts
Dump system properties ...
https.protocols = TLSv1,SSLv3
java.vm.info = mixed mode, sharing
java.vm.name = Java HotSpot(TM) Client VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.7
java.vm.vendor = Oracle Corporation
java.vm.version = 24.0-b56
javaplugin.nodotversion = 10402
javaplugin.version = 10.40.2.43
os.arch = x86
os.name = Windows 7
os.version = 6.1
trustProxy = true
active.deployment.proxy.auto.config.url = http://www.userAppX.com/proxy.pac
active.deployment.proxy.bypass.local = false
active.deployment.proxy.http.host = user-proxy.com
active.deployment.proxy.http.port = 80
active.deployment.proxy.same = false
active.deployment.proxy.type = 3
deployment.browser.path = C:\Program Files (x86)\Internet Explorer\iexplore.exe
deployment.proxy.auto.config.url = http://www.userAppX.com/proxy.pac
deployment.proxy.bypass.local = false
deployment.proxy.http.host = user-proxy.com
deployment.proxy.http.port = 80
deployment.proxy.override.hosts =
deployment.proxy.same = false
deployment.proxy.type = 3
deployment.security.SSLv2Hello = false
deployment.security.SSLv3 = true
deployment.security.TLSv1 = true
deployment.security.TLSv1.1 = false
deployment.security.TLSv1.2 = false
deployment.security.authenticator = true
deployment.security.disable = false
deployment.security.level = HIGH
deployment.security.mixcode = ENABLE
PS:
Since the JRE 1.7.0_25-b17 update, it is noticed that when the Java plugin requests for the applet File; it sends a request to the Domain Controller of the user, which causes a delay of 2 to 5 minutes and sometimes hangs.
The problem occurs consistently, and also with JRE 1.7.0_45-b18.
Java Plug-in 10.45.2.18
Using JRE version 1.7.0_45-b18 Java HotSpot(TM) Client VM
User home directory = C:\Users\userA
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
cache: Initialize resource manager: com.sun.deploy.cache.ResourceProviderImpl@134a33d
basic: Added progress listener: sun.plugin.util.ProgressMonitorAdapter@1971f66
basic: Plugin2ClassLoader.addURL parent called for https://myAppletHost.com/download/myApplet.jar
network: Connecting https://myAppletHost.com/download/myApplet.jar with proxy=HTTP @ user-proxy.com/194.xxx.xx.xx:80
network: Server https://myAppletHost.com/download/myApplet.jar requesting to set-cookie with "BCSI-CS-f797d4d262467220=2; Path=/"
network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
network: Connecting http://10.x.x.xx:53/ with proxy=DIRECT
(##THE ABOVE REQUEST CAUSES THE DELAY AND SOMETIMES HANGS##)My organization is experiencing very similar problems. We have resolved it through several steps.
We upgraded the client to Java 8 and we saw in the console that the hanging connection with the Domain Controller no longer occurs. This may be all that is necessary for your environment as well.
Maybe you are looking for
-
Run multiple reports from PL/SQL
I am planning to run reports from a PL/SQL batch program. My requirement is i need to generate multiple(around 50) reports with only a difference in one numeric parameter which will go from 1 to 50. I am planning to invoke the report inside a loop wh
-
Excel charts, embedded in Word 2007, strange appearance
I make charts in Excel with shapes, text, varying transparency, and layers. I then embed these charts (Paste Special>as Excel objects) into a Word document. When I convert the Word document to a pdf (Acrobat 8) the shapes, layers, line types and wei
-
How do you get EPMA to work?
Good day All I have a weird issue here, I have followed the instructions provided by the link on my VM (2008 R2): http://docs.oracle.com/cd/E17236_01/epm.1112/epm_hfm_rapid_deploy_1112200/epm_hfm_rapid_deploy_1112200.html#rapid_deployment_211 Once th
-
Where is the Edit Develop Settings option???
Hi all I am doing some study for my Photoshop ACE exam with the help of a study guide (ACE Exam Aid). One of the questions it asks is: You have saved the current image settings as a preset in Camera Raw and want to apply it in part or whole to select
-
Upgraded from Captivate 6 to 7
I have Adobe Technical Communications Suite 6. I understand as there is an issue with Captivate 6. I was told that I should be able to download v7 as a free trial and use my Captivate 6 license (or Adobe Technical Communications Suite license) to act