Scrolling to Standard table in web dynpro abap
Hi Frnds,
HI have created table i need for that scroll vertically and horizontally , as per frnds suggestion keeping in webdynpro application adding the parameters wddonavigator but its getting error can any please explain clearly and any screen shots regards tyo that .
thanks.
ok
Similar Messages
-
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 call standard report in web dynpro abap.
Hi All,
I need the output of one standard report e.g RHXSTR00 on web dynpro abap.
How can I achieve this?
Please help!!! Points will be rewarded.
Thanks in advance!
Cheers,
Darshna.Hi Darshna,
The report result is ALV and in most of the cases we generally do not have function modules or any other easy way to get the output.
In such cases the best approach which we follow is, to run this in background mode and generate the spool and display the ouput in PDF.
But if intertactive form is not present in your requirement then we need to debug the logic of the report (if no FM or class present) and get the results and display it in the View.
Best regards,
Suresh -
Need to pass values to Internal table in Web dynpro ABAP
Hi all,
I need to pass table values for the below FM in web dynpro.
CALL FUNCTION 'ZFMHR_RWF'
TABLES
PB0006 =
How do we declare and use Internal tables in WEBDYnpro.
Regards,
Vijayakumar S.hi,
u mighnt need to show the internal table value in some table UI in the WebDynpro ABAP. So u can use the method bind_table for the same to bind ur context node with the internal table values.u can declare the internal table in the same way as u do in the normal ABAP.
DATA :itab TYPE STANDARD TABLE OF ztable.
// itab is my internal table which can be of either ztable or standard table type
now u can use the code wizrd(control+F7) and use the method bind_table .
DATA: lo_nd_cn_node TYPE REF TO if_wd_context_node,
lo_el_cn_node TYPE REF TO if_wd_context_element,
ls_cn_node TYPE wd_this->element_cn_node.
* navigate from <CONTEXT> to <CN_NODE> via lead selection
lo_nd_cn_node = wd_context->get_child_node(
name = wd_this->wdctx_cn_node ).
lo_nd_cn_node->bind_table( itab ).
// where cn_node is the context node which is bind to ur table UI and itab is the value which is populated from ur FM
regards,
Amit -
Configuration of alv table in web dynpro abap
Hi,
I'm using component SALV_WD_TABLE in my component. I have created a configuration for the alv.
I want to hide a column in the alv.
Do you know how to do it using the configuration?
Thanks in advance
Karim>
Karim Ja wrote:
> Thomas,
>
> In fact, i think that when user changes the global view and clicks on save button, a copy of the view is created(with the same name) and is then available for all other users. This copy can be delete but not the "standard" global one.
> Is this possible?
>
> Now I'm thniking about creating an ehancement for the standard web dynpro component and hide the column using abap code.
>
> Is it a good idea?
>
> Kind regards
> Karim
Make sure that your security is setup correctly. End users without administrative rights can not create globa views. When they get the Save View As Dialog, what values do they see for the Assignement field? When I logon without Adminstrative mode, I only see Assignment of User:
http://www.flickr.com/photos/tjung/3406367817/
When I launch the same transaction in Administrative or Configuration mode, the Assignment Option is All and only then do I have the optoin to transport the View:
http://www.flickr.com/photos/tjung/3407176898/
Is it good to modify the standard ALV component? I would say not. First of all the functionality you seek is already in the system. Perhaps you need a support package application if your system has a very old SP level. In genreal changing the ALV component, would be a bad idea because it is very widely used and very generic. It is also quite often changed by SAP. -
Create dynamic table in web dynpro abap
Hi Friends,
I want to create several tables in a web dynpro. For this reason I have created a View, a group1 and a context node.
Now I want create a table for each characteristic group from cabn in the ui group1.
For this reason I want to use create_table_from_node and I have to craete dynamicly attributes in the node.
Is it the propper way or is there a different approach.
So in this case
1. I read the node
2. craete attribute for each characteristic group in this node
3. create a UI Table with create_table_from_node for each attribute
4. bind the data to the UI Table
Can I do the same without to craete attributes?
Thank in advance.
RG. JimbobHi Jimbob,
Have you looked at using the row-repeater UI element? You could then have as many tables as per your characteristic groups.
Although this would be more difficult if the attributes of each table were to also be only known at run-time. (I'm not sure that this is the case though from your description of the issue.)
so have a context of the form:
Context Root
--->node_characteristic_group (0..n)
>node_char_group_details(0...n) (non-singleton child node)
then bind your row repeater to node "node_characteristic_group " and bind the table inside the row repeater to node "node_char_group_details".
Each time you had a new element in the node_characteristic_group you would get a new table...
Much easier to support that anything dynamically created.
Cheers,
Chris -
Upload .xls file in internal table in web dynpro abap
Hi everyone,
i want to upload .xls(excel file) into an internal table.....after lots of attempts i came to a conclusion that web dynpro only supports .CSV(another format of excel file) to be uploaded into internal table....i tried many ways....is there a way i can upload .xls file...kindly help me in the same. following is the code i m using
DATA LO_EL_CONTEXT TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_CONTEXT TYPE WD_THIS->ELEMENT_CONTEXT.
DATA ITEM_FILE TYPE WD_THIS->ELEMENT_CONTEXT-EXCEL_UPLOAD.
get element via lead selection
LO_EL_CONTEXT = WD_CONTEXT->GET_ELEMENT( ).
@TODO handle not set lead selection
IF LO_EL_CONTEXT IS INITIAL.
ENDIF.
get single attribute
LO_EL_CONTEXT->GET_ATTRIBUTE(
EXPORTING
NAME = `EXCEL_UPLOAD`
IMPORTING
VALUE = ITEM_FILE ). "xstring format
DATA S_CONT TYPE STRING.
DATA CONVT TYPE REF TO CL_ABAP_CONV_IN_CE.
DATA: FIELDS1 TYPE STRING_TABLE.
1st tried this code-> using "cl_abap_conv_in_ce"
CALL METHOD cl_abap_conv_in_ce=>create
EXPORTING
*encoding = c_encoding "optional
input = ITEM_FILE
RECEIVING
conv = CONVT.
CALL METHOD CONVT->read
IMPORTING
data = S_CONT.
when it didnt work out...then tried followin function module
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
IN_XSTRING = ITEM_FILE "xsrting
IMPORTING
OUT_STRING = S_CONT
TYPES: BEGIN OF TY_TAB,
NAME_CHAR TYPE STRING,
DESCR_CHAR TYPE STRING,
NUMBER_DIGITS TYPE STRING,
END OF TY_TAB.
DATA: FIELDS TYPE STRING_TABLE.
DATA: LV_FIELD TYPE STRING.
DATA: S_TABLE TYPE STRING_TABLE.
DATA: ITAB TYPE TABLE OF TY_TAB.
DATA: STR_ITAB TYPE TY_TAB.
*splits string based on new line
SPLIT S_CONT AT CL_ABAP_CHAR_UTILITIES=>CR_LF INTO TABLE S_TABLE.
FIELD-SYMBOLS: <WA_TABLE> LIKE LINE OF S_TABLE.
LOOP AT S_TABLE ASSIGNING <WA_TABLE>.
splits string on basis of tabs
SPLIT <WA_TABLE> AT ',' INTO
STR_ITAB-NAME_CHAR
STR_ITAB-DESCR_CHAR
STR_ITAB-NUMBER_DIGITS.
APPEND STR_ITAB TO ITAB.
ENDLOOP.
I am able to do the uploading if the file is in .CSV format and not .XLS format....
there are lots of forums on SDN for the same....but at the end there is no solution provided.....
experts kindly solve it this time...thanks in advanceHi,
It is not possible to upload an xls file because it will be having some binary characters. better to go with .csv file format.
Refer this [link too|Re: Excel File Uplaod] it will explain you clearly.
Regards
Arun.P -
Get index of row selectable in table in web dynpro abap
Hi all,
How i get the index for the row in a table which i selected .
Help me.
Points are Sured.
Sanket sethiHi ,
in the wdevent parameter of the action get the selected element
eg
context_element type ref to if_wd_context_element .
context_element = wdevent->get_context_element( 'CONTEXT_ELEMENT' ).
then call the get_index method..
context_element->get_index( ).
Regards
Yash -
Insert table in between two rows of the table in Web dynpro abap.
Hi All,
I have a requirment like this,
while click on a hide/show button from the first row and last column of the table, want to display a table(or add some rows to insert data) in between the rows of the table and insert data in the new table .
please help me wheather it is possible or not?
Thanks,
Raju.hi raju....
if you want to insert rows.... then read the index of the row clicked and then read the node that is bound to the table and insert an empty row at that index and bind it back again....
if you want another table then make use of table popin.
--regards,
alex b justin -
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 -
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. -
Customizing the standard web dynpro ABAP travel application
Dear All,
Scenario :
We want to modify the existing travel application------> Create Travel Request should open an interactive adobe form
which will capture all the data and update the backend table , instead of the web dynpro screen and similarly for plan trip .
I wanted to know what is the best practice or approach for this and how to go about it.
Regards,
GeetHi All,
Need your valuable inputs on this.Also when I was trying to replace the standard web dynpro abap screen for create travel request...coudnt find the view.I mean on the overview of Trips and Expenses there is a button for Create Request but I am unable to find the view where this button is placed....I think its getting created dynamically.
My concern is how to call my interactive form when the button for create request is clicked...dont know where to place it.
Regards,
Geet Bijlani -
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
Maybe you are looking for
-
The project file ' ' has been renamed or is no longer in the solution.
Hello Folks: Developing on Win 8.1 Pro, Visual Studio 2010 Pro, C++. I'm revisiting a project I haven't touched in over 2 years. Attempts to build result in a pop up displaying this error: The project file ' ' has been renamed or is n
-
i am using a platform windows 98 ,and labview 6.1 thanks in advance
-
Everthing else seems to work fine and can send regualr emails but when I go into iPhoto and say "Share" click on email and try and send it errors. I have tried several past and present passwords but it doesn't work.
-
Best performance in runtime analyzer
Hi All, While doing the runtime analysis (using SE30) of a ABAP program , what is the best performance analysis report , means more percentage of time consumed by , ABAP program , Database or System ? Thanks & Regards , Sabu.
-
State of No Authentication in Asterisk SIP Registr...
I have been trying lots of combinations and permutations of registration entries in Asterisk's SIP.conf file. I would be grateful if someone would let me know exactly what userid and password I need to include The bulk of instructions I have been r