How to create a tray on a dynpro? NOT Web Dynpro!
Hi there,
I need to know how to create a gui container which you can show and hide by clicking a button like the way you use a tray in BSP or Web Dynpro. I am working on an ABAP system 6.20
Can anybody help me, please?
Kind regards,
Daniel
Hello there,
I have the solution of creating trays in dynpros!
It is really easy...
You have to define subscreens on your main dynpro. After that, create for each subscreen area 2 dynpros. One has the content (fields, etc.) and the other one is empty.
Create a button for each of the subscreens and give them function codes. In PAI you have to check which subscreen is shown and so you can switch to the other. The gui engine will arrange them automatically and it will look like a tray!
Regards,
Daniel
Similar Messages
-
How to create a user in UME Database using web dynpro java custom application
Hi,
Can you please suggest me how to create a user in UME Database using web dynpro java custom application.
My Requirement is user can register his/her user id in SAP Portal 7.3 UME database.
Please suggest me.
Thanks and Regards,
AmitHi Amit,
Generated Documentation (Untitled)
This is what you're looking for, there's no real cook-book -- though Amey mentioned there might be some material on SDN, perhaps some tutorials.
You should be looking into com.sap.security.api.IUserFactory, methods newUser(String) which gives you and IUserMaint and commitUser(IUserMaint, IUserAccount) -- IUserAccount can be obtained using com.sap.security.api.IUserAccountFactory, method newUserAccount(String)
Hope it helps,
D. -
How to create table in interactive form via Java Web Dynpro
Hi,
How to create table in interactive form via Java Web Dynpro ?
Any online tutorial / example ?
Thank you.
Regards,
EricHi Eric,
Just choose the UI element Table from Form Library and drag and drop it on the form. now choose the no. of rows and columns and other settings you want about table from the wizard initiated through this process. This all is what you have to do to create the table. Now to bind it to the fields of the data source bind the individual colums to individual attributes of the node in the datasource.
Hope it will solve your query.
Regards,
Vaibhav Tiwari. -
How to create the Table of Content (TOC) in WEB
Dear Sir
Please help me
How to create the Table of content (TOC) in Web Intelligence Report,
Thanks
Gnanasekarn.K
Edited by: Gnanasekaran Kandasamy on Nov 20, 2008 11:12 AMHi Gnanasekarn,
You can create TOC in webi using Open Document, You can create link on the TOC and you can connect that link to open new report .
With the help of open document you can open the specific portion of report.
So you can achive your requirement using URL reporting or Open Document.
Regards,
Chaitanya Deshpande -
How To Create A Technical And Business Systems For Web AS ABAP ???
Hi Experts,
How To Create A Technical And Business Systems For Web AS ABAP ???
Please Let me Know All the Step-By-Step Process to Create ????
Points Will be Given
Regards
KhannaHi Sumit,
When U Told the thing that first time to execute the RZ70 and All i Did this in XI System
So I got An Entry for the Technical System for XI System.
Now i Deleted that and Executed RZ70 in R/3.
When I Executed RZ70, I got this Error.
<b> "RFC Call failed: Error Opening an RFC Connection "</b>.
Now I am Unable to see Any Technical System Under Web As ABAP. It's Showing Empty Now.
Please Let me know
Regards
Khanna -
How do I create both endnotes and footnotes in same doc in Pages? I have iWork 2008. I understand how to create one or the other, but not both.
You have to select one or the other.
Try making two documents and see if you can merge the .pdfs, but their will be problems with page flow, making the pages shift. Can't see it working really.
Pages is not the only solution out there or the best for most jobs (let alone the safest). Try Word for Mac, LibreOffice (free) or any App that has the features you need.
Peter -
In iPhoto 11, I know how to create new libraries. I do not know how to split my large existing library into the new libraries?
You need to use the iPhoto Library Manager.
(66928) -
How to Create a Restricted Key Figure in BO Webi Report
Hi Experts,
Please tell me How to Create a Restricted Key Figure in BO Webi Report.
Thanks in Advance.
Regards,
RafiHi,
1. Define a new measure in the designer.
2. In the select clause give the reference to the key figure on which restriction to be applied.
For example
@Select(Key Figures\Number of Records)
3. In the where clause, give the MDX expression for the filter to be applied.
For example
<FILTER KEY="[0PURCH_ORG].[LEVEL01]">
<CONDITION OPERATORCONDITION="InList">
<CONSTANT CAPTION="HAS"/>
</CONDITION>
</FILTER>
Regards -
How to create ALV as a POPUP in abap web dynpro?
I have a requirement to display an ALV report as a popup for ESS application in HR module. Data fetching and binding is done in component controller
WDINIT method and it is displaying ALV in ESS. Now my requirement is to show this alv as a popup in ESS, I have used the method "Generate_Popup" using wizard however it is showing error that "Instance is already used for window".
Please let me know how to create POPUP alv where data fetching is done in "Component controller" hence I have only 1 view and 1 window in my web dynpro program.
Below is the logic for data fetching and data binding in WDINIT method of "Component controller":
method WDDOINIT .
DATA: lv_pernr type p0105-PERNR,
lv_user TYPE P0105-USRID.
lv_user = sy-uname.
CALL FUNCTION 'RP_GET_PERNR_FROM_USERID'
EXPORTING
begda = sy-datum
endda = sy-datum
usrid = lv_user
usrty = '0001'
IMPORTING
USR_PERNR = lv_pernr
EXCEPTIONS
RETCD = 1
OTHERS = 2.
IF sy-subrc = 0.
TYPES: BEGIN OF ty_pa2001,
PERNR TYPE PERSNO,
SUBTY TYPE SUBTY,
ENDDA TYPE ENDDA,
BEGDA TYPE BEGDA,
END OF ty_pa2001.
DATA: lt_pa2001 TYPE TABLE OF ty_pa2001.
"Changes by shiromani
DATA lo_nd_node_pernr TYPE REF TO if_wd_context_node.
DATA lo_el_node_pernr TYPE REF TO if_wd_context_element.
DATA ls_node_pernr TYPE wd_this->element_node_pernr.
* navigate from <CONTEXT> to <NODE_PERNR> via lead selection
lo_nd_node_pernr = wd_context->get_child_node( name = wd_this->wdctx_node_pernr ).
* get element via lead selection
lo_el_node_pernr = lo_nd_node_pernr->get_element( ).
* @TODO handle not set lead selection
IF lo_el_node_pernr IS INITIAL.
ENDIF.
* get all declared attributes
lo_el_node_pernr->get_static_attributes(
IMPORTING
static_attributes = ls_node_pernr ).
SELECT PERNR
SUBTY
ENDDA
BEGDA FROM pa2001
INTO CORRESPONDING FIELDS OF TABLE lt_pa2001
WHERE pernr = lv_pernr AND subty = 'ITEL'.
if sy-subrc = 0.
DATA lo_nd_node_details TYPE REF TO if_wd_context_node.
DATA lo_el_node_details TYPE REF TO if_wd_context_element.
DATA ls_node_details TYPE wd_this->element_node_details.
* navigate from <CONTEXT> to <NODE_DETAILS> via lead selection
lo_nd_node_details = wd_context->get_child_node( name = wd_this->wdctx_node_details ).
* get element via lead selection
lo_el_node_details = lo_nd_node_details->get_element( ).
lo_nd_node_details->bind_table( lt_pa2001 ).
* alternative access via index
ENDIF.
ENDIF.
endmethod.Hi
You ca use this function to Create a new window..
CALL METHOD wd_window->create_window
EXPORTING
modal = abap_true
window_name = 'MMPUR_CPPR_RFQ_WDW'
title = lv_otr_text
close_button = abap_true
button_kind = 3
close_in_any_case = abap_true
RECEIVING
window = wd_comp_controller->window.
wd_comp_controller->window->open( ).
here you acn impliment buttons, if you want to subcribe window button please use this window subcribe method.
CALL METHOD wd_comp_controller->window->subscribe_to_button_event
EXPORTING
button = if_wd_window=>co_button_ok
action_name = 'RFQ_WT_VENDOR'
action_view = l_api
is_default_button = abap_false
button_text = lv_otr_text
tooltip = lv_otr_text.
wd_comp_controller->window->open( ).
Please let me know if you have any issue. Please reword if its solve your problem.
Regards
Satrajit -
How to create the Dynamic UI element table in web dynpro in abap
Hi All,
Does anybody have reference note or teach me how to create dynamic UI element table in web dynpro in abap ?
Regards,
LukeHI LukeWong ,
for creating any UI dynamically you shoul use their runtime class that always start with cl_wd_* ui element name*
so for the Table UI element the runtime class is CL_WD_TABLE
now reffer the below code for creating the Table UI dynamically
METHOD wddomodifyview.
DATA lr_table TYPE REF TO cl_wd_table.
DATA lr_flow_data TYPE REF TO cl_wd_flow_data.
DATA lr_container TYPE REF TO cl_wd_uielement_container.
DATA lr_column_name TYPE REF TO cl_wd_table_column.
DATA lr_text_view TYPE REF TO cl_wd_text_view.
DATA lr_table_header TYPE REF TO cl_wd_caption.
DATA lr_column_name_header TYPE REF TO cl_wd_caption.
IF first_time EQ abap_true.
lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
lr_table = cl_wd_table=>new_table(
id = 'TBL_TABLE'
bind_data_source = 'TABLE'
design = cl_wd_table=>e_design-alternating
visible_row_count = 3
lr_flow_data = cl_wd_flow_data=>new_flow_data( element =
lr_table ).
lr_container->add_child( lr_table ).
lr_column_name = cl_wd_table_column=>new_table_column(
id = 'TBL_EXAMPLE_NAME'
lr_table_header ?= cl_wd_caption=>new_caption( text = 'Table UI elem
ent - example').
lr_table->add_column( the_column = lr_column_name ).
lr_table->set_header( lr_table_header ).
lr_text_view = cl_wd_text_view=>new_text_view(
id = 'TXV_NAME'
bind_text = 'TABLE.NAME'
lr_column_name_header ?= cl_wd_caption=>new_caption( text = 'Name').
lr_column_name->set_table_cell_editor( the_table_cell_editor = lr_text_view).
lr_column_name->set_header( lr_column_name_header ).
ENDIF.
ENDMETHOD.
Regards
Chinnaiya P
Edited by: chinnaiya pandiyan on Sep 17, 2010 12:01 PM -
How to create a Tray dynamically
Hi All
I have tried to develop a method where I can create a tray dynamically. I have embedded this code in the method WDDOINIT of my View called 'MAIN_VIEW'. My longer term plan is to create x number of trays where x is dictated by the number of entires in an Internal Table.
The code I have written compiles, but nothing appears where I thought it would. Can anyone spot what I have so fundementally missed?
Assistance is sincerely appreciated.
Regards
Tony
create object wd_this->all_in_one_util.
data: node_input type REF TO if_wd_context_node,
elem_input TYPE REF TO if_wd_context_element,
stru_input type if_main_view=>element_input.
data: lr_view type ref to cl_wdr_view,
lr_tray type REF TO CL_WD_TRAY,
tray_id type string,
lr_caption type ref to cl_wd_caption,
caption_id type string,
lr_grid_data type ref to cl_wd_grid_data,
lr_grid_layout type ref to cl_wd_grid_layout.
*Navigate from <CONTEXT> to <INPUT> via lead selection
node_input = wd_context->get_child_node( name = if_main_view=>wdctx_input ).
lr_tray = cl_wd_tray=>new_tray(
EXPANDED = ABAP_TRUE
ID = tray_id
VIEW = lr_view "'MAIN_VIEW'
WIDTH = '100%'
set the caption of the tray
concatenate lr_tray->id '_HEADER' into caption_id.
lr_caption = cl_wd_caption=>new_caption(
id = caption_id
text = 'text goes here'
view = lr_view ).
lr_tray->set_header( lr_caption ).
create the grid layout data for tray
lr_grid_data = cl_wd_grid_data=>new_grid_data( lr_tray ).
assign the layout data to the tray
lr_tray->set_layout_data( lr_grid_data ).
create a new grid layout for the content of the tray
lr_grid_layout = cl_wd_grid_layout=>new_grid_layout( lr_tray ).
assign the grid layout to the tray
lr_tray->set_layout( lr_grid_layout ).Hi Tony,
If we have to do any dynamic programming in webdynpro( creating UIelements dynamically ), WDDOMODIFYVIEW is the method where we need to code the logic for creating the tray.
But you have done the coding of creating tray in WDDOINIT thats why it is not working fine. Just the have the same code in WDDODMODIFYVIEW and you need to have below code to add this tray to view's ROOTUICONTAINER.
data: lr_container TYPE REF TO cl_wd_uielement_container.
lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
" View is import parameter of wddomodifyview method.
lr_container->add_child( '' pass the tray that is created ' ).
This is the way to create dynamic UIelements in webdynpro using wddodmodifyview
For more information on dynamic programming have at following information
<a href="http://help.sap.com/saphelp_crm50/helpdata/en/44/2d9a41ed79a009e10000000a155106/frameset.htm">http://help.sap.com/saphelp_crm50/helpdata/en/44/2d9a41ed79a009e10000000a155106/frameset.htm</a>
Thanks,
Prashanth Kumar B -
How to create different log files for each of web applications deployed in OC4J
Hi All,
I am using OC4J(from Oracle) v1.0.2.2 and Windows2000. Now I want to know
1. how to create different log files for each of my deployed web applications ?
2. what are the advantages in running multiple instances of oc4j and in what case we should run
multiple instances of OC4J ?
3. how to run OC4J as Windows2000 Service rather than Windows2000 Application ?
Thanks and Regards,
Kumar.Hi Avi,
First of all I have given a first reading to log4j and I think there will some more easy way of logging debugging messages than log4j (If you could provide me a detailed explanation of a servlet,jsp,java bean that uses log4j and how to use log4j then it will be very helpful for me). The other easy ways (if I am not using log4j) to my problem i.e creating different log files for each of web applications deployed in oc4j are
I have created multiple instances of OC4J that are configured to run on different ports and so on each instance I have deployed a single web application . And I started the 2 oc4j instances by transferring thier error/log messages to a file. And the other way is ..
I have download from jakarta site a package called servhelper . This servhelper is a thread that is started in a startup servlet and stopped in the destroy method of that startup servlet. So this thread will automatically capture all the system.out.println's and will print those to a file. I believe that this thread program is synchronized. So in this method I need not run multiple instances of OC4J instead each deployed web application on single instance of oc4j uses the same thread program (ofcourse a copy of thread program is put in each of the deployed web applications directories) to log messages on to different log files.
Can you comment on my above 2 approached to logging debugging messages and a compartive explanation to LOG4J and how to use LOG4J using a simple servlet, simple jsp is appreciated ...
Thanks and Regards,
Ravi. -
How to create separate log files for each deployed web application in oc4j
Hi All,
I am using Windows2000, Oracle9iAS(OC4J). Say I have deployed 3 web applications onto this oc4j server. Then how to create 3 different log files so that I can see the log messages(System.out.println's) of each of these web appliations in a different log file.
Thanks and Regards,
Ravi.Where do the messages printed via ServletContext.log() go? Is this configurable separately by web application? If so, you could at least replace your System.out.println() with sc.log() statements. For exceptions, you could trap them and log them since the log() method takes a throwable as well as a String.
John H. -
How to create a variant for a screen (not a selection screen)
Hi
I foud a function module RS_CREATE_VARIANT.
Is this the correct fm for creating screen variant, if yes then pls provide me some help about how to pass values to this fm.
if not then pls help me to find out new one.
thnks
satisfactory answer will be definitely rewarded.
S@meerpassing values to RS_CREATE_VARIANT.
data : LS_VARIANTDESC TYPE VARID.
DATA : LT_VARIANTTEXT TYPE TABLE OF VARIT ,
WA_VARIANTTEXT TYPE VARIT.
DATA : TT_REPORTPARAM TYPE TABLE OF RSPARAMS,
WA_REPORTPARAM TYPE RSPARAMS.
CLEAR LS_VARIANTDESC.
LS_VARIANTDESC-MANDT = SY-MANDT. " gr 46A
LS_VARIANTDESC-REPORT = 'ZXXXXX'.
LS_VARIANTDESC-VARIANT = 'VARIANT'.
LS_VARIANTDESC-EDAT = SY-DATUM.
LS_VARIANTDESC-ETIME = SY-UZEIT.
REFRESH LT_VARIANTTEXT.
CLEAR WA_VARIANTTEXT.
WA_VARIANTTEXT-MANDT = SY-MANDT. " gr 46A
WA_VARIANTTEXT-LANGU = SY-LANGU.
WA_VARIANTTEXT-REPORT = 'ZXXXXXX'.
WA_VARIANTTEXT-VARIANT = 'VARIANT'.
APPEND WA_VARIANTTEXT TO LT_VARIANTTEXT.
CALL FUNCTION 'RS_CREATE_VARIANT'
EXPORTING
CURR_REPORT = 'ZXXXXX'
CURR_VARIANT = 'VARIANT'
VARI_DESC = LS_VARIANTDESC
TABLES
VARI_CONTENTS = TT_REPORTPARAM
VARI_TEXT = LT_VARIANTTEXT
EXCEPTIONS
ILLEGAL_REPORT_OR_VARIANT = 1
ILLEGAL_VARIANTNAME = 2
NOT_AUTHORIZED = 3
NOT_EXECUTED = 4
REPORT_NOT_EXISTENT = 5
REPORT_NOT_SUPPLIED = 6
VARIANT_EXISTS = 7
VARIANT_LOCKED = 8
OTHERS = 9.
IF SY-SUBRC EQ 7.
If variant with same name already exists, change variant
CALL FUNCTION 'RS_CHANGE_CREATED_VARIANT'
EXPORTING
CURR_REPORT = 'ZXXXXX'
CURR_VARIANT = 'VARIANT'
VARI_DESC = LS_VARIANTDESC
TABLES
VARI_CONTENTS = TT_REPORTPARAM
EXCEPTIONS
ILLEGAL_REPORT_OR_VARIANT = 1
ILLEGAL_VARIANTNAME = 2
NOT_AUTHORIZED = 3
NOT_EXECUTED = 4
REPORT_NOT_EXISTENT = 5
REPORT_NOT_SUPPLIED = 6
VARIANT_DOESNT_EXIST = 7
VARIANT_LOCKED = 8
SELECTIONS_NO_MATCH = 9
OTHERS = 10.
ELSEIF SY-SUBRC NE 0.
MESSAGE WITH 'Cannot create/change variant for'
SY-UNAME.
ENDIF. -
How to create and save a file in flex web application ?
Hi,
I want to create and save a file form flex web application. Is it possible ?
I have done some googling and found that its only possible through file referece, which needs some serverside implementation be called.
Is it not possible with file reference to create and save file directly ?
Can any one suggest how to over come this.
Thanks in advance.Alex,
code written with the Flex Builder 3 libraries will certainly run in Flash Player 10. However, what you need is not so much the capabilities of FP10 but the library functionalities of the Flex 4 package. And I think that Flex 4 code will only run in FP10 and not 9 (but haven't tested this as at work we have not yet been permitted to upgrade, so there is not a lot of point going for Flex 4!).
Richard
Maybe you are looking for
-
Can I swap my hard drive to another ibook g3?
My screen has broken [liquid damage] and to get it fixed it'll cost £100-£300 and I don't know if it's just the screen gone. It will be cheaper probably to buy a new ibook off ebay and sell my ibook in parts. But I'll need to back up my 60gb hard dri
-
Warning messages in Disk Utility
When running Verify or Repair Disk Permissions there are several Warning messages I receive. Examples are: Warning: SUID file "sbin/unmount" has been modified and will not be repaired; Warning: SUID file "bin/rcp" has been modified and will not be re
-
Pages won't share document via email
Just an FYI: I just experienced the same problem with the Share feature in Pages that others, as long ago as 2011, were reporting: Pages won't initiate the Share via Email function if your document title has a slash (/) in the title. Replacing the /
-
Dynamically changing the list item based on another list item
Hi all, I have two fields that are list items. First list item contain two list values: Regular and One-time In second list item if user select the Regular then below values should appear: Daily wages Activity Linked Fixed Contracts. Contract Staff O
-
Not able to upload SAP GRC 5.2 rules
Hi All, We are in the process of performing the Post Installation steps of SAP GRC CC 5.2 While we are trying to import rule set the system is creating/scheduling a background job. In the log there is a warning regarding the URL WARNING: Cannot get