Variable/field value no displayed in query column headers
Hello to all,
I have a concern on the column entries for variable values not being displayed.
Example. The column will display &Month& Instead of displaying 08 (August).
Please help me diagnose on the issue.
Thanks.
-Patvin
patvin,
unfortunately no access to messenger:(
probably it is because you are in display and not in change mode.
Of course, you should only change to 'Change' mode if you are in development system. changing in production is not the best idea.
so first try to set the view mode to "Change". the sixth Icon from right (glasses / pencil)
Similar Messages
-
Display Periods in Column headers for CO-PA report
SDNers
I'm trying to create a CO-PA Report with Column headers that are required to be showing Current Period, last period etc until 6 months back.
I've tried to put in &0FP .. but that only display the Current period/year...
How do i get the previous periods displayed in the column headers??
thankshi Sruthi....
In standard SAP, the only reports which are available are line item reports - KE24 (Actuals) and KE25 (Plan). However, using Report writer / painter we can create reports as per Business requirements.
Once we create reports as required, we can execute the same using transaction code KE30 (Execute report).
You can create / change / display COPA reports using transaction codes KE31 / KE32 / KE33 respectively.
Once again create the new Report and then execute it.....
http://help.sap.com/saphelp_erp2005/helpdata/en/7a/4c48c64a0111d1894c0000e829fbbd/frameset.htm
Regards
Ranjit -
Displaying dates as column headers for BEx Query
Hi all,
I have to display dates in sequence as descriptions for 15 columns based on the keyed in date in Bex Query Analyser. I'm able to display date as column heading for one column using text variable with replacement path.I could not able to increment date for other descriptions.Could you please help me to solve this issue.
Ex: Input Date 05/09/2007 then in the out put column headers should be 0509 0609 0709 ............ 1909
These are only column headers, values for the columns are quantities calculated using formulas.
It is urgent.
Thanks in advance.
Regards,
Mandadi.hi mandadi,
if u want dates as headers only then u should use a text variable .
as a rule u can not set off set for text variable so u create restricted key figure with date restricted and set off set.
now u use this rkf to populate the text variable using replacement path.
text variable can use replacement path for replacing from any variable and characteristics.
bye -
Field value retrieve from sql query
Hi,
Is there any way to code sql query into form field in rtf template ?.
I have converted an oracle report to BI publisher (e-business suite R12) but I have a form field that contain a sql query that retrieve a value from database. I don't know how to code sql query in form field in rtf template.
Thanks for help,http://winrichman.blogspot.com/search/label/cross%20tab
http://winrichman.blogspot.com/search/label/Cross-tab
http://winrichman.blogspot.com/search/label/Dynamic%20column -
New Field value not displayed in "My own activities" of CRM 5.0 Own tab
Hi.
I have a scenario where in we have added a new field to "My open activities" in CRM 5.0 Own tab.
However the value of the field for various transactions is getting displayed only for one particular user and not for all the users.
what may be the reason for this?!!!!!!
The only user who is getting the output properly, the user ID of his was replication based on similar roles to check whether it was issue related with roles. But the output was not obtained even with the replicated user ID.
Hence the output continues to come only for one particular user in all the systems.
Kindly request to provide some inputs / suggestions at the earliest.
Thanks and regards.Is aanyone able to help with this?
Thanks -
How to define variable for value range in Bex Query?
Hi
How to define variable for Keyfig. value range on runtime like characteristic in Bex Query?
Example: On runtime user select one of the following condition:
1)User want to those records where amount is greater than $1000
2)User want to those records where amount is greater than $1000 and less than $5000
3)User want to those records where amount is greater than and equal to $1000Hi ,
Need to Use exceptions & conditions for this scenario's & need to create variable for exceptions based on condtions.
Below document provides steps how to make selections at run time for a kfg.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60b33a28-dca2-2d10-f3b2-d2096b460b1e?QuickLink=index&overridelayout=true&48842368468641
Regards,
Seshu.P -
JTable displays only default column headers
Hello,
after a tblModel.setDataVector(dataArray, (Object[])headers) I check the header with a System.out.println(tblModel.getColumnName(0)) and it's correct. But only the capitals A, B, C ... are displayed as headers. I am using a DefaultTableModel. Any associations?
Regards
JoergSome code will better demonstrate the problem.
Without a TableColumnModel in the constructor and with table.setAutoCreateColumnsFromModel(true); (default) the headers are painted, but then the CellRenderer won't work.
With a TableColumnModel and table.setAutoCreateColumnsFromModel(false) it's better.
It seems that if you want to use a renderer you have to supply a TableColumnModel as well.
As the TableColumnModel is in fact of no interest to me in this case, I only coded what I thought to be the minimum necessary. But now it has become so little that the headers are not dispayed at all. What is missing?
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;
public class TTest extends JFrame
{ JTable table = null;
public TTest()
{ setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(300, 300);
Container cp = getContentPane();
int countOfColumns=3;
String[] headers = {"One","Two","Three"};
Object[][] dataArray= {{"R1-C1","R1-C2","R1-C3"},
{"R2-C1","R2-C2","R2-C3"},
{"R3-C1","R3-C2","R3-C3"}};
DefaultTableModel tblModel = new DefaultTableModel(20, countOfColumns)
{ // Make read-only
public boolean isCellEditable(int x, int y)
{ return false;
createTable(tblModel, 2);
JScrollPane scrollPane = new JScrollPane(table);
cp.add(scrollPane, BorderLayout.CENTER);
System.out.println(tblModel.getColumnName(0));
tblModel.setDataVector(dataArray, (Object[])headers);
System.out.println(tblModel.getColumnName(0));
setVisible(true);
public void createTable(DefaultTableModel tblModel, int twoColumn)
DefaultTableColumnModel tblColModel= new DefaultTableColumnModel();
for (int i=0; i<tblModel.getColumnCount(); i++)
{ tblColModel.addColumn(new TableColumn(i));
table= new JTable(tblModel, tblColModel);
// table= new JTable(tblModel);
// Without the following line the renderer won't work; but now the table headers
// are no more created automatically.
table.setAutoCreateColumnsFromModel(false);
table.getColumnModel().getColumn(twoColumn-1).setCellRenderer
(new RightJustCellRenderer());
class RightJustCellRenderer extends DefaultTableCellRenderer
{ public RightJustCellRenderer()
{ setHorizontalAlignment(SwingConstants.RIGHT);
public static void main(String args[])
{ new TTest();
} -
I have this strange problem - A field value is displayed correctly in the crystal report when pulled from MySQL table (field is Varchar(25)). But the same field when loaded into a Java POJO and set the POJO as new datasource the value is garbled up.
Any ideas?
Thanks,Early implementations of the POJO Factory set the default display size to 12, which caused corruption in the display starting from the 12th character when the size exceeded the display size.
Would you try specifying the MemberColumnDisplaySize property for that column in POJOResultSetFactory to reflect the actual size?
Sincerely,
Ted Ueda - Developer Support -
One field value missing in the spreadsheeet
Hi All,
I have created an ALV grid report, which displays proper output. All the headers and their field value are displayed properly in the ALV output.
But when I select the option to download the output to the spreadsheet format by using the following option, it displays all the headers and their field value, except field value for only one column.
Save List in file --> Local file --> Spreadsheet.
Can some body please let me know what could me the problem?
Regards,
ReshmaHi Reshma,
I hope the column is not added dynamically. I had faced this problem for dynamic columns.
Also, you could try and download the internal table data using 'GUI_DOWNLOAD' just to cross check that you face the smae issue.
Regards,
Shyam -
Finding variable data value using fms
hi experts
i want find variable field value by using fms.pls help me
exact scenerio is
i want fetch the value tax amount of respective tax code from the Define tax Amount distribution form.
eg.if suppose i tax code BED+VAT then i want get what is the calculated value of excise ,cess and and vat .i get the row tax amount.whwn i click tax amount filed i get tax amount distribution form from this form i want that particular valu
what is exactsql for thisHi Sachin,
No need to go FMS. Open any transcation screen. For eg., Open Sales Order, goto Form Setting -> Table Format. Please check the field column like "Tax Only".
Then open any SO, check it out this Link, u will get the full information and tax break etc...
Thanks
SAGAR -
TOTAL_TIME_SEC field value is more then 2000 sec in S_NQ_ACCT table
Hi Everyone,
In a Usage tracking report, I am displaying report response time (which is total_time_sec field in S_NQ_ACCT table).
For few reports, this field value is displayed as more than 2000 secs, but in reality, that report doesn't run more than 2 secs.
In the database table S_NQ_ACCT also Time is recorded as more than 2000 secs. But the time is supposed to be 2 secs.
Please let me know if anyone is having idea on this issue.
Thanks in Advance.Check this post:
http://sranka.wordpress.com/2010/06/22/the-myth-usage-tracking-measures-for-tracking-the-performance-of-report-retrieval-time/ -
Getting column headers dynamically from input parameters in alv.
Hi all,
I am new to abap, can any one help me in getting column header dynamically through parameters in alv ?
Eg:-
i Have parametars for days field ,
user inputs days as 10 20 30 40.
Now I want to display in alv column headers as:-
1st column- 'FROM 0 TO 10'
2nd column- 'FROM 10 TO 20 '
3rd column- 'FROM 20 TO 30'
4th column- 'FROM 30 TO 40'
5th column- 'FROM 40 TO 50'
6th column- 'FROM 50 TO 60'
thanks in advance........Check this code snippet:
Step 1: Create a dynamic table based on the input in the selection screen.
TYPE-POOLS: abap.
DATA:
lr_structdescr TYPE REF TO cl_abap_structdescr,
lr_tabledescr TYPE REF TO cl_abap_tabledescr,
lr_datadescr TYPE REF TO cl_abap_datadescr,
lt_components TYPE abap_component_tab,
ls_component TYPE abap_componentdescr,
lr_wa TYPE REF TO data,
lr_tab TYPE REF TO data.
DATA: lv_index TYPE sy-index.
DATA: lv_index_num(5) TYPE n.
DATA: lv_index_char(5) TYPE c,
lv_iter TYPE i,
lv_low TYPE numc2 VALUE 0,
lv_high TYPE numc2 VALUE 10.
DATA: lr_alv TYPE REF TO cl_salv_table.
FIELD-SYMBOLS: <fs_field> TYPE ANY.
FIELD-SYMBOLS: <fs_wa> TYPE ANY.
FIELD-SYMBOLS: <fs_tab> TYPE table.
PARAMETERS p_numcol(2) TYPE n DEFAULT 50.
START-OF-SELECTION.
lv_iter = p_numcol DIV 10.
DO lv_iter TIMES.
IF sy-index > 1.
lv_low = lv_low + 10.
lv_high = lv_high + 10.
ENDIF.
lv_index_num = sy-index.
lv_index_char = lv_index_num.
CONCATENATE 'FROM' lv_low 'TO' lv_high INTO ls_component-name
SEPARATED BY '_'.
ls_component-type =
cl_abap_elemdescr=>get_p( p_length = 10 p_decimals = 2 ).
INSERT ls_component INTO TABLE lt_components.
ENDDO.
* get structure descriptor -> lr_STRUCTDESCR
lr_structdescr
= cl_abap_structdescr=>create( p_components = lt_components
p_strict = space ).
* create work area of structure lr_STRUCTDESCR -> lr_WA
CREATE DATA lr_wa TYPE HANDLE lr_structdescr.
ASSIGN lr_wa->* TO <fs_wa>.
lr_datadescr = lr_structdescr.
lr_tabledescr
= cl_abap_tabledescr=>create( lr_datadescr ).
* Create dynamic internal table
CREATE DATA lr_tab TYPE HANDLE lr_tabledescr.
ASSIGN lr_tab->* TO <fs_tab>.
* Populate the internal table
DO 10 TIMES.
DO.
lv_index = sy-index.
ASSIGN COMPONENT lv_index OF STRUCTURE <fs_wa> TO <fs_field>.
IF sy-subrc <> 0.
EXIT.
ENDIF.
<fs_field> = sy-index.
ENDDO.
APPEND <fs_wa> TO <fs_tab>.
ENDDO. -
Under the column firld value new variable needs to be displayed in
hi
i ahve a query
presently in sap script output in main window
these three fields are coming i want to add a new line ie bar code for the field value which is coming below it
example
present output
number item total amount unitvalue
001 dxs 22222 3456
002 tcg 44545 45464
desired output change needed
number item total amount unitvalue
001 dxs 22222 3456
bar code for 3456
002 tcg 44545 45464
my question is kindly let me know how to increase the space next line how to get below the earlier value coming
what is code for next line and if i put it below that field in the column unit value will it be displayed and automatically space created for whole line??? and output as above comes
pls suggest
regards
Aroraclosed
duplicate thread -
How to display field value only once in REUSE_ALV_GRID_DISPLAY
hi experts,
i am using REUSE_ALV_GRID_DISPLAY, for alv outpur display.but i want one of the field in output ,not to display the value which is of same, it have to be displayed only once, I mean i have a number which contains multiple line items corresponding, here i want to display the field value only once when it is repeating , for the same header number, how can i achieve itHi,
check the sample code,
REPORT Z_ALV.
Database table declaration
TABLES:
sflight.
Typepool declaration
TYPE-POOLS:
slis.
Selection screen elements
SELECTION-SCREEN BEGIN OF BLOCK blk_1 WITH FRAME TITLE text-000.
SELECT-OPTIONS:
s_carrid FOR sflight-carrid.
SELECTION-SCREEN END OF BLOCK blk_1.
Field string to hold sflight data
DATA:
BEGIN OF fs_sflight ,
carrid TYPE sflight-carrid, " Carrier Id
connid TYPE sflight-connid, " Connection No
fldate TYPE sflight-fldate, " Flight date
seatsmax TYPE sflight-seatsmax, " Maximum seats
seatsocc TYPE sflight-seatsocc, " Occupied seats
END OF fs_sflight.
Internal table to hold sflight data
DATA:
t_sflight LIKE
STANDARD TABLE
OF fs_sflight .
Work variables
DATA:
t_fieldcat TYPE slis_t_fieldcat_alv,
fs_fieldcat LIKE
LINE OF t_fieldcat.
*START-OF-SELECTION
START-OF-SELECTION.
PERFORM get_data_sflight. " Getting data for display
PERFORM create_field_cat. " Create field catalog
PERFORM alv_display.
*& Form create_field_cat
Subroutine to create field catalog
There is no interface paramete
FORM create_field_cat .
PERFORM fill_fieldcat USING 'Carrier Id' 'CARRID' '2'.
PERFORM fill_fieldcat USING 'Connection No' 'CONNID' '1'.
PERFORM fill_fieldcat USING 'Flight Date' 'FLDATE' '3'.
PERFORM fill_fieldcat USING 'Maxm.Seats' 'SEATSMAX' '4'.
PERFORM fill_fieldcat USING 'Seats Occ' 'SEATSOCC' '5'.
ENDFORM. "create_field_cat
*& Form fill_fieldcat
Subroutine to fill data to field column
-->p_seltext Column label
-->p_fieldname Fieldname of database table
-->p_col_pos Column position
FORM fill_fieldcat USING
p_seltext LIKE fs_fieldcat-seltext_m
p_fieldname LIKE fs_fieldcat-fieldname
p_col_pos LIKE fs_fieldcat-col_pos.
fs_fieldcat-seltext_m = p_seltext.
fs_fieldcat-fieldname = p_fieldname.
fs_fieldcat-col_pos = p_col_pos.
APPEND fs_fieldcat TO t_fieldcat.
CLEAR fs_fieldcat.
ENDFORM. " fill_fieldcat
*& Form get_data_sflight
Subroutine to fetch data from database table
There is no interface parameter
FORM get_data_sflight .
SELECT carrid
connid
fldate
seatsmax
seatsocc
FROM sflight
INTO TABLE t_sflight
WHERE carrid IN s_carrid.
ENDFORM. " get_data_sflight
*& Form alv_display
Subroutine for ALV display
There is no interface parameter
FORM alv_display .
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
it_fieldcat = t_fieldcat
TABLES
t_outtab = t_sflight
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " alv_display
End of code -
How to revise form field value in query and skip validation
Hi all,
I have a 10g form that has a field which I want to manipulate during query. I want to display a different value depending upon its orignal value. I did this with a Post-Query trigger on the field's datablock. However, now, when I attempt a new query, the form thinks I've changed the field (which I did). I want to change the field but trick Forms into thinking there were no updates. How do I do this? Note: the field is a list item that has a style of combo box.
Thanks, MikeAmmad,
The reason is that sometimes the list returns the record group's key value (the second column) instead of the intended value (in the first column). This is because the record group is based on a SQL query. There are some values which are no longer in the table queried by the record group, thus the key value is displayed. I would rather nothing be displayed. As of now, I display a message indicating that there is a problem with the LOV.
I know about using a non-database form field. But I don't have any room left and I don't want to lay the non-database field on top of the database field and then have to enable/disable the two fields.
A friend at work suggested setting update_permission to trick Forms. Tried it but not successful yet.
Thanks, Mike
Maybe you are looking for
-
HT201209 The buy button in itunes does not open a new window and allow me to buy a purchase
Hello We are having problems with iTunes. We have redeemed a voucher which does appear £25 but we can not Buy a purchase. The new window does not open like it used to. We can not download the free singles either. This has been happening for 2 weeks.
-
Weird warning message on tomcat 5.0.30
Hi This message recently started to show up in tomcat's console window: ParserUtils: warning org.xml.sax.SAXParseException: URI was not reported to parser for entity [document] ParserUtils: warning org.xml.sax.SAXParseException: No base URI; hope URI
-
Stuck while Transfering Purchases
Hello, I recently bought a new computer. I am trying to transfer my iTunes store purchases from one computer to the other one via my iPod. I have had to do this before. For some reason, while I am transfering my purchases, it gets stuck on one of my
-
Hi. Everytime I connect my iPod Touch, iTunes creates a safety backup of my data. Is it possible to disable this function ?
-
Reconnecting my Mac to workplace network
I have this problem too. I'm the lone Mac in a Windows workplace. Every once in awhile, they do something to the servers, and it completely knocks me off the network, but the IT department never remembers how to fix it on a Mac. I believe it's Ethern