Displaying header with data binded to the R/3 system
hi
I have developed an application which uses Interactive form to generate the Invoice PDF by getting data from back end system R/3.
Now my problem is that the Header which I need to display contains some data binded with the back end system and that the Header needs to be displayed on each and every page of the Invoice.
I need to know how can we set the header so that the header is displayed on each page with the data binded to the back end system.
Immediate help would be appreciated.
Thanks and regards,
kris
Hi Gopi,
There is a limitation for your requirement.The runtime data will not change in each page or it will be blank in case of header.
I have used an alternative for the forms designed from SFP .I have called the PDF in a loop in the driver program. Then a new pdf will generated for each case.
May be the alternative is assign the values through scripting.
pavan meda
Similar Messages
-
Can not see the option Execution with Data Change in the infoprovider?
Hi team,
i am using query designer 3.x, when i go into my bex brodcaster settings and schedule my report
i can not see the option "Execution with Data Change in the infoprovider",
i can only see 2 options
Direct scheduling in background process
create new scheduling
periodic,
is there any setting which i would be able to see the option "Execution with Data Change in the infoprovider"?
kindly assistHi Blusky ,
check the below given link.
http://help.sap.com/saphelp_nw04/Helpdata/EN/ec/0d0e405c538f5ce10000000a155106/frameset.htm
Regards,
Rohit Garg -
When I try to use 'Stacked Column Bar'. with data assigned in the graphs, and want to see it in the 'Preview' mode in Xeclsius, I unable to see the graphs apart from the Axes ans Series Value, the graphs becomes totally invisible why So ?
Hi Ranendra,
For basic understanding of Dashboards and Models you can use standard Templates or samples which ll come along with dashboard designer(Formly Xcelsius) installation.
For path File-->Templates(or Samples).
Under Templates you ll have different categories and for each you ll find the dashboard Templates.
Regards,
Venkat P -
Displaying header with Hierarcial ALV
Dear Abapers,
I have got a requirement to make a report similar to FBL5n standard report's OUTPUT.
The FBL5N report's output is in this format:-
Header : customer name:
customer number:
First block Item: normal open item1:
normal open item2:
normal open item3:
SUB TOTAL
Second block Item: GL open item1:
Gl open item2:
Gl open item 3:
SUB TOTAL:
GRAND TOTAL:
Then again the header for the second customer and the first block details and the second block details.
As the user wants to have Range of customers in Selection screen.
Please do tell me how could i achieve this type of display. With header and 2 blocks of items for every customer.
Your efforts in this matter are greatly appreciated.
Thanking you in Advance.
Cheers,
ZIaPlease Copy paste the below code in se38 editor......run it and try to get the concept from that.
Hope it will solve your problem.
REPORT ZSAR_ALV_HIERSQ.
TYPE-POOLS: SLIS.
TABLES: MARA.
DATA: BEGIN OF WT_HDR OCCURS 0,
MATNR LIKE MARA-MATNR,
MAKTX LIKE MAKT-MAKTX,
END OF WT_HDR.
DATA: BEGIN OF WT_ITEM OCCURS 0,
MATNR LIKE VAPMA-MATNR,
VKORG LIKE VAPMA-VKORG,
VTWEG LIKE VAPMA-VTWEG,
SPART LIKE VAPMA-SPART,
VBELN LIKE VAPMA-VBELN,
POSNR LIKE VAPMA-POSNR,
WERKS LIKE VAPMA-WERKS,
KUNNR LIKE VAPMA-KUNNR,
END OF WT_ITEM.
DATA: WT_KEYINFO TYPE SLIS_KEYINFO_ALV.
DATA: WT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
SELECTION-SCREEN BEGIN OF BLOCK BK1.
SELECT-OPTIONS: WS_MATNR FOR MARA-MATNR.
SELECTION-SCREEN END OF BLOCK BK1.
START-OF-SELECTION.
PERFORM GET_DATA.
END-OF-SELECTION.
PERFORM DISPLAY_DATA.
*& Form get_data
text
--> p1 text
<-- p2 text
FORM GET_DATA .
SELECT MATNR VKORG VTWEG SPART
VBELN POSNR WERKS KUNNR
INTO CORRESPONDING FIELDS OF TABLE WT_ITEM
FROM VAPMA
WHERE MATNR IN WS_MATNR.
CLEAR WT_HDR. REFRESH WT_HDR.
CLEAR WT_ITEM.
SORT WT_ITEM BY MATNR.
LOOP AT WT_ITEM.
AT END OF MATNR.
SELECT SINGLE MATNR MAKTX
FROM MAKT
INTO (WT_HDR-MATNR,WT_HDR-MAKTX)
WHERE MATNR = WT_ITEM-MATNR.
APPEND WT_HDR.
CLEAR WT_HDR.
ENDAT.
ENDLOOP.
ENDFORM. " get_data
*& Form display_data
text
--> p1 text
<-- p2 text
FORM DISPLAY_DATA .
PERFORM GET_FIELDCAT.
PERFORM GET_KEYINFO.
CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_CALLBACK_PROGRAM = SY-REPID
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
IS_LAYOUT =
IT_FIELDCAT = WT_FIELDCAT
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
I_TABNAME_HEADER = 'WT_HDR'
I_TABNAME_ITEM = 'WT_ITEM'
I_STRUCTURE_NAME_HEADER =
I_STRUCTURE_NAME_ITEM =
IS_KEYINFO = WT_KEYINFO
IS_PRINT =
IS_REPREP_ID =
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB_HEADER = WT_HDR
T_OUTTAB_ITEM = WT_ITEM
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " display_data
*& Form GET_KEYINFO
text
--> p1 text
<-- p2 text
FORM GET_KEYINFO .
CLEAR WT_KEYINFO.
WT_KEYINFO-HEADER01 = 'MATNR'.
WT_KEYINFO-ITEM01 = 'MATNR'.
ENDFORM. " GET_KEYINFO
*& Form GET_FIELDCAT
text
--> p1 text
<-- p2 text
FORM GET_FIELDCAT .
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = 'ZSAR_ALV_HIERSQ'
I_INTERNAL_TABNAME = 'WT_HDR'
i_structure_name = wt_hdr
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME = 'ZSAR_ALV_HIERSQ'
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
CT_FIELDCAT = WT_FIELDCAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = 'ZSAR_ALV_HIERSQ'
I_INTERNAL_TABNAME = 'WT_ITEM'
i_structure_name = wt_item
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME = 'ZSAR_ALV_HIERSQ'
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
CT_FIELDCAT = WT_FIELDCAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT WT_FIELDCAT INTO LS_FIELDCAT.
CASE LS_FIELDCAT-TABNAME.
WHEN 'WT_HDR'.
CASE LS_FIELDCAT-FIELDNAME.
WHEN 'MATNR'.
LS_FIELDCAT-SELTEXT_L = 'Material No'.
WHEN 'MAKTX'.
ENDCASE.
WHEN 'WT_ITEM'.
CASE LS_FIELDCAT-FIELDNAME.
WHEN 'MATNR'.
LS_FIELDCAT-KEY = ' '.
LS_FIELDCAT-NO_OUT = 'X'.
WHEN 'VBELN'.
ENDCASE.
ENDCASE.
MODIFY WT_FIELDCAT
FROM LS_FIELDCAT.
ENDLOOP.
ENDFORM. " GET_FIELDCAT
Thanks. -
Problems with Date bind variable
I'm trying to use a Date as a bind variable in a View Object, and I'm running into difficulties. I've got the bind variable type set to date, and the control hints for Format Type and Format set to "Simple Date" and "yyyy-MM-dd" respectively. When I run the application module test and enter the date in the correct format, the View Object returns the expected results. However, when I try to set a Query Bind Parameters property for a JHeadstart group in my application definition in order to set the bind variable's value from an dateField input control, I get the following exception:
30-Jan 08:49:56 ERROR (ErrorReportingUtils) -java.lang.IllegalArgumentException
at java.sql.Date.valueOf(Date.java:104)
at oracle.jbo.domain.Date.toDate(Date.java:348)
at oracle.jbo.domain.Date.<init>(Date.java:279)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at oracle.jbo.domain.TypeConvMapEntry.convert(TypeConvMapEntry.java:73)
at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:739)
at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:90)
at oracle.jbo.common.VariableImpl.convertToJava(VariableImpl.java:546)
at oracle.jbo.common.VariableValueManagerImpl.doSetVariableValue(VariableValueManagerImpl.java:182)
at oracle.jbo.common.VariableValueManagerImpl.setVariableValue(VariableValueManagerImpl.java:223)
at oracle.jbo.common.VariableValueManagerImpl.setVariableValue(VariableValueManagerImpl.java:229)
at oracle.jheadstart.model.adfbc.v2.JhsApplicationModuleImpl.applyBindParams(JhsApplicationModuleImpl.java:173)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:507)
at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:1795)
at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:1989)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:219)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1289)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:1802)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:627)
at oracle.adf.model.binding.DCInvokeActionDef$DCInvokeAction.refresh(DCInvokeActionDef.java:140)
at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2521)
at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareRender(PageLifecycleImpl.java:534)
at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareRender(FacesPageLifecycle.java:98)
at oracle.jheadstart.controller.jsf.lifecycle.JhsPageLifecycle.prepareRender(JhsPageLifecycle.java:1155)
at oracle.adf.controller.v2.lifecycle.Lifecycle$1.execute(Lifecycle.java:297)
at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:29)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$1.before(ADFPhaseListener.java:426)
at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:77)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:228)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
However, it seems that the value of the bind parameter did in fact change, according to the debug message issued by the JhsApplicationModuleImpl.applyBindParams(...) procedure:
30-Jan 08:46:23 DEBUG (JhsApplicationModuleImpl) -ViewObject ViewObj: value of bind param move_date has changed: old value=null ,new value=Wed Jan 07 00:00:00 CST 2009
One thing I have noticed that may be of interest - if I run the debugger into the JhsApplicationModuleImpl.applyBindParams(...) procedure, a default date in my bind variable shows up as an oracle.jbo.domain.Date object when it comes out of the following line:
Object oldValue = vo.ensureVariableManager().getVariableValue(key);
as opposed to the new value that gets sent from the input value of the dateField control, which shows up as a java.util.Date in the following line:
Object value = args.get(key);
In the string of functions leading up to the following in the stack trace:
at java.sql.Date.valueOf(Date.java:104)
at oracle.jbo.domain.Date.toDate(Date.java:348)
at oracle.jbo.domain.Date.<init>(Date.java:279)
it looks like the value of the java.util.Date is converted to a string, then passed to these functions to be turned into a java.sql.Date object. However, according to the java.sql.Date.valueOf(...) function, it's expecting date in "yyyy-mm-dd" format, per the header comments:
* Converts a string in JDBC date escape format to
* a <code>Date</code> value.
* @param s a <code>String</code> object representing a date in
* in the format "yyyy-mm-dd"
* @return a <code>java.sql.Date</code> object representing the
* given date
* @throws IllegalArgumentException if the date given is not in the
* JDBC date escape format (yyyy-mm-dd)
When the input value from the dateField input control is added as a java.util.Date, the toString() is producing the wrong date format, which could be seen in the debug output I included above that said the bind variable has changed.
Has anyone done this before that can let me know what I am missing and how to fix this? I've search all over the web, and all the articles I've seen relating to bind variables only refer to those of numeric or string types, which aren't giving me any trouble. Even the Developer's Guide (http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/bcquerying009.htm) article "5.9 Using Named Bind Variables" doesn't reference using a Date type.I had the same problem about a year ago (using JHeadstart 10.1.3.2.52):
15-feb 14:10:31 DEBUG (JhsApplicationModuleImpl) -Search item matches query bind param SubjectenKernPeildatum, value set to 2000-01-01
15-feb 14:10:33 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for BasServiceKern.AdresRollenSubjecten
15-feb 14:10:33 DEBUG (JhsApplicationModuleImpl) -ViewObject AdresRollenSubjecten: value of bind param peildatum has changed: old value=null ,new value=Sat Jan 01 00:00:00 CET 2000
15-feb 14:10:33 ERROR (ErrorReportingUtils) -java.lang.IllegalArgumentException
at java.sql.Date.valueOf(Date.java:104)
at oracle.jbo.domain.Date.toDate(Date.java:348)
It appears a java.util.Date gets put on the criteria Map in the searchBean, this can't be used as input for a jbo.Date bindvariable.
My ugly solution was to override public void applyBindParams(String voUsage,HashMap args)
in MyProjectApplicationModuleImp (which extends JhsApplicationModuleImpl of course),
check if value is a java.util.Date, and then
value = new java.sql.Date(((java.util.Date)value).getTime());
Greetings, HJ
Edited by: HJHorst on Feb 6, 2009 12:22 AM -
Apex flash charts with date values on the x axis
I am playing around in Apex 4 using flash charts and having a bit of troubles playing with dates on the x axis on a 2d line chart.
What I am trying to achive is a values plotted across the chart and the date/time values are not a constent (ie not continually say 1 hour apart) hence why I want to use a datatype of date.
In the SQL below:
select null as link, sysdate -2 as value, 0 as label from dual
union
select null , sysdate -2+1/24 , 1 from dual
union
select null , sysdate -2+2/24 , 2 from dual
union
select null , sysdate -2+5/48, 1 from dual
union
select null , sysdate -2+3/24, 0 from dual;I get a 2D Line chart but each date/time value is equally space apart (ie sysdate -2, sysdate -2+1/24, sysdate -2+2/24 and sysdate -2+3/24 should be 1 unit apart and sysdate -2+5/48 should be half way between sysdate -2+2/24 and sysdate -2+3/24).
I think I have to use custom xml. Using http://www.anychart.com/products/anychart/docs/xmlReference/index.html and http://www.anychart.com/products/anychart/docs/users-guide/DateTime-Axes.html I edited the XML and changed:
<?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
<anychart>
<settings>
<animation enabled="false"/>
<no_data show_waiting_animation="False">
<label>
<text></text>
<font family="Verdana" bold="yes" size="10"/>
</label>
</no_data>
</settings>
<margin left="0" top="" right="0" bottom="0" />
<charts>
<chart plot_type="CategorizedVertical" name="chart_1614502819445708">
<chart_settings>
<title enabled="False" />
<chart_background>
<fill type="Solid" color="0xffffff" opacity="0" />
<border enabled="false"/>
<corners type="Square"/>
</chart_background>
<data_plot_background>
</data_plot_background>
<axes>
<y_axis >
<scale mode="Normal" />
<title enabled="false" />
<labels enabled="true" position="Outside">
<font family="Tahoma" size="10" color="0x" />
<format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
</labels>
<major_grid enabled="False"/>
<minor_grid enabled="False"/>
</y_axis>
<x_axis>
<scale mode="Normal" />
<title enabled="false"/>
<labels enabled="true" position="Outside">
<font family="Tahoma" size="10" color="0x" />
<format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
</labels>
<major_grid enabled="True" interlaced="false">
<line color="Black" />
</major_grid>
<minor_grid enabled="True">
</minor_grid>
</x_axis>
</axes>
</chart_settings>
<data_plot_settings enable_3d_mode="false" >
<line_series>
<tooltip_settings enabled="true">
<format><![CDATA[{%Name}{enabled:False} - {%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
<font family="Tahoma" size="10" color="0x" />
<position anchor="Float" valign="Top" padding="10" />
</tooltip_settings>
<label_settings enabled="true" mode="Outside" multi_line_align="Center">
<format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
<background enabled="false"/>
<font family="Tahoma" size="10" color="0x" />
</label_settings>
<line_style>
<line enabled="true" thickness="1" opacity="1" />
</line_style>
<marker_settings enabled="True" >
<marker type="Circle" />
</marker_settings>
</line_series>
</data_plot_settings>
#DATA#
</chart>
</charts>
</anychart>to
<?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
<anychart>
<settings>
<animation enabled="false"/>
<no_data show_waiting_animation="False">
<label>
<text></text>
<font family="Verdana" bold="yes" size="10"/>
</label>
</no_data>
<locale>
<date_time_format>
<format>%HH:%mm:%ss %dd/%MM/%yyyy</format>
</date_time_format>
</locale>
</settings>
<margin left="0" top="" right="0" bottom="0" />
<charts>
<chart plot_type="CategorizedVertical" name="chart_1614502819445708">
<chart_settings>
<title enabled="False" />
<chart_background>
<fill type="Solid" color="0xffffff" opacity="0" />
<border enabled="false"/>
<corners type="Square"/>
</chart_background>
<data_plot_background>
</data_plot_background>
<axes>
<y_axis >
<scale mode="Normal" />
<title enabled="false" />
<labels enabled="true" position="Outside">
<font family="Tahoma" size="10" color="0x" />
<format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
</labels>
<major_grid enabled="False"/>
<minor_grid enabled="False"/>
</y_axis>
<x_axis>
<scale mode="Normal" type="DateTime" />
<title enabled="false"/>
<labels enabled="true" position="Outside">
<font family="Tahoma" size="10" color="0x" />
<format><![CDATA[{%Value}]]></format>
</labels>
<major_grid enabled="True" interlaced="false">
<line color="Black" />
</major_grid>
<minor_grid enabled="True">
</minor_grid>
</x_axis>
</axes>
</chart_settings>
<data_plot_settings enable_3d_mode="false" >
<line_series>
<tooltip_settings enabled="true">
<format><![CDATA[{%Name}{enabled:False} - {%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
<font family="Tahoma" size="10" color="0x" />
<position anchor="Float" valign="Top" padding="10" />
</tooltip_settings>
<label_settings enabled="true" mode="Outside" multi_line_align="Center">
<format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
<background enabled="false"/>
<font family="Tahoma" size="10" color="0x" />
</label_settings>
<line_style>
<line enabled="true" thickness="1" opacity="1" />
</line_style>
<marker_settings enabled="True" >
<marker type="Circle" />
</marker_settings>
</line_series>
</data_plot_settings>
#DATA#
</chart>
</charts>
</anychart>and change the SQL series to:
select link, to_char(value, 'HH24:MI:SS DD/MM/YYYY') as value, label from
select null as link, sysdate -2 as value, 0 as label from dual
union
select null , sysdate -2+1/24 , 1 from dual
union
select null , sysdate -2+2/24 , 2 from dual
union
select null , sysdate -2+5/48, 1 from dual
union
select null , sysdate -2+3/24, 0 from dual)But the chart changes from a line chart to a bar chart with each value being equally spaced.
Can anyone see what I am doing wrong or point me in the right direction? Thanks in advance.This will be a little bit lengthy answer, but I guess it will be easier to understand what I meant to say.
I created a table that contains values you used as a data source (just to make my life easier):
SQL> alter session set nls_date_format = 'dd.mm.yyyy hh24:mi:ss';
Session altered.
SQL> select * from test;
VALUE LABEL
12.10.2010 09:03:45 0
12.10.2010 10:03:45 1
12.10.2010 11:03:45 2
12.10.2010 11:33:45 1
12.10.2010 12:03:45 0
SQL> alter session set nls_date_format = 'hh24:mi';
Session altered.From now on, we'll see only hours and minutes.
Step 1: current and previous values - difference in number of MINUTES
SQL> select t.value,
2 lag(t.value) over (order by t.value) previous_value,
3 (t.value - lag(t.value) over (order by t.value)) * 24 * 60 minutes_diff
4 from test t;
VALUE PREVI MINUTES_DIFF
09:03
10:03 09:03 60
11:03 10:03 60
11:33 11:03 30
12:03 11:33 30Step 2: a little bit of calculation:
- TIME_SPAN: how many minutes are there between MIN and MAX date?
- MIN_DIFF: what is the minimum time difference (minutes)?
- SLICES: how many time slices do we want on the x-axis?
SQL> select
2 min(x.value) min_val,
3 max(x.value) max_val,
4 min(x.minutes_diff) min_diff,
5 (max(x.value) - min(x.value)) * 24 * 60 time_span,
6 (max(x.value) - min(x.value)) * 24 * 60 / min(x.minutes_diff) slices
7 from (select t.value,
8 lag(t.value) over (order by t.value) previous_value,
9 (t.value - lag(t.value) over (order by t.value)) * 24 * 60 minutes_diff
10 from test t
11 ) x;
MIN_V MAX_V MIN_DIFF TIME_SPAN SLICES
09:03 12:03 30 180 6There's 180 minutes between 09:03 and 12:03; minimum time difference in our TEST table is 30 minutes, so - we want to have 6 time slices on the x-axis (180 / 30).
Step 3: row generator technique: let's create time values that are missing:
SQL> select y.min_val + (level - 1) * y.min_diff / (24 * 60) val
2 from (select
3 min(x.value) min_val,
4 max(x.value) max_val,
5 min(x.minutes_diff) min_diff,
6 (max(x.value) - min(x.value)) * 24 * 60 time_span,
7 (max(x.value) - min(x.value)) * 24 * 60 / min(x.minutes_diff) slices
8 from (select t.value,
9 lag(t.value) over (order by t.value) previous_value,
10 (t.value - lag(t.value) over (order by t.value)) * 24 * 60 minutes_diff
11 from test t
12 ) x
13 ) y
14 connect by level <= y.slices + 1;
VAL
09:03
09:33
10:03
10:33
11:03
11:33
12:03
7 rows selected.OK, now we have 30 minutes between every time value.
Step 4: join newly generated time values with the original table. Use OUTER JOIN; missing labels will be 0 (zero):
SQL> select
2 null link,
3 to_char(z.val, 'hh24:mi') new_value,
4 nvl(t1.label, 0) new_label
5 from (select y.min_val + (level - 1) * y.min_diff / (24 * 60) val
6 from (select
7 min(x.value) min_val,
8 max(x.value) max_val,
9 min(x.minutes_diff) min_diff,
10 (max(x.value) - min(x.value)) * 24 * 60 time_span,
11 (max(x.value) - min(x.value)) * 24 * 60 / min(x.minutes_diff) slices
12 from (select t.value,
13 lag(t.value) over (order by t.value) previous_value,
14 (t.value - lag(t.value) over (order by t.value)) * 24 * 60 minutes_diff
15 from test t
16 ) x
17 ) y
18 connect by level <= y.slices + 1
19 ) z,
20 test t1
21 where t1.value (+) = z.val
22 order by z.val;
L NEW_V NEW_LABEL
09:03 0
09:33 0
10:03 1
10:33 0
11:03 2
11:33 1
12:03 0
7 rows selected.Cool, so we have them all. Now, go to Apex and create a chart using a query from step #4.
I tested it - it displays something which means that it should work for you too (unfortunately, this forum doesn't accept attachments so that you could see it). Now, I can't tell whether that's what you need or not, but - if the idea itself is OK, it can be adjusted (I hope so). -
I have I pod shuffle but is displaying a White blank with a tick in the centre below it says ok to disconnect but unable to move from this page
This is an iPod shuffle...? A shuffle has no screen, so your problem description does not make sense. Your profile says "iPod nano," so is this question about an iPod nano? If so, have you tried doing a Reset?
http://support.apple.com/kb/HT1320 -
Report with date range where the daily customer receipt profit centre wise
Hi Experts,
Could you please suggest me is there any developed standard report or t-cod eis available with which i can get date range where the daily customer receipt profit centre wise can be obtained............
Thanks in Advance........
Santosh Gupta...Hi:
For this purpose you can develop Z report. There is no such standard report for it. Copy FBL5N to make a Z copy of it and use the table FAGLFLEXA for each document posted in BSEG/BKPF. You can also make use of BTE 1650.
Regards -
Join multiple tables to create one new table with data from all the other
CREATE TABLE NAME2012 (STOCKNAME2012 VARCHAR(255), VAL2012 FLOAT)
INSERT INTO NAME2012 VALUES (‘Stock3’, 50)
INSERT INTO NAME2012 VALUES (‘Stock2’, 55)
INSERT INTO NAME2012 VALUES (‘Stock4’, 45)
CREATE TABLE NAME2011 (STOCKNAME2011 VARCHAR(255), VAL2011 FLOAT)
INSERT INTO NAME2011 VALUES (‘Stock1’, 56)
INSERT INTO NAME2011 VALUES (‘Stock2’, 48)
INSERT INTO NAME2010 VALUES (‘Stock3’, 59)
CREATE TABLE NAME2010 (STOCKNAME2010 VARCHAR(255), VAL2010 FLOAT )
INSERT INTO NAME2010 VALUES (‘Stock1’, 47)
INSERT INTO NAME2010 VALUES (‘Stock2’, 46)
I would like a new Table STOCKS populated with names of stocks from the other tables as well as values. So I get a new table STOCKS, with data as below.
CREATE TABLE STOCKS (NAME VARCHAR(255), VALUE2012 FLOAT , VALUE2011 FLOAT, VALUE2010 FLOAT)
End result in table STOCKS should be like:
NAME VALUE2010 VALUE2011
VALUE2012
Stock1 47
56 NULL
Stock2 46
48 50
Stock3 NULL 59
55
Stock4 NULL NULL
45
How can I write a T-SQL expression that could do this?Hi
There must be StockMaster
Try this
CREATE TABLE NAME2012 (
STOCKNAME2012 VARCHAR(255)
,VAL2012 FLOAT
INSERT INTO NAME2012
VALUES (
'Stock3'
,50
INSERT INTO NAME2012
VALUES (
'Stock2'
,55
INSERT INTO NAME2012
VALUES (
'Stock4'
,45
CREATE TABLE NAME2011 (
STOCKNAME2011 VARCHAR(255)
,VAL2011 FLOAT
INSERT INTO NAME2011
VALUES (
'Stock1'
,56
INSERT INTO NAME2011
VALUES (
'Stock2'
,48
CREATE TABLE NAME2010 (
STOCKNAME2010 VARCHAR(255)
,VAL2010 FLOAT
INSERT INTO NAME2010
VALUES (
'Stock1'
,47
INSERT INTO NAME2010
VALUES (
'Stock2'
,46
INSERT INTO NAME2010
VALUES (
'Stock3'
,59
Create table stockMaster(STOCKNAME VARCHAR(255))
go
Insert into stockMaster values('Stock1')
Insert into stockMaster values('Stock2')
Insert into stockMaster values('Stock3')
Insert into stockMaster values('Stock4')
Select Distinct S.STOCKNAME , A.VAL2010 ,B.VAL2011,C.VAL2012 from stockMaster S
left join NAME2012 C on S.STOCKNAME = C.STOCKNAME2012
left join NAME2011 B on s.STOCKNAME = B.STOCKNAME2011
left join NAME2010 A on s.STOCKNAME = A.STOCKNAME2010
go
Drop table NAME2010
Drop table NAME2011
Drop table NAME2012
Drop table stockMaster
Mark as Ans if you find it useful
Shridhar J Joshi Thanks a lot -
Initialize Delta Process with Data Transfer - Split the job in two/three
Hello,
I am trying to load master data into BI (DEV) and there are 700,000 master data records in my source system. When I tried to load Initialize Delta Process with data transfer, at some point (after 300,000 records) my load failed in source system and job log I found that this issue "ABAP/4 processor: TSV_TNEW_OCCURS_NO_ROLL_MEMORY"
When I informed this issue to BASIS consultant, they suggest me to split the job in 3 (Three). My question: how can I split the job in three? I can do one Initialize Delta Process load and followed by delta load.
Regards,
MdHi Md.
Even at Infopackage level you can reduce the number of records per package.
Go to Infopackage Schedular Menu -> DataS. Default Data Transfer. you can reduce the Maximum size of a data packet in kByte.
Regards,
Pratap Sone -
why my iphone 4s getting hot when using 3g plus with data?
then my phone left side speaker didnt work when i list songs?It is normal for the phone to get hot when your using data such as YouTube videos, streaming music etc.. And as for the left speaker not working, the left speaker is a microphone, the right one is for sound. Don't worry, everything your iPhone is doing is normal.
-
Why do photos etc no longer rotate with my device under the new operating system
Since updating my phone with the new operating system, photos & videos etc no longer rotate with my device
Do you have ‘orientation lock’ turned on? This can be found via the quick options (swipe up), it is the icon in the top-right. If so, turn it off.
-
Issue with Data binding in Table with Parameters
When we bind the table rows with parameter 'select', the data is not displayed in the table. Check the snippix file created for this issue: url: http://veui5infra.dhcp.wdf.sap.corp:8080/snippix/#70874
But the same parameter works with the odata service:
http://10.66.186.12:8000/OnlineShoppingAnalysis/Services/Analysis_Date_Range.xsodata/Sales_Periodwise?$select=Product_Name,Quantity
Credentials:
user: System
Password: Abcd1234I'm not able to access your service,so I can't test it.
You could try to do a read operation on your model and add the result to a new JSON model which you can bind on to your table:
var sServiceUrl ="http://services.odata.org/Northwind/Northwind.svc";
var oModel = new sap.ui.model.odata.ODataModel(sServiceUrl);
var oModelJson = new sap.ui.model.json.JSONModel();
oModel.read("/Customers", null, {select: "Product_Name,Quantity"} , true, function(oData, oResponse){
oModelJson.setData(oData.results);
sap.ui.getCore().setModel(oModelJson, "Model");
},function(){
alert("Read failed");});
OpenUI5 SDK - Demo Kit
Documentation/AdvancedTopics/DataBinding/ODataWrite – SAPUI5 Wiki (TIP CORE User Interface)
Kind regards,
Wouter -
SPRY image display problem with data sets! "
Dreamweaver CS4
I really want to use a Spry Data set created with an HTML table (versus XML)
I've done this step by step several times(after changing local sites and images) and every time I preview the results, each one of my images has a "> in front of it.
I don't know how to get rid of this "> character!
I've provided two HTML files used to create this:
TABLE.html is the source
SpryTable.html is the actual file pulling TABLE.html for data
The images are images, I'm not going to provide them since anyone can add a random image just to see if the "> appears.
I'm not going to include the java files since dreamweaver generates them on their own.
Thanks!Jason, the best place for us to analyze your files is from a server. Have you uploaded them?
The second best place is in a set of site files...including the HTML table, the display file that uses the HTML table, the CSS and javascript file.
Without those, it is pretty nigh impossible to work this problem!
I suspect the errant character appears somewhere in your data table, but based on what you have shown us, it's hard to say.
When you defined the dataset, did you indicate that the column containing the images is type="HTML"? If you have left it as type="string", it is interpreting the > as text.
Beth -
Display row with date search ADF 11g 11.1.1.2.0
Hi
I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
I'm want to display the table rows according to the date between search.
My screen
From ______ To ______ Seachbutton
EMPNO EMPNAME JOINDATE
001 JACK 04/05/2010
002 JILL 02/05/2010
003 PALIN 06/05/2010
when i select date with adf input date in both text box and fire search . i want display the searched records/rows
sorry ......
thanks in advance
Edited by: user9010551 on May 6, 2010 3:43 AMHi
I'm using jdeveloper 11.1.1.2.0 with ADF 11g.
I'm want to display the table rows according to the date between search.
My screen
From ______ To ______ Seachbutton
EMPNO EMPNAME JOINDATE
001 JACK 04/05/2010
002 JILL 02/05/2010
003 PALIN 06/05/2010
when i select date with adf input date in both text box and fire search . i want display the searched records/rows
sorry ......
thanks in advance
Edited by: user9010551 on May 6, 2010 3:43 AM
Maybe you are looking for
-
Income Tax Calculation problem: Urgent Help Needed
Dear Gurus, I am facing a unique problem. Our client has two incentives 1) Product Incentive 2) Sales Incentive Every month incentive figures get changed. These two are Monthly Regular Income (Cumulations Class 24) i.e. included in annual tax calcu
-
Ask Apple for better iPhoto (Aperture) Library sharing!
*Some Background...* My wife and I each have our own Mac and iPhone and we share a digital camera. Between the three camera devices we snap a lot of photos and we want easy access (over the network!) to each other's photos so we can both maintain a s
-
Data form taking long time to load
Hi All, My data form is taking a very long time to load. It has period dimension which is having 53 weeks. If I collase Period dimension then the dataform opens up quickly otherwise its taking a very long time (around 7 mins) to open up. What can be
-
Import video and audio from a dvd into FCP
Is there an easier way to import video and audio into Final Cut Pro - I am playing it on a DVD player and making a digital tape of it. Then logging and capturing it into FCP.
-
J2EE add-in on ABAP system (ECC 5.0)
HI, How to install J2EE Add-in on ABAP system (ECC 5.0). I have installed ABAP stack on ECC 5.0. Now i want to add Java stack. Can any one help me how to add java stack on an existing abap system. are there any pre-requsites to be followed. Regards,