Application specific button on FPM toolbar to call action triggered in view
Hello,
In the content area of my FPM is an ALV with some buttons, e.g. clicking one of the button opens up certain ALV column for editing (for simplicity, I omit the details besides simply enable the columns).
With FPM, I want the button to be placed in the toolbar as a application specific button. How do I achieve the same functionality e.g. from PROCESS_EVENT method calling an action (to open up certain ALV column for editing) via the application specific button placed on the toolbar communicating with the action/method found in the view controller ? Thank you.
Regards
Kir Chern
Hi Arvind,
I tried as follows :
- Create an event in the component controller, say 'MA'
- Within PROCESS_EVENT, raise the event as follows :
data : lo_fpm type ref to if_fpm,
lo_event type ref to cl_fpm_event.
create object lo_event
exporting
iv_event_id = 'MA'.
lo_fpm = cl_fpm_factory=>get_instance( ).
lo_fpm->raise_event( io_event = lo_event ).
- In the view controller, create an event handler which subscribe to the event, MA of the component controller.
However, the code in the event handler is never executed despite the event being raised. Not sure how FPM event flow works here.
Can anyone advise ? Thank you.
Regards
Kir Chern
Similar Messages
-
Remove EDIT button from FPM ToolBar
Hi All,
I am new to FPM, and I am working on SRM 7.0. In the Monitor Shopping cart WD application, after search event, a list of Shopping Carts are displayed, when we click on one of the SC number, the SC screen opens as a new Pop-up.
Here we have an EDIT button, and we need to remove this button from this screen.
Technical Details(EDIT button):
Application: /SAPSRM/WDA_L_FPM_OIF
Web Dynpro Component: FPM_OIF_COMPONENT
Window Information: FPM_WINDOW
View Information: CNR_VIEW
Configuration ID: ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL
Technical Details(SC screen):
Application: /SAPSRM/WDA_L_FPM_OIF
Web Dynpro Component: /SAPSRM/WDC_UI_SC_DOFC_HD
Window Information: IV_L_FPC_CA_HDR
View Information: V_SC_BOFC_HD
Configuration ID: /SAPSRM/WDCC_FPM_SC_HD_PR
Appreciate any help on this.
Thanks,
PrabhakaranHi Prabhakaran
You will need remove the static usage of config id ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL and make use of dynamic component configuration depending on the particular scenario.
Create two configuration id's ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL1 and ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL2. Set visible property of Edit button as visible in the first config ID and none in the second.
Now assign this config ID dynamically depending on the scenario. If scenario is Monitor SC, then assign config ID ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL2, else assign config ID ZSAPSRM_WDCC_FPM_OIF_SC_PROFNL1.
Please refer the below document for usage of dynamic component configuration.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70337875-167f-2e10-daa7-a1c69d55ee95
Hope this helps.
Regards
Lorraine -
Capture screen positions on click of a button in FPM toolbar
Hi Uve,
Currently in visual business if i right click on any map stack i will get the option for personalization and to set the screen position per user.
But my requirement is I have to set screen positions for multiple rail yards per user.So on click of a save button in fpm i require tje current screen positions so that i could save it and pass it during initialization of VB for that yard next time.
But what i notice is only when we right click on a map stack the exact screen position details are fired to backend,But when we right click on spot or links screen positions details like zoom factor, change of perception values etc are not passed.
Could you suggest a solution to get screen position from VB on an external FPM event.
Thanks
SijuHello Siju,
I am afraid this is a limitation of the current backend of Visual Business. Technically the camera value can be retrieved with every event fired by the control. But in your case there are two issues right now:
1. There is no event raised by the VB control when you press an FPM button
2. Even if there would be an event, the camera data needs to be requested with the event registration. This registration is fix for the backend API, and the data comes only with the right click on the map/scene.
However, there is a chance to get this done! If you check impl of method IF_VBI_CONTROL_ADAPTER~CHECK_DATA_CHANGED of class CL_VBI_CONTROL_ADAPTER you see how to trigger an arbitrary event of the control from the backend. You can derive your own control adapter from our base class and add an own method triggering event "7" instead of "GenDummy". This should lead to a context menu request including the current camera values.
Good luck,
Uwe -
Application Specific Buttons on my Logitech mouse do now works on Photoshop CC 2014
Hi there,
Just updated to Photoshop CC 2014.
I have Logitech MX 1100 mouse with some nice additional buttons that I used in previous versions of photoshop. I adjusted these buttons in SetPoint.
After I updated to PS CC 2014 the buttons just stopped working. They worked just a 5 mins ago when I was using Photoshop CC. (I use Latest Photoshop version, Latest Windows 8.1 version, Have Wacom tablet - latest drivers)
Buttons also do not work in illustrator CC 2014, but surprisingly works on inDesign CC 2014.
(Mapped functions on same buttons but on different applications, buttons worked good.)
I used to use these buttons and I'm very frustrated I cannot. Please help.
Thanks!
SKThanks for your reply, Chris Cox. I've checked the Windows System Event Log and here are the details:
Details (Tab) of same error (Photoshop)
I noticed since Jan 5, 2015, Photoshop has crashed a lot. I run Adobe Illustrator with it but it doesn't give the same errors. Other applications run fine too, so I'm not sure if it as you mentioned that it is the "system" that is crashing so often.
(You seem to have suggested a video card upgrade. I will work on that next. Thanks)
I hope you or anyone who can, help me with this problem with Photoshop and the issue with my account in Creative Cloud.
Looking forward to your help. Thank you. -
How tho reg Event while user push on button on the toolbar
HI All,
I am using Alv tree and I add 2 specific button to the toolbar.
what I try to do is to register event for the button such as
ON_USER_COMMAND but the problem is that its not works
i am using the class cl_gui_alv_tree for tree and
for toolbarand for Toolbar cl_gui_toolbar.
any idea which event should i use when the user
press on button on toolbar ?
Best Regards
AlexHi Alex,
Did you check the SAP demo program 'BCALV_TREE_04' ?
BR,
Suhas -
Hi, I'm having a problem retrieving my missed calls. When I press the recents button it goes back to home screen. But when I press mail button and any other application the button works. I have tried restore but to no avail. Please help.
I have exactly the same problem, happy a few days ago. Did you find a solution?
-
FPM toolbar: align buttons to the right?
I would like to align several buttons in a toolbar to the right (e.g. a "logout" button in a GAF), so position it directly before the standard customize and help buttons. Is it possible in some way?
Best regards,
ThomasHi Thomas,
Change the Alignment From Default value from Left to Right.
Regards,
Ragavendra -
How to hide 'layout button' on ALV toolbar
Hi,
I have an ALV and it has standard toolbar, now i want to hide 'Layout button' from the toolbar based on specific condition e.g when flag = 1.
How to do that.
Thanks,If you are using the REUSE function, you can use the "EXCLUDING" parameter, and pass the FCODE for "Change Layout" to this table. This will remove the icon from the toolbar. Here is an example.
REPORT rich_0001 .
* Global ALV Data Declarations
TYPE-POOLS: slis.
* Internal Tables
DATA: BEGIN OF ialv OCCURS 0,
test1(10) TYPE c,
test2(10) TYPE c,
END OF ialv.
DATA: xfc TYPE slis_fieldcat_alv.
DATA: ifc TYPE slis_t_fieldcat_alv.
DATA: iexcluding TYPE slis_t_extab.
DATA: xexcluding LIKE LINE OF iexcluding.
PARAMETERS: p_hide TYPE c DEFAULT 'X'.
START-OF-SELECTION.
REFRESH iexcluding.
* If the user wants to hide the change layout icon, then add to IEXCUDING
IF p_hide = 'X'.
xexcluding-fcode = '&OL0'.
APPEND xexcluding TO iexcluding.
ENDIF.
REFRESH ifc.
xfc-reptext_ddic = 'Test1'.
xfc-fieldname = 'TEST1'.
xfc-outputlen = '10'.
APPEND xfc TO ifc.
xfc-reptext_ddic = 'Test2'.
xfc-fieldname = 'TEST2'.
xfc-outputlen = '10'.
APPEND xfc TO ifc.
* Call ABAP List Viewer (ALV)
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_excluding = iexcluding
it_fieldcat = ifc
TABLES
t_outtab = ialv.
Regards,
Rich Heilman -
Best way to make my WDA read only when user selects from FPM toolbar
Using FPM, we've inserted a custom web dynpro application to maintain our gate dates in PPM 5.0.
When the user presses the Read Only button on the FPM toolbar, what's the best way to turn our fields off? Just create a new attribute in our Component Controller context node and bind it to all the screen fields?Hallo Robert,
I think it is the best and easy way to realize this. -
How to add buttons in Main toolbar in SAP EHSM?
Hi All,
We have a requirement where we need to add button to main toolbar in incident creation in SAP EHSM.
Comp. Configuaration : EHHSS_INC_REC_OIF_V3
In the above picture, we want to add custom button "Submit". But when i add new button in comp. configuartaion, my application stops responding and i get time out error.
Please suggest,how to move forward.
Thanks,
VimalHi Vimal,
If we have to add a new button to a toolbar, please right click on the toolbar and get the technical details like the component name, application name , etc. & and based on the information goto the required configuration in the workbench and add the button at component level or at FPM config.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0a2b7c2-1598-2e10-45bc-c556df3b9576?QuickLink=index&…
Above link is guide to help you for the same,
Regards,
Harsha -
Hiding a subview called in a main view in WEBDYNPRO Application
Hello Experts,
I have a scenario in which i am calling a subview inside a main view. I have created a main view in which:-
1. List of reportee to the manager logged in is getting displayed in the form of a table.
2. When we select any row of this table ( means selection of any reportee row) and click on a button 'Get Details', then it should display the detailed personal data of that reportee.
I have successfully called an already created personal data view inside this main view to display the detailed personal data of any selected reportee. But the issue is in the main view:-
1. This view has table containing the list of reportee getting displayed.
2. This view simultaneously also displays the default first row detailed data of the table of reportee.
Our requirement is:-
1. To display only table containing the list of reportee in the first load of main view.
2. Then when any row of this table is selected, then only the detailed data specific to that row should be displayed.
My approach till now is:-
1. I have removed the default first row lead selection for the table of reportee.
2. I have created a node VISIBILITY_DET_DATA and then an attribute IS_VISI BLE under that node of type WDUI_VISIBILITY.
3. In the layout section i have created a group GROUP_DETAIL_DATA and a view container UI element under that to call the detailed data view when any row of table containing the list of reportee is selected.
4. I have created a binding for the VISIBLE property of the group GROUP_DETAIL_DATA to the attribute IS_VISI BLE created in the context of the component contoller.
5. I have then used the method WDDOINIT of the main view to write code to hide the detailed data view by setting the IS_VISIBLE flag to '02' i.e. NONE.
But this is causing the entire view to be coming as blank view.
I am not sure why this is happening, Can any of you suggest if i am missing anything important which is cauing this analomy.
RupeshHi ,
This is a Webdynpro related question. you would have got many repsonses if you posted in webdynpro forum.
i) I would want to know how to hide Image object or the transparent container which holds the IMAGE object, dynamically through the code inside the MODIFYVIEW method of the view
You can do a post_exit enhancement in the MODIFYVIEW method. Get the UI element object from view and There are methods to set the visibility at runtime.
Is there an option to dynamically specify diffent image based on the login language with the IMage container?
i think yes, same procedure as first question's answer. Based on condition you can change the source path of the mime object . -
Button in ALV toolbar with REUSE_ALV_GRID_DISPLAY
Hello friends,
I am Displaying ALV using REUSE_ALV_GRID_IDSPLAY. i need to add a button in grid toolbar.
i am doing it by adding a new ZSTATUS in SET PF_STATUS. but the problem is that it is removing the standard buttons.
i want to add button without removing the standard butttons.
Please help.
thanx in advance.
Krishan Kumarhai friends.......
i had tried to add custom button to the reuse_alv_grid_display.please send the coding...
REPORT ZHAJI_SAMPLE.
tables:lfa1.
TYPE-POOLS : slis.
SELECT-OPTIONS: lifnr FOR lfa1-lifnr.
types:begin of fs,
flag type c,
lifnr type lfa1-lifnr,
land1 type lfa1-land1,
name1 type lfa1-name1,
end of fs.
data: itab type table of fs,
wa type fs.
data: fcat type slis_t_fieldcat_alv,
fcat1 type slis_fieldcat_alv.
data: rt_extab type slis_t_extab.
*CONSTANTS : c_check(1) VALUE 'X'.
select lifnr land1 name1 from lfa1 into corresponding FIELDS OF table
itab where lifnr IN
lifnr.
perform sub.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = 'sy-repid'
I_CALLBACK_PF_STATUS_SET = 'PF'
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE = 'vendor details'
I_GRID_SETTINGS =
IS_LAYOUT = LAYOUT
IT_FIELDCAT = fcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS = I_EVENT
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = itab
EXCEPTIONS
PROGRAM_ERROR = 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.
form sub.
fcat1-fieldname = 'FLAG'.
fcat1-tabname = 'TAB'.
*fcat1-COL_POS = 1.
fcat1-checkbox = 'X'.
fcat1-edit = 'X'.
append fcat1 to fcat.
CLEAR FCAT1.
fcat1-fieldname = 'LIFNR'.
fcat1-ref_tabname = 'LFA1'.
fcat1-ref_fieldname = 'LIFNR'.
FCAT1-outputlen = 10.
append fcat1 to fcat.
CLEAR FCAT1.
fcat1-fieldname = 'NAME1'.
fcat1-ref_tabname = 'LFA1'.
fcat1-ref_fieldname = 'NAME1'.
append fcat1 to fcat.
CLEAR FCAT1.
fcat1-fieldname = 'LAND1'.
fcat1-ref_tabname = 'LFA1'.
fcat1-ref_fieldname = 'LAND1'.
append fcat1 to fcat.
CLEAR FCAT1.
endform.
form PF USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'ZHAJI_P1' .
ENDFORM.
just give the fine coding -
Menu Button in ALV toolbar (multiple choices for a button)
Hi abapers,
I would like to have a button with multiple choices in the toolbar;
at the moment I have created a menu button with just one function.
Here is my code:
CLASS lcl_event_receiver (Definition)
CLASS lcl_event_receiver DEFINITION.
PUBLIC SECTION.
METHODS:
handle_toolbar
FOR EVENT toolbar OF cl_gui_alv_grid
IMPORTING e_object e_interactive.
ENDCLASS. "lcl_event_receiver DEFINITION
CLASS lcl_event_receiver (Implementation)
CLASS lcl_event_receiver IMPLEMENTATION.
METHOD handle_toolbar.
DATA: ls_toolbar TYPE stb_button.
*Separator
CLEAR ls_toolbar.
MOVE 3 TO ls_toolbar-butn_type.
APPEND ls_toolbar TO e_object->mt_toolbar.
*Button
CLEAR ls_toolbar.
MOVE 1 TO ls_toolbar-butn_type.
MOVE 'EDIT' TO ls_toolbar-function.
MOVE icon_change TO ls_toolbar-icon.
MOVE ' Modifica'(l02) TO ls_toolbar-text.
MOVE ' ' TO ls_toolbar-disabled.
MOVE 'Modifica' TO ls_toolbar-quickinfo.
APPEND ls_toolbar TO e_object->mt_toolbar.
ENDMETHOD. "handle_toolbar
ENDCLASS. "lcl_event_receiver IMPLEMENTATIONhi,
check this code and reward me if it helps you..
TYPE-POOLS : slis,icon.
*Structure declaration for tcodes
TYPES : BEGIN OF ty_table,
tcode TYPE tcode,
pgmna TYPE progname,
END OF ty_table.
*Structure for tocde text
TYPES : BEGIN OF ty_itext,
tcode TYPE tcode,
ttext TYPE ttext_stct,
sprsl TYPE sprsl,
END OF ty_itext.
*Structure for output display
TYPES : BEGIN OF ty_output,
tcode TYPE tcode,
pgmna TYPE progname,
ttext TYPE ttext_stct,
END OF ty_output.
*internal table and work area declarations
DATA : it_table TYPE STANDARD TABLE OF ty_table INITIAL SIZE 0,
it_output TYPE STANDARD TABLE OF ty_output INITIAL SIZE 0,
it_ittext TYPE STANDARD TABLE OF ty_itext INITIAL SIZE 0,
wa_table TYPE ty_table,
wa_output TYPE ty_output,
wa_ittext TYPE ty_itext.
*Class definition for ALV toolbar
CLASS: lcl_alv_toolbar DEFINITION DEFERRED.
*Declaration for toolbar buttons
DATA : ty_toolbar TYPE stb_button.
Data declarations for ALV
DATA: c_ccont TYPE REF TO cl_gui_custom_container, "Custom container object
c_alvgd TYPE REF TO cl_gui_alv_grid, "ALV grid object
it_fcat TYPE lvc_t_fcat, "Field catalogue
it_layout TYPE lvc_s_layo, "Layout
c_alv_toolbar TYPE REF TO lcl_alv_toolbar, "Alv toolbar
c_alv_toolbarmanager TYPE REF TO cl_alv_grid_toolbar_manager. "Toolbar manager
*Initialization event
INITIALIZATION.
*Start of selection event
START-OF-SELECTION.
*Subroutine to get values from tstc table
PERFORM fetch_data.
*subroutine for alv display
PERFORM alv_output.
CLASS lcl_alv_toolbar DEFINITION
ALV event handler
CLASS lcl_alv_toolbar DEFINITION.
PUBLIC SECTION.
*Constructor
METHODS: constructor
IMPORTING
io_alv_grid TYPE REF TO cl_gui_alv_grid,
*Event for toolbar
on_toolbar
FOR EVENT toolbar
OF cl_gui_alv_grid
IMPORTING
e_object.
ENDCLASS. "lcl_alv_toolbar DEFINITION
CLASS lcl_alv_toolbar IMPLEMENTATION
ALV event handler
CLASS lcl_alv_toolbar IMPLEMENTATION.
METHOD constructor.
Create ALV toolbar manager instance
CREATE OBJECT c_alv_toolbarmanager
EXPORTING
io_alv_grid = io_alv_grid.
ENDMETHOD. "constructor
METHOD on_toolbar.
Add customized toolbar buttons.
variable for Toolbar Button
ty_toolbar-icon = icon_generate.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button1'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_voice_output.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button2'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_phone.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button3'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_mail.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button4'.
APPEND ty_toolbar TO e_object->mt_toolbar.
ty_toolbar-icon = icon_voice_input.
ty_toolbar-butn_type = 0.
ty_toolbar-text = 'Button5'.
APPEND ty_toolbar TO e_object->mt_toolbar.
Call reorganize method of toolbar manager to
display the toolbar
CALL METHOD c_alv_toolbarmanager->reorganize
EXPORTING
io_alv_toolbar = e_object.
ENDMETHOD. "on_toolbar
ENDCLASS. "lcl_alv_toolbar IMPLEMENTATION
*& Form fetch_data
text
--> p1 text
<-- p2 text
FORM fetch_data .
Select the tcodes upto 200 rows from TSTC
SELECT tcode
pgmna
FROM tstc
INTO CORRESPONDING FIELDS OF TABLE it_table
UP TO 200 ROWS
WHERE dypno NE '0000'.
*Select the tcode textx
IF it_table[] IS NOT INITIAL.
SELECT ttext
tcode
sprsl
FROM tstct
INTO CORRESPONDING FIELDS OF TABLE it_ittext
FOR ALL ENTRIES IN it_table
WHERE tcode = it_table-tcode
AND sprsl = 'E'.
ENDIF.
Apppending the data to the internal table of ALV output
LOOP AT it_table INTO wa_table.
wa_output-tcode = wa_table-tcode.
wa_output-pgmna = wa_table-pgmna.
For texts
READ TABLE it_ittext INTO wa_ittext WITH KEY tcode = wa_table-tcode.
wa_output-ttext = wa_ittext-ttext.
APPEND wa_output TO it_output.
CLEAR wa_output.
ENDLOOP.
ENDFORM. " fetch_data
*& Form alv_output
text
--> p1 text
<-- p2 text
FORM alv_output .
*Calling the ALV
CALL SCREEN 0600.
ENDFORM. " alv_output
Calling the ALV screen with custom container
On this statement double click it takes you to the screen painter SE51.Enter the attributes
*Create a Custom container and name it CC_CONT and OK code as OK_CODE.
*Save check and Activate the screen painter.
Now a normal screen with number 600 is created which holds the ALV grid. PBO of the actual screen , Here we can give a title and *customized menus
*& Module STATUS_0600 OUTPUT
text
MODULE status_0600 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0600 OUTPUT
calling the PBO module ALV_GRID.
*& Module ALV_GRID OUTPUT
text
MODULE alv_grid OUTPUT.
*create object for custom container
CREATE OBJECT c_ccont
EXPORTING
container_name = 'CC_CONT'.
*create object of alv grid
CREATE OBJECT c_alvgd
EXPORTING
i_parent = c_ccont.
create ALV event handler
CREATE OBJECT c_alv_toolbar
EXPORTING
io_alv_grid = c_alvgd.
Register event handler
SET HANDLER c_alv_toolbar->on_toolbar FOR c_alvgd.
Fieldcatalogue for ALV
PERFORM alv_build_fieldcat.
ALV attributes FOR LAYOUT
PERFORM alv_report_layout.
CHECK NOT c_alvgd IS INITIAL.
Call ALV GRID
CALL METHOD c_alvgd->set_table_for_first_display
EXPORTING
is_layout = it_layout
CHANGING
it_outtab = it_output
it_fieldcatalog = it_fcat
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDMODULE. " ALV_GRID OUTPUT
*& Form alv_build_fieldcat
text
<--P_IT_FCAT text
FORM alv_build_fieldcat.
DATA lv_fldcat TYPE lvc_s_fcat.
CLEAR lv_fldcat.
lv_fldcat-row_pos = '1'.
lv_fldcat-col_pos = '1'.
lv_fldcat-fieldname = 'TCODE'.
lv_fldcat-tabname = 'IT_OUTPUT'.
lv_fldcat-outputlen = 8.
lv_fldcat-scrtext_m = 'TCODE'.
APPEND lv_fldcat TO it_fcat.
CLEAR lv_fldcat.
lv_fldcat-row_pos = '1'.
lv_fldcat-col_pos = '2'.
lv_fldcat-fieldname = 'PGMNA'.
lv_fldcat-tabname = 'IT_OUTPUT'.
lv_fldcat-outputlen = 15.
lv_fldcat-scrtext_m = 'PROGNAME'.
APPEND lv_fldcat TO it_fcat.
CLEAR lv_fldcat.
lv_fldcat-row_pos = '1'.
lv_fldcat-col_pos = '3'.
lv_fldcat-fieldname = 'TTEXT'.
lv_fldcat-tabname = 'IT_OUTPUT'.
lv_fldcat-outputlen = 60.
lv_fldcat-scrtext_m = 'Description'.
APPEND lv_fldcat TO it_fcat.
CLEAR lv_fldcat.
ENDFORM. " alv_build_fieldcat
*& Form alv_report_layout
text
<--P_IT_LAYOUT text
FORM alv_report_layout.
it_layout-cwidth_opt = 'X'.
it_layout-zebra = 'X'.
ENDFORM. " alv_report_layout
PAI module of the screen created. In case we use an interactive ALV or
*for additional functionalities we can create OK codes
*and based on the user command we can do the coding.
*& Module USER_COMMAND_0600 INPUT
text
MODULE user_command_0600 INPUT.
ENDMODULE. " USER_COMMAND_0600 INPUT
thanks,
gupta -
Application Specific Popup in Web Dynpro - Issue
Hi Gurus,
I am trying application specific popup which is described in FPM cook book. I am deferring the current event and trying the following steps as described in the cook book.
1) Created new WD ABAP view "POPUP_CARRIER"
2) In the component controer created a new WD ABAP event. e.g: "REGISTER_POPUP". which does not have any parameters
3) In the method PROCESS_EVENT of component controller raise the WD event "REGISTER_POPUP"
4) In the view POPUP_CARRIER create a new method. e.g "REGISTER_POPUP of type event handler for the event "REGISTER_POPUP_EVNET"
5) In the method REGISTER_POPUP use the ABAP window API inorder to create a POPup.
My issue is the method which is dependent on event is not invoking. Any help would be appreciated
Sincerely,
GSMHi,
Does anybody know how to open view specific popups from Process event method. I have followed the similar steps as suggested in the FPM cookbook but I dont get any popup. When I debug I get following error.
Class: CL_WDR_CLIENT_ABSTRACT_HTTP
Method: HANDLE_REQUEST
cl_wdr_client_ssr=>todo_cleanup( 'Evil hack because of missing support in RR_APPLICATION' )."#EC NOTEXT
Thanks
Abhay -
Enable/disable problem with button on table toolbar
Hello *,
In my WD (ABAP) application, on a view I have a table, a toolbar within it and buttons on the toolbar. I am trying to control 'enable' property of one button, binding it to an attribute in view's context.
When I do this trick just for any button on the view which is not on the toolbar, it works just fine. But when the button is placed on table's toolbar - it just stays disabled all the time.
Normally I bind enable property to an attribute in the <b>root</b> node. When I change attribute value, the 'normal' button responds correctly (getting enabled or disabled), but the <u>table toolbar button</u> <b>does not</b>. I start wondering if table controls (like toolbar and its buttons) has something to do with a node the table is bound to?
Any comments about special features of toolbar and its buttons being placed in a table?
Thanks!Looks like a bug to me. There is nothing special with toolbar buttons vs. "normal" buttons (at least not in Web Dynpro Java).
Armin
Maybe you are looking for
-
INDEX UNIQUE SCAN instead of INDEX FULL SCAN or TABLE ACCESS FULL
I have calculated statistics in all tables and indexes I have a table and a view and when I put it SELECT * FROM TABLE_A A INNER JOIN VIEW_B B ON A.KEY_ID = B.PFK_KEY_ID WHERE (B.FK_ID_XXX = 1) If I see the execution plan: In TABLE_A make a
-
Lenovo G550 Windows 7 Professional Upgrade
This Notice refers to 2958-A5U and 2958-A4U models of the Lenovo G550 notebook PC’s only. The 2958-A5U and 2958-A4U G550 systems ship preloaded with Windows XP Professional, and include a Windows 7 Professional upgrade disk. Issue: When upgrading f
-
Remote Domain Join Error - no endpoint listening at CertWebservice.svc
I am trying to remotely connect a windows 8.1 client to a Windows Server 2012 Essentials domain. I do this by navigating to: https://remote.mydomainname.com/connect/ The connector downloads and starts fine but after user authentication, fails with t
-
Dynadock U10 USB charge mode not working/ charging
Hi, when in undock mode the 2 front USB ports do not charge an iPhone 4G. Its a Dynadock U10 PA3575E-1PRP. Set charge mode after undock is ticked in Dynadock Utility. iPhone charges ok when docked. As soon as the Dynadock is undocked the iPhone stops
-
Problems With Time Capsule Showing Up on Windows 7
I just recently got a job that requires me to connect to the company's TC but my PC won't connect. I installed the software, put in my login info, and Airport Utility comes up under "Programs." However, the TC fails to show up under "My Computer." I'