Hiding Table - Web Dynpro ABAP
Hi,
Is there a way to hide a whole table if it is empty?
Which method or path should I use in order to hide the table?
Thanks,
Erick
Hi Erick,
You do not use any method and but bind the property 'visible' of table to a context attribute.
Here are the detailed steps:
1) Goto the layout of your view.
2) Double click on table element.
3) On the RHS, you see many properties, goto property Visible and bind it to a context attribute. The purpose of this context attribute is to control visibility and hence you would have to add this to your context.
4) Set the value of this context attribute to Visible or not depending on the data. Check table documentation for more details.
Regards,
Srini.
Similar Messages
-
Row selection in Table (Web Dynpro Abap)
Hello,
I have 2 views in my web dynpro component.
In first view , i am taking carrid and on click of submit button , i am displaying connid,fldate,currency,planetype,seatsmax in second view.
I have one button on second view to go back to fist screen.
Now, My question is :
if i select a one row of table , i want to dispaly deatils of that row in first view.
How can i do this?
Please help.The second part of the requirement is not clear on where woudl you click and where shoudl the data be shown.
However, all this data should be ideally maintained in the component controller i.e. the c.controller should have the conterxts and map relevant nodes to the appropriate views.
Now, all the data is in c.controller which can be accessed from any view within the component. This way you can show any data in contexts in preferred view.
Regards,
Sharath -
Editing a particular row in a table - Web Dynpro Abap
Hi all,
My scenario is, I have to fetch contract details from EKPO table when I enter the Purchase Document Number and press SUBMIT button on my interactive form. The details will be displayed in a table.
This part is working fine.
Then, out of the displayed rows in that table, I have to click one of the rows. This particular row should appear as a separate row below the existing table. Here I will edit certain fields and update the database.
My question is, How to display that particular row below the existing table which I select. The table will dynamically increase the row size depending on the records.Hi Surya,
You can use the index property to display the selected row data.
Suppose your form structure is like:
BodyPage
TBL_EKPO
DATA
EBELN
EBELP
LOEKZ
SF_SELECTED_ROW_DISPLAY
EBELN
EBELP
LOEKZ
Then, in any of the field's exit event you can write:
BodyPage.SF_SELECTED_ROW_DISPLAY. EBELN.rawValue = xfa.resolveNode( " BodyPage.TBL_EKPO.DATA["+ this.parent.index +"].EBELN").rawValue;
Hope this helps.
Amit -
In Web Dynpro ABAP, Can we merge two cells of a row in a table ?
In Web Dynpro ABAP, Can we merge two cells of a row in a table ?
Hallo Jagannatha,
the new table feature is available in SAP NetWeaver 7.0 EhP2 (SAP ERP 6.0 EhP5, SAP Business Suite 7i2010) named 'TableMultiEditorCell'. See [SAP Online Help|http://help.sap.com/saphelp_nw70ehp2/helpdata/en/9b/46bb0d339b42cc8d30636ca0c9f5b6/frameset.htm] for more details ...
"This UI element is a table cell variant that enables several UI elements to be placed in one table cell. This type of cell can be used for "one click actions". ...
Regards, Bertram -
Problem with Table display in Adobe Form of Web Dynpro ABAP
Hi Team,
I'm trying to display a table in Adobe Print Form (not interactive). The table is bound to the context node in the Web Dynpro ABAP where the cardinality is 0:N. I get a short dump. Don't know what to do here. I'm able to display individual fields from my context successfully. Looks like something is missing when I try to display a table. Any pointers to display a data table in Adobe? Any step by step example you know of where I can find out what I did wrong? Many thanks for your time
We are on support pack SP06 on 2004S release.
DUMP INFORMATION:
Short text
Access via 'NULL' object reference not possible.
What happened?
Error in the ABAP Application Program The current ABAP program "CL_WD_ADOBE_SERVICES==========CP" had to be terminated because it has come across a statement that unfortunately cannot be executed.
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not caught in procedure "CREATE_PDF" "(METHOD)", nor was it propagated by a RAISING clause.Hi Thomas,
We upgraded our system(2004S) to SP10 so that we can use the ADOBE form printing in Web Dynpro ABAP but could not apply note 1034425 because of the validity constraints in SNOTE. All the pre-requisite notes are already in the system apart from one note 1029721 which talks about supporting input helps. We don't want to use input helps in our system and cannot upgrade to SP11 because of problems with Business functionality.
Questions:
1) Is note 1034425 absolutely dependent on 1029721?
2) If NOT, can someone please correct the validity so that we can implement using SNOTE.
3) Would it be OK if we manually apply the changes specified in 1034425 without implementing 1029721?
4) If all of the above is not applicable, is there any other note which fixes the above mentioned short dump.
Your help in this matter will greatly help us in using the ADOBE services provided by SAP WDA.
Thanks much -
Reading Dynamic Table Values in interactive form (web Dynpro ABAP)
Hi All,
I have created a Web Dynpro ABAP application which contains an Interactive Form, That Adobe Interactive Form contains Dynamic table (New rows can be added manually and deleted using a button).
I am not able to read the Dynamic table values in Web Dynpro u201COn Submitu201D.
In the Adobe form I have web Dynpro native button (I am using ZCI), while clicking the native button I need to read the dynamic table values.
How can I resolve this problem.
Thanks and Regards,
Boopathi Mthat means, when u add the table instance at runtime, you will also have to add an element to the node that is bound to the table.
probably addNew() mathos may be useful to you.
it appends a new record to the record set.
xfa.sourceSet.dataConnectionName.addNew()
also when on the exit event of the table field, do the following:
var i = xfa.parent.index
$record.rootnodename.tablenodename.data<i>.fieldname = $.rawValue
xfa.host.messageBox($record.rootnodename.tablenodename.data<i>.fieldname) -
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 -
Web DynPro ABAP - Disable a entire row in the Table of the output.
Hi Web Dynpro Experts,
Need ur Help.!
I have a requirement to disable the one row of the table in web dynpro ABAP
For example . my table is like
Field1 Field2
A Success
B Failure
C Failure
I need to allow the User to select the record only if its status is Success,if status is Failure then i should not the allow user to select.
This enabling and disabling of the rows should be done before displaying on to the Screen.
Please suggest me ASAP.
Thanks,
AkilaHi Akila,
please try this.
Create a node (Eg: TEST) of type 0-n and 0-1. Take attributes attr1, attr2, flag (of type BOOLEAN). Create a table and give the TEST node as datasource. Now using "Create Binding" create columns for attr1 and atte2. Now, bind the read-only property of the columns with flag attribute.
Now, in the INIT method, set the table values like this:
For examle, if you want to disable row having test2,
ls_test-attr1 = 'A'.
ls_test-attr1 = 'TEST1'.
ls_test-flag = ' '.
append ls_test to lt_test.
clear ls_test.
ls_test-attr1 = 'B'.
ls_test-attr1 = 'TEST2'.
ls_test-flag = 'X'.
append ls_test to lt_test.
clear ls_test.
ls_test-attr1 = 'C'.
ls_test-attr1 = 'TEST1'.
ls_test-flag = ' '.
append ls_test to lt_test.
clear ls_test.
lo_test->bind_table( lt_test ).
By doing this, 2nd row gets disabled.
Also, if you already have the internal table with values, based on some condition you can change the value of flag and bind the table to node.
Hope this helps you, Please let me know in case of any queries.
Regards,
Manogna -
How to display an status Icon in Table UI web dynpro ABAP?
Hi Experts ,
How to display an status Icon ( Traffic light ) in Table UI web dynpro ABAP? can somebody tell with a coding example. also I need to update status on condition so whats the best way?
Thanks in advance.
Regards,Hi Laeeq,
click on table cntrol n place it on the screen..
now click on the icon button n place it in the table control area.. a column of icons get created. name it (say) ICON.
in the PBO..
loop at internal table and call module in the loop (say) .
MODULE ICON_DISP.
now in the module try the foll code :
module icon_display output.
check some condition and assign the icon to the variable icon_r
icon_R = 'ICON_GREEN_LIGHT'.
CALL FUNCTION 'ICON_CREATE'
EXPORTING
name = ICON_R
TEXT = ' '
INFO = ' '
ADD_STDINF = 'X'
IMPORTING
RESULT = ICON
EXCEPTIONS
ICON_NOT_FOUND = 1
OUTPUTFIELD_TOO_SHORT = 2
OTHERS = 3
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.
where icon(35) and icon_r(35) type c .
hope this helps u..
Regards
Aparna -
How to Implement Sort, Filter funtinality in Normal web dynpro ABAP Table
Hello,
How to Implement Sort, Filter funtinality in Normal web dynpro ABAP Table ?
Thankshi,
Check out this link for sorting in Table.
Sorting option in WebDynPro ABAP UI Table
steps to follow :
->Have the data in internal table (itab).
->Now use sort command for the particular column which ever you want to sort.
e.g sort itab descending by <Column>.
->Now you can bind the internal table with the Context Node which is binded to Table.
I hope it helps.
Thanx. -
Web dynpro Abap - Adobe Form Table Dynamic
hi Friends ,
I created one table in ADOBE interactive form and i kept two button for row add and row delete in table
it is working fine in Adobe fomr Preview form
but i deployed in Web dynpro abap this functionality is not working is there any reason
Pls give suggestion
Regards
Krishnan R.Krishnan,
Check if the form is Interactive and also have you installed Adobe Reader Rights on the server. If not please check note 736902 and ask BASIS to apply them.
Chintan -
How to fix few rows in ALV after filtering on a column in Web Dynpro ABAP
Hi,
I have the following requirement:
In an ALV, when i filter based on a column, then this filter should not be applied to 2 of its rows.
These rows relate to totals. The totals are manually calculated as they require other component information too.
Along with the filter result, these total rows have to be displayed.
Let me know in case ALV in Web Dynpro ABAP supports this functionality.
Regards,
RekhaHi,
ALV table does not support this functionality.
You can display the total in an another table instead.
I had the same requirement with total and had to display the totals separately.
Thanks,
Feroz -
Upload a .xls file in web dynpro abap
Hello,
I want to upload a .xls file into a internal table in web dynpro abap (Netweaver 7.31).
The file is not delimited, is not an csv file.
In my view I have an fileUpload UI Element with the attribute data is un attribute type XSTRING and the following function module are not in my system:
HR_KR_XSTRING_TO_STRING
ALSM_EXCEL_TO_INTERNAL_TABLE
How can I upload the file with this format?.
Thanks in advance.
XaviUnless the files are zipped together into one archive file, you have to do them one at a time. Furthermore with the normal browser based fileUpload UI element, you must do them one at a time and the user must manually select each one (browser security limitation).
If you are on 7.01 you can use ACFUpDown to perform multiple file uploads, but there is no file dialog or directory scan so file selection is difficult.
If you are on 7.02 you can use ACFUpdown and it has a multiple file open/save dialog.
If you are on 7.01 you could use FlashIslands to perform the multiple file upload. I have a tutorial and source code sample for this on SCN.
If you are on 7.01 you could also use ACFExecute to run a batch script on the client side that zips all the files and then upload the zip archive. -
Calling a smart form on click of a button in web dynpro abap
Hi experts,
I have a requirement like if I click a button in a view i need ti generate a PDF through smart form.
Is this possible. If so please tell me the way..
Thanks & RegardsHi Sharma,
Create Interactive form in your view, create one node say PDF_SOURCE under this one attribute PDF_SOURCE of type XSTRING.
Bind this to IF form Datasource and pdfsource.
in your button action write code to call your smartform
using SSF_FUNCTION_MODULE_NAME
using FM CONVERT_OTF and attach_file_to_response
*convert to pdf
call function 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = lv_bytecount
TABLES
otf = ls_job_output_info-otfdata
lines = lt_lines
EXCEPTIONS
err_conv_not_possible = 1
err_bad_otf = 2.
loop at lt_lines into ls_line.
lv_string = ls_line.
export mydata = lv_string to data buffer lv_buffer.
import mydata to l_xline from data buffer lv_buffer in char-to-hex
mode.
concatenate l_pdfstring l_xline into l_pdfstring in byte mode.
endloop.
call method cl_wd_runtime_services=>attach_file_to_response
EXPORTING
i_filename = 'ZWTY_PACKINGSLIP'
i_content = l_pdfstring
i_mime_type = 'BIN'
i_in_new_window = abap_false
i_inplace = abap_false.
also check this..
http://abapcodexperiments.wordpress.com/2011/03/20/smartform-pdf-webdynpro-abap/
Call smartform in web dynpro abap
Cheers,
Kris. -
Problem in web dynpro ABAP program
There are 2 input fields on first view carrid, connid and one "GO" Button
1) "FLIGHTINFO" is the node under context of first view
2) " FLIGHTTAB " is a node under context of component controller having cardinality " 0..n " ,Dictionary structure "SFLIGHT" (i have selected only these many attributes " carrid, connid, fldate, planetype, seatsmax and seatsocc " )
3) I have created Method "FLIGHTTAB_FILL" in component controller to fill context node FLIGHTTAB
Insert the source code for doing the following:
- Navigate to context node FLIGHTINFO
- Get element at lead selection for context node FLIGHTINFO
- Get CARRID and CONNID
- Fill an internal table with all datasets from database table SFLIGHT, who meet the constraints for CARRID and CONNID.
- Navigate to context node FLIGHTTAB
- Bind the internal table(having all standard fields of sflight ) to the context node FLIGHTTAB ( having those 6 attributs).
4) On action GO ->Implement the invocation of Method " FLIGHTTAB_FILL".
5) I have mapped node FLIGHTTAB to context of OUTPUTVIEW. Display table on view OUTPUT_VIEW (for this i hav used code wizard).
Problem: after entering values of connid & carrid I m getting proper entries in internal table. but output view is not at all trigger (although i have created plugs). Is it necessary that while binding internal table with context node FLIGHTTAB should have same no of fields (i.e. in this case 6 )?
I am a fresher, My concept of bindings and cardinality are not so clear so can anybody help me out?
Thanx in advance for replying.Hi johnright ,
No i dont think it is necessary that while binding internal table with context node should have same no of fields as the internal table . You might get some improper values in the corresponding fiels but it will not lead to any error.
In your OUTPUTVIEW once you created the table UI element in layout and you bind it to FLIGHTTAB node you dont have to use any code wizard method to display the values. If the node contains values it will display automatically. (in your case you are filling it in step #).
Check :-
1. In your On action GO after filling the table you are firing the out bound plug :-
WD_THIS->FIRE_INITIAL_OUT_PLG(
2.All outbound plug and inbound plug are link properly and every thing is ACTIVATED.
If still unable to find the error try to debug method wise and find where the error occurs and reply to us.
Binding:-
In web dynpro ABAP you will not able to get any value of any variable outside of any method. Here we use context node which is referrence that we create reference to any particular structure we required. Now to hold the values you need to bind
the values of your internal table to the context node.
If the node is in view then its values are visible to all the local method of the view.
If the node is in component controller then the you bind a value to the node from one view and you can get it in another view.
Remember binding and mapping are not same.
Mapping is done between node like inthe second scenario i have explained you need to create a node in view controller and then you need to map it to the corresponding view of component controller to send values across view.
cardinality:-
Each node contains data fields that represent one of the following:
An individual instance of an object type
A table of instances.
This property of a node is known as its cardinality of table of instances.
If you need table instance :- 0..n or 1...n
In case of 1...n one default value is created. generally we use this as mainly we need to work with table.
In case you need a individual instance of a object or like you want value like a structure only :- 0...1 or 1....1.
Thanks & Regards,
Monishankar C
Maybe you are looking for
-
Cloning complete installation to a different environment
Hi, We have a Production and a QA environment. We use Windows Backup to make complete system backups of all Hyperion servers. This backups strategy has been tested by breaking QA and requesting a restore from IT. Business now asked the question: Is i
-
HT4528 question in imessage to another iphone user.
i sent imessage to another iphone user who shares his apple ID with his wife, who also has iphone. Apparently, when I send imessage to him, his wife also receives same imessage that i sent to him. Anybody has any idea? would love to hear feed back th
-
API to created GL Recurring batches
Hi, Currently in our implementation, we would need to migrate some recurring journal batches along with some formulas to our system. Is there a way, we can migrate it using the Oracle API's?? I found some below packages which inserts into the necessa
-
Why am I getting an invalid serial number message?
I am trying to download Acrobat to a new system, after having chatted with support yesterday to validate the use of the product under my existing license.
-
Download Oracle 10g Client Release 2 for Solaris doesn't work
Hello, When I try to download 10gr2_client_sol.cpio.gz at this url : http://download.oracle.com/otn/solaris/oracle10g/10201/sol64/10gr2_client_sol.cpio.gz I get 0KB file . How can I do ?