Possible Bug: Rows & Column values are not honoured in panel form layout
<af:panelFormLayout id="pfl10"
binding="#{backingBeanScope.backing_AssemblyStarts.pfl10}"
rows="1" maxColumns="4"
fieldWidth="66%" labelWidth="34%">
Even after Running, saving, deploying it shows the same 4 rows...
I wanted to include image as well... how to insert image in the question ? I drag and drop image on this editor, but it did not allow me to submit the question.
Here is the image I uploaded on google drive...
https://docs.google.com/file/d/0B7Po4hB-u4BgS3ExWG5YdjRIS1E/edit?usp=sharing
Thanks
Rahul
It is confirmed now...... I checked that this "Panel Form Layout" does not work on popup. It does not change rows and columns at all..... !!!!
It works fine on the normal page... but not on the popup.
Is it Bug or it is shortcoming of 'panel form layout' ???
Anybody listening ?? anybody faced this earlier ???
Thanks
Rahul
Similar Messages
-
Select only records where column values are not all equal to zero
Hi everyone, this seems so easy but it's got me stumped on finding a clean, easy way to accomplish this. I'm sure when someone responds, I'll kick myself. So, assume the following is what I've got:
with mytable as (
select 'Type 1' as itemtype, 'JAN' as monthname, 0 as theval from dual union all
select 'Type 1' as itemtype, 'FEB' as monthname, 1 as theval from dual union all
select 'Type 1' as itemtype, 'MAR' as monthname, 5 as theval from dual union all
select 'Type 1' as itemtype, 'APR' as monthname, 1 as theval from dual union all
select 'Type 1' as itemtype, 'MAY' as monthname, 4 as theval from dual union all
select 'Type 1' as itemtype, 'JUL' as monthname, 0 as theval from dual union all
select 'Type 1' as itemtype, 'AUG' as monthname, 0 as theval from dual union all
select 'Type 1' as itemtype, 'SEP' as monthname, 1 as theval from dual union all
select 'Type 1' as itemtype, 'OCT' as monthname, 7 as theval from dual union all
select 'Type 1' as itemtype, 'NOV' as monthname, 1 as theval from dual union all
select 'Type 1' as itemtype, 'DEC' as monthname, 2 as theval from dual union all
select 'Type 2' as itemtype, 'JAN' as monthname, 0 as theval from dual union all
select 'Type 2' as itemtype, 'FEB' as monthname, 0 as theval from dual union all
select 'Type 2' as itemtype, 'MAR' as monthname, 0 as theval from dual union all
select 'Type 2' as itemtype, 'APR' as monthname, 0 as theval from dual union all
select 'Type 2' as itemtype, 'MAY' as monthname, 0 as theval from dual union all
select 'Type 2' as itemtype, 'OCT' as monthname, 0 as theval from dual union all
select 'Type 2' as itemtype, 'NOV' as monthname, 0 as theval from dual union all
select 'Type 2' as itemtype, 'DEC' as monthname, 0 as theval from dual
select
itemtype,
sum (case monthname when 'JAN' then theval else 0 end) as JAN,
sum (case monthname when 'FEB' then theval else 0 end) as FEB,
sum (case monthname when 'MAR' then theval else 0 end) as MAR,
sum (case monthname when 'APR' then theval else 0 end) as APR,
sum (case monthname when 'MAY' then theval else 0 end) as MAY,
sum (case monthname when 'JUN' then theval else 0 end) as JUN,
sum (case monthname when 'JUL' then theval else 0 end) as JUL,
sum (case monthname when 'AUG' then theval else 0 end) as AUG,
sum (case monthname when 'SEP' then theval else 0 end) as SEP,
sum (case monthname when 'OCT' then theval else 0 end) as OCT,
sum (case monthname when 'NOV' then theval else 0 end) as NOV,
sum (case monthname when 'DEC' then theval else 0 end) as DEC
from mytable
group by itemtype
order by itemtypeI need an outer query around this one or something that will only select "Type 1"... i.e., if all of the months are each equal to zero, don't include the record in the result set.
Summing them to get a total of zero is not an option, as I could have -15 and +15 in different columns, in which case, that record would need to be displayed.
Something as simple as... "where not (oct = 0 and nov = 0 and dec = 0...) at the end is all I seem to need. I've thought about adding a case clause for each column, but that doesn't seem very efficient. Ideas?
Thanks in advance!
Mark
Edit... I know the following will work using the MINUS operator, but my real query is really huge, and I don't want to have to write it twice...
{code}
select
itemtype,
sum (case monthname when 'JAN' then theval else 0 end) as JAN,
sum (case monthname when 'FEB' then theval else 0 end) as FEB,
sum (case monthname when 'MAR' then theval else 0 end) as MAR,
sum (case monthname when 'APR' then theval else 0 end) as APR,
sum (case monthname when 'MAY' then theval else 0 end) as MAY,
sum (case monthname when 'JUN' then theval else 0 end) as JUN,
sum (case monthname when 'JUL' then theval else 0 end) as JUL,
sum (case monthname when 'AUG' then theval else 0 end) as AUG,
sum (case monthname when 'SEP' then theval else 0 end) as SEP,
sum (case monthname when 'OCT' then theval else 0 end) as OCT,
sum (case monthname when 'NOV' then theval else 0 end) as NOV,
sum (case monthname when 'DEC' then theval else 0 end) as DEC
from mytable
group by itemtype
minus
select
itemtype,
jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec
from (
select
itemtype,
sum (case monthname when 'JAN' then theval else 0 end) as JAN,
sum (case monthname when 'FEB' then theval else 0 end) as FEB,
sum (case monthname when 'MAR' then theval else 0 end) as MAR,
sum (case monthname when 'APR' then theval else 0 end) as APR,
sum (case monthname when 'MAY' then theval else 0 end) as MAY,
sum (case monthname when 'JUN' then theval else 0 end) as JUN,
sum (case monthname when 'JUL' then theval else 0 end) as JUL,
sum (case monthname when 'AUG' then theval else 0 end) as AUG,
sum (case monthname when 'SEP' then theval else 0 end) as SEP,
sum (case monthname when 'OCT' then theval else 0 end) as OCT,
sum (case monthname when 'NOV' then theval else 0 end) as NOV,
sum (case monthname when 'DEC' then theval else 0 end) as DEC
from mytable
group by itemtype
where ( oct = 0 and nov = 0 and dec = 0 and jan = 0 and feb = 0 and mar = 0
and apr = 0 and may = 0 and jun = 0 and jul = 0 and aug = 0 and sep = 0
order by itemtype
{code}
Edit again... Ok, I guess I'm answering my own question here, but I think using a WITH clause to write the main query once and then selecting * from it twice using the MINUS operator in between where the second query has where (oct = 0, etc.) is what I need. If anyone else has better suggestions, please do let me know! Here's the pseudo logic for what I've come up with so far...
{code}
WITH mainquery as (select everything)
select * from mainquery
minus
select * from mainquery where (oct = 0, nov = 0, etc...)
{code}
Thanks again!
Mark
Edited by: user455268 on Mar 1, 2012 7:13 PM
Edited by: user455268 on Mar 1, 2012 7:16 PMHi,
You can do that with a HAVING clause:
select
itemtype,
sum (case monthname when 'JAN' then theval else 0 end) as JAN,
sum (case monthname when 'FEB' then theval else 0 end) as FEB,
sum (case monthname when 'MAR' then theval else 0 end) as MAR,
sum (case monthname when 'APR' then theval else 0 end) as APR,
sum (case monthname when 'MAY' then theval else 0 end) as MAY,
sum (case monthname when 'JUN' then theval else 0 end) as JUN,
sum (case monthname when 'JUL' then theval else 0 end) as JUL,
sum (case monthname when 'AUG' then theval else 0 end) as AUG,
sum (case monthname when 'SEP' then theval else 0 end) as SEP,
sum (case monthname when 'OCT' then theval else 0 end) as OCT,
sum (case monthname when 'NOV' then theval else 0 end) as NOV,
sum (case monthname when 'DEC' then theval else 0 end) as DEC
from mytable
group by itemtype
HAVING MIN (theval) != 0
OR MAX (theval) != 0
order by itemtype
;If the values are all 0, then the MIN and the MAX will both be 0.
If either the MIN or the MAX is not 0, then the values are not all 0.
This assumes that the combination (itemtype, monthname) is unique, as it is in your sample data.
If that's not the case, start with a subquery that GROUPs BY itemtype, monthname, so that, when you get to the main query, that combination will be unique. -
Editable alv using OO ALV(newly edited row values are not updating )
Hi friends,
i am facing a problem. i am displaying an output alv using OO ALV.
i am creating a new row and validating the newly created row values and changing if it is not according to the criteria. but the newly edited values are not capturing in method
pr_data_changed->mt_inserted_rows as it contains values only entries entered for the first time .
i am not getting the newly edited values in it.
please do the needful.
Thanks and Regards,
srinivasHi!
to rectify the problem in the Code.....
You can Go through this program....for changed values....
https://wiki.sdn.sap.com/wiki/x/AwBIBQ
Regards. -
Created a trigger but new values are not inserting in the backup table
I have created a backup table and writter a trigger on a table such that after update old values and new values are to be inserted into the backup table, but new values are not inserting. I am giving the code please help me
create or replace trigger "SUPPQUOTES_AUDIT"
after update or delete on phsuppquotes for each row
begin
insert into phquotes_audit(cprc_new,suppcode,itemcode,cprc_old,negodt,validdt,userid,TRANDATE) values
(:new.cprc,:old.suppcode,:old.itemcode,:old.cprc,:old.negodt,:old.validdt,:old.userid,SYSDATE);
end;old values and new
values are to be inserted into the backup table, butwell you have only one insert there, inserting old values with a new id (which is ok if you don't update the id column, but I don't think that :new is available for deleting ops); you should have two inserts:
insert into
phquotes_audit(cprc_new,suppcode,itemcode,cprc_old,negodt,validdt,userid,TRANDATE) values (:old.cprc,:old.suppcode,:old.itemcode,:old.cprc,:old.negodt,:old.validdt,:old.userid,SYSDATE);
if (updating) then
insert into phquotes_audit(cprc_new,suppcode,itemcode,cprc_old,negodt,validdt,userid,TRANDATE) values (:new.cprc,:new.suppcode,:new.itemcode,:new.cprc,:new.negodt,:new.validdt,:new.userid,SYSDATE);
end if;
gojko adzic
http://gojko.net -
Hi,
I have designed the GUI, which contains JTable.
Every time the table is loaded with some values dynamically, after doing some operation.
The table values are first stored in the vector and set to DefaultTableModel.
The DefaultTableModel contains two vectors, in which first vector will have row values and
second vector has column name (or heading, always it is four).
The problem is only 40 row's values are visible in GUI.
Not able to move the scroller down to see the table values after the 40th row.
Please suggest me in what way i can correct this problem.
Thanks & Regardscalvino_ind wrote:
kathyayini wrote:
Its not stupid.
I know that there are more than 40 rows.
Because i have displayed the values which are loaded into table and also i am writing the table as excel file.
Don't act to smart.he wasn't acting smart, but actually acting dumbYeah as if your first comment asking whether he added a JScrollPane was much smarter, especially because the OP mentioned that he has a scroller in the GUI...
Be it as it is, you could post the relevant code snippet here. -
Concatenating column values does not work (in SQLplus)
I entered the following command in SQLplus and expected to get a string where all column values are (comma) concatenated:
select ''||username||','||'' from dba_users;
Unfortunatly instead of
SYSTEM,SYS,ANONYMOUS,XDB,.....
all users were listed in a column of a result table.
How else can I concat them as intended
PeterHi,
That's called "String Aggregation".
Starting in Oracle 11.2, the function LISTAGG does that.
AskTom:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:2196162600402
shows several different ways to do it, for versions 9 and up.
I recommend the first one, the user-defined function STRAGG, which is similar to LISTAGG, and which you can copy from that page.
Once you have STRAGG installed, your query is simply
SELECT STRAGG (username) AS all_usernames
FROM dba_users
;On Oracle 10 (and up) you may have a similar function, WM_CONCAT (owned by WMSYS), already installed.
WM_CONCAT is not documented, so you may not want to use it in your Production applications.
Another good site concerning String Aggregation is
http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php
If you're wondering why your original query didn't do what you hoped:
SELECT ...
FROM table_x;(withoiut a WHERE clause or any other clauses) is guaranteed to produce on row of output for every row in table_x. It doesn't matter what is in the SELECT clause; there will always be one output row fro every original row. -
GR/IR A/c Amount and Amount in local Curreny values are not matching
Hello Gurus
When we are doing MIGO for some Scheduling Agreement PO's the Amount and Amount in local currency columns are mismatching with paise (+/-), eventhough PO belongs to Local Currency (INR). Because of this GR/IR account is not cleared after MIRO through F.13. Both MIGO and MIRO amount are showing as Open items.
Why it is happening and what is the way to clear GR/IR A/C. (F.13 with Tolerance limit is also not workout).
Thanks & Regards
Venkat.PHi sridhar
Thanks for reply
Through MR11 also these values are not cleared.
Regards
Venkat.P -
Column Heading are not displayed in ALV Report using CL_SALV_DISPLAY?
Hi,
I am using CL_SALV_DISPLAY class to display data. I Created an Internal Table Dynamically based fieldcatalog which was prepared based data at run time. When i displayed data using CL_SALC_DISPALY data is display in output but column headings are not displayed.
can anyone suggest me how to display heading in ALV using CL_SALV_DISPLAY class, My code is
CLASS lcl_report DEFINITION
CLASS lcl_report DEFINITION.
PUBLIC SECTION.
METHODS:
display IMPORTING l_table TYPE string
l_fcat TYPE string.
ENDCLASS. "lcl_report DEFINITION
CLASS lcl_report IMPLEMENTATION
CLASS lcl_report IMPLEMENTATION.
METHOD display.
DATA: gr_table TYPE REF TO cl_salv_table.
DATA: gr_columns TYPE REF TO cl_salv_columns_table,
gr_column TYPE REF TO cl_salv_column_table,
ls_fcat TYPE slis_fieldcat_alv.
DATA: gr_display TYPE REF TO cl_salv_display_settings.
DATA: l_o_functions TYPE REF TO cl_salv_functions_list,
l_field TYPE string.
FIELD-SYMBOLS : <fs_table> TYPE STANDARD TABLE,
<ft_fcat> TYPE STANDARD TABLE.
Get the ALV object refering to the output table
ASSIGN (l_table) TO <fs_table>.
ASSIGN (l_fcat) TO <ft_fcat>.
TRY.
cl_salv_table=>factory(
IMPORTING
r_salv_table = gr_table
CHANGING
t_table = <fs_table> ).
CATCH cx_salv_msg. "#EC NO_HANDLER
ENDTRY.
Add basic default functionality in the ALV report
Functions
l_o_functions = gr_table->get_functions( ).
l_o_functions->set_all( abap_true ).
gr_columns = gr_table->get_columns( ).
gr_columns->set_headers_visible( abap_true ).
Display the list
gr_table->display( ).
ENDMETHOD. "extract
ENDCLASS. "lcl_report IMPLEMENTATION
*& start-of-selection declaration
START-OF-SELECTION.
PERFORM :
get store codes
get_storecodes USING p_stfile
CHANGING it_t001w,
fetching mard data
read_mard_data,
preparing fieldcatalog for Final Data
create_filedcat USING it_t001w
it_site
CHANGING it_fieldcat,
preparing structure & internal table for Final Data
create_final_table_structure USING it_fieldcat,
prepare output data
prepare_final_data.
*& end-of-selection declaration
END-OF-SELECTION.
PERFORM :
display data
display_data USING l_table
l_fcat.
*& Form get_storecodes
FORM get_storecodes USING p_p_stfile
CHANGING p_it_t001w LIKE it_t001w[].
DATA :
internal table for RAW
lt_raw TYPE truxs_t_text_data,
rs_site LIKE LINE OF rt_site,
l_index LIKE sy-tabix.
FIELD-SYMBOLS :
field symbol for it_t001w
<fs_t001w> LIKE LINE OF p_it_t001w.
calling function module to get Stores Data from File
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
i_line_header = 'X'
i_tab_raw_data = lt_raw
i_filename = p_p_stfile
TABLES
i_tab_converted_data = p_it_t001w[]
EXCEPTIONS
conversion_failed = 1
OTHERS = 2.
IF sy-subrc <> 0.
EXIT.
ENDIF.
SORT p_it_t001w BY werks.
CLEAR rs_site.
rs_site-sign = 'I'.
rs_site-option = 'EQ'.
rs_site-low = p_dccode.
APPEND rs_site TO rt_site.
IF it_t001w[] IS NOT INITIAL.
LOOP AT p_it_t001w ASSIGNING <fs_t001w>.
l_index = sy-tabix.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = <fs_t001w>-werks
IMPORTING
output = <fs_t001w>-werks.
MODIFY p_it_t001w FROM <fs_t001w> INDEX l_index.
IF <fs_t001w>-werks GE s_site-low AND <fs_t001w>-werks LE s_site-high.
append site to ranges
CLEAR rs_site.
rs_site-sign = 'I'.
rs_site-option = 'EQ'.
rs_site-low = <fs_t001w>-werks.
APPEND rs_site TO rt_site.
CONTINUE.
ENDIF.
ENDLOOP.
SORT p_it_t001w BY werks.
SORT rt_site.
ENDIF.
ENDFORM. " get_storecodes
*& Form create_final_table_structure
FORM create_filedcat USING p_it_t001w LIKE it_t001w[]
p_it_site LIKE it_site[]
CHANGING p_it_fieldcat LIKE it_fieldcat[].
FIELD-SYMBOLS :
field symbol for p_it_t001w
<fs_t001w> LIKE LINE OF p_it_t001w,
field symbol for p_it_site
<fs_site> LIKE LINE OF p_it_site.
DATA :
fieldname
l_fieldname TYPE slis_fieldname,
workarea for site ranges
rs_site LIKE LINE OF rt_site.
CLEAR : l_fieldname, rs_site.
l_fieldname = p_dccode.
PERFORM
prepare fieldcatalog
build_fieldcatalog USING : 'MTART' 'CHAR' '5' ,
'MTBEZ' 'CHAR' '25' ,
'MATKL' 'CHAR' '6' ,
'WGBEZ' 'CHAR' '20' ,
'MATNR' 'CHAR' '18' ,
'MAKTX' 'CHAR' '30' ,
l_fieldname 'CHAR' '17' .
create header for excel
PERFORM create_excel_header USING : 'Division',
'Divsion Description',
'MC Code',
'MC Description',
'Article',
'Article Description',
l_fieldname.
loop for creating fieldcatalog
LOOP AT it_site ASSIGNING <fs_site>.
READ TABLE it_t001w ASSIGNING <fs_t001w> WITH KEY werks = <fs_site>-werks
BINARY SEARCH.
IF sy-subrc = 0 AND <fs_t001w> IS ASSIGNED AND
<fs_site> IS ASSIGNED AND <fs_site>-stock GT 0.
CLEAR : l_fieldname, rs_site.
l_fieldname = <fs_site>-werks.
prepare fieldcatalog
PERFORM build_fieldcatalog USING : l_fieldname 'CHAR' '17'.
create header for excel
PERFORM create_excel_header USING l_fieldname .
CONTINUE.
ENDIF.
ENDLOOP.
l_fcat = 'it_fieldcat[]'.
ENDFORM. " create_final_table_structure
*& Form build_fieldcatalog
FORM build_fieldcatalog USING p_fieldname TYPE slis_fieldname
p_datatype TYPE datatype_d
p_length TYPE intlen.
DATA : ls_fieldcat LIKE LINE OF it_fieldcat.
CLEAR : ls_fieldcat.
ls_fieldcat-fieldname = p_fieldname.
ls_fieldcat-datatype = p_datatype.
ls_fieldcat-intlen = p_length.
APPEND ls_fieldcat TO it_fieldcat.
ENDFORM. " build_fieldcatalog
*& Form create_final_table_structure
FORM create_final_table_structure USING p_it_fieldcat.
Create dynamic internal table and assign to FS
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fieldcat
IMPORTING
ep_table = t_table.
ASSIGN t_table->* TO <ft_final>.
ENDFORM. " create_final_table_structure
*& Form create_excel_header
FORM create_excel_header USING p_p_fieldname.
DATA : ls_header LIKE LINE OF it_header.
CLEAR ls_header.
ls_header-col_name = p_p_fieldname.
APPEND ls_header TO it_header.
ENDFORM. " create_excel_header
*& Form prepare_final_data
FORM prepare_final_data .
DATA : l_matnr LIKE g_matnr,
l_werks LIKE g_werks,
l_index LIKE sy-tabix.
FIELD-SYMBOLS : <fs_mard> LIKE LINE OF it_mard.
Getting No. of Lines in IT_MARD internal table
DESCRIBE TABLE it_mard LINES g_lines.
LOOP AT it_mard ASSIGNING <fs_mard>.
l_index = sy-tabix.
IF l_matnr IS INITIAL.
l_matnr = <fs_mard>-matnr.
CLEAR : l_werks.
l_werks = <fs_mard>-werks.
UNASSIGN : <fs_value>, <fs_final>.
Create dynamic work area and assign to FS
CREATE DATA t_line LIKE LINE OF <ft_final>.
ASSIGN t_line->* TO <fs_final>.
ASSIGN COMPONENT 'MATNR' OF STRUCTURE <fs_final> TO <fs_value>.
<fs_value> = <fs_mard>-matnr.
ASSIGN COMPONENT l_werks OF STRUCTURE <fs_final> TO <fs_value>.
<fs_value> = <fs_value> + <fs_mard>-labst.
getting Article Type,MC & its Descriptions
PERFORM get_other_data USING l_matnr
l_werks.
ELSEIF l_matnr <> <fs_mard>-matnr.
APPEND <fs_final> TO <ft_final>.
CLEAR l_matnr.
l_matnr = <fs_mard>-matnr.
CLEAR : l_werks.
l_werks = <fs_mard>-werks.
UNASSIGN : <fs_value>, <fs_final>.
Create dynamic work area and assign to FS
CREATE DATA t_line LIKE LINE OF <ft_final>.
ASSIGN t_line->* TO <fs_final>.
ASSIGN COMPONENT 'MATNR' OF STRUCTURE <fs_final> TO <fs_value>.
<fs_value> = <fs_mard>-matnr.
ASSIGN COMPONENT l_werks OF STRUCTURE <fs_final> TO <fs_value>.
<fs_value> = <fs_value> + <fs_mard>-labst.
getting Article Type,MC & its Descriptions
PERFORM get_other_data USING l_matnr
l_werks.
ELSE.
CLEAR : l_werks.
l_werks = <fs_mard>-werks.
ASSIGN COMPONENT l_werks OF STRUCTURE <fs_final> TO <fs_value>.
<fs_value> = <fs_value> + <fs_mard>-labst.
ENDIF.
IF l_index = g_lines.
APPEND <fs_final> TO <ft_final>.
ENDIF.
ENDLOOP.
l_table = '<ft_final>[]'.
ENDFORM. " prepare_final_data
*& Form get_other_data
FORM get_other_data USING p_l_matnr
p_l_werks.
FIELD-SYMBOLS : <fs_mara> LIKE LINE OF it_mara,
<fs_t023t> LIKE LINE OF it_t023t,
<fs_t134t> LIKE LINE OF it_t134t,
<fs_makt> LIKE LINE OF it_makt.
READ TABLE it_mara ASSIGNING <fs_mara> WITH KEY matnr = p_l_matnr. " BINARY SEARCH.
IF sy-subrc = 0 AND <fs_mara> IS ASSIGNED.
ASSIGN COMPONENT 'MTART' OF STRUCTURE <fs_final> TO <fs_value>.
<fs_value> = <fs_mara>-mtart.
ASSIGN COMPONENT 'MATKL' OF STRUCTURE <fs_final> TO <fs_value>.
<fs_value> = <fs_mara>-matkl.
READ TABLE it_makt ASSIGNING <fs_makt> WITH KEY matnr = <fs_mara>-matnr BINARY SEARCH.
IF sy-subrc = 0 AND <fs_makt> IS ASSIGNED.
ASSIGN COMPONENT 'MAKTX' OF STRUCTURE <fs_final> TO <fs_value>.
<fs_value> = <fs_makt>-maktx.
ENDIF.
READ TABLE it_t023t ASSIGNING <fs_t023t> WITH KEY matkl = <fs_mara>-matkl BINARY SEARCH.
IF sy-subrc = 0 AND <fs_t023t> IS ASSIGNED.
ASSIGN COMPONENT 'WGBEZ' OF STRUCTURE <fs_final> TO <fs_value>.
<fs_value> = <fs_t023t>-wgbez.
ENDIF.
READ TABLE it_t134t ASSIGNING <fs_t134t> WITH KEY mtart = <fs_mara>-mtart BINARY SEARCH.
IF sy-subrc = 0 AND <fs_t134t> IS ASSIGNED.
ASSIGN COMPONENT 'MTBEZ' OF STRUCTURE <fs_final> TO <fs_value>.
<fs_value> = <fs_t134t>-mtbez.
ENDIF.
ENDIF.
ENDFORM. " get_other_data
*& Form display_data
text
FORM display_data USING p_l_table
p_l_fcat.
DATA:
Variable for Object Creation
o_report TYPE REF TO lcl_report.
CREATE OBJECT o_report.
o_report->display( EXPORTING l_table = p_l_table
l_fcat = p_l_fcat ).
ENDFORM. " display_dataI don't know how to read the code you pasted or I would have checked this myself.
Do your fields in the internal table reference dictionary objects or elementary types? If not using dictionary types, the column names will be blank by default. If you can't change your fields to be dictionary types, you can try this to change the column names:
I made a method inside my local class to add the names:
call method set_colname
EXPORTING iv_tab = alv_tab
iv_colid = 'xxxx' "fieldname from the table
iv_stxt = text-t54
iv_mtxt = text-t55
iv_ltxt = text-t55.
METHOD set_colname .
data:
alv_cols type REF TO cl_salv_columns_table,
alv_col type REF TO cl_salv_column.
TRY .
*... Change fieldnames
call METHOD iv_tab->get_columns RECEIVING value = alv_cols.
call method alv_cols->get_column EXPORTING columnname = iv_colid RECEIVING value = alv_col.
IF iv_stxt <> ''.
CALL METHOD alv_col->set_short_text EXPORTING value = iv_stxt.
ENDIF.
IF iv_mtxt <> ''.
CALL METHOD alv_col->set_medium_text EXPORTING value = iv_mtxt.
ENDIF.
IF iv_ltxt <> ''.
CALL METHOD alv_col->set_long_text EXPORTING value = iv_ltxt.
ENDIF.
CATCH cx_salv_not_found.
ENDTRY.
ENDMETHOD. "set_colname -
CRM 7.0 WEB IC - context node values are not seen in webIC
Hi
can anyone help me in resolving my problem in CRM WEB IC.
Actually i have added a new context node Using wizard , by right clicking the context nodes. i have four custom fields in that node, these i have to show on the View Account overview and the context node for this is Account where i have to fetch data based on the BP_number i have in Account, i have to display custom fields from the context node BALANce which i have created .
I gave all my coding in do_prepare_output method. But the values are not passing to my custom fields as a result the view in WEB IC dissappears saying
&NBSP;
Cannot display view IUICOVW/AccInfo of UI Component IUICOVW
An exception has occurred Exception Class CX_SY_REF_IS_INITIAL - Dereferencing of the NULL reference
Method: ZL_IUICOVW_ACCINFO_IMPL=>DO_PREPARE_OUTPUT
Source Text Row: 82
Edited by: nelachinni on Dec 16, 2010 10:04 PMHi,
Could you please share what are you trying to access at line 82 in do_prepare_output ? sharing code snippet might help in understanding the issue.
Cheers,
Sumit Mittal -
Updated (VORowImpl ) values are not reflected in inline POPUP table
Hi Expert,
Currently i am getting exception when i try to update my iterator binding,
Here is my use case,
I have view object displayed inside the inline popup as a table. When i modify one of the cell i am firing the value change listener and it is called the ViewObjectRowImpl class method. Inside the method i do some computation (i am executing some DB query to get back some value). After the query execution i am updating the other columns data based on the changes.
First i have PPR the table and check out the update values. Unfortunately the change values are not reflected.
Then i used the following code
DCIteratorBinding itrBinding = findIteratorBinding("EmployeeVO1Iterator");
if (itrBinding != null) {
itrBinding.executeQuery();
itrBinding.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
Now i am getting the " JBO-25003: Object EmployeeMgmtAM of type ApplicationModule is not found."
May i know what went wrong? Am i missing anything. May i know how can i refresh the UI table based on the updated VORowImpl. Looking forward hints.
ThanksThanks Frank, Actually i am accessing the client method as follows,
DCIteratorBinding itrBinding = findIteratorBinding("EmployeeVO1Iterator");
if (itrBinding != null) {
EmployeeVORowImpl employeeVO = (EmployeeVORowImpl)itrBinding.getCurrentRow();
empoyeeVO.methodName();
May i know what is the different between accessing the method as shown above and access via the MethodBinding?
How about access the attribute of the View object using the above approach? i.e empoyeeVO.getName() like ....
Also i have configure the ADF looger to finest level and found the primary reason to "Applicaiton module not found" was some entity validation. But this not always happened. Same test case works fine and fails sometimes. I am clueless. Could you please throw some light.
Thanks
Edited by: user1022639 on Feb 7, 2012 5:24 PM -
Excise Values are not flowing from J1IJ to VF01
Hi All,
I am facing the problem in Invoice to Customer(from Depot). Excise Values are not flowing from J1IJ. I maintained Alt Cal type as 356 in Pricing procedure for Excise condition types. Even though its not flowing. I am using Tax Procedure TAXINN.
I have gone through SDN, everybody is suggesting about 356 routine.
My scenario is STO from Plant to Depot and Sale from Depot to Customer.
ME21N->VL10B->VF01(Proforma)->J1IIN->MIGO->VA01(from Depot)->VL01N->J1IJ(Depot Excise)->VF01(Invoice to Customer)
In J1IJ, excise values are coming but in VF01 it is not coming.
Kindly help me.
With Regards
Azeez.MohdHi,
in j1ig initial screen which excise group/series group i need to enter
is it of supplying plant or depot --- Enter Your Excise group
If i enter material document no say 5000000265 (corresponds to migo-101 at depot )& year
it'm getting error message excise invoice already exists for5000000265 --> Check the Year of material document
You can also use the Excise Invoice Details tab
Enter Vendor's Ex.Inv.No. , enter your STO's Excise Invoice No. and Click on Own factory and enter factory's Series Group in n case of STO from factory,
use Depot Excise Invoice in case of transfer from another depot
and Excise Inv. Date
On next screen,
In case of non availability of Internal Excise No., select the line item and click on button. On next screen, enter Excise Inv. No., Date, Challan Qty, Excise Base value, ensure that Excise Duty rates are maintained in respective duty rates column, you can also manually enter the excise duty amount and press Enter . System will give warning messages, press Enter for each message and press Back button. System will display the excise duty amount, check the same and click on Save button.
Hope this will resolve your issue.
Regards,
Krishna O -
Grand total values are not matching with Detail report
Report has grand totals and when I drill to the detail report, grand total values are NOT matching with parent report totals, I did some analysis but I'm clueless on this issue.
Please provide your thoughts and insight on this issue..
Thanksis your summary and detail reports hitting different facts, like summary hitting aggregate and detail report hitting it's corresponding detail level fact..?
if then,
From Front-end:
Fix the filter values in detail report that are passing from master report then try delete each columns then check the grand total. If you found your values is matching by deleting particular column then you need to investigate what is the issue around with that dimension table..
From Database side:
1. check first aggregate table has proper aggregate data of it's detail..
2. Take the detail report obiee generated query and try to comment each dimension table and it's corresponding joins to the facts, (before, this delete all the dimensional columns and other measures from select statement and put only that measure where you are getting wrong value, so that you need not to comment all the select and group by columns which saves your time.. ). Need to check by commenting each dimensional wid and it's table from clause, if you found that values is matching then there is some problem with wid columns data population in your ETL.
Is that BI-Apps project?
btw, whtz ur name? -
Custom propertie's values are not updated for workflow metadata
Hi,
I've a requirement where I need to add and update some properties. to /etc/workflow/instance/<Instancename>/data/metadata node.
I've two workflow Process steps,
Process step 1:
Adds some properties to metadata.
Process step 2:
Updates the propertie's values which are added in Process step 1.
But the issue is update is not working when the node is /etc/workflow/instance/<Instancename>/data/metadata.
i.e. In the step 1, Properties are added to metadata node but In the step 2 propertie's values are not updated to the same node.
Here is my process code:
=================================================
import java.util.Locale;
import java.util.StringTokenizer;
import javax.jcr.Node;
import javax.jcr.Session;
import org.apache.felix.scr.annotations.Component;
import org.apache.felix.scr.annotations.Properties;
import org.apache.felix.scr.annotations.Property;
import org.apache.felix.scr.annotations.Reference;
import org.apache.felix.scr.annotations.Service;
import org.osgi.framework.Constants;
import javax.jcr.Value;
import com.adobe.granite.workflow.WorkflowException;
import com.adobe.granite.workflow.WorkflowSession;
import com.adobe.granite.workflow.exec.WorkItem;
import com.adobe.granite.workflow.metadata.MetaDataMap;
import com.adobe.granite.workflow.exec.WorkflowProcess;
import com.adobe.granite.workflow.model.WorkflowModel;
import org.apache.sling.api.resource.ResourceResolver;
import org.apache.sling.api.resource.ResourceResolverFactory;
import org.apache.sling.jcr.resource.JcrResourceUtil;
import org.apache.sling.api.resource.PersistableValueMap;
import org.apache.sling.api.resource.PersistenceException;
import org.apache.sling.api.resource.Resource;
@Component
@Service
@Properties({
@Property(name = Constants.SERVICE_DESCRIPTION, value = "Test"),
@Property(name = Constants.SERVICE_VENDOR, value = "Adobe"),
@Property(name = "process.label", value = "Test 1")})
public class Test1 implements WorkflowProcess
@Reference
private ResourceResolverFactory resourceResolverFactory;
public void execute(WorkItem workItem, WorkflowSession wfsession, MetaDataMap metadata)
throws WorkflowException {
System.out.println("Testing");
try{
ResourceResolver resolver;
resolver = resourceResolverFactory.getAdministrativeResourceResolver(null);
String instancePath = workItem.getWorkflow().getId();
Node instanceNode=null;
Session jcrSession = wfsession.adaptTo(Session.class);
String payload = (String) workItem.getWorkflowData().getPayload();
//instanceNode=JcrResourceUtil.createPath(payload+"/jcr:content", "nt:resource","nt:resource", jcrSession, true);
instanceNode=JcrResourceUtil.createPath(instancePath+"/data/metaData", "nt:resource","nt:resource", jcrSession, true);
System.out.println("Test: instance PAth:"+instanceNode.getPath());
Resource resource = resolver.getResource(instanceNode.getPath());
if(resource != null)
PersistableValueMap valueMap= resource.adaptTo(PersistableValueMap.class);
valueMap.put("name", "Rajesh");
valueMap.put("id", "A002");
valueMap.put("designation","SE");
valueMap.save();
System.out.println("Name:"+valueMap.get("name"));
System.out.println("Id:"+valueMap.get("id"));
jcrSession.save();
resolver.close();
}catch(Exception e)
System.out.println("Exception:"+e.getMessage());
===================
The code works fine when the node is payload/jcr:content.
Note : Process 1 and Process 2 code is same expect the values I'm passing to the PersistableValueMap.
Any pointers would be more helpful..
Thanks
SivaIs there anything wrong in my code/ it's a bug..
Thanks
Siva -
Values are not populating...
After selecting the data from LOV the values are not populating in the respective fields.
i've checked the 'LOV' no problem in that,but im think below coding have a problem.
declare
b boolean;
begin
:global.job:=null;
clear_form(no_validate);
b:=show_lov('view');
:GLOBAL.ADDNEW1:=0;
-- go_block('JOB_CARD_MAIN');
GO_ITEM('JOB_CARD_MAIN.BRANCH_CODE');
set_block_property('job_card_main',default_where,'job_no='||chr(39)||:job_card_main.job_no||chr(39));
execute_query(no_validate);------after this line get execute the values get disappear from the field
insert into da.mylog(username,tname,mdate,oper) values(user(),'Job Creation',sysdate,'S');
commit;
end;
Pls help..Which trigger do you have this code in? I'm guessing it is a Key-ListVal trigger.
Have you tested the WHE RE clause in SQL*Plus to ensure it returns a record set? Most likely, the query returns no rows which could explain why the block is empty. Also, why are you clearing the entire Form instead of just the JOB_CARD_MAIN data block? Perhaps you should try:
Go_Block('JOB_CARD_MAIN');
Clear_Block(NO_VALIDATE);Also, the EXECUTE_QUERY built-in does not have a NO_VALIDATE parameter. It only supports the following parameters:
ALL_RECORDS
FOR_UPDATE
or the combination of the two (ALL_RECORDS,FOR_UPDATE). It also allows you to set the Locking mechinism by passing the parameter NO_WAIT.
Just a suggestion, try your query in SQL*Plus to make sure it produces a record set and Comment out all the extra stuff in your code and only keep the SHOW_LOV, CLEAR_BLOCK, SET_BLOCK_PROPERTY and EXECUTE_QUERY to see if a row is returned. If yes, then add the rest of your code back one line at a time.
Hope this helps,
Craig B-)
If someone's response is helpful or correct, please mark it accordingly. -
SEM Measure Builder - dataSource values are not appearing in measures
Dear Experts
we recently upgraded our SEM system from 4.0 to 6.0. I am getting few problems in measure builder catelouge entries. when i checked the measures in measure catalouge the datasource tab is blank. Can any one please tell me how do I get the results in datasource tab. Measure values are not appearing in DataSource tab in measure catalouge.
Thanks
PramodYes, all the column entries must have agg rule. You can specify one such as 'first' in the pivot table.
Maybe you are looking for
-
I tried to deploy the Hello World JSP application to Azure from Eclipse following the instructions at http://msdn.microsoft.com/library/azure/hh690944%28VS.103%29.aspx. Got the following error when trying to import Publish Settings file downloaded fr
-
IPhoto creates a copy with every edit?
Hi all, just trying to get confirmation, and perhaps a way around something. I recently realized I could setup Photoshop as an external editor for iPhoto. Great news as I'm very comfortable with PS and I find it's controls vastly greater than the too
-
Issue with background job--taking more time
Hi, We have a custom program which runs as the background job. It runs every 2 hours. Itu2019s taking more time than expected on ECC6 SR2 & SR3 on Oracle 10.2.0.4. We found that it taking more time while executing native SQL on DBA_EXTENTS. When we t
-
Printing scannable Bar Codes on PDF file?
Hi: I am working a PO report (standard) and designing using RTF template to print as PDF output. I need to print the item as bar code that needs to be scanned. I downloaded a free font 39 and registered in Admin tab of XML Publisher responsibility. I
-
Deletion of previous load from infoprovider
Hello - if I want to use the DTP - how can I manage the deletion of the previous full load in infoprovider? Is this only possible by using process chains?