User id passed from Portal report?
How do I capture the user id of the OID user that is running a portal report?
I would like to pass this userid to a backend procedure.
Thanks in advance for any help offered!
You can use it either in a sql query (in a column in a select statement or where clause) or in plsql (Additional PLSQL tab in the report wizard.) Here are a few simple examples:
select * from yourtable y where UPPER(y.username) = portal.wwctx_api.get_user
select sysdate todays_date, portal.wwctx_api.get_user user_name from dual
DECLARE
v_userid NUMBER;
BEGIN
v_userid := portal.wwctx_api.get_user_id;
htp.p(v_userid);
END;
Similar Messages
-
How to find out source qurey or query view from portal report.
Hi mates.
we are using portal to display our report online. I want to kind out from portal Reports (charts or table) , which are queries or query view is used for display those portal charts or tables.we are using Lotus notes to publish web reports in Portal.
Regards.
hariHello,
Check these tables:
VARI ABAP/4: Variant storage (similar to INDX)
VARICON Selection variants: Content
VARICONCI Selection Variants: Content (Cross-Client)
VARID Variant directory
VARID_CI Variant Catalog, Cross-Client
VARIDESC Selection Variants: Description
VARIDESCCI Selection Variants: Description (Cross-Client)
VARINUM Internal number assignment for variants
VARIS Assignment of variant to selection screen
VARIS_CI Assignment of Variant to Selection Screen
VARIT Variant texts
VARIT_CI Variant Texts, Cross-Client
VARK Delivery Plan: Customer-Specific Itinerary
VARZ Delivery Plan: Zone-Specific Itinerary
If useful reward.
Vasanth -
Calling Stored procedure from portal report
I have a simple portal report. ie.
select empname
from emp
where dept = :dept
The users can customize the portlet and change the value of the bind variable (:dept).
On the Additional PL/SQL section of the report I need to call a procedure and
pass the value of the bind variable. Since the portlet is not being called from
another, p_arg_names and p_arg_values will not give me anything. In the above example I would
need to pass the value of ":dept" to the procedure. How do I get the value?Hi,
Have you tried the 'get_value' function?..The syntax is
declare
l_dept number(5);
begin
l_dept := get_value('dept');
/* further process */
end;
where 'dept' is name of the bind variable.
-Krishnamurthy -
Need User Name/userid from Portal in WebDynpro Java application
Hi All,
I am using my Webdynpro for Java application as a iveiw in Enterprise portal. I want to get the Username/userid for the portal. how can we get that?
Regards,
Puneet AggarwalUse below code for retrive al users from portal:
try {
IUserFactory ufactory=UMFactory.getUserFactory();
ISearchResult rst = UMFactory.getUserFactory().getUniqueIDs();
IUserFactory usf = UMFactory.getUserFactory();
IUser iuser = null;
//IUserListElement userElement = null;
int i = 0;
IPrivateKmnewsView.IUserNodeNode usernode=wdContext.nodeUserNode();
IPrivateKmnewsView.IUserNodeElement usernodeelement = null;
while (rst.hasNext()) {
iuser =
UMFactory.getUserFactory().getUser(rst.next().toString());
//wdComponentAPI.getMessageManager().reportSuccess("rst.next().toString() : "+rst.next().toString());
usernodeelement = usernode.createUserNodeElement();
String UID=iuser.getUid().toString();
//wdComponentAPI.getMessageManager().reportSuccess("UID:"+UID);
usernodeelement.setUserId(UID);
//wdContext.currentUserNodeElement().setUserId(UID);
String UniqueID=iuser.getUniqueID().toString();
//wdComponentAPI.getMessageManager().reportSuccess("UniqueID:"+UniqueID);
String email = iuser.getEmail();
String fname = iuser.getFirstName();
String lname = iuser.getLastName();
String Name =fname+lname;
//if(!(fname.equalsIgnoreCase("") ^ fname.equalsIgnoreCase("")))
//if(currentUsers.equals()
usernodeelement.setUserName(Name);
usernodeelement.setUserEmailID(email);
usernode.addElement(usernodeelement);
//wdComponentAPI.getMessageManager().reportSuccess("Name : "+fname+""+lname);
//wdComponentAPI.getMessageManager().reportSuccess("Email : "+email);
wdContext.currentContextElement().setUserTableVisible(WDVisibility.VISIBLE);
} catch (UMException e) {
// TODO Auto-generated catch block
wdComponentAPI.getMessageManager().reportSuccess("Exception "+e); -
How to get the query name from portal report name
Hi Experts ,
I am given a portal report Name and asked to do changes to the queries of that ,so how do i get the query name ,
Thanks in Advance
NityaHi Nithya,
You can get the technical name by selecting the role in the portal where the report is enclosed you will generally find the report in description then identify the report you are looking then double click on that you will get a window pop-up in that you will have details tab there click on the details the your Query technical name will be displayed.
EX : zqry_w001 Then replace W with Q and seach in analyser or Designer.
Regards
Amar. -
Can the role info be passed from portal to ABAP web dynpro application
Hi,
We have some roles in the portal. We call the ABAP web dynpro applications from the portal. Is it possible to pass on the role from the portal to the Web dynpro ABAP application so that we can use this role information in the application.
Thanks,
PoojaHi,
you can try to add the expression
role=<IView.PCDUnit>
as part of the Application Parameters in the iView. This will be the role in 99%. However not all iViews started in the Portal must belong to a role. You can start iViews using page navigation that are not part of a role. Therefore the PCD does not talk about roles but about "units" which is the superordinate term.
the value will be the PCD path of the role - e.g:
portal_content/myFolder/roles/myRole -
BI Web Query from Portal, report cells are too large
Hello,
We have created the BI JAVA to query the BI ABAP through BI Web Query. There is no connection problems or configuration problems per my BI Portal Dianostics tests.
We have created test iview> bi 7.0 Web APplication IVEIW>Template=0ANALYSIS_PATTERN.
I have clicked the preview and entered the year value to limit the data.
The report is displayed but it is showing up to be ver large CELLS (I mean ROWS or Colums), but if we query the same BI ABAP System with another Portal System's Iview,
the report is displayed Normally.
I am not sure where this needs to be addressed.
-Manny.Self, applied NW 7.01 SP3 PATCH 6.
-
Null entry (from portal webdynpro) is not getting updated in R/3?
Hi Gurus,
I have a webdynpro application which has user input field where in which user can pass the data and it will get updated once user hit the update button in the view.
But in some case if user don't enter any value in the above said input box it has to update the r/3 with the blank entry.
But in my case r/3 system refers the value (which is passed from portal last time) instead of blank entry?
How to overcome this problem.
More detailed way:
If user don't enter any value in the input box then R/3 record has to be updated with the blank entry
else
whatever the data user enters in the particular input it has to be updated the r/3 with that value.
Right now If i pass some value in the input box it properly getting updated in r/3 but next time if I pass the blank entry in the input box it has to update the r/3 with this blank entry (as per the requirement)
But its not happening like that it referring previously entered data.
Please help me
Thanks in Advance
DharaniHi,
Suppose you are using a function Module X which takes input "empno" ..., and exports name, city , rcode
Go to se37 , check the code ....it can be like this ...
if empno = .... then
update .......
// updated
else
// not updated ........
end if .
if updated ... u will observer 0 else some other number say 4.
Now when u do modelling in your webdynpro application , u can find export parameters know..
now u can check ...if rcoe = 0 ..updated else ...not updated ...
by that u can know...
Thanks,
Srini -
Best approach to "migrate" from BEX reports to Webi reports ?
Hello,
i have read lots of documents regarding best practices on how to built webi reports and universes on top of BW.
But i can't find any document about best approach, not in performance way of thinking but in best way of using reports.
i mean: when end users are coming from bex reports (where they can drill down through hierarhies and use free filters ) to webi reports (where layout is quite beatiful and user can change it easely), this is not the same way of consuming reports.
I come from BO world and are new on reporting on top of BW.
for me webi is good for quite static layout reporting where data is clear and available.of course you can have prompts for interactivy and more accurate reporting. Drill down is just a functionality but is not the real purpose of the report tool.
So ,according to me there is a gap between both tools (BEX and WEBI) but end users are the same.
So i 'm wondering if you have any feedback for the best approach to build webi reports where end users are coming from bex reporting.
And how to choose between prompts, drill-down (with available filters on top of the window), fold/unfold and input controls or just having diffrent levels of hierarchies in the table/ section/ breaks but without drill down (because if you drill down, report begins weird with diffrent levels) ...?
So , if you have any feedback , advise....
thanks in advance,
Rgds,Hi,
WEBI don't replace BEX reports, is for different audience, in fact BEX is for OLAP reports and analysis.
You can find some answer in this page
[FAQ: The Future of SAP NetWeaver Business Intelligence in the Light of the NetWeaver BI & Business Objects Roadmap|FAQ - The Future of SAP NetWeaver Business Intelligence in the Light of the NetWeaver BI&Business Objects Roadmap [original link is broken]|FAQ]
spercific for What is the future of the BEx Query Designer? you can read here
[FAQ - The Future of SAP NetWeaver Business Intelligence in the Light of the NetWeaver BI&Business Objects Roadmap [original link is broken]#section11] and here [FAQ - The Future of SAP NetWeaver Business Intelligence in the Light of the NetWeaver BI&Business Objects Roadmap [original link is broken]#section3]
The idea is to use the rigth tool for the rigth job.
You can find more information here [http://www.sdn.sap.com/irj/sdn/edw], [http://www.sap.com/solutions/sapbusinessobjects/index.epx], [http://www.sap.com/solutions/sapbusinessobjects/newsevents/index.epx], [http://www.sap.com/community/flash/BusinessIntelligenceAGuideforMidsizeCompanies.pdf]
I hope this help you.
Best regards. -
How to create .csv file from ABAP report
Hi
We have a requirement to generate .csv file from abap report.
Currently user saves data from abap report to spreadsheet(.xls format) in desktop. Then opens excel file and save as .csv format. Need option to save directly in .csv format instead of .xls format.
Please let me know, if there is any standard function module available to create .csv file.
Regards
UmaI tried with your code it's going to dump
REPORT ZTEMP101 message-id 00.
tables: lfa1.
types: begin of t_lfa1,
lifnr like lfa1-lifnr,
name1 like lfa1-name1,
end of t_lfa1.
data: i_lfa1 type standard table of t_lfa1,
wa_lfa1 type t_lfa1.
types truxs_t_text_data(4096) type c occurs 0.
data: csv_converted_table type table of TRUXS_T_TEXT_DATA.
select-options: s_lifnr for lfa1-lifnr.
select lifnr name1 from lfa1 into table i_lfa1
where lifnr in s_lifnr.
CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = ';'
I_LINE_HEADER =
I_FILENAME =
I_APPL_KEEP = ' '
TABLES
I_TAB_SAP_DATA = I_LFA1
CHANGING
I_TAB_CONVERTED_DATA = csv_converted_table
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
BIN_FILESIZE = ' '
CODEPAGE = ' '
FILENAME =
'C:\Documents and Settings\ps12\Desktop\Test folder\exl.cvs'
FILETYPE = 'DAT'
MODE = ' '
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
COL_SELECT = ' '
COL_SELECTMASK = ' '
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
TABLES
DATA_TAB = csv_converted_table
FIELDNAMES =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TYPE = 4
NO_BATCH = 5
UNKNOWN_ERROR = 6
INVALID_TABLE_WIDTH = 7
GUI_REFUSE_FILETRANSFER = 8
CUSTOMER_ERROR = 9
OTHERS = 10
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
my version is 4.6c -
Passing value from Portal Form as parameter to portal report
I have a portal form that I have created using the custom form layout editor to build/modify the display of the form. When I run the form and I have a record queried I would like to be able to click a link and pass the value of a field as a parameter to a portal report. For example, lets say I have a field on my portal form called assignment_id, and after I query a record assignment_id equals 1. I would like to use the value 1 from assignment_id as a parameter to a portal report. I am not sure how to reference the value of a form field, can this be done within the header, body or footer of the custom layout editor? Or can I somehow reference the value of a form field from the Additional PL/SQL Code section?
Has anyone tried this with success? Any info is appreciated.
Regards
MarkHi,
You can get the values of the variables from the session variables. Here is an example which gets the value of the field FLIGHT_NO and passes it on to a report.
While accessing the value of a field you should prefix it with "A_" (A_FLIGHT_NO)
declare
flightno number;
blk varchar2(10) := 'DEFAULT';
begin
flightno := p_session.get_value_as_varchar2(
p_block_name => blk,
p_attribute_name => 'A_FLIGHT_NO');
call('SJDEMO30.report1.show?p_arg_names=flightno&p_arg_values='||flightno);
end;
Thanks,
Sharmila -
How to Pass User-defined Parameters from Forms to Reports
Hi!I am trying to launch an existing report from a form then spool it into a PDF file. I have been successful in passing the report properties using SET_REPORT_OBJECT_PROPERTY built-in and I am also able to launch the report using RUN_REPORT_OBJECT built-in. My problem is, I cannot seem to pass the user defined parameters from my form to the report eventhough I am using the same variable names.
this is a part of my code:
repid := Find_Report_Object('ACPPRACS');
Set_Report_Object_Property(repid, REPORT_EXECUTION_MODE,BATCH);
Set_Report_Object_Property(repid, REPORT_DESTYPE,FILE);
Set_Report_Object_Property(repid, REPORT_DESNAME,'C:\TMP\ACS01.PDF');
Set_Report_Object_Property(repid, REPORT_DESFORMAT,'PDF');
Set_Report_Object_Property(repid, REPORT_OTHER,'PF_NBO_CD='| |'"'| |:acs.nbo| |'"');
v_rep := RUN_REPORT_OBJECT(repid);
Hope you can help me soon. Thanks!first of all u will create a paramlist
then add_paramter to this list
and then pass this list to the report
by using run_product.
i think this is all.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jenny ([email protected]):
Hi!I am trying to launch an existing report from a form then spool it into a PDF file. I have been successful in passing the report properties using SET_REPORT_OBJECT_PROPERTY built-in and I am also able to launch the report using RUN_REPORT_OBJECT built-in. My problem is, I cannot seem to pass the user defined parameters from my form to the report eventhough I am using the same variable names.
this is a part of my code:
repid := Find_Report_Object('ACPPRACS');
Set_Report_Object_Property(repid, REPORT_EXECUTION_MODE,BATCH);
Set_Report_Object_Property(repid, REPORT_DESTYPE,FILE);
Set_Report_Object_Property(repid, REPORT_DESNAME,'C:\TMP\ACS01.PDF');
Set_Report_Object_Property(repid, REPORT_DESFORMAT,'PDF');
Set_Report_Object_Property(repid, REPORT_OTHER,'PF_NBO_CD='| |'"'| |:acs.nbo| |'"');
v_rep := RUN_REPORT_OBJECT(repid);
Hope you can help me soon. Thanks!<HR></BLOCKQUOTE>
null -
Accessing Portal User profile info from report
Once the user logs into portal, I would like to access some of the user profile information (personal or organizational details). I need to find the stored value of the employee number, e_mail and department. This is needed to restrict the information that will be returned to the user in portal reports.
ie. Access the portal users department and only show them information fo that specific department. If I can access I can store the value in a session variable or cookie.Just have a look at <portal_schema>.wwsec_person$
There is also an API <portal_schema>.wwctx_api.get_user to get the user currently logged in.
Thanx,
Chetan. -
Jump target RRI from BW report to CRM Portal
Hello Experts,
Need to create a Jump target from the BW query to CRM Portal Tcode CRMD_ORDER.
I am passing the transaction number ( similar to sales order in R/3) to this tcode CRMD_ORDER in CRM
Step1) create the receiver
Type: Transaction. Defined the source system and entered the Tcode CRMD_ORDER in the 'report' field.
Receiver is created
Assignment. details:
I can see the source infobject 0CRM_OBJ_ID from the Infobject column; Type : Infobject; Field name : OBJECT_ID / GV_OBJECT_ID;
OBJECT_ID is the table field in the CRM System for the transaction number.
GV_OBJECT_ID is the screen field name in the CRM system for TCODE CRMD_ORDER.
I tried with both the OBJECT_ID and GV_OBJECT_ID.
Expected result: Open the Tcode CRMD_ORDER with the transaction number eg: 1000001 that is passed from the Bex report. Currently that is not happening. It is opening Tcode CRMD_ORDER but not the document 1000001. I have to manually open it.
Please suggest if anything got missed in the definetion of RSBBS.
Regards,
BWerHi,
What I found out so far is that by using a URL like
http://...:8060/sap/bc/gui/sap/its/BBP_POC_DISPLY?sap-client=300&sap-language=EN&PO_GUID=490622657B526483E10000000A0A3D25
in RRI it is possible to jump from a BW web report to SRM to display a corresponding purchase order. This URL uses the PO_GUID, but with help of a couple of lines of ABAP in a custom BSP I was able to use the PO number instead of the GUID, too.
In general I am looking for URL's do display purchase oders, shopping carts and confirmations in SRM and URL parameters that can be used. Or anything related to that topic.
From my experience users find it very useful to easily jump from BW into the original transactions to clarify potential issues there. I have implemented this a lot in the past with BW and classic R/3 GUI transactions, so I'm looking for a way to implement this with SRM as well.
Best regards,
Rudolf -
My goal: PDF report for print-out, launched from Portal, that displays text and image (.jpeg, .gif, .bmp, etc.) data pulled from the database. Currently, users retrieve this data right from the portal via JSP portlets. This works great. We'd like to get a good-looking report containing this data for inclusion in electronic documents and hard copy files and PDF seems a good way to go. Right now, my idea is to create the report from SQL query in Report Builder creading a .rdf file and somehow launch this from the Portal allowing users to pass selection parameters.
Questions:
1. What's best way to launch a .rdf report (PDF output) from Portal?
2. What are the tricks of pulling in and displaying blob data (from Portal30 schema) in a .rdf report with PDF output?
Thanks!Take a look at the Portal - Reports integration documentation. It will tell you how to deploy Oracle Reports on the Portal.
As far as displaying images, Report Builder Online Help -> search on word image ->selecting image from the database.
My goal: PDF report for print-out, launched from Portal, that displays text and image (.jpeg, .gif, .bmp, etc.) data pulled from the database. Currently, users retrieve this data right from the portal via JSP portlets. This works great. We'd like to get a good-looking report containing this data for inclusion in electronic documents and hard copy files and PDF seems a good way to go. Right now, my idea is to create the report from SQL query in Report Builder creading a .rdf file and somehow launch this from the Portal allowing users to pass selection parameters.
Questions:
1. What's best way to launch a .rdf report (PDF output) from Portal?
2. What are the tricks of pulling in and displaying blob data (from Portal30 schema) in a .rdf report with PDF output?
Thanks!
Maybe you are looking for
-
We have a user that is being removed from IT (more like being forcefully demoted) and our owner still finds him valuable in other departments. My challenge is to find all servers that he may be using his account locally on (as a service or added to a
-
Substituting BSEG-ZUONR value in MIRO with PO details.
Hi All, I need to substitute the value of the assignment field (BSEG-ZUONR) with ebeln and ebelp details. I have coded a substitution exit at call point 2 in FI at item level. When i debug and check my code BSEG document no has no values(actually it
-
Cannot find the dancing duke test
I do browser support, and sometimes I need to find out if the user's Java plug-in is working properly. Earlier (probably long time ago), I could use the "Can you see the dancing penguin?" test. But I cannot find that test anymore. I have found the fo
-
Forward Button NOT Hidden in FF10
Okay, so the FF10 ChangeLog says "The forward button is now hidden until you navigate back" But Mine is still visibile ( http://d.pr/EjrK ), its just faded a little. Why? Make the Forward Button Go AWAY!
-
BI Administrator for several SAP BI systems within SAP Portal
Hi! I have activated BI Administrator function in SAP BI system and in SAP Solution Manager system as well. I have connected both systems to SAP Portal as SAP_BW systems. Per default I can see in SAP EP --> BI Administrator only the SAP BI system ent