How to show Popup window in OAF on click of a button
How to show Popup window in OAF on click of a button (Without using Javascript)
1. I have one OAF page on which i should have button Called "Next"
2. On clicking of this button a new window/page should be displayed with the image stored in database. on clicking on this "Next" button again next image from the database should be displayed on the newly opened window/page.
3. Is it possible to configure OAF to render window_II in the opposite screen of window_I where the OAF client resides? (If the OAF-client resides in screen_I render window with image in screen_II). That is, at the first click on the Next-button, window_II appers on screen_II and not some random location. The user will have 2 screen/monitors on his work place.
4. Given that the two windows reside on each screen, is it possible to make OAF remember the position of window_II ? The goal of this is to force the window to pop up on the same location on the same screen next time the Next-button is pressed.
5. If window_II is closed (eg. by using X) and the Next-button in window_I is pressed again, will window_II pop up in the same location and screen as previously ?
6. Is it possible to have a Print-button in window_I what prints the scanned picture in window_II ? Is it possible to have the click on this Print-button to open the standard print dialog on top of window_II ? Could the button be placed in window_II as well, having the same functionality ?
I have tried to open home page window. You can change the URL according to your requirement.
import oracle.apps.fnd.framework.webui.OAUrl;
StringBuffer l_buffer = new StringBuffer();
l_buffer.append("javascript:mywin = openWindow(top, '");
String url = "/OA_HTML/OA.jsp?OAFunc=OAHOMEPAGE"; // Calling Oracle Home Page
OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
String strUrl = popupUrl.createURL(pageContext);
l_buffer.append(strUrl.toString());
l_buffer.append("', 'lovWindow', {width:750, height:550},false,'dialog',null);");
pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
Above code will open the new page in new window.
Thanks
--Anil
Similar Messages
-
How to fire a window closing event, not clicking the X button of the UI
I�ve an application that uses a WindowListener for the WindowClosing event of a JFrame. When the user presses CTRL-Q I needed to fire a windowClosing for that frame, in order to detect it and take some actions in the class referencig the JFrame (this class has the windowListener).
setDefaultCloseOperation was not good for me, so i fire the windowClosing event with the following code:
private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
WindowEvent we = new WindowEvent(this,WindowEvent.WINDOW_CLOSING, null, 0, 0);
this.getWindowListeners()[0].windowClosing(we);
}Hope this is the right way to fire the event and this helps someone. If not please code a better way,
AlonsoYes, that works and looks better:
private void exitMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
this.dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));
} "this" refers to the JFrame. -
How can we create a popup window for confirmation while clicking of button
HI Friends,
I am creating a application, In which I want to create a popup window for confirmation on clicking of a button.
I also need two buttons on popup window i.e. 'Yes' & 'No'.
On yes i want to perform some operation and on No i want to cancel that operation.Hi Narendra,
try using the following code in ONACTION of ur button for popup :
* Popup
* Generate Popup
DATA lo_window_manager TYPE REF TO if_wd_window_manager.
DATA lo_api_component TYPE REF TO if_wd_component.
DATA lo_window TYPE REF TO if_wd_window.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_window(
window_name = 'W_POPUP'
window_position = if_wd_window=>co_center
message_display_mode = if_wd_window=>co_msg_display_mode_selected
button_kind = if_wd_window=>co_buttons_yesno
message_type = if_wd_window=>co_msg_type_none
default_button = if_wd_window=>co_button_yes
DATA: l_api TYPE REF TO if_wd_view_controller.
l_api = wd_this->wd_get_api( ).
" subscribe action for Ok button
lo_window->subscribe_to_button_event(
button = if_wd_window=>co_button_yes
action_name = 'OK_POPUP'
action_view = l_api
is_default_button = abap_true ).
lo_window->open( ).
regds,
amit -
How to show modal window without popup in a web page using javascript
Hi,
How to show modal window without popup in a web page using javascript, means when the modalwindow is opened it should not ask for popup blocker alert......
pls help me.....Thanx for ur reply,
Actually the senario is when i click on a button, another jsp page should be displayed in a modal window without popup, but the functions alert() and confirm() will not accept the url path of the another jsp page... -
Hi all report that sends email shows popup window needs to be supressed
hi all
i have developed a report that sends email as an attachement, but this report pops up a window in the end ( it says 'no of objext sent') and there i have to press enter, but my report is running in the background (scheduled report) and therefore there should be no pop ups in the report.
question is how to avoid popup window in the following program.
below is my code
just enter your email id in the code and it will run anywhere.
TABLES: ekko.
*PARAMETERS: p_email TYPE somlreci1-receiver
DEFAULT '[email protected]'.
TYPES: BEGIN OF t_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
wa_ekpo TYPE t_ekpo.
TYPES: BEGIN OF t_charekpo,
ebeln(10) TYPE c,
ebelp(5) TYPE c,
aedat(8) TYPE c,
matnr(18) TYPE c,
END OF t_charekpo.
DATA: wa_charekpo TYPE t_charekpo.
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
w_cnt TYPE i,
w_sent_all(1) TYPE c,
w_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
*START_OF_SELECTION
START-OF-SELECTION.
Retrieve sample data from table ekpo
PERFORM data_retrieval.
Populate table with detaisl to be entered into .xls file
PERFORM build_xls_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
Populate message body text
perform populate_email_message_body.
Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_message
it_attach
using " p_email
'Example .xls documnet attachment'
'XLS'
'filename'
changing gd_error
gd_reciever.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
SELECT ebeln ebelp aedat matnr
UP TO 1 ROWS
FROM ekpo
INTO TABLE it_ekpo.
ENDFORM. " DATA_RETRIEVAL
*& Form BUILD_XLS_DATA_TABLE
Build data table for .xls document
FORM build_xls_data_table.
CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
class cl_abap_char_utilities definition load.
constants:
con_tab type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
con_cret type c value cl_abap_char_utilities=>CR_LF.
CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
LOOP AT it_ekpo INTO wa_charekpo.
CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
wa_charekpo-aedat wa_charekpo-matnr
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
ENDLOOP.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
FORM send_file_as_email_attachment tables pit_message
pit_attach
using "p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
changing p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver value '[email protected]',
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = pit_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM.
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
Instructs mail send program for SAPCONNECT to send email.
FORM initiate_mail_execute_program.
WAIT UP TO 2 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'.
AND RETURN.
ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
*& Form POPULATE_EMAIL_MESSAGE_BODY
Populate message body text
form populate_email_message_body.
REFRESH it_message.
it_message = 'Please find attached a list test ekpo records'.
APPEND it_message.
thanx
rockyhi rocky,
pls comment the submit program form INITIATE_MAIL_EXECUTE_PROGRAM by default the email runs in background and there is no need to submit 'rsconn01' it again to that program where u actually get the pop-up...
try it
hope this helps
regards,
karthik -
Can the feature in the new IOS8 that shows your recent calls when double clicking the home button be deleted?
settings - mail,contacts,calendar - show in app switcher - OFF
-
How to create popup Windows in WebDynpro
I am learning WebDynpro and have developed a sample application where i ask the user to login. In case of incorrect login I want to display a popup window which shows an error message and has an ok button on it. On click of the OK button i want to close the Window.
I have created a view for this popup... called errorView
On click of login button i perform validations n incase the validatins fail i have put in the following code
IWDWindowInfo myWinInfo = wdComponentAPI.getComponentInfo().findInWindows("Ra_ErrorView");
myPopupWindow = wdComponentAPI.getWindowManager().createWindow(myWinInfo,true);
myPopupWindow.setWindowPosition(300,150);
myPopupWindow.open();
How should i proceed?
Where should i write the myPopupWindow.close()
Kindly give a step-by-step solution.Hi Reema,
You want to close a window say window1 which you opened from a view.
create an attribute. select its type from java native settings to IWDWindow
wdContext.currentcontextElement().setWindowInstance(window);
1.create an event in component controller say event1
2.In order to trigger the event in component controller create a method in it
write this code in implementation of controller to trigger the event
wdThis.wdFireEventAddressSelectedEvent();
3.For catching whatever event that is responsible for closing the window create an event handler in view1 say eventhandler1.Choose the subscibed event to be event1
4.In that eventhandler1 write the code in implementation
IWDWindow window =
wdContext.currentcontextElement().getWindowInstance();
window.close();
Hope this helps you.Do revert back if you have more doubts
Regards
Rohit
Message was edited by: Rohit Radhakrishnan -
Show popup window with LED lights using SALV(factory method)
Hello Experts,
I need to add a button that when the user clicks it, a popup window will appear
showing the meanings(legends) of the LED lights in my report. How do I do this guys?
Thanks you and take care!Please check the program SALV_TEST_TABLE_COLUMNS and
after setting up the values for ICON and showi it as in a popup by
data: gr_table type ref to cl_salv_table.
gr_table->set_screen_popup(
start_column = 1
end_column = 110
start_line = 1
end_line = 20 ).
gr_table->display( ).
a® -
I have installed Windows 7 64 bit version in my MacBook Pro Retina(13") late 2013 model . It was working fine from last 8 months but recently popup window showing as "Windows detected a hard disk problem" once login. Please check the following image.
I have contacted Apple Support team. They have tested the hard disk while booting from Mac OS and all the reports showing as hard disk is fine. Then I thought might be it was some virus and removed the Bootcamp partition and re-installed Windows 7 Operating System. But once updated Windows 7 with latest updates. This message showing again.
Would you please help me out to fix this issue. Anybody faced similar issue?No I think that all drive are really on failure
I've boot with an ubuntu livecd and smartmontools see also the failure.
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x001a 200 200 000 Old_age Always - 0
5 Reallocated_Sector_Ct 0x0033 100 100 000 Pre-fail Always - 0
9 Power_On_Hours 0x0032 099 099 000 Old_age Always - 1872
12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 762
169 Unknown_Attribute 0x0013 253 253 010 Pre-fail Always - 4003597393408
173 Unknown_Attribute 0x0036 100 100 100 Old_age Always FAILING_NOW 12124890467160
174 Unknown_Attribute 0x0022 099 099 000 Old_age Always - 7469954
175 Program_Fail_Count_Chip 0x0022 099 099 000 Old_age Always - 4989854
192 Power-Off_Retract_Count 0x0012 099 099 000 Old_age Always - 31
194 Temperature_Celsius 0x0022 064 064 000 Old_age Always - 36 (Min/Max 11/75)
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
199 UDMA_CRC_Error_Count 0x001a 200 199 000 Old_age Always - 0
240 Unknown_SSD_Attribute 0x0022 100 100 000 Old_age Always - 0
When I use the Mac disk tools from the startup menu, it see also the problem.
Now the big question is : Why I've this type of issue with 2 MBA and 1 Macbook pro 15".
Their configurations are the same : windows 7 with truecrypt.
Maybe Windows drastically reduces the lifetime of the Apple SSD drive.
The 3 Mac are used for less than 6 month !!!! -
How to show popup from backing bean code immediately?
Hi,
I'm using JDeveloper 11.1.2.1.0 and have problems with showing popups. I have a button with an action on my page and a method in backing bean.
I want to rise up few popups from this method in backing bean (for example just an anouncement that something will happen) or a dialog
(for example a question if you want to continue).
I understand how to get a dialog response to deal with it in code, but the problem is that the popup doesn't show up immediately, but only when
this method called on button finishes. I'd like to handle dialog responses in the middle of the action and then the code to continue with the execution.
Here is my backing bean code:
private RichPopup popup;
public String test() {
//Some code...
RichPopup.PopupHints hints = new RichPopup.PopupHints();
popup.show(hints);
//Here is the place for code which I want to be executed after popup closes,
//but is executed before the popup shows...
return null;
And here is part of my jssf:
<af:commandButton text="Test" id="cb1"
action="#{popupBean.test}"/>
<af:popup id="popup" binding="#{popupBean.popup}">
<af:dialog id="dialog" type="yesNo"
title="Dialog"
dialogListener="#{popupBean.onDialogAction}"
binding="#{popupBean.dialog}" clientComponent="true">
<af:outputText value="Do you want to continue?" id="ot1"/>
<af:clientListener method="onDialogCancel" type="dialog"/>
<af:serverListener type="DialogCancelHandlerEvent" method="#{popupBean.onDialogCancel}"/>
</af:dialog>
</af:popup>
Can someone give me some answer how to show the popup from backing bean code immediately?
Thanks in advance,
TinaIf you want to execute code after popup closes, then put this code in PopupCanceledListener or in DialogListener(you can't block method execution).
Dario -
Problem in Popup Window in OAF
Hi,
We are populating a table results page in OAF based on the search items. In the Results table, we have a link(to a new page that has only one table region) on a column(itemstyle: link) so that it should open in a popup modal window. On closing the same, I should be able to conduct a new search.
But what happens here is, after closing the popup window, we are not able to conduct a new search on the same page; the Result table is populated based on the previous search values (that is the master page still holds the old search values and when Go button is clicked the results based on the previous values would be displayed). Even if I click ‘Go’ button, the process form request method is not being called. Also the firePartial actions such as making a field mandatory are not working. This happens only after opening the link & closing the popup window. If we do not click to open the pop up window, we are able to make n number of searches.
The link to open the popup window is:
javascript:openWindow(top,'OA.jsp?page=/ikn/oracle/apps/ak/webinv/webui/SearchCompPG¶m1={@param1}¶m2={@param2}&retainAM=N &addBreadCrumb=N', 'modal', {width:750, height:350},true, 'dialog', null);void(0);
Please let me know the fix for this issue.
Thanks in advance.Ah, the daily OAF post.
There is an [url http://forums.oracle.com/forums/forum.jspa?forumID=210]OA Framework Forum for these types of questions.
Regards,
John -
How to reduce Popup Window Size?
Hello All,
I have one popup window, the height of popup window is being displayed too large.
I used method IF_WD_WINDOW->WINDOW_SIZE( ), there are parameters 'Width' and 'Height' of type string, i have passed '30' and also '30%' like formate, it didn't work.
how to control the size of window? Could you please suggest me?To be honest i havent found the size parameters working, what you can do though is to RESTRUCTURE the TEXT to be displayed in the pop-up, that would allow you to controll the WIDTH of the pop-up.
in my code sample below l_text table has 2 entries, we can further have more inserts to it to gain height.
You can create pop-up with different text, by extending the below source.
data : l_cmp_api type ref to if_wd_component,
l_window_manager type ref to if_wd_window_manager,
l_popup type ref to if_wd_window,
l_text type string_table,
l_api type ref to if_wd_view_controller,
RR_POPUP_WINDOW type ref to IF_WD_WINDOW.
l_cmp_api = wd_this->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
insert `Records marked with RED LED contain error into table l_text.
insert `To proceed processing with errors, select YES for this POP-UP.` into table l_text.
rr_popup_window = l_window_manager->create_popup_to_confirm(
text = l_text
button_kind = if_wd_window=>co_buttons_yesnocancel
message_type = if_wd_window=>co_msg_type_warning
window_title = 'INFO'
window_position = if_wd_window=>co_center
). "#EC
rr_popup_window->subscribe_to_button_event(
button = if_wd_window=>co_button_yes
action_name = 'TO_V_PODETAILS' "action on the view that handles click
action_view = ir_view
is_default_button = abap_true ).
RR_POPUP_WINDOW ->open( ).
Greetings
Prashant -
Issue with table selection in popup window in oaf
Hi ALL,
I have a popup seach window in that i am displaying search data in table region below, from that i need to select the number of rows and clicking on a button the same selected rows should display in another page.
i tried with using RowSetIterator but not able to achive this , please help me out on this.
ThnaksCan anyone please help me on this
Thnaks -
How to stop popup window using phone layout for display - Responsive HTML5, RH11
Hello,
I'm using the new Responsive HTML5 output in RH11. For some of my hyperlinks, I want to use a pop-up to display the linked topic. In the output, the pop-ups work, but they are automatically displayed using the phone layout, with the associated navigation buttons at the bottom, the help title, and so on. I don't want this - I just want a plain popup window. So, I tried to add a Screen Profile, set to 400 x 500 pixels exactly (thinking that this is bigger than a phone, but smaller than a tablet). I also added a corresponding Screen Layout. In the popup properties, I set the popup size to be 400 x 500 pixels. I guess there is something else I need to do to get this to work... but I don't know what that is. (I tried creating a new Window on the Project Set-up tab, and I tried creating a different master page. These things didn't work.)
Can anyone tell me if what I'm trying to do with these popups is just a bad idea and it won't work well with certain browsers?
Thanks!
AlexandraI am confused as the responsive layouts are one size fits all, that is the point of them. You have one layout that morphs according to window size.
Screen Profiles are only used within Multiscreen HTML5 layouts where you can map screen profiles to different adaptive screen layouts, such as desktop, tablet and phone. That mapping does not apply to responsive layouts.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
ALV Report : How to display popup window?
Hello Friends,
I have developed oone ALV report using classes.
When i hit a button, I want to display one pop window which gives me my internal table details and one more button in this popup window.
Is it possible to call pop window with ALV using classes??
Regards
RHUse the following Methods:
METHODS: lmt_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object
e_interactive,
** Method for User Command
lmt_command FOR EVENT user_command OF cl_gui_alv_grid
IMPORTING e_ucomm,
FORM sub_create_toolbar USING uw_object
TYPE REF TO cl_alv_event_toolbar_set
uw_interactive TYPE char01.
DATA: lw_stb_button TYPE stb_button.
FIELD-SYMBOLS: <l_button> TYPE stb_button.
** Fill in the toolbar Button
lw_stb_button-function = 'IFLU'.
lw_stb_button-icon = icon_te_receipts.
lw_stb_button-quickinfo = text-b01.
lw_stb_button-text = text-b01.
INSERT lw_stb_button INTO uw_object->mt_toolbar INDEX 3.
READ TABLE uw_object->mt_toolbar ASSIGNING <l_button> INDEX 1.
IF sy-subrc = 0.
<l_button>-butn_type = 1.
ENDIF.
ENDFORM. " sub_create_toolbar
FORM sub_access_command USING uw_ucomm TYPE sy-ucomm.
DATA: lt_row TYPE lvc_t_row,
lt_rowid TYPE lvc_t_roid,
lw_count TYPE lvc_index.
FIELD-SYMBOLS: <l_row> TYPE lvc_s_row.
** Get the Selected row to be displayed
CALL METHOD gw_grid->get_selected_rows
IMPORTING
et_index_rows = lt_row
et_row_no = lt_rowid.
** User Command
CASE uw_ucomm.
WHEN 'IFLU'.
** Read the index from which the Document Flow was selected
READ TABLE lt_row ASSIGNING <l_row> INDEX 1.
IF sy-subrc = 0.
PERFORM sub_get_detail USING <l_row>-index.
ENDIF.
WHEN c_detail1.
** Call the screen or the Function Module here to display the popup.
PERFORM sub_show_detail USING abap_false.
WHEN c_detail2.
PERFORM sub_show_detail USING abap_true.
ENDCASE.
ENDFORM. " sub_access_command
Hope That Helps
Anirban M.
Maybe you are looking for
-
Problem with dba_fga_audit_trail
Hi All I am facing a problem with dba_fga_audit_trail I have a package which selects from this table. When I try to compile the package it gives an error saying "Insufficient privilges" If I run the same Select statement in SQLPLUS, it gives the outp
-
SWF export won't include URL link?
To start off with I work for an agency, that, at present does not own Flash. I've created a web banner in After Effects, and then imported the FLV file into InDesign. [With the dimensions 120x600] But when I add a web hyperlink to a box [overlayed on
-
CK727 -Lot size cannot be passed on in combination with mixed costing
I get below error. We have KMAT materials and scenario is Non Valuated Sales Order Stock. in our PPC4 - we have below settings. (Both are SAP recommended) Qty Structure tab we have Pass on Lot size "1" with individual requirements (must of Non Valua
-
Max number of characters in a Disco Calculation
Anyone know what the max number of characters in a Disco Calculation and any other limitations that exist Thanks
-
Can we change the fully approved SC?
Dear SAP experts, We are in SRM 7.01 with backend ECC 6.05. I have a simple question, can we change a SC that is already fully approved? As in ECC, though the PR are already fully released, we can change the PR and as the result the PR release strate