Hierarchy popup in BSP ?
Hi all,
I'm looking for a easy way to create a popup of a existing hierarchy which also allows to select a node/item.
SAP queries in BeX and Web format which use hierarchies offer a popup to select a node/item automatically.
I would like to offer such a functionality also in a MVC BSP application.
My questions:
Is there already a HowTo available which describes a task like this ?
Is it possible to use the existing hierarchy in a BSP directly (with HTMLB etc.) in a easy way to avoid greater effort ?
I'm looking forward to your help
Best regards
Pascal
Hi,
In BSP, you have a tree component that may fit your needs.
Yet, I don't think you will find the numerous options that are available in BEx.
In the past, I had to code radio-button in front of each node with a Javascript mecanism to select children recursively...
Check this tip from Durairaj : Enhancement of BSP Tree
Best regards,
Guillaume
Similar Messages
-
I have a requirement where I have to display all hierarchies on an infoobject to a user. The user should be able to select a particular hierarchy and download it as a flat file to a location. Can this be done using bsp?
Hi,
You can list the hierarchies of an InfoObject using table RSHIEDIR.
When the user clicks on a hierarchy name, you can get its content in an internal table using Function Module RSSH_HIERARCHY_READ.
Finally, you will have to process the internal table to send it as a flat file in HTTP response at the BSP level, so that the user can download it.
Regards,
Tanguy -
I have a BSP form, and I have a button that calls a BADI on one screen. This BADI will show a list with some options, the chosen options will return to this form's screen on WEB. Upon a clicking the button, the program pass through the BADI, but it does not show the list.
Inside R3, when BADI is executed, it shows the list, since it calls a pop-up function named "HRHAP_F4_FOR_DEV_PLANS". I wonder what BSP function would do the same.
I need some help in order to know how to show this BADI in the form. Do I need some treatment in the BADI to identify what is BSP? Has someone experienced this situation?
Thanks. And I wait a response.What version of SAPConsole do you use?
Markus -
Hi Gurus,
I am not getting gud help from any blogs..so pls dont send me blog links..
My scenario is like am selecting a value from popup screen(f4 help).Am using MVC pattern. Input field is in "find.htm". It will call 'emppop.do' and eventually it calls the view 'emppop.htm' using the method DO_REQUEST.
1) But my popup screen is coming with short dump
2)Dont know how to select a value from popup screen.
find.htm
<htmlb:inputField id = "empid"
showHelp = "true"
value = "<%= empid %>"
onValueHelp = "javascript:window.open ('emppop.do', '_blank', 'Emp Details','width=100,height=300');" />
Hope this is correct since I got it from Raja's post.
emppop.do(DO_REQUEST)
SELECT * FROM Z12_EMP_PER INTO TABLE IT_EMP.
DATA: POPVIEW TYPE REF TO IF_BSP_PAGE.
POPVIEW = CREATE_VIEW( VIEW_NAME = 'emppop.htm').
POPVIEW->set_attribute( name = 'it_emp' value = it_emp ).
CALL_VIEW( POPVIEW ).
emppop.htm
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title=" " >
<htmlb:form>
<htmlb:tableView id = "pop"
table = "<%= it_emp %>" >
</htmlb:tableView>
</htmlb:form>
</htmlb:page>
</htmlb:content>
Pls help me to correct this and also help me to select a value from this popup.
Thanks in advance...Hi,
Try the following.
Define the DO_INIT method of emppop.do
write following code inside it.
emppop.do(DO_INIT)
SELECT * FROM Z12_EMP_PER INTO TABLE IT_EMP.
emppop.do(DO_REQUEST)
dispatch_input( ).
Define POPVIEW type IF_BSP_PAGE. as the attribute of class
POPVIEW = CREATE_VIEW( VIEW_NAME = 'emppop.htm' ).
POPVIEW->set_attribute( name = 'it_emp' value = it_emp ).
CALL_VIEW( POPVIEW ).
emppop.htm
eevn mention form name
<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
<htmlb:page title=" " >
<htmlb:form>
<htmlb:tableView id = "pop"
table = "<%= it_emp %>"
selectionMode = "SINGLESELECT" >
</htmlb:tableView>
</htmlb:form>
</htmlb:page>
</htmlb:content>
And the problem for selecting the value from POPVIEW to find.htm
I can only provide you the logic First you can get the value that is selected in the DO_HANDLE_EVENT.
in the popup.htm page use the opener tag of javascript that gets the value from the popup menu to the parent menu.
Write this code in the emppop.htm
<script language="JavaScript">
window.opener.document.all("<b>empid</b>").value = "Value that you get from the DO_HANDLE_EVENT on click in POPUP view intableview.";
window.close();
The empid that is bold is ID OF your find.htm page inputfield id.
//-->
</script>
Assign Points for helpful answer.
Thanks & Regards
Aashish Garg -
Hi
I am running Nw2004s Portal with ECC5 as BackEnd.
I have Configured the ECC5 for SSO using RZ10 and strustsso2.
The Portal UserIDs are same as those in ECC5 .
The SSO is working fine with ESS in the Portal.
But when i run a BSP iView then it asks for UID,PWD in a PopUp.
I am accessing the Portal with FQDN and in the properties of the System
referred by BSP also maintained FQDN of the backend WebAS.
How to get rid of this Login PopUp for BSP ?
Any Help will be highly appreciated !
Regards,
RajendraHi Rajendrakumar,
You probably haven't updated the ACL properly via STRUSTSS02.
The portal server digitally signs logon tickets as it issues them to the portal users. SAP Systems need to accept the tickets and verify the portal servers digital signature. The following information is important for the SAP System to be able to accept and verify logon tickets:
· The SAP System should only accept logon tickets issued from their designated portal server. Therefore, the identity of the portal server needs to be entered in the SAP Systems Single Sign-On (SSO) access control list (ACL).
· The SAP System needs to be able to verify the portal servers digital signature. The portal server has a self-signed certificate, therefore the SAP System needs access to the portal servers public-key information, which needs to be entered in the SAP Systems certificate list.
Check the following procedure
http://help.sap.com/saphelp_nw70/helpdata/en/78/f1a8490e7011d6999500508b6b8a93/frameset.htm
Regards,
Siddhesh -
Error in displaying hierachry report with TableView and Tableiterator
Hello,
I tried to create a BSP as shown in this tutorial:
/people/vijaybabu.dudla/blog/2008/08/04/display-hierarchy-report-in-bsp-using-tableview-and-tableview-iterator
When starting the BSP I get an error that a field symbol is not assigned in the method get_column_name.
When debugging the method get_column_name I can see that row_ref is initial. So the field symbols <row> and <col> are not assigned to any values, which causes the error some lines below.
METHOD get_column_value .
*-To get the Column values which is used in the Interator
FIELD-SYMBOLS: <row> TYPE ANY, <col> TYPE ANY, <cur> TYPE ANY.
ASSIGN row_ref->* TO <row>.
ASSIGN COMPONENT column_name OF STRUCTURE <row> TO <col>.
DATA tempchar(240) TYPE c.
IF currency IS NOT INITIAL.
ASSIGN COMPONENT currency OF STRUCTURE <row> TO <cur>.
WRITE <col> CURRENCY <cur> TO tempchar.
MOVE tempchar TO column_value.
CONCATENATE column_value ` ` <cur> INTO column_value.
ELSE.
WRITE <col> TO tempchar.
MOVE tempchar TO column_value.
ENDIF.
CONDENSE column_value.
ENDMETHOD.
Any help?
Thank youHi Patrick,
Thank you for the answer.
Unfortunately there is still the error with the unassigned field symbol after implementing the render_row_start method.
Any help?
Edit: It works now. There was an error with a wrong variable name (stupig mistake.)
Thanks for the help!
Edited by: Robert Karlovic on Mar 5, 2009 10:29 AM -
Hi All,
I have the following requirement.
I am developing a BSP application that will be run in intranet by end users.
As usual like for all the applications, when I test this application the system asks me for userid and password to the server for authentication.
Now my requirement is that, once the user logson to the system, the login has to be <b>valid for next 24 hours</b>.
That is there should be no logon popup for that particular user again even if he completely closes the application and starts it again.
1. I have tried to do this with cookies, but i could not set up client side persistent cookie which would hold the info about the user and his password. When i used the method REQUEST->SET_COOKIE it did not even set the expiry.
Also this is a session cookie which would be destroyed once the user closes the session. <b>How to set a persistent client side cookie?</b>
2. Is it advisable to use <b>Server side cookies</b> for this purpose? If yes, please let me know how to do it. Code samples would be helpful. I will need to set Username, Password and expiry in the cookie.
3. When we use SAP standard logon, <b>how to retrieve the entered userid and password to set in the cookie?</b> Also if i write a customized logon application still the system prompts me with the usual one. <b>How to disable the standard SAP logon popup in BSP?</b>
Please also let me know if there is any other alternative solution for this. I have already made the application stateful and tried.
Points will be rewarded for sure.
Thanks in advance.Try using this. These have Expiry date of the Cookie.
cl_bsp_server_side_cookie=>set_server_cookie(
name = name
application_name = runtime->application_name
application_namespace = runtime->application_namespace
username = sy-uname
session_id = runtime->session_id
data_value = value
data_name = 'data'
expiry_time_rel = expiry_time_rel ).
and
DATA: runtime TYPE REF TO if_bsp_runtime.
runtime = cl_bsp_runtime=>get_runtime_instance( ).
cl_bsp_server_side_cookie=>get_server_cookie(
EXPORTING
name = name
application_name = runtime->application_name
application_namespace = runtime->application_namespace
username = sy-uname
session_id = runtime->session_id
data_name = 'data'
CHANGING
data_value = value ). -
Hi guys,
Anybody knows which object may i use for show up a document and its items? I've looking in SBSPEXT* examples.. but i did not find anything interesting.
My own solution should be in HTMLB.
Any help will be rewards,
AlexandreDid you check my weblog on that..?
Display Hierarchy Report in BSP using TableView and Tableview Iterator
Check it once, may be you are looking for the similar kind of output.. -
Hi experts,
I would like to add a customer functionality in our IT-Servicedesk which is based Solman 7.1 SP8 webui.
In fact I would like to create a button directly above or near to categorization-levels.
At clicking on this button, a small popup should appear:
In this popup I would like to have a searching functionality for categories (like on service marketplace selection of a component).
So the user should be able to enter a word and the system automatically finds the correct categorization-levels.
So, does someone know, how to implement first the button and second a functionality like this?
Regarding functionality, this can also be developed e.g. as BSP.
Kind regardsHello Dan,
I did already the following.
I did create a link (enhanced category view) which opens the popup.
This popup is an own bsp-application in which the user can select the category.
But now I have the problem, that I can't update the category or I don't know how.
I did the following. I did create an method which updates the category via FM CRM_ORDER_MAINTAIN.
But my problem is, as there is now realtion to the other BSP.
So I have to transfer the data via memory variables (but thats not really a problem for me) and after choosing a category in the popup, you need to press at least two times enter to update the category.
So again:
1. You click the link which I did add to category view
2. PopUp (own BSP-application) will be opened in new windows and also new session
3. User chooses a category and popup will be closed
4. (1st enter) method trigers if a category was set in the memory, if so, the FM CRM_ORDER_MAINTAIN sets the category
5. (2nd enter) you can see the category in the category-fields
So how can I solve this problem, that the categorie fields are filled out immediatly.
BTW: the problem, if I use FM CRM_ORDER_MAINTAIN in a method and the fields are filled out after pressing once again enter I have also in other methods, how can I force an update of the fields immediatly?
Kind regards -
While opening BSP File download popup opens
HI Experts,
While opening BSP application(appraisal) in UWL work items a popup window opens.
this happens on particular PC of the user only,we are able to open the same on our PC.
this must be because of browser setting,but not sure
please suggest,points will be awarded accordingly
With Regards,
Dayakar.Hi Dayakar ,
Comapre your browser settings with his and see if there is any discrepency . What is the message in Pop up window?
Try adding portal's and the application's URL to trusted sites and then see .
Regards
Mayank -
Calling an ABAP WebDynpro Popup from a BSP view
I need to know if the following is possible.
I have a requirement to call an ABAP WebDynpro Popup from a BSP view.
When the Popup is triggered (eg via pushbutton) the BSP will pass data to the Popup, before the Popup is closed the Popup will pass data back to the BSP to be displayed in the BSP view.
I do not want to rely on Portal Events as Portals may not be used, would really appreciate a clean simple solution.Hi,
any webdynpro application has a URL behind it. Haven´t you tried to call that URL with Javascript code ??
script language="Javascript"
url = "test_page.htm" + "?field=" + param;
window.open(url, "F4window", "width=400, height=400");
/script
You can pass data to the WD application using parameters as I show you after the "?". -
Hi All
I have a strange problem.
From the Web IC mvc application I use javascript to display a view with flow logic in a popup modal window. this view has a textedit and and button.
The javascript loads the window, I hit the button and another instance of the window appears as a full page not a modal window.
Has anyone ever experienced this. Any help would be great.
Here is the javascript code that is triggered from an onclientclick button event.
function ModalWindow(bpnum) {
var popup = '/sap/bc/bsp/sap/zic_*****/NoteView.htm?BPNUM=' + bpnum;
var result = window.showModalDialog(popup,'SalesNote',"dialogHeight:325px,dialogWidth:380px, status:no, help:no, resizable:no;");
result.moveTo(400,100);
result.focus();Hi
I call a page using the javascript function that I posted earlier. The pages loads correctly as a popup.
On this popup there is a textedit and a save button. When I hit the button it creates a new instance of the page. The result is that I have the original page and a new page with the menu bar, title bar and address bar.
Here is the Layout:
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<htmlb:content design="design2003">
<htmlb:page title = "Enter Sales Note">
<htmlb:documentBody>
<htmlb:form>
<htmlb:group width="100%">
<htmlb:groupHeader><b>Sales Note Details</b></htmlb:groupHeader>
<htmlb:groupBody>
<htmlb:gridLayout columnSize="13" rowSize="2">
<htmlb:gridLayoutCell columnIndex="1" rowIndex="1" colSpan="2">
<htmlb:label for="user" text="Created By:" />
</htmlb:gridLayoutCell>
<htmlb:gridLayoutCell columnIndex="3" rowIndex="1" colSpan="3">
<htmlb:inputField id="user" value="<%=wa_notes-Agent%>" disabled="TRUE"/>
</htmlb:gridLayoutCell>
<htmlb:gridLayoutCell columnIndex="1" rowIndex="2" colSpan="2">
<htmlb:label for="aDate" text="Created On:" />
</htmlb:gridLayoutCell>
<htmlb:gridLayoutCell columnIndex="3" rowIndex="2" colSpan="3">
<htmlb:inputField id="aDate" value="<%=wa_notes-log_date%>" type="DATE" disabled="TRUE"/>
</htmlb:gridLayoutCell>
<htmlb:gridLayoutCell columnIndex="7" rowIndex="2" colSpan="2">
<htmlb:label for="aTime" text="Time:" />
</htmlb:gridLayoutCell>
<htmlb:gridLayoutCell columnIndex="10" rowIndex="2" colSpan="3">
<htmlb:inputField id="aTime" value="<%=wa_notes-log_time%>" type="TIME" disabled="TRUE"/>
</htmlb:gridLayoutCell>
</htmlb:gridLayout>
</htmlb:groupBody>
</htmlb:group>
<htmlb:group width="100%">
<htmlb:groupHeader><b>Sales Note Text</b></htmlb:groupHeader>
<htmlb:groupBody>
<htmlb:textEdit id = "NoteText"
rows = "10"
cols = "65" text="<%=wa_notes-zzlines%>"
wrapping = "SOFT"/>
<htmlb:button id="BtnSave" onClick="doSave" text="Save"/>
</htmlb:groupBody>
</htmlb:group>
</htmlb:form>
</htmlb:documentBody>
And here is the event processing "OnInputProcessing".
data: event type ref to cl_htmlb_event,
http_fields type TIHTTPNVP,
wa_fields like line of http_fields.
CLASS CL_HTMLB_MANAGER DEFINITION LOAD.
DATA: data TYPE REF TO CL_HTMLB_TEXTEDIT.
data ?= CL_HTMLB_MANAGER=>GET_DATA(
request = runtime->server->request
name = 'textEdit'
id = 'NoteText').
IF data IS NOT INITIAL.
wa_notes-zzlines = data->text.
ENDIF.
event = CL_HTMLB_MANAGER=>get_event( runtime->server->request ).
if event->name = 'button' and event->event_type = 'click'.
data: button_event type ref to cl_htmlb_event_button.
button_event ?= event.
case button_event->id.
when 'BtnSave'.
if editmode = abap_true.
modify ZCRM_WEBIC_NOTES from wa_notes.
else.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
EV_GUID_16 = wa_notes-NOTE_ID.
insert into ZCRM_WEBIC_NOTES values wa_notes.
endif.
saved = abap_true.
clear wa_notes.
endcase.
Endif.
Message was edited by:
Durairaj Athavan Raja
to fix the formatting -
BSP - How to avoid the Logon Popup
Hi All,
When I test any BSP application from SE80, a popup is displayed asking for username and password. How do I avoid this popup.
Useful answers will be rewarded.
Thanks in Advance,
Regards,
ArchanaAsk your basis team how much it will cost to implement Single Sign On (for more info search the forums on how to achieve this, since i'm not a bais consultant I can't give tou anymore info)
regards, Rob -
Hello,
I am new at BSP's so I hope someone can help me.
When I click on button in a BSP-page i call a popup-window using something like this
function Popup(url){
window.open(url,"MyPopup",'height=100,width=300');
In that new window there are 2 buttons (Y/N), I leave the popup with the client event self.close().
Now the problem is that the page which triggered the popup doesn't do an 'ON_CHANGE_REQUEST'.
So I cant' figure out on which popup-button the user has clicked.
Anyone a clue ?
Thanks in advance.
Dirk.Hi,
this is rather a javaScript question than a BSP question (or a solution, since I'm new to BSP as well).
Try to use in javascript window.opener in the client window. Using that you can do with your y/n buttons:
<button name="y_n_submit" value="yes" onClick="javascript:window.opener.call_some_javascript_function('yes')">
<button name="y_n_submit" value="no" onClick="javascript:window.opener.call_some_javascript_function('no')">
This function is a javascript in the opener window that can handle the input.
Regards,
Leo
Link for the javascript stuff:
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/obj_window.asp -
How to hide a presentation hierarchy in variable popup
Hi there,
I've got the following problem:
one infoobject, let's assume 0material, has got several presentation hierarchies; these hierarchies are actually per country, so two hierarchies for Belgium, three for Netherlands, etc; each BEX user is assigned to a country as well; in reporting there's a variable assigned to 0material which allows the selection of a hierarchy; the request is now to hide in the selection screen of the variable the hierarchies which are not belonging to the user?! so a dutch user should see in the variable popup only the dutch hierarchies
any help, hint, idea is much appreciatedHi,
Have you tried the option of Personalization of the selction screen ??
regards,
Maybe you are looking for
-
Signature Scribble field not retaining image file after saving
I have 2 issues with my PDF dynamic file I sent out 1) The add/remove controls is adding a random amount of extra blank rows upon saving the PDF 2) The image files selected for the Signature Scribble field is not retaining the image file af
-
Recently I have switched out computers and had copied/ transferred my I ITunes library to the new computer and encountered problem. Many of the songs in the library were purchased from my old email address of that I no longer use nor did I remember
-
Hi experts, I tried to do settlement from a WBS to a fix asset. After maintaining the settlement rule I went to CJ88 to do the actual settlement, however i got the following error message: Dignosis Duriing settlement of sender WBS there was an atempt
-
Purchase requisition creation date ...
Our auditor want to know the creation date of purchase requisition , i have check table CDHDR ... using Object value <PR NUMBER> and using BANF, it only display change history only ... where can i find creation date of PR ?
-
HT204053 how do I start face time?
I like to start face time with Mac book, show me the procedure.