Help in perform tabls
hi,
i doing that perform and i wont to use table r_sel not only in the perform i try with perform tables but i have an erorr
this is my data and call perform
DATA: BEGIN OF rtab ,
sign(1) TYPE c,
option(2) TYPE c,
low TYPE datum,
high TYPE datum,
END OF rtab .
DATA: r_sel TYPE STANDARD TABLE OF rtab.
PERFORM define-periods USING date_from1 date_to1
date_from2 date_to2 TABLES r_sel.
"this is the form
*& Form define-periods
* text
* -->P_DATE_FROM1 text
* -->P_DATE_TO1 text
* -->P_DATE_FROM2 text
* -->P_DATE_TO2 text
* -->P_R_SEL text
FORM define-periods USING p_date_from1
p_date_to1
p_date_from2
p_date_to2
TABLES p_r_sel . "i think the problem is here i i try with structre rtab buti have eroor to
RANGES: r_per1 FOR sy-datum .
RANGES: r_per2 FOR sy-datum .
MOVE 'I' TO r_per1-sign .
MOVE 'BT' TO r_per1-option .
CONCATENATE p_date_from1 '01' INTO r_per1-low .
IF p_date_to1 IS INITIAL .
PERFORM last-day
USING p_date_from1
CHANGING r_per1-high .
ELSE.
PERFORM last-day
USING p_date_to1
CHANGING r_per2-high.
ENDIF .
APPEND r_per1 .
MOVE 'I' TO r_per2-sign .
MOVE 'BT' TO r_per2-option .
CONCATENATE p_date_from2 '01' INTO r_per2-low .
IF p_date_to2 IS INITIAL .
PERFORM last-day
USING p_date_from2
CHANGING r_per2-high .
ELSE.
PERFORM last-day
USING p_date_to2
CHANGING r_per1-high.
ENDIF .
APPEND r_per2 .
"here i append r_sel
MOVE r_per1-sign TO r_sel-sign.
MOVE r_per1-option TO r_sel-option .
MOVE r_per1-low TO r_sel-low .
MOVE r_per1-high TO r_sel-high .
APPEND r_sel .
MOVE r_per2-sign TO r_sel-sign .
MOVE r_per2-option TO r_sel-option .
MOVE r_per2-low TO r_sel-low .
MOVE r_per2-high TO r_sel-high .
APPEND r_sel .
ENDFORM. " define-periods
the first erorr is:
The field "R_SEL" is unknown, but there is a field with the similar name "P_R_SEL". "P_R_SEL".
when i change it to p_r_sel
i get erorr
The data object "P_R_SEL" has no structure and therefore no component called "SIGN". called "SIGN".
Regards
Hi,
Please try this again.
DATA: BEGIN OF rtab ,
sign(1) TYPE c,
option(2) TYPE c,
low TYPE datum,
high TYPE datum,
END OF rtab .
DATA: r_sel TYPE STANDARD TABLE OF rtab.
DATA: wa_sel LIKE rtab. "Add here
PERFORM define-periods TABLES r_sel "Change here
USING date_from1 date_to1
date_from2 date_to2.
*& Form define-periods
* text
* -->P_DATE_FROM1 text
* -->P_DATE_TO1 text
* -->P_DATE_FROM2 text
* -->P_DATE_TO2 text
* -->P_R_SEL text
FORM define-periods TABLES p_r_sel "Change here
USING p_date_from1
p_date_to1
p_date_from2
p_date_to2.
RANGES: r_per1 FOR sy-datum .
RANGES: r_per2 FOR sy-datum .
MOVE 'I' TO r_per1-sign .
MOVE 'BT' TO r_per1-option .
CONCATENATE p_date_from1 '01' INTO r_per1-low .
IF p_date_to1 IS INITIAL .
PERFORM last-day
USING p_date_from1
CHANGING r_per1-high .
ELSE.
PERFORM last-day
USING p_date_to1
CHANGING r_per2-high.
ENDIF .
APPEND r_per1 .
MOVE 'I' TO r_per2-sign .
MOVE 'BT' TO r_per2-option .
CONCATENATE p_date_from2 '01' INTO r_per2-low .
IF p_date_to2 IS INITIAL .
PERFORM last-day
USING p_date_from2
CHANGING r_per2-high .
ELSE.
PERFORM last-day
USING p_date_to2
CHANGING r_per1-high.
ENDIF .
APPEND r_per2 .
MOVE r_per1-sign TO wa_sel-sign. "Change here
MOVE r_per1-option TO wa_sel-option. "Change here
MOVE r_per1-low TO wa_sel-low. "Change here
MOVE r_per1-high TO wa_sel-high. "Change here
APPEND wa_sel to p_r_sel . "Change here
CLEAR wa_sel. "Add here
MOVE r_per2-sign TO wa_sel-sign . "Change here
MOVE r_per2-option TO wa_sel-option. "Change here
MOVE r_per2-low TO wa_sel-low. "Change here
MOVE r_per2-high TO wa_sel-high . "Change here
APPEND wa_sel to p_r_sel. "Change here
CLEAR wa_sel. "Add here
ENDFORM. " define-periods
Regards,
Ferry Lianto
Similar Messages
-
Need help in Performance tuning for function...
Hi all,
I am using the below algorithm for calculating the Luhn Alogorithm to calculate the 15th luhn digit for an IMEI (Phone Sim Card).
But the below function is taking about 6 min for 5 million records. I had 170 million records in a table want to calculate the luhn digit for all of them which might take up to 4-5 hours.Please help me performance tuning (better way or better logic for luhn calculation) to the below function.
A wikipedia link is provided for the luhn algorithm below
Create or Replace FUNCTION AddLuhnToIMEI (LuhnPrimitive VARCHAR2)
RETURN VARCHAR2
AS
Index_no NUMBER (2) := LENGTH (LuhnPrimitive);
Multiplier NUMBER (1) := 2;
Total_Sum NUMBER (4) := 0;
Plus NUMBER (2);
ReturnLuhn VARCHAR2 (25);
BEGIN
WHILE Index_no >= 1
LOOP
Plus := Multiplier * (TO_NUMBER (SUBSTR (LuhnPrimitive, Index_no, 1)));
Multiplier := (3 - Multiplier);
Total_Sum := Total_Sum + TO_NUMBER (TRUNC ( (Plus / 10))) + MOD (Plus, 10);
Index_no := Index_no - 1;
END LOOP;
ReturnLuhn := LuhnPrimitive || CASE
WHEN MOD (Total_Sum, 10) = 0 THEN '0'
ELSE TO_CHAR (10 - MOD (Total_Sum, 10))
END;
RETURN ReturnLuhn;
EXCEPTION
WHEN OTHERS
THEN
RETURN (LuhnPrimitive);
END AddLuhnToIMEI;
http://en.wikipedia.org/wiki/Luhn_algorithmAny sort of help is much appreciated....
Thanks
RedeThere is a not needed to_number function in it. TRUNC will already return a number.
Also the MOD function can be avoided at some steps. Since multiplying by 2 will never be higher then 18 you can speed up the calculation with this.
create or replace
FUNCTION AddLuhnToIMEI_fast (LuhnPrimitive VARCHAR2)
RETURN VARCHAR2
AS
Index_no pls_Integer;
Multiplier pls_Integer := 2;
Total_Sum pls_Integer := 0;
Plus pls_Integer;
rest pls_integer;
ReturnLuhn VARCHAR2 (25);
BEGIN
for Index_no in reverse 1..LENGTH (LuhnPrimitive) LOOP
Plus := Multiplier * TO_NUMBER (SUBSTR (LuhnPrimitive, Index_no, 1));
Multiplier := 3 - Multiplier;
if Plus < 10 then
Total_Sum := Total_Sum + Plus ;
else
Total_Sum := Total_Sum + Plus - 9;
end if;
END LOOP;
rest := MOD (Total_Sum, 10);
ReturnLuhn := LuhnPrimitive || CASE WHEN rest = 0 THEN '0' ELSE TO_CHAR (10 - rest) END;
RETURN ReturnLuhn;
END AddLuhnToIMEI_fast;
/My tests gave an improvement for about 40%.
The next step to try could be to use native complilation on this function. This can give an additional big boost.
Edited by: Sven W. on Mar 9, 2011 8:11 PM -
Please I need some help with a table
Hi All
I need some help with a table.
My table needs to hold prices that the user can update.
Also has a total of the column.
my question is if the user adds in a new price how can i pick up the value they have just entered and then add it to the total which will be the last row in the table?
I have a loop that gets all the values of the column, so I can get the total but it is when the user adds in a new value that I need some help with.
I have tried using but as I need to set the toal with something like total
totalTable.setValueAt(total, totalTable.getRowCount()-1,1); I end up with an infinite loop.
Can any one please advise on some way I can get this to work ?
Thanks for reading
CraigHi there camickr
thanks for the help the other day
this is my full code....
package printing;
import java.awt.*;
import java.awt.event.*;
import java.awt.print.*;
import javax.swing.*;
import javax.swing.table.*;
import java.text.DecimalFormat;
public class tablePanel
extends JDialog implements Printable {
BorderLayout borderLayout1 = new BorderLayout();
private boolean printing = false;
private Dialog1 dialog;
JPanel jPanel = new JPanel();
JTable table;
JScrollPane scrollPane1 = new JScrollPane();
DefaultTableModel model;
private String[] columnNames = {
private Object[][] data;
private String selectTotal;
private double total;
public tablePanel(Dialog1 dp) {
dp = dialog;
try {
jbInit();
catch (Exception exception) {
exception.printStackTrace();
public tablePanel() {
try {
jbInit();
catch (Exception exception) {
exception.printStackTrace();
private void jbInit() throws Exception {
jPanel.setLayout(borderLayout1);
scrollPane1.setBounds(new Rectangle(260, 168, 0, 0));
this.add(jPanel);
jPanel.add(scrollPane1, java.awt.BorderLayout.CENTER);
scrollPane1.getViewport().add(table);
jPanel.setOpaque(true);
newTable();
addToModel();
addRows();
setTotal();
public static void main(String[] args) {
tablePanel tablePanel = new tablePanel();
tablePanel.pack();
tablePanel.setVisible(true);
public void setTotal() {
total = 0;
int i = table.getRowCount();
for (i = 0; i < table.getRowCount(); i++) {
String name = (String) table.getValueAt(i, 1);
if (!"".equals(name)) {
if (i != table.getRowCount() - 1) {
double dt = Double.parseDouble(name);
total = total + dt;
String str = Double.toString(total);
table.setValueAt(str, table.getRowCount() - 1, 1);
super.repaint();
public void newTable() {
model = new DefaultTableModel(data, columnNames) {
table = new JTable() {
public Component prepareRenderer(TableCellRenderer renderer,
int row, int col) {
Component c = super.prepareRenderer(renderer, row, col);
if (printing) {
c.setBackground(getBackground());
else {
if (row % 2 == 1 && !isCellSelected(row, col)) {
c.setBackground(getBackground());
else {
c.setBackground(new Color(227, 239, 250));
if (isCellSelected(row, col)) {
c.setBackground(new Color(190, 220, 250));
return c;
table.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
if (e.getClickCount() == 1) {
if (table.getSelectedColumn() == 1) {
table.setTableHeader(null);
table.setModel(model);
scrollPane1.getViewport().add(table);
table.getColumnModel().getColumn(1).setCellRenderer(new TableRenderDollar());
public void addToModel() {
Object[] data = {
"Price", "5800"};
model.addRow(data);
public void addRows() {
int rows = 20;
for (int i = 0; i < rows; i++) {
Object[] data = {
model.addRow(data);
public void printOut() {
PrinterJob pj = PrinterJob.getPrinterJob();
pj.setPrintable(tablePanel.this);
pj.printDialog();
try {
pj.print();
catch (Exception PrintException) {}
public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException {
Graphics2D g2 = (Graphics2D) g;
g2.setColor(Color.black);
int fontHeight = g2.getFontMetrics().getHeight();
int fontDesent = g2.getFontMetrics().getDescent();
//leave room for page number
double pageHeight = pageFormat.getImageableHeight() - fontHeight;
double pageWidth = pageFormat.getImageableWidth();
double tableWidth = (double) table.getColumnModel().getTotalColumnWidth();
double scale = 1;
if (tableWidth >= pageWidth) {
scale = pageWidth / tableWidth;
double headerHeightOnPage = 16.0;
//double headerHeightOnPage = table.getTableHeader().getHeight() * scale;
//System.out.println("this is the hedder heigth " + headerHeightOnPage);
double tableWidthOnPage = tableWidth * scale;
double oneRowHeight = (table.getRowHeight() + table.getRowMargin()) * scale;
int numRowsOnAPage = (int) ( (pageHeight - headerHeightOnPage) / oneRowHeight);
double pageHeightForTable = oneRowHeight *numRowsOnAPage;
int totalNumPages = (int) Math.ceil( ( (double) table.getRowCount()) / numRowsOnAPage);
if (pageIndex >= totalNumPages) {
return NO_SUCH_PAGE;
g2.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
//bottom center
g2.drawString("Page: " + (pageIndex + 1 + " of " + totalNumPages), (int) pageWidth / 2 - 35, (int) (pageHeight + fontHeight - fontDesent));
g2.translate(0f, headerHeightOnPage);
g2.translate(0f, -pageIndex * pageHeightForTable);
//If this piece of the table is smaller
//than the size available,
//clip to the appropriate bounds.
if (pageIndex + 1 == totalNumPages) {
int lastRowPrinted =
numRowsOnAPage * pageIndex;
int numRowsLeft =
table.getRowCount()
- lastRowPrinted;
g2.setClip(0,
(int) (pageHeightForTable * pageIndex),
(int) Math.ceil(tableWidthOnPage),
(int) Math.ceil(oneRowHeight *
numRowsLeft));
//else clip to the entire area available.
else {
g2.setClip(0,
(int) (pageHeightForTable * pageIndex),
(int) Math.ceil(tableWidthOnPage),
(int) Math.ceil(pageHeightForTable));
g2.scale(scale, scale);
printing = true;
try {
table.paint(g2);
finally {
printing = false;
//tableView.paint(g2);
g2.scale(1 / scale, 1 / scale);
g2.translate(0f, pageIndex * pageHeightForTable);
g2.translate(0f, -headerHeightOnPage);
g2.setClip(0, 0,
(int) Math.ceil(tableWidthOnPage),
(int) Math.ceil(headerHeightOnPage));
g2.scale(scale, scale);
//table.getTableHeader().paint(g2);
//paint header at top
return Printable.PAGE_EXISTS;
class TableRenderDollar extends DefaultTableCellRenderer{
public Component getTableCellRendererComponent(
JTable table,
Object value,
boolean isSelected,
boolean isFocused,
int row, int column) {
setHorizontalAlignment(SwingConstants.RIGHT);
Component component = super.getTableCellRendererComponent(
table,
value,
isSelected,
isFocused,
row,
column);
if( value == null || value .equals("")){
( (JLabel) component).setText("");
}else{
double number = 0.0;
number = new Double(value.toString()).doubleValue();
DecimalFormat df = new DecimalFormat(",##0.00");
( (JLabel) component).setText(df.format(number));
return component;
} -
Steps to create f4 help for a table
steps to create f4 help for a table
These are the steps you have to take first:
1. Please elaborate, your question does not all too clear.
2. Search on SCN.
3. Search on help.sap.com (for creating F4 search help).
I guess you get the picture. Creating an F4 help is quite easy (you can find that on SCN for sure), but what do you mean by
for a table
1.Do you want to create a field which has an F4 help for searching tables or
2. is this field part of a table and you need to have a search help for that field of that table in order to select some sort of value
3. Is this a custom table.
4. Is this a custom field for which F4 help should be added.
5. Won't a domain value do.
6. etc. -
Hi Experts,
I need to implement F4 help for ALV table field.
I my scenario, I am using two views. If we click on any record in fist view then it displays the popup window (second view) with relevant record details.
Here one of the columns having fieldnames corresponding values (old values), for correcting old values I have created new value editable column, we can enter new value for old value then we can save it. Till this functionality is ok.
Then I have included OVS help for new value field. Here I need to get f4 help for newvalue field relevant to fieldname.
For example: user clicks on f4 in cell (new value) then if corresponding fieldname is u2018WERKSu2019 then it shows the plant values
Here I can get fieldname, domain name and value table using method set_attribute ().
Same concept I have implemented in ALV using F4IF_FIELD_VALUE_REQUEST. It is working fine
Here I have little bit confusion. Please advise me how to implement in OVS.
Regards,
BBCHi,
you'll have to create a method for the OVS search help (define it in the "OVS component usage" field in the context).
Sample code (should work for WERKS):
method on_ovs .
declare data structures for the fields to be displayed and
for the table columns of the selection list, if necessary
types:
begin of lty_stru_input,
add fields for the display of your search input here
WERKS TYPE WERKS,
end of lty_stru_input.
types:
begin of lty_stru_list,
add fields for the selection list here
WERKS TYPE WERKS_D,
NAME1 type NAME1,
end of lty_stru_list.
data: ls_search_input type lty_stru_input,
lt_select_list type standard table of lty_stru_list,
ls_text type wdr_name_value,
lt_label_texts type wdr_name_value_list,
lt_column_texts type wdr_name_value_list,
lv_window_title type string,
lv_group_header type string,
lv_table_header type string,
lv_werks type werks_d.
field-symbols: <ls_query_params> type lty_stru_input,
<ls_selection> type lty_stru_list.
case ovs_callback_object->phase_indicator.
when if_wd_ovs=>co_phase_0. "configuration phase, may be omitted
in this phase you have the possibility to define the texts,
if you do not want to use the defaults (DDIC-texts)
Set label from Medium Description to something more logical...
ls_text-name = `NAME1`. "must match a field in list structure
ls_text-value = `Plant description`.
insert ls_text into table lt_label_texts.
Set col header from Medium Description to something more logical...
ls_text-name = `NAME1`. "must match a field in list structure
ls_text-value = `Plant description`.
insert ls_text into table lt_column_texts.
lv_window_title = wd_assist->get_text( `003` ).
lv_group_header = wd_assist->get_text( `004` ).
lv_table_header = wd_assist->get_text( `005` ).
ovs_callback_object->set_configuration(
label_texts = lt_label_texts
column_texts = lt_column_texts
group_header = lv_group_header
window_title = lv_window_title
table_header = lv_table_header
col_count = 2
row_count = 20 ).
when if_wd_ovs=>co_phase_1. "set search structure and defaults
In this phase you can set the structure and default values
of the search structure. If this phase is omitted, the search
fields will not be displayed, but the selection table is
displayed directly.
Read values of the original context (not necessary, but you
may set these as the defaults). A reference to the context
element is available in the callback object.
ovs_callback_object->context_element->get_static_attributes(
importing static_attributes = ls_search_input ).
pass the values to the OVS component
ovs_callback_object->set_input_structure(
input = ls_search_input ).
when if_wd_ovs=>co_phase_2.
If phase 1 is implemented, use the field input for the
selection of the table.
If phase 1 is omitted, use values from your own context.
if ovs_callback_object->query_parameters is not bound.
endif.
assign ovs_callback_object->query_parameters->*
to <ls_query_params>.
if not <ls_query_params> is assigned.
TODO exception handling
endif.
call method ovs_callback_object->context_element->get_attribute
exporting
name = 'WERKS'
importing
value = lv_werks.
data: lv_subcat_text type rstxtmd.
select werks
name1
into table lt_select_list
from T001W.
ovs_callback_object->set_output_table( output = lt_select_list ).
when if_wd_ovs=>co_phase_3.
apply result
if ovs_callback_object->selection is not bound.
endif.
assign ovs_callback_object->selection->* to <ls_selection>.
if <ls_selection> is assigned.
ovs_callback_object->context_element->set_attribute(
name = `WERKS`
value = <ls_selection>-werks ).
endif.
endcase.
endmethod. -
Standard Input Help on a table column.
Hello,
Requirement is to provide a Standard Input Help on a Table Column in Web UI. The Context node is a Value node and that column should be in editable mode.
And how can I get standard search in Web UI that is available in GUI for searching the Transaction No. in T- Code CRMD_ORDER.
Pl. help.
Thanks & Regards
AnkitHi Ankit,
If you are asking about DDIC search help, then you need to use method GETV_XYZ of the context node attribute.
Have a look on below written code:
data:
ls_map type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING,
lt_inmap type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING_TAB,
lt_outmap type IF_BSP_WD_VALUEHELP_F4DESCR=>GTYPE_PARAM_MAPPING_TAB.
ls_map-context_attr = 'struct.countryorigin'.
ls_map-f4_attr = 'LAND1'. ( Search help Parameter, in your case it will be Transcation no.)
append ls_map to: lt_inmap, lt_outmap.
create object rv_valuehelp_descriptor type
CL_BSP_WD_VALUEHELP_F4DESCR
exporting
iv_help_id = 'H_T005_LAND'
iv_help_id_kind = IF_BSP_WD_VALUEHELP_F4DESCR=>HELP_ID_KIND_NAME
iv_input_mapping = lt_inmap
iv_output_mapping = lt_outmap.
Regards,
Saurabh -
Need help in quering table in loop
I have following scenario and need some help:
I have Table A from there I need to select NAME in LOOP and query Table B with each name.
Table B can give me more than one record per call and then I have to select the best record and update the Table A with Table B values (best row).
I have created a global temp table and insert the table B results in that table and then loop through Temp table to decide which record is best. Then update the Table A.
This solution is working but is very slow. I have created indexes on all the tables but still very slow. Is there any solution to make it fast?
Thanksskas wrote:
I have following scenario and need some help:
I have Table A from there I need to select NAME in LOOP and query Table B with each name.
Table B can give me more than one record per call and then I have to select the best record and update the Table A with Table B values (best row).
I have created a global temp table and insert the table B results in that table and then loop through Temp table to decide which record is best. Then update the Table A.
This solution is working but is very slow. I have created indexes on all the tables but still very slow. Is there any solution to make it fast?
ThanksDon't use PL/SQL loops, don't use GTT's, do it in plain sql. If you post the table descriptions and some sample data (preferrably in the form of cretate table and insert statement) and explain how you determine "the best record" in table B I'm sure that someone here could help you with the requirements.
John -
How can we add customize seardh help in standard tables?
Hi,
Gurus,
How can we add / assign customize Search Help to standard tables
as my knowledge this is working fine in SAP 4.60. Where as i was not
allowing us to add a search help to its data element is there any alternate way to add if give me your support.
thank you
shabeer ahmedhi shabeer ahmed
This one is already posted one, chk it
First in the MARA table the Search Help(MAT1) for matnr is selected and viewed.
In the included search helps tab of MAT1 there is another search help MAT1_A.
For that search help in the included u201Csearch helpu201D tab view is selected .
Inside that there is a search help called MAT1_A_APPEND.
Then in the included search help tab of MAT1_A_APPEND, the customized search helps can be attached.
Regards,
Deva -
Troubleshoot Error - Unable to perform table-based value assignment config
After to creating class, characteristics, and value assignment type, the system is unable to perform table-based value assignment configuration. The following error is displayed:
Hi Mr. SAP,
Based on the diagnosis, you can figure out that most likely someone is already editing the customizing table or might you are not authorized..
In case if you have the access to SM12 Transaction code, kindly check if an entry present there. If yes it means the table is locked and you can't proceed on that. you have to reach out to the specific resource to unlock the table who did a lock, else you need to reach out to BASIS to make that entry delete.
Regarding authrization for locking of table, please check SU53 after the execution of the T-code, if you are missing any role. If you find anything there, then reach out to your Security team to get and assigned roles to your profile.
Regards,
Abhi -
How to attach a search help in a table control coloumn based on the search
Hi,
Can anyone help me for attaching a search help in a table control coloumn based on the search help value of another coloumn
in the same table control.
Regards,
Ratheesh BScheck
Re: Switch Search Help during runtime -
Help sign in table column in web dynpro abap
Hi all,
I am using a F4 help in a table's column.By using it ,it works fine but it does not displays its F4 sign .
My query is , How to show that F4 help sign so that user can get aknowledgement about that facility.
Thanks
Sanket sethihi,
in component controller -> goto context tab.
then double click on the node name.
then u can find their poperties viz singleton,cardinalty,supply function,help etc...
then go to help and it will show drop down list showing
1.ddic help
2.automatic
3.ovs
select ddic help or auto
this will work
thanx
zenthil. -
F4 Help with text table in WD abap
Hi,
i am using country related input help with check table T005 in one of table and i want to display the country text along with country id in my table, f4 for country is coming however if i select country from f4 it showing country id in the input field of table.
i want to have country text also in one of my input fields in the table, i have seen f4 help works if we have explicit search help and using parameter assignment we can have id and text defaulted if we use same context for id and text fields, however in this case country table t005 has check table t005 where texts are stored in text table t005t so web dynpro abap is't picking up the texts??
please suggest how can i get the texts as soon as i select country in the f4??Hi Kranthi,
You merely have to have an internal table storing list of countries, which you only need to do once, e.g. on load of application (method WDDOINIT of COMPONENTCONTROLLER). In your view, you have to declare a method for event onEnter of the input field, but this method doesn't have to have any code. Your code will be in method WDDOBEFOREACTION, where you read get country name from country key. Once you've got country name, transfer value to a context attribute to which you've already mapped as a source for attribute value of the UI element.
Check out SAP Webdynpro component FITV_IMG_DEFHTLCATA -> view V_ITEM. -
Attach search help to standard table field
Hi,
I need to attach search help to standard table field VBKD-EMPST.
I have create a z search help and taken acess key from SAP.
But unable to attach this to standard table field.
Kindly help.
Moderator message: duplicate post locked.
Edited by: Thomas Zloch on Oct 27, 2010 6:11 PMHi,
just go throw this link
Re: Attaching Search Help to a field
I hope this will help u
Thanks
Regards
Akhilesh Singh -
How does logical volume helps in performance in AIX..Should have posted IBM
We are setting up a new DB server and the disks are in RAID5 config,Does putting data and index in different logical volumes helps in performance
(I hope I'm not falling for April Fools joke here...)
Hi Maran,
As someone already answered, if both volumes are striped against all available disks, you can put everything in one volume and expect equal or better performance.
However, I want to warn you from optimizing the disk structure without knowing that your database will really bottleneck on disk access to index and data blocks. My storage manager and I wasted countless hours with such optimizations before realizing that we are wasting our time because the application code contains so many functions that disk IO is not even close to being an issue.
-- Chen -
Hello All,
I need some help with custom tables. I have created a custom table to maintain names and I also did table maintenance generation so that the user can maintain names in this table using SM30 transaction.
The question is, in my program on the selection screen when the user press F4 I need to display the values maintained in this custom table...
Can anyone help me with this.
Thanks
PavanIf I understood you correctly, you have a program in which one or some of the selection screen fields refer to a custom database table field(s).
You want to implement a F4 functionality.
Fill an internal table with the values you want to show.
Call the function module 'F4IF_INT_TABLE_VALUE_REQUEST' in the event AT SELECTION-SCREEN ON VALUE-REQUEST FOR MYPARAM as follows.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = MYITAB-FIELD
dynprofield = MYSELSCREENPARAM
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
tables
value_tab = my_f4_itab.
Srinivas
Maybe you are looking for
-
Problem in Asset value calculation ... ANEP and ANLC
Hellö , We have a problem in calculation of the Fixed Asset values. Please see the link below for the problem. Technically it sums up like transaction values are available in the table ANEP but ANLC table is with the wrong value, Some of the transact
-
Adobe Document Services... Need it Urgently....
Hi, I need to know about ADS( Adobe document services). What is it actually. Is it compatible to SAP. I had a scenario in my Firm, that is to convert a EXCEL File to PDF automatically when its stage is cleared. I need a contact number (or) mail id to
-
How can i recover items that were emptied from the trash can?
I accidentally deleted my iphone back up and emptied the trash. i REALLY need to recover that back up... HELP!
-
Char Input and kbhit() equivalent function injava
May be its very simple question. But can anyone please suggest me how to get char as input from keyboard and store it into char primitive type. and also suggest equivalent kbhit() function in java. please be more elabotative so that noviece can easil
-
Icloud server stopped responding
I am using Outlook 2007 and windows 7. The icloud sync is working between my iphone and ipad, but not with outlook on my pc. It has worked for months and then just quit. When I try to go into icloud and "recheck" the calendar and task items I get