Print table data in Web Dynpro
Hi all,
I've seen that this topic was already discussed a lot in this forum. We need a print button in our Web Dynpro, when it is pushed all table data will be printed.
Therefore my question is: Has anyone already implemented a working solution for this? What are the basic steps of your solution?
Your answer is appreciated.
Thanks, Carmen
Carmen,
Refer "<b><i>Printing a Table</i></b>" section in <a href="/people/sap.user72/blog/2006/05/04/enhancing-tables-in-webdynpro-java-150-custom-built-table-utilities Tables in WebDynpro Java</a>.
Bala
Similar Messages
-
How to add button ui element in alv table data in web Dynpro ABAP
Hi Experts,
I have one requirement,
Actually I was devloped normal table in web Dynpro ABAP
in that i have one column Display as a button .
when i select that button need to display some data.
same requirement i need to devlope in alv table.
i am going to attach file please check.
Thanks in advance.
Regards,
Subba Reddy.Hi,
You can create Button in your ALV table column with below code
DATA lo_button TYPE REF TO cl_salv_wd_uie_button.
CREATE OBJECT lo_button.
CALL METHOD lv_value->if_salv_wd_column_settings~get_column
EXPORTING
id = <your column name>
RECEIVING
value = lo_system_select_hdr.
lo_button->set_enabled( value = abap_true ).
lo_button->set_text( value = 'Avaliable List' ).
lo_button->set_tooltip( value = 'Avaliable List' ).
lo_system_select_hdr->set_cell_editor( value = lo_button ).
And for button click action,
Create a method (say SHOW_DATA( ) ) with on_click event handler.And when you click button on your ALV table, SHOW_DATA( ) method will trigger.
Thanks
KH -
How to pass the data from web dynpro to workflow.
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayHi
you can use function module
data ls_input_container TYPE swr_cont.
data lt_input_container TYPE TABLE OF swr_cont.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
task = ptask
IMPORTING
return_code = lv_return_code
new_status = lv_new_status
TABLES
input_container = pinput_container
message_lines = lt_message_lines
message_struct = lt_message_struct.
where you pass the data in imnternal table "pinput_container" as
ls_input_container-element = 'KUNNR'.
ls_input_container-value = ls_skna1-kunnr ."wd_this->lv_kunnr.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'CLUSER'.
ls_input_container-value = lv_cluser.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'BUKRS'.
ls_input_container-value = lv_bukrs. " youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VKORG'.
ls_input_container-value = ls_sknvv-vkorg. " youe value as per requirement
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VTWEG'.
ls_input_container-value = ls_sknvv-vtweg. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'SPART'.
ls_input_container-value = ls_sknvv-spart. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
*Also Forgot to mention where ptask is your workflow ID *
Regards,
Arvind
Edited by: Arvind Patel on May 14, 2010 7:38 AM -
SRM 7.0 find transparent table name from Web dynpro Component
Hi ,
I am trying to find the transparent table name from Web dynpro component dictionary structure. I am working in SRM 7.0. Please let me know how to find the transpartent table for a field.
Thanks,
Monicahi,
your question is very unclear and does not relate to performance.
SRM uses webdynpro ABAP so the recommendation will not help.
Do you need a technical UI element?
Or the application table where the business data of an UI is stored???
If it is the later, then you can use the SQL trace, change to element you are interested in, and trace it. The table should appear in the trace in connection which an UPDATE command. Still a bit cimbersome.
Siegfried -
Question about meta-data of Web Dynpro ABAP / Web Dynpro Java
Hello together,
everywhere I can read, that Web Dynpro meta-data is platform independent.
I´ve read into a book, that the meta-data of Web Dynpro Java is saved as XML and
that Web-Dynpro Java Runtime generates runnable classes and sourcecode out of this...
- What about Web-Dynpro ABAP? Is Meta-code in ABAP is saved in XML too?
- just for theory: is ist possible to take the meta-data of a Web-Dynpro ABAP component and
generate a Web-Dynpro Java Component out of this?
I tried to find it out but i failed... In table WDR_RR_LOAD (is this the right one?) I found only the
field data. But this is a RAWSTRING and I don´t know how to make I "readable".
I must know this for my thesis for my studies, not for work.
Thank you very much !!!!
Greetings,
OliverMe again,
I am not sure if I understood it right...
The meta-data which describes the visual part of a view is saved as XML and
would be rendered i.e. in the webbrowser... Right?
What about the meta-data of the Web Dynpro application?
Is this meta-code into an other structure or XML too?
Thank you very much.
Many Greetings,
Oliver -
Regarding how to pass the data from web dynpro to workflow
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayCheck this [thread|SAP_WAPI_START_WORKFLOW;
-
HOW WE CAN DISPLY DATE IN WEB-DYNPRO
Hi friend,
i want to one example to up load the date format in web-dynpro abap.
THAHi Vikash,
>
vikash wrote:
> Hi friend,
>
> HOW WE CAN DISPLY DATE IN WEB-DYNPRO
>
> THA
if you want to see date calender help in your view, you have to add an input field in the view and bind it with a context attribute of type dats.
Regards
Pranav -
Create a Table Dynamically in WEB Dynpro Java with diferent type of column
Hi everyone, I have a question if is possible to create a table dynamically in Web Dynpro Java?, depending of the RFC consults create the rows dynamically, ,this table must have diferent type of columns, for example link column (when the user click this link execute an action and show a adobe interactive form in another view), image column (show an image depending of the information)
Thank you everyone
Atte IsraelHello,Israel.
Yes , it is possible through dynamic programming in wdModify of the View.
You can do this ,for example, using cell variants.
IWDTable tab = (IWDTable) view.getElement("TABLE_NAME");
IWDTableStandardCell cellV= (IWDTableStandardCell) view.createElement(IWDTableStandardCell.class,"TableStandardCell"+i);
cellV.setVariantKey("NotEditableVariant");
cellV.setCellDesign((WDTableCellDesign)wdContext.nodeTableDaysTitle().currentTableDaysTitleElement().getAttributeValue("CellDesign"+i));
IWDTextView textViewi= (IWDTextView) view.createElement(IWDTextView.class,"TextView"+i); // -- here you control the type of the object that is displayed in the cell
textViewi.bindText(dayAttrib);
cellV.setEditor(textViewi);
tabColumn.addCellVariant(cellV);
tab.addGroupedColumn(tabColumn,tab.numberOfGroupedColumns());
Using this code you can control even specific cells in the table and not only columns.
Hope this helps you,
Constantine -
Hi all,
I want to print table data. I came up with couple of solutions like export to excel , printversion and adobe forms.
We do not want to go for Adobe forms. My concern in case of excel and print version is I want the logo also to be printed as the heading when printing this table data.
please suggest me a solution where in I can print table data as well as the logo on top of the data.
Thanks in Advance.Hi,
You can print the Logo with the data using the adobe integrated with u r webdynpro application.In this case you need to create UI element interactive form in your webdynpro application and integrate the form with it.This form can be designed based on your requirement.For eq.logo on the top of the page .
Thanks and regards,
Amita Gupta -
Display data in Web DynPro table from database via EJB
I have a JavaBeans model which has a method populateDataToTable()to retrieve data from database via Session bean (calling entity bean, returning ArrayList of data) and the data needed to be display in the Web DynPro table.
User Interface (Web DynPro) <-> JavaBeans Model <-> Busineess Logic (session bean) <-> Persistence (Entity Bean)<-> DB table.
The context bindiing and table part is ok. How do i load the data to the table ? what the coding to put in wdDoInit() ?
Any help would be appreciated.in wdinit(),
Collection col = new ArrayList();
try{
MyCommandBean bean = new MyCommandBean();
col = bean.getDataFromDbViaEJB();
wdContext.nodeMyCommandBean().bind(col);
} catch (Exception ex) {
ex.printStackTrace(ex);
in your JavaBean model class, MyCommandBean getDatafromDbViaEJB() method:
Collection col = new ArrayList();
Collection newcol = new ArrayList();
//include your own context initialization etc...
col = local.getDataViaSessionBean(param);
// if your returned result also a bean class, reassigned it to current MyCommandBean
for (Iterator iterator = col.iterator(); iterator.hasNext();) {
MyOtherBean otherBean=(MyOtherBean)iterator.next();
MyCommmandBean bean = new MyCommandBean();
bean.attribute1 = outBean.getAttirbute1();
// get other attibutes
newcol.add(bean);
return newcol; -
Hi all gurus.
I developed a Web Dynpro application to let the users create their own sales orders.
Now I need to let them print the orders when they need to. Searching on the documentation I have, I've never found anything about crating a pdf print from the WD Application.
There must be a way, because I managed to do that even with the very old ITS (the one in which you had to write HTML code...) but i cannot find how.
Can anyone help me please? Even a tutorial would be very appreciated.
Thank you in advance...>
horatiusx wrote:
> Hi all gurus.
>
> I developed a Web Dynpro application to let the users create their own sales orders.
>
> Now I need to let them print the orders when they need to. Searching on the documentation I have, I've never found anything about crating a pdf print from the WD Application.
>
> There must be a way, because I managed to do that even with the very old ITS (the one in which you had to write HTML code...) but i cannot find how.
>
> Can anyone help me please? Even a tutorial would be very appreciated.
>
> Thank you in advance...
You need a Smartform, SAPScript, or AdobeForm to be defined for your output. Define an action/method for print, then pass the data to your Form. SmartForms are not bad, as SmartForms generate a Function Module, and are easy to call.
Call the SmartForm Function with PDF output = 'X' (parameter within Output Control I think). Then pass the PDF_DATA[] table (type = TAB_SOLIX) to a new window output .
Don't have the code in front of me, but have done it several times.
Adobe Forms is another good option, but you need Adobe Server, and generally I have found ADOBE to be SLOOOOOWWWWW. I think Steve Jobs might have been on to something with ADOBE -- just my opinion.
And of course, it can be done with SAPSCript, but I would need a whole blog on how to do that..... -
Adobe form to save data using Web Dynpro ABAP
Hi. I am pretty new to SAP world and trying to learn and work on a task given to me relate to
creating Adobe offline form using Web Dynpro ABAP same time.
I have several questions and hopefully, many gurus like you will provide answers.
I noticed there are many examples creating and using Adobe interactive forms (though not many newer version),
but I didn't see (at least I didn't find any) any detail example on saving data to an internal table (such as fixed assets, vendor master, etc)
using interactive form. Is there any detail explanation/example on this?
I have ask this question in another forum (before I found this forum) but didnu2019t get the answer yet.
2. When I tried to see graphic layout and modify the layout from Web Dynpro, I can't see the graphic layout.
All I see is text list of fields/buttons that I created, but can't see section for graphic layout where I can modify layout.
I am sure I didn't install/configure something correctly.
Anyone has any idea what I didn't do?
I have another question, but I will wait till later after I figure out above ones first.
Thanks for all your help in advance.
JohnHi John,
In the WD4A view, there is a button "Show/Hide Layout Preview".
Click on that button to be able to see the Layout.
Note that this button is next to the Pretty Print button.
regards,
Reema. -
How can I open a popup after clicking in a table cell using Web Dynpro?
Hello,
I am using Web Dynpro to create an application and I would like to click in a table cell and then a popup with confirmation appears.
I already have a table with the information that is displayed in the browser. In fact, I just added a column with images that are print icons.
My problem is that I don't know how to implement the method to set the action: when clicking on the print icon, a popup appears.
Thank you very much in advance.HI Rafael,
Please check the below sample code
To quickly create dialog boxes of a standardized layout (for example, for the confirmation of changes to current data) you can call the CREATE_POPUP_TO_CONFIRM method of the IF_WD_WINDOW_MANAGER. You do not need to create a separate window for this. The dialog box is created automatically by the runtime.
● The CREATE_POPUP_TO_CONFIRM method creates an object of the type IF_WD_WINDOW; the dialog box can be created using its parameters.
method onactionpopup4_1 .
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.
l_cmp_api = wd_comp_controller->wd_get_api( ).
l_window_manager = l_cmp_api->get_window_manager( ).
insert `Data where changed` into table l_text. "#EC *
insert `Do you want to save?` into table l_text. "#EC *
l_popup = 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_question
window_title = 'Test: Popup to confirm'
window_position = if_wd_window=>co_center )."#EC *
l_api = wd_this->wd_get_api( ).
l_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_yes
action_name = 'YES'
action_view = l_api
is_default_button = abap_true ).
l_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_no
action_name = 'NO'
action_view = l_api
is_default_button = abap_false ).
l_popup->subscribe_to_button_event(
button = if_wd_window=>co_button_cancel
action_name = 'CANCEL'
action_view = l_api
is_default_button = abap_false ).
l_popup->open( ).
endmethod.
The SUBSCRIBE_TO_BUTTON_EVENT method of IF_WD_WINDOW assigns the actions to the appropriate buttons
Thanks
Vinay -
How to set first_visible_row for a table on a web dynpro
How can I set the attribute first_visible_row in a table which I placed on a Web Dynpro?
I need the table to scroll automatically to a specific row depending on a date. So I'm calling a method using this date, but how can I change the attribute of the table?
Thank you!Follow these steps,
1- Create an attribute with char1 in the view context e.g first_vis_row
2- go to the table properties in view and bind the property first_visible_row to this attribute.
3- NOw go to the wddoinit method of the view...
4- read the internal table and find out the index of the row which you want to set as first row. As in ur case you want a specific date in first row. So read the internal table and findout the index.
5- now write this code, say your attribute name is first row inside node flag1...(you can change it for yoru requirement)
DATA lo_nd_flag1 TYPE REF TO if_wd_context_node.
DATA lo_el_flag1 TYPE REF TO if_wd_context_element.
DATA ls_flag1 TYPE wd_this->element_flag1.
DATA lv_first_row LIKE ls_flag1-first_row.
* navigate from <CONTEXT> to <FLAG1> via lead selection
lo_nd_flag1 = wd_context->get_child_node( name = wd_this->wdctx_flag1 ).
* get element via lead selection
lo_el_flag1 = lo_nd_flag1->get_element( ).
* get single attribute
lo_el_flag1->get_attribute(
EXPORTING
name = `FIRST_ROW`
IMPORTING
value = lv_first_row ).
here change the lv_first_row to the index which you got after raeading the internal table.
suppose it's
lv_first_row = 4.
lo_el_flag1->set_attribute(
EXPORTING
name = `FIRST_ROW`
value = lv_first_row ).
Hope it works. -
What is the right way to display a table in Java web dynpro using a node.
Hi experts,
I am trying to show a node of cardinality 0...n as a table in an adobe form in Java web dynpro. But its not showing it properly. Can anybody please tell me what is the right way to display a table on adobe form using a node of cardinality 0...n or 1...n in Java Webdynpro. In ABAP webdynpro, we can drag and drop a node of cardianlity 0...n or 1...n to show as a table and it works fine. Is the same possible in Java webdynpro also. Please help.
Thanks and Regards.
Vaibhav Tiwari.Please refer to my post.. you will get the answer
Dynamic Table - same data repeating in all rows
Special care should be taken in designing the context for table attribute.
The attribute type singletone also plays a important role. I have this doubt from the beginning when you have reported this problem for the first time but finally you marked it as solved so i thought there might be some other issues but again when you reported that again i did some analysis.
Now coming to final solution :
For designing a table in adobe interactive form you have consider following
You have to design the view context upto three level, I am explaining you the properties
PDFDataSource (Parent Level1) - Cardinality 1:1 - Signetone -True - This is assigned to datasource
TableList (Parent Level2) - Cardinality (1:1) - Signetone -True
TableWrapper(Parent Level3) - Cardinality (0:n) - Signetone -True
TableData (Parent Level4) - Cardinality (0:1) - Signetone - false (This is the main point)
Then under TableData value node, you have to put all your table attributes.
This Value Node name can be anything but hierarchy should be same as I have mentioned above.
Please try out these steps and get back to me if you have any doubt.
Maybe you are looking for
-
IMovie '11: How to add a photo to a title?
Hello, I'm brand new to iMovie and I only have limited experience seeing a friend make some stuff in Final Cut. I'm looking to create bumpers for my videos using a simple logo for my company (png, tiff, pdf, whichever file type is best). I then want
-
CRM Survey in B2C Internet Sales Application
We have CRM 2007 and are live with B2C Internet Sales Application (ISA). Now we want to make Customer Surveys accessible via B2C ISA. For security reasons, we do not want our B2C Internet Customers to have access to the CRM system. Therefore the BSP
-
Oracle forms 6i error FRM-42401
i have created a master detail module and when trying to run it, it doesn't come with data when clicking on "execute query" Instead it displays error "FRM-42401 Performing program trigger ON_CLEAR_DETAILS on form" can someone pls help to get rid of t
-
Client side weblogic.management jar
Hi, Could you help me with the following issue? I am writing a simple mgmt application that uses Weblogic's JMX APIs remotely via JNDI/RMI either from another VM on the same or another box (no firewall issues). All is fine except that the weblogic.ma
-
I am working on programing a program for my department, Meteorology, at school so that I can download images every five minutes. I have a version of this that works in the command line, but I want to add a gui to it now. I am not really sure how to s