How to get worksheet IDs
I want to get the worksheet IDs for a workbook. I know the ID will show up in EUL5_BATCH_SHEETS and EUL5_QPP_STATS, but if a sheet has never been scheduled or "run", it will not be in those 2 tables.
I am creating a portlet to access workbooks/worksheets and have the workbook and worksheet IDs stored in a separate table. If I could query the eul or some other Disco table, maintenance would be simplified. One thought is that the info I need is stored in EUL5_DOCUMENTS.DOC_DOCUMENT, but I have not had success "decoding" that column.
Thanks in advance,
-D-
My client didn't like the Discoverer Workbook portlet (their biggest complaing was when a worksheet was opened, the list of worksheets normally seen in Viewer was missing), so I created one with a similar look and feel that creates HTML links like:
http://<server>/discoverer/viewer/?cn=<connection>&wbk=<workbookID>&wsk=<worksheetID>The reports that are being shown are public reports, and use a public connection. I can get the workbook id from EUL5_DOCUMENTS.DOC_DEVELOPER_KEY, but I am not certain where/how to get the worksheet IDs.
In order to get something into the users hands for evaluation, I created a table that holds the IDs and other information I want. To get the worksheet IDs, I checked the worksheet properties.
But, now I have a table to maintain. Ideally, I would like to drive the link information from the Disco tables, but have not had luck getting the sheet ID.
Similar Messages
-
How to get Worksheet Description from SQL
Hi,
Can any one help me out. How to get Workbook and Worksheet Description from SQL. I have entered these descriptions from Discoverer Plus.
Thanks in advance.check this !!!! at least it a starting point
Thread: Where in the EUL schema can I find metadata on worksheets
I followed this steps:
Use the following steps to get the Trigger Working:
1. Login as EUL owner EUL10
Create a test table
CREATE TABLE eul10.TRIG_TAB
ACC_DATE DATE,
sso_name varchar2(100)
2. Create a function under the eul schema owner: eul_trigger$post_login
Do not pass any argument to the function.
Return a number from function.
CREATE OR REPLACE FUNCTION EUL10.EUL_TRIGGER$POST_LOGIN
RETURN NUMBER AS
BEGIN
insert into EUL10.TRIG_TAB(acc_date) values(sysdate);
commit;
RETURN 0;
END;
3. Login with Discoverer Administrator to EUL=EUL10.
4. Check the Menu > Tools > Default EUL.
Make sure this is set to EUL10
If not then change the EUL10 and restart Discoverer Administrator.
5. Now Register the trigger in Discoverer Administrator
Menu >Tools > Register PL/SQL Function ...
6. Click import
7. Select the trigger EUL10.eul_trigger$post_login
|8. Make sure the display name is eul_trigger$post_login (MUST BE lowercase or it will not work)
Function name must be in uppercase: EUL_TRIGGER$POST_LOGIN
9. Make sure the the return type is number and that no arguments get passed.
10. Validate the Function by clicking on the Validate button.
11. Click ok
12. Connect with Discoverer desktop as EUL owner.
13. We see entries in the table trig_tab with the current date.
...... metalink note : 372067.1 Subject: How To Get the EUL_TRIGGER$POST_LOGIN Trigger to Work -
How to get hardware Ids of a CD/DVD drive?
Hi,
I am trying to get the Hardware Ids of installed CD/DVD drives. Is there any API (in win SDK, for native c++ app) which I can use to get the hardware ids?
Example:
IDE\CdRomhp_DVD_A__DH16ABSH______________________YHDF____
IDE\hp_DVD_A__DH16ABSH______________________YHDF____
IDE\CdRomhp_DVD_A__DH16ABSH______________________
hp_DVD_A__DH16ABSH______________________YHDF____
GenCdRom
Actually I am trying to differentiate between physical CD/DVD drive and virtual CD/DVD drive.
Thanks,
MaheshTake a look at the DevCon sample (this is all user space) that ships with the Windows Driver Kit. See
https://code.msdn.microsoft.com/windowshardware/DevCon-Sample-4e95d71c for the sample.
Don Burn Windows Driver Consulting Website: http://www.windrvr.com -
How to get Message IDs in Java Mappings
Hello,
in PI 7.1 Java mappings the way of getting the trace object has changed from:
trace = (AbstractTrace) param.get(StreamTransformationConstants.MAPPING_TRACE);
to:
getTrace();
Because the Java mapping class definition changed from
implements StreamTransformation
to
extends AbstractTransformation
Is there something similar to get the message ID or do i have to use the old way:
public void setParameter(Map param) {
this.param = param;
if (param == null) {
this.param = new HashMap();
String MessageID = (String) param.get(StreamTransformationConstants.MESSAGE_ID);
Thanks and best regards,
BenjaminI found an easyer way:
TransformationInput.getInputHeader().getMessageId();
But your reply brought me on the right track!
Thanks. -
How to get Docupresentment IDS 2.5 installed using MSMQ on Windows Server 2012 working?
The test command threads.bat reqtype=sss display=yes is hanging. Verify that the Oracle Docupresentment Watchdog Server is running.
The threads.bat reqtype=sss display=yes command actually finished after several minutes with an error "fail to retrieve response message...". The problem was in the security setting of the input/output queues. Whoever executes the above command needs to have proper permission to the queues.
-
How to get the selected rows in a table
Hi,
How to get the ids of all the selected rows. On Page load a query is executed that shows the data in a table with a checkbox in the first column to select the rows and delete. Now if a user select multiple rows how do I get the ids of selected rows in the backend code.
ThanksPlease search the forum before posting questions.
refer following thread for table selection.
Re: Record selection with MessageCheckBox and print the selected record.
--Prasanna -
How to get the decision key in abap program
Hi guys.
I have a user decision workflow that have two options: Accept or Reject. This options has some type of id, right? Like '0001', '0002', right?
How i get this ids decisions through a abap program.
I need to know this because i have to pass this id to a Z Function Model.
Thanks!The result is found in the workitem container in the '_RESULT' or '_WI_RESULT' elements, you can use the SAP_WAPI_READ_CONTAINER function module to read the data (read the element from the simple container returned table).
CALL FUNCTION 'SAP_WAPI_READ_CONTAINER'
EXPORTING
workitem_id = im_wi_id
TABLES
simple_container = lt_container
READ TABLE lt_container WITH KEY element = '_WI_RESULT' into ls_container.
If you what to get the possible decisions description you can use the SAP_WAPI_DECISION_READ function module,
CALL FUNCTION 'SAP_WAPI_DECISION_READ'
EXPORTING
workitem_id = im_wi_id
TABLES
alternatives = lt_alts. -
Can anyone help me change the DOB on my sons profile for his apple I'd so I can setup family sharing? I originally put both ids in my name. He is 19 do it keeps saying needs my permission but no instructions in how to get that done? His phone was stollen once last month need to get this done ASAP to prevent future headaches. Ty
You can not change the date of birth on the account. Apple makes that clear up front when the account is created.
The only way to "fix" this is going to be for him to create a new account with the correct information. Any apps purchased with the old one will need to be re-purchased with the new account. They can not be transferred. -
Hello,
I would use some help and more info about how to get host object that extends the functionality of my current Interop.Excel.Worksheet object. I read this artical: https://msdn.microsoft.com/en-us/library/ee794671.aspx where I can call this function
GetVstoObject to get host object. But I see that here I need to pass the Globals.Factory object as second parametar. Can someone give me more details about that parameter and how to access it? I would like to get host object so I can access extension
property, since my interop excel worksheet doesn't have it.
I am using Visual Studio 2013 for developing Excel addin. Using Excel 2010.
Thanks in advance for help.
Regards,
ZeljkaHi Zeljka,
>>I am using the Microsoft Office PIAs, so my question is how to access this automatic generated class Globals in my case? <<
Sorry, I am not able to understand the application you were developing exactly. From the orgnal post, you were developing an application level add-in, however based on the description above, it seems that you were building an console or Windows form application
to automate Office application.
If you were developing Office automation, the host item can't work for this secnario since it should run under the VSTO runtime.
If I misunderstood, please feel free to let me know.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to get handle to all HSSF worksheets
Hi Friends,
Is there any way we can get handle to all the worksheets in the excel file using apache POI classes..
For eg:
If there are 10 worksheets, how to get all the sheet names without using
HSSFSheet sheet = wb.getSheetAt(0)
Thanks and Regards,
JGHi masijade,
I was not aware of the property getNumberOfSheets.
Thanks for notifying me of that property.
and this will property will resolve my issue.
Thanks and Regards,
JG -
How to get a report in pdf format.
Hi Experts,
Could any one let me know that, how to get the report in PDF format.
Once a report is generated it should be displayed in pdf format or downloaded in pdf format.
Thanks in Advance,
Regards,
Irfan HussainHi,
Check out this code:
REPORT zspooltopdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_delspl AS CHECKBOX.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
* Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
* Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
* Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
* Write statement to represent report output. Spool request is created
* if write statement is executed in background. This could also be an
* ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
*** Alternative way could be to submit another program and store spool
*** id into memory, will be stored in sy-spono.
*submit ZSPOOLTOPDF2
* to sap-spool
* spool parameters %_print
* archive parameters %_print
* without spool dynpro
* and return.
* Get spool id from program called above
* IMPORT w_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
ELSE.
SKIP.
WRITE:/ 'Program must be executed in background in-order for spool',
'request to be created.'.
ENDIF.
* FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
* FORM get_job_details *
FORM get_job_details.
* Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
* FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
* Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
* FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
Regards,
Gayathri -
Can I get rid of one ID? How do I do that?
one on my MacBook Pro
That's not an Apple ID. That is your admin account which you can view in System Preferencs > Accounts or Users & Groups.
If I switch from MobileMe to iCloud on my Mac (under the apple logo) will my devices work and sync in iCloud. I have no idea how I go 2 IDs
Just use your current Apple ID when you setup your iCloud account that you use for your devices.
Apple - iCloud - Learn how to set up iCloud on all your devices. -
How to get Data from SAP B1 through Journal Entries objects (Excel VBA)
Hi Genius
i had try to login SAB B1 thorugh MS Excel VBA code and it worked well. but i need some questions regards getting the data from after login. that means i want the Posting date, Transaction No, account code, debit and credit amount from Journal entries posted in a particular day through MS excel VBA into excel sheets 1 cell A1:E1
how i get it if any possible ways to do that
here my code to login
Public Sub login()
Sheets("Login").Select 'access the login tab
Worksheets("Login").Range("B1").Activate 'put focus on cell B1 (manager)
B1UserID = Trim(ActiveCell.Value2) 'set Businsss One user
ActiveCell.Offset(1, 0).Activate
B1Password = Trim(ActiveCell.Value2) 'set Business One password
ActiveCell.Offset(1, 0).Activate
sqluser = Trim(ActiveCell.Value2) 'set SQL user
ActiveCell.Offset(1, 0).Activate
sqlpass = Trim(ActiveCell.Value2) 'set SQL password
ActiveCell.Offset(1, 0).Activate
Db = Trim(ActiveCell.Value2) 'set Database name
ActiveCell.Offset(1, 0).Activate
Server = Trim(ActiveCell.Value2) 'set Server name
Set company1 = New SAPbobsCOM.Company 'initialate DI company object
company1.DbServerType = dst_MSSQL2005
company1.Server = Server
company1.DbUserName = sqluser
company1.DbPassword = sqlpass
company1.CompanyDB = Db
company1.UserName = B1UserID
company1.Password = B1Password
'connect to the database
lRetCode = company1.Connect
If lRetCode <> 0 Then
sErrMsg = company1.GetLastErrorDescription
MsgBox (sErrMsg)
Else
MsgBox ("Connected to: " & company1.CompanyName)
End If
End Sub
pls help me
advance thanks to solversGordons way is the easiest - just query the OJDT table for journal entry headers and JDT1 for journal entry lines if needed.
But if you want to work with the business objects:
'Journal entry
Dim oJE As SAPbobsCOM.JournalEntries
Set oJE = company1.GetBusinessObject(oJournalEntries)
oJE.GetByKey(1234)
Dim postingDate as String
postingDate = oJE.DueDate
'etc etc -
How to get the script of a table or view in SQL Developer?
Dear friends/expert,
Could you tell me how to get the script for a view or a table easily in SQL Developer like pressing F4 in TOAD?
I found that I can press SHIFT+F4 for a view in SQL Developer and get the script of the view in Details Tab. But how to move the script to SQL worksheet to edit? It is very easy to do in TOAD.
And I didn't find a way to get the script for a table till now. Is there any way to do that?
Thanks in advance.
Best regards,
Ning1. Although the team might put a lot of effort in keeping track on the forum, a lot of posts still go by without answer.
2. If you have an enhancement request, log it at the announced SQL Developer Exchange, so others can vote to add weight on the issue. Be clear and detailed in the explanation.
3. Given the structure of the application, I guess it won't be easy (maybe impossible) to add the functionality you are asking. Do you have a suggestion on how to access the info?
4. If your request gets accepted, still another year or two may go by until the functionality gets added. For sure you'll be better off writing a user defined extension or report (querying DBMS_METADATA.GET_DDL).
Hope that helps,
K.
Edited by: -K- on 12/01/2009 09:37 -
How to get title of an iview? Have only pcd-url...
Hi,
in my WebDynpro i need to get a list from PCD
that has
- the iview-ID
- the title of the iview
that resides in a directory.
I get the ids, eg. pcd:portal_content/rwe/bir/navigation/rwe.bir.ws.BIReports/rwe.bir.ivu.filter.tra.Istkosten_je_Periode_8
with the following source:
Hashtable env3 = new Hashtable();
env3.put(IPcdContext.SECURITY_PRINCIPAL, sapUser);
env3.put(Context.INITIAL_CONTEXT_FACTORY,IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env3.put (com.sap.portal.directory.Constants.REQUESTED_ASPECT,PcmConstants.ASPECT_SEMANTICS);
InitialContext ctx1 = null;
DirContext dirCtx1;
List pageList = null;
try {
ctx1 = new InitialContext(env3);
// Pass the iView location here...as Daniel said..
dirCtx1 =(DirContext) ctx1.lookup("pcd:portal_content/rwe/bir/content/generated/");
PcdSearchControls pcdSearchControls = new PcdSearchControls();
pcdSearchControls.setReturningObjFlag(false);
pcdSearchControls.setSearchScope(PcdSearchControls.SUBTREE_WITH_UNIT_ROOTS_SCOPE);
dirCtx1.addToEnvironment(Constants.APPLY_ASPECT_TO_CONTEXTS,Constants.APPLY_ASPECT_TO_CONTEXTS);
NamingEnumeration ne = dirCtx1.search("","(com.sap.portal.pcd.gl.ObjectClass=com.sapportals.portal.iview)",
pcdSearchControls);
pageList = new ArrayList();
int i = 0;
while (ne.hasMoreElements()) {
i++;
IPcdSearchResult searchResult =
(IPcdSearchResult) ne.nextElement();
// This location will give you the full path of the page with page name
String location = searchResult.getName();
messageManager.reportSuccess("Got PCD-Url: " + location);
But - how can i get the title of the iview?
I tested also the code:
env.put(IPcdContext.SECURITY_PRINCIPAL,sapUser);
env.put(Context.INITIAL_CONTEXT_FACTORY,IPcdContext.PCD_INITIAL_CONTEXT_FACTORY);
env.put(com.sap.portal.directory.Constants.REQUESTED_ASPECT, pcmConstants.ASPECT_ADMINISTRATION);
InitialContext ctx = null;
String objectID = "pcd:portal_content/rwe/bir/content/generated/";
iCtx = new InitialContext(env);
Object pcdObject =iCtx.lookup(objectID);
NamingEnumeration children = null;
if (pcdObject instanceof IAdminBase)
children = ((IPcdContext) ((IAdminBase) pcdObject).getImplementation (IAdminBase.CONTEXT)).listBindings("");
msgMgr.reportSuccess("Element: IAdminBase");
}else{
children = ((IPcdContext) pcdObject).listBindings("");
msgMgr.reportSuccess("Element: PCDObject");
Binding child;
int ch = 0;
while (children.hasMoreElements())
child = (Binding) children.next();
child.getName();
if (child.getName().startsWith("rwe.bir.ivu.filter")
&& child
.getClassName()
.equalsIgnoreCase("com.sapportals.portal.ivs.iviews.IPortalIview")) {
msgMgr.reportSuccess("Element: " + child.getName());
then i get the title attribute, so getting something like
'locale= , Text="The title of the iview" '
But: how to collect both (title and id) in one way??
Thanks
Bernhard
Edited by: Bernhard Derks on Feb 22, 2008 3:36 PMHI Sarma,
Unfortunatelly, the variable p_infopackage is not accessible in the FORM.
It seems that the only variable I have access to is p_subrc...
To help you here are the first line of my selection routine :
program conversion_routine.
Type pools used by conversion program
type-pools: rsarc, rsarr, rssm.
tables: rssdlrange.
Global code used by conversion rules
$$ begin of global - insert your declaration only below this line -
TABLES: ...
DATA: ...
$$ end of global - insert your declaration only before this line -
InfoObject = 0TCTREQUID
Fieldname = REQUEST
data type = CHAR
length = 000030
convexit =
form compute_REQUEST
tables l_t_range structure rssdlrange
changing p_subrc like sy-subrc.
Insert source code to current selection field
$$ begin of routine - insert your code only below this line -
data: l_idx like sy-tabix.
read table l_t_range with key
fieldname = 'REQUEST'.
l_idx = sy-tabix.
I think that your idea is the good one, but I do not see the how to get the datasource name for my infopackage...
If someone has another idea, it could be very helpful for me.
Thanks
Pierre-Yves
Maybe you are looking for
-
How do I add e-mail addresses on my new ipad mini or can I import them from my PC - e-mail othwise working OK?
-
Can I download a separate version such as 3.5 and still keep my 5.o intact in a separate version? Can I even download the older version?
-
Know how memory that is free compared to the maximum allowed
Hi i want to know how memory is free compared to the maximum memory set in the jre advanced option or the defaut one this function is suppose to work, bu im not able to have something good, for example if i set -Xmx256m, so 256mo max thatr the jre ca
-
Crystal reports integration with sql server and visual studio 2010
when I am trying to open a crystal report through code ( visual basic 2010 ) I get the error the report has no tables I am using SQL SERVER 2008 R2 HERE IS THE CODE I WROTE Imports System.Data Imports System.Data.OleDb Imports CrystalDecisions.Crys
-
Weblogic 8.1: NoClassDefFoundError after successful EAR deployement
I need some help upgrading our weblogic from 6.1 to 8.1. The EAR application has been successfully deployed via the console. I am able to log into the application. However, when I try to execute a query, I get the following error stack: java.rmi.Remo