Getting UNCAUGHT_EXCEPTION CX_WD_CONTEXT at using alv sort function
Dear colleagues,
I developed a simple application which displays records in an ALV and at lead-selection shows detailed data in a form. Everthing is working fine except one is clicking on the sort functionality at the top of the ALV short dump is thrown.
In trx ST22 I find :
The lead selection has not been set. V_DEFAULT
"UNCAUGHT_EXCEPTION" "CX_WD_CONTEXT"
"CL_WDR_CONTEXT_NODE===========CP" or "CL_WDR_CONTEXT_NODE===========CM00R"
"_RAISE_ELEMENT_NOT_FOUND"
Lead selection is checked and also debugging the code did not bring me any further.
Any help is greatly appreciated.
Thanks in advance
Michael
Hi Regina,
first of all thanks for your quick answer and explanation. I'm not sure what you mean with 'register to the standard functions of the ALV' because this is a functionality which works in other ALVs without register any event method to them or do you mean that in my case I have to react to the sorting in a new method in the view controller? Concerning 'refill the subnode via supply function' I'm doing this already.
Disabling the sorting is no option anymore because the users already know and love this feature
Regards
Michael
Similar Messages
-
Getting the file name using ehdr:getRequestHeader function in style sheet
Hi, I am facing an issue while using ehdr:getRequestHeader function to get the name of the file, which was placed in FTPS server and read by FTP Adapter. In style sheet I am trying to get the file name as below.
<xsl:variable name="fileName"
select="ehdr:getRequestHeader('/fhdr:InboundFTPHeaderType/fhdr:fileName','fhdr=http://xmlns.oracle.com/pcbpel/adapter/ftp/;')"/>
and based on the file name I am trying to fetch the values from Property file, map it to a schema and make a SOAP service call.
When i use the above functionality in style sheet exception occurs and in ESB instance I am not able to view the exception.
It is saying as 'Details of the message are not available, The message details would have been purged'. In logs it is showing the following error trace.
<MSG_TEXT>Failed to process deferred message</MSG_TEXT>
<SUPPL_DETAIL>oracle.tip.esb.server.common.exceptions.BusinessEventRejectionException: Error occured while handling monitor message dequeued from monitor topic. Message text is "<activityMessages><activityMessage order='10' type='6'><flowId>cRfy7g6a-8HDUKqyf4GsKw==</flowId><subFlowId>1245307693657</subFlowId><timestamp>1245307703862</timestamp><operationGUID>2F1C13905B3F11DE8F0BD923A1148BB1</operationGUID><operationQName>ESBTest.InvokeESB</operationQName><errorMessage><![CDATA[An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: exception on JaxRpc invoke: serialization error: java.lang.IllegalArgumentException: getSerializer requires a Java type and/or an XML type
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeOperation(WSIFOperation_JaxRpc.java:1714)
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeRequestResponseOperation(WSIFOperation_JaxRpc.java:1460)
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.executeInputOnlyOperation(WSIFOperation_JaxRpc.java:1141)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(WSIFInvoker.java:894)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:810)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:832)
at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(OutboundAdapterService.java:227)
at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(OutboundAdapterService.java:136)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(InitialEventDispatcher.java:407)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:165)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1988)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1467)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:205)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:136)
at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(EsbRouterSubscription.java:310)
at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(EventDispatcher.java:138)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscription(InitialEventDispatcher.java:547)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscriptions(InitialEventDispatcher.java:529)
at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(EventDispatcher.java:94)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:161)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1988)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1467)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:119)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:65)
at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.processMessage(ESBListenerImpl.java:722)
at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.onMessage(ESBListenerImpl.java:407)
at oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:281)
at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWork.java:1173)
at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:882)
at oracle.tip.adapter.file.inbound.ProcessWork.processMessages(ProcessWork.java:342)
at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:224)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:825)
at java.lang.Thread.run(Thread.java:595)
]]></errorMessage><exception><![CDATA[oracle.tip.esb.server.common.exceptions.BusinessEventRetriableException: An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: exception on JaxRpc invoke: serialization error: java.lang.IllegalArgumentException: getSerializer requires a Java type and/or an XML type
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeOperation(WSIFOperation_JaxRpc.java:1714)
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.invokeRequestResponseOperation(WSIFOperation_JaxRpc.java:1460)
at com.collaxa.cube.ws.wsif.providers.oc4j.jaxrpc.WSIFOperation_JaxRpc.executeInputOnlyOperation(WSIFOperation_JaxRpc.java:1141)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(WSIFInvoker.java:894)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:810)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:832)
at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.nextService(OutboundAdapterService.java:227)
at oracle.tip.esb.server.service.impl.outadapter.OutboundAdapterService.processBusinessEvent(OutboundAdapterService.java:136)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatchNonRoutingService(InitialEventDispatcher.java:407)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:165)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1988)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1467)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:205)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:136)
at oracle.tip.esb.server.service.EsbRouterSubscription.onBusinessEvent(EsbRouterSubscription.java:310)
at oracle.tip.esb.server.dispatch.EventDispatcher.executeSubscription(EventDispatcher.java:138)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscription(InitialEventDispatcher.java:547)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.processSubscriptions(InitialEventDispatcher.java:529)
at oracle.tip.esb.server.dispatch.EventDispatcher.dispatchRoutingService(EventDispatcher.java:94)
at oracle.tip.esb.server.dispatch.InitialEventDispatcher.dispatch(InitialEventDispatcher.java:161)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1988)
at oracle.tip.esb.server.dispatch.BusinessEvent.raise(BusinessEvent.java:1467)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:119)
at oracle.tip.esb.utils.EventUtils.raiseBusinessEvent(EventUtils.java:65)
at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.processMessage(ESBListenerImpl.java:722)
at oracle.tip.esb.server.service.impl.inadapter.ESBListenerImpl.onMessage(ESBListenerImpl.java:407)
at oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage(MessageEndpointImpl.java:281)
at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWork.java:1173)
at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:882)
at oracle.tip.adapter.file.inbound.ProcessWork.processMessages(ProcessWork.java:342)
at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:224)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:825)
at java.lang.Thread.run(Thread.java:595)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.executeOperation(WSIFInvoker.java:1020)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:810)
at oracle.tip.esb.server.common.wsif.WSIFInvoker.nextService(WSIFInvoker.java:832)
at oracle.tip.esb.server.service.impl.outadapte]]></exception><retryable>false</retryable></activityMessage></activityMessages>"
at oracle.tip.esb.monitor.manager.ActivityMessageReceiver.handleMessage(ActivityMessageReceiver.java:96)
at oracle.tip.esb.server.dispatch.agent.ESBWork.process(ESBWork.java:178)
at oracle.tip.esb.server.dispatch.agent.ESBWork.run(ESBWork.java:132)
at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:825)
at java.lang.Thread.run(Thread.java:595)
Caused by: oracle.tip.esb.monitor.MonitorException: Due to the error "", the activity message could not be stored.
at oracle.tip.esb.monitor.manager.database.AbstractFaultPersister.persist(AbstractFaultPersister.java:107)
at oracle.tip.esb.monitor.manager.database.DBActivityMessageStore.persistMessage(DBActivityMessageStore.java:340)
at oracle.tip.esb.monitor.manager.database.DBActivityMessageStore.store(DBActivityMessageStore.java:131)
at oracle.tip.esb.monitor.manager.ActivityMessageReceiver.handleMessage(ActivityMessageReceiver.java:83)
... 7 more
Caused by: java.lang.NullPointerException
at oracle.tip.esb.monitor.manager.database.oracle.OracleFaultPersister.persist(OracleFaultPersister.java:102)
at oracle.tip.esb.monitor.manager.database.AbstractFaultPersister.persist(AbstractFaultPersister.java:105)
... 10 more
</SUPPL_DETAIL>
When I use the same function getRequestHeader for FileAdapter, it is working fine. Do anyone know why this issue occurs? Is this an issue with environment?As far as I can see the problem is the invoke of the SOAP service. This could be because of an empty filename but maybe there are other issues. First, make sure that the filename is read correctly by looking it up in the BPEL runtime process. Maybe the content is different than you expected it so that the read action for the properties give wrong result. Are you sure that ehdr is the correct prefix for the ftpheader?
-
To get total qty delivered using ALV in a report
Hi All,
I am getting Quantity Delivered iout-lfimg in a ALV Report, in the last line I have to display total qty delivered. Can some one please help me to get this total qty delivered using ALV.
Thanks,
Veni.
FORM get_data.
SELECT Avbeln Akunag Avsbed Awadat_ist
Bwerks Bmatnr Blfimg Bvrkme
C~vbeln
INTO TABLE IDELI
FROM LIKP AS A
INNER JOIN LIPS AS B
ON avbeln = bvbeln
INNER JOIN VBFA AS C
ON Bvbeln = Cvbelv
AND BPOSNR = CPOSNV
WHERE A~VBELN IN S_VBELN
AND A~ERDAT IN S_ERDAT
AND A~ERNAM IN S_ERNAM
AND A~VSTEL IN S_VSTEL
AND A~VKORG IN S_VKORG
AND A~KUNAG IN S_KUNAG
AND A~VSBED IN S_VSBED
AND A~WADAT_IST IN S_WADAT
AND B~MATNR IN S_MATNR
AND B~WERKS IN S_WERKS
AND C~VBTYP_N = 'Q'.
ENDFORM. " get_data
FORM process_data.
loop at ideli.
if sy-subrc = 0.
concatenate ideli-vbeln ideli-ddeli into lv_wdelno.
MOVE ideli-vbeln TO iout-vbeln.
MOVE lv_wdelno TO iout-wdelno.
MOVE ideli-kunag TO iout-kunag.
MOVE ideli-vsbed TO iout-vsbed.
MOVE ideli-wadat_ist TO iout-wadat_ist.
MOVE ideli-werks TO iout-werks.
MOVE ideli-matnr TO iout-matnr.
MOVE ideli-lfimg TO iout-lfimg.
MOVE ideli-vrkme TO iout-vrkme.
endif.
append iout.
clear iout.
clear lv_wdelno.
endloop.
ENDFORM. " process_dataHi,
While building the fieldcatalog, for the total qty column use the below code :
gs_fieldcat-do_sum = 'X'.
Thanks,
Sriram Ponna. -
How to get two header colums using alv?
Hi,
experts,
I want to display alv output with two header columns like shows below:
Subjects
| English | Maths | Science | Social | Politics |
100
56
89
12
85
25
85
36
78
100
75
55
65
74
100
How to acheive this by using ALV Grid dispaly. please end me any document on this .
Thanks in advance,
Shabeer Ahmed.Hi,
Please check the link given below :
Two column header in ALV Report
hope it will help you.
Thanks & Regards,
Sarita Singh Rathour -
Getting row information after an ALV sort
I am using cl_gui_alv_grid. My problem occurs after a user sorts the table. All of the index values no longer match to the original table I passed to the class. How do I match the results from
CALL METHOD my_catlistgrid->get_selected_rows
IMPORTING
et_index_rows = selected_rows.
to my original itab?Let me be more specific. I have an object that is handling the events double_click(), I have a button on the APP toolbar that will end up calling any or all of the following methods.
CALL METHOD my_catlistgrid->get_selected_rows
IMPORTING
et_index_rows = selected_rows.
CALL METHOD my_catlistgrid->get_selected_cells_id
IMPORTING
ET_CELLS = selected_cells_id.
CALL METHOD my_catlistgrid->get_selected_cells
IMPORTING
ET_CELL = selected_cells.
Each of this methid returns to me the index(position) of the selected row in the ALVgrid. After a sort in the ALV grid, row 1 does not relate to row 1 in the itab I passed to the ALV grid anymore. -
How to get GMT or IST using PL/SQL FUNCTION
Hello I am using Oracle 10G database (OS: Windows-32 and Windows-64).
How can i get the date and time GMT or International time without referring SYSDATE / DBDATE.
Actual problem the DB-Sever date/time is frequently manipulated by end user and i want to log the actual date and time of transaction in some audit table.
Regards,
TarunIt won't increase your server load, you'd simply have a lot of http wait events and the performance of your application would depend on your customers internet connection. Something not very desireable if you ask me, and most certainly will cause you headaches. Really bad headaches, and one day someone will ask who came up with the brilliant idea to get the system timestamp via http instead of...+sysdate+ (I smell a http://thedailywtf.com/ article coming up).
Anyway; here it goes: the http based sysdate function. I am using mod_plsql for my "webservice" running on a server from where I trust the date is correct. You can use anything you like, for a "real" webservice, the implementation will be a little bit different than that. Google would know the answer on how to call webservices from the database.
$[CHE_TEST@asterix1_impl] create or replace procedure server_time as
2 begin
3 htp.print(to_char(sysdate, 'dd.mm.yyyy hh24:mi:ss'));
4 end;
5 /
Procedure created.As you can see the procedure does nothing else then outputting the sysdate of my database server in a specified date format. Then, on a different server I call the mod_plsql procedure via utl_http:
$[CHE_TEST@asterix2_al32utf8] create or replace function get_server_time return date is
2 begin
3 --default would be 60, this is clearly too much
4 utl_http.set_transfer_timeout(1);
5 return to_date(utl_http.request('http://ias4/asterix1_impl_cronet/server_time'), 'dd.mm.yyyy hh24:mi:ss');
6 exception
7 when utl_http.REQUEST_FAILED then
8 return sysdate;
9 end;
10
11 /
Function created.Now get_server_time will give me the time of my first database server (except the HTTP Request fails for some reason, then it'll be sysdate)
$[CHE_TEST@asterix2_al32utf8] select get_server_time from dual;
GET_SERVER_TIME
24.07.2012 13:35:00Again if you are going down that road use the function carefully and not in every end of your application as it will give you performance problems.
cheers -
How to get no of days using oracle date function
Dear all,
i need different output from this query mentioned below.
suppose i have execute this query.
sql> select add_month(SYSDATE, -1 * 6) finaldate from dual;
it will give the output as
sql>FINALDATE
05-JUL-2009 13:46
now i need to get the total no days from the same query that means it should calculate the total no of days from july to current date and give the output.
if you can give any hint.
Regards
LaxmanOracle supports date arithmetic and uses day as a unit.For example, number of days from July 1, 2009 to SYSDATE
SQL> SELECT SYSDATE - DATE '2009-07-01'
2 FROM DUAL
3 /
SYSDATE-DATE'2009-07-01'
188.386968
SQL> SY. -
Using SORT function in mapping
Hi,
I am having trouble getting my head around using the SORT function.
My interface is IDOC to File, The IDOC has a repeating segment (PAYLOAD) that can be of 3 types, either type A, B or C (this is set using a "TYPE" field).
In my file structure I have a repeating "ROW" element which has all of the fields for each row.
I want to group all the Type A data together, the Type B together and the Type C.
I have tried the following mapping on the "ROW" element but it doesn't seem to work:
"TYPE"--"sort"Split By Value (Value Change)--collapseContext--"ROW"
for each of the mappings under ROW I just have fields copied directly.
I think I am doing something wrong.
Thanks.Hi,
You could make this mapping
TYPE --- +----------------+ +----------------+
| | | |
| Concat | --- | mySortFunction | --- NAME
| | | |
NAME --- +----------------+ +----------------+
TYPE --- +----------------+ +----------------+
| | | |
| Concat | --- | mySortFunction | --- ADDR
| | | |
ADDR --- +----------------+ +----------------+
Where source code of mySortFunction is like this:
public void mySortFunction(String[] inputValues,ResultList result,Container container){
for(int i=0;i<inputValues.length;i++)
if(inputValues<i>.substring(0,1).equals("A"))
result.addValue(inputValues<i>.substring(1, inputValues<i>.length-1);
for(int i=0;i<inputValues.length;i++)
if(inputValues<i>.substring(0,1).equals("B"))
result.addValue(inputValues<i>.substring(1, inputValues<i>.length-1);
for(int i=0;i<inputValues.length;i++)
if(inputValues<i>.substring(0,1).equals("C"))
result.addValue(inputValues<i>.substring(1, inputValues<i>.length-1);
It is very simple. You concat TYPE whit your data, and then you sort all queue, so you have a new sort queue data. You must only then put out data. -
How to get al object's type used inside a function group
Hello There,
I want to create a program to get all the objects used inside a Function group, for example all the data structure type (not the field name of fieds ortable name used in import/export but their data types) used in import/export/table parameters of Function group or Function module inside that FG. I also want to know all the field types/function module/class/method etc used inside a FG.
The main purpose is to create a program to know if a function group uses a object from a particular software component. we have a requirement in our project for example all the standard objects used in a program should belong to only sap_basis /sap_abap/sap_appl software component.
I realy appreciate any help on the same.
ManiGoto se80, provide the function group, double click on the object name, click on the main program button and get the function pool name. Now place this function pool name in se38 , go to menu utilities->environment analysis. You will get the list. If you would like to do this via custom program then see through debugging mode and check what is coded.
Kesav -
Cannot get the details in ME2N when using ALV but can when using BEST
Hi experts,
Could you let me know why I am not able to get the results when using ALV as Scope of List in ME2N Transaction, but can get data when using BEST?
Regards,
PriHi Priya,
Check the following :
IMG-> Materials Management-> Purchasing-> Reporting-> Scope of List->Define Scope of List
Here select ALV and click details.
Check the check boxes you need.
Cheers,
Satish -
Hiding a column in ALV GRID function module if it doesnt have data
Hi ,
I am using alv grid function module, in output i dont want to display the fields which dont have datawe dont know which column has no data..... we have to do it dynamically
This code does that dynamically, Here the field2 & Fiels4 are not displayed.
TYPE-POOLS:slis,abap.
TYPES:BEGIN OF ty_stru,
field1 TYPE c,field2 TYPE c,field3 TYPE c,field4 TYPE c,
END OF ty_stru.
DATA:itab TYPE TABLE OF ty_stru,
wa_stru TYPE ty_stru,
lv_repid TYPE sy-repid,
wa_fieldcat TYPE slis_fieldcat_alv,
it_fieldcat TYPE TABLE OF slis_fieldcat_alv,
it_details TYPE abap_compdescr_tab,
wa_components TYPE abap_compdescr,
lf_ref_descr TYPE REF TO cl_abap_structdescr,
lv_field TYPE abap_compname.
FIELD-SYMBOLS:<fs> TYPE ANY,
<fs1> TYPE ANY.
lf_ref_descr ?= cl_abap_typedescr=>describe_by_data( wa_stru ).
it_details[] = lf_ref_descr->components[].
wa_stru-field1 = 'A'.wa_stru-field3 = 'C'.APPEND wa_stru TO itab.
wa_stru-field1 = 'X'.wa_stru-field3 = 'Y'.APPEND wa_stru TO itab.
IF NOT itab[] IS INITIAL.
LOOP AT it_details INTO wa_components.
ASSIGN wa_components-name TO <fs>.
CHECK sy-subrc = 0.
SORT itab BY (<fs>) DESCENDING.
CONCATENATE 'WA_STRU' '-' <fs> INTO lv_field .
ASSIGN (lv_field) TO <fs1>.
CHECK sy-subrc = 0.
READ TABLE itab INTO wa_stru INDEX 1 TRANSPORTING (<fs>).
IF sy-subrc = 0 AND ( NOT <fs1> IS INITIAL ).
wa_fieldcat-fieldname = wa_components-name.
wa_fieldcat-seltext_m = wa_components-name.
APPEND wa_fieldcat TO it_fieldcat.
CLEAR wa_fieldcat.
ENDIF.
ENDLOOP.
lv_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = lv_repid
it_fieldcat = it_fieldcat[]
TABLES
t_outtab = itab[].
ENDIF. -
Sort Function is being Overridden by Some default
I've created a simple HFR report using Financial Reporting Studio to do budget vs. actual on a particular dimension (cost center). The dimemsion member selected is part of an alternate heirarchy which aggregrates the same way that I'd like the report to display. The particular member is selected as Decendents Inclusive (and is defined in the report as opposed to a prompt) so that I can capture the two levels below the selected member.
No matter what I do using the Sort function (Name, Heirarchy, Description) in the member selection area when it generates the report the hierarchy is upside down (base, level 1, level 2), completely contrary the the actual heirarchy in EPMA. What am I missing and how do I get it to display from the top down?
Thanks!
Edited by: user13058666 on Jun 2, 2010 10:47 AM
Edited by: user13058666 on Jun 2, 2010 10:53 AMA file under Private What? Where are you seeing this and how are you accessing it?
-
Use of Average Function in repository
Hi,
I need to use the average function on a derived column in the repository.
The requirement is to find different between two dates and then perform an average for a particular time period on the difference.
AVG(TIMESTAMPDIFF(SQL_TSI_DAY, Deposit_date, Withdrawal_Date))..This is the sample of my requirement in the repository.
I am not able to use it as I get the following error..
[38083] The Attribute defines a measure using an obsolete method.
How can I get past this and use the average function in the repository..I cannot pass this to the answers part as this is a adhoc reporting DM.
Any help will be greatly appreciated.
This requirement is for OBIEE 10.1.3
Thanks
Edited by: vjbez1 on Dec 3, 2012 6:24 AMOBIEE doesn't support aggregate functions in formulas that are built from logical columns. Use logical columns that already have an aggregate function defined to build formulas. Alternatively, add this under the General section of your NQSConfig.ini file: SUPPORT_OBSOLETE_MEASURES = YES;
Please mark if helpful/correct. -
Hi Guru's
i am use alv sort in my report .
i use following code.
but it gives me DUMP ERROR.
my code like this.
DATA : it_sort TYPE slis_t_sortinfo_alv WITH HEADER LINE.
FORM do_sort .
it_sort-spos = 1.
it_sort-fieldname = 'vbeln'.
it_sort-tabname = 'it_vbak'.
it_sort-up = 'X'.
it_sort-subtot = 'X'.
it_sort-group = '*'.
it_sort-expa = 'X'.
APPEND it_sort.
it_sort-spos = 2.
it_sort-fieldname = 'posnr'.
it_sort-tabname = 'it_vbap'.
it_sort-up = 'X'.
it_sort-subtot = 'X'.
it_sort-group = '*'.
it_sort-expa = 'X'.
APPEND it_sort.
ENDFORM.
please tell me where is the error.
Thanks in advance.
Regards.
Sam.Hi,
Try the following code
DATA : it_sort TYPE slis_t_sortinfo_alv WITH HEADER LINE.
FORM do_sort .
it_sort-spos = 1.
it_sort-fieldname = 'VBELN'.
it_sort-tabname = 'IT_VBAK'.
it_sort-up = 'X'.
it_sort-subtot = 'X'.
it_sort-group = '*'.
it_sort-expa = 'X'.
APPEND it_sort.
it_sort-spos = 2.
it_sort-fieldname = 'POSNR'.
it_sort-tabname = 'IT_VBAP'.
it_sort-up = 'X'.
it_sort-subtot = 'X'.
it_sort-group = '*'.
it_sort-expa = 'X'.
APPEND it_sort.
ENDFORM.
Hope this will have u.
If it is helpful provide point.
Thanks. -
To get own Filed Desc. like ALV Grid while exporting to ALV using standard
Hi all,
How to get the custom field heading when we export to XLS using the standard Functionality/button available in ALV grid to export to spread sheet.
I mean is there anything in ALV field catalog /something by which we can have our custom heading , the way we do in ALV grid output using the button available to do export .
Note: I am not talking about any FM , its the standrad button available in ALV grid by which we can do export to spread sheet , currently its taking the small text of the data element field level.
RegardsHi,
Modify your fieldcatelog before calling the grid display FM. Remove data element reference (ref_fieldname) and change ddictxt, seltext_s, seltext_m and seltext_l fields to the text you want.
Dataelement texts can be found in table DD04T.
Thanks,
Vinod.
Maybe you are looking for
-
How can i get pdf files from my ipad to my pc?
Please help im so lost, i need to get a pdf file from my ipad to my pc but it doesnt work with workspaces. I really need it for uni.
-
Hi, i have problem with my laptop touchpad, it freezes and i have to wait between 1-2 min.... and also while starting of windows the black screen will appears for few seconds after log in. Please help me to fix both problems, Thanks. I'm running Wind
-
Reminder e-mail of full storage at iC
I´ve got a reminder e-mail that my iC storage is full. Checking on my iOs dev says that I have 2,6 GB left of 5GB. Are there different storage for my MacBook and my phone and pad?
-
Cannot backup my N6260 in Content copier
When I use the content copier to backup, it backs up to 10% then I get an error " Connection to phone was lost. Please reconnect and start backup" on the PC while my phone shows the error "App.closed Srcs" Then if I retry the backup, nothing happens
-
Notification number %ZZZZZZZZZZ1
Hi experts, The problem is that the BAPI_ALM_NOTIF_CREATE fm does not return the NOTIF_NO in EXPORTING structure notifheader_export ? There is only number like that : %ZZZZZZZZZZ1, which could not be of course compareable with the QMEL-QMNUM val