Problem of rsum function in request
Hi all experts,
I have a problem of rsum function in my request,
i use rsum to get the running sum of count( product number) per month,
but unfortunately, in my query there are some months we didn't have product, so the origin result is like:
Month Product Number RSUM
201001 100 100
201004 100 200
201005 300 500
201007 500 1000
And i have to show all the month even if some months haven't product, like this:
Month Product Number RSUM
201001 100 100
201002 0 100
201003 0 100
201004 100 200
201005 300 500
201006 0 500
201007 500 1000
Anyone can tell me how to get result like this?? Thanks a lot
Xin
Hi saichand,
That's not what i want, i want to get the result like below:
Month RSUM
201001 100
201002 100
201003 100
201004 200
201005 500
201006 500
201007 1000
that means i need to create a request to get the count of product first, and then combine a request with all the month and a static count like 0,
at last to make a rsum function to get the result i want.
But now, the problem is after combine two request, in the abstract request column, it hasn't any formula, so i cant use rsum function to get the result
Thanks,
Xin
Similar Messages
-
Getting a "Business partner not found with partner function type requester"
Hi There,
After I add a text item to the shopping cart using the SHOP t-code, I get a message "Business partner not found with partner function type requester" What could be causing this and how can I rectify this problem.
Please help mas this is an urgent issue.
Thanks,
GraceHi Grace,
First check :
1- transaction : CRM_OM_BP_INTEGRATE
select org structure where your user is and check that you have green lights (no missing address....)
2- Run transaction USERS_GEN
Select check user
Is everything correct or does the user need to be repaired ?
Kind regards,
Yann -
Facing Problem in XD01 Function Exit
Hi,
I am facing the problem in XD01 Function Exit EXIT_SAPMF02D_001. whenenver i am going active the include ZXF04U01, it is always creating the Local change request. But It is should be Transportable change request. That is why, the Basic people is enabled to transport the request into Production Server.
So, How can i make the transportable change request for the same.
kindly suggest me the solution for this problem.Thank for replying,
My problem is not related to Local Object.
Function Exit was already lying in project. Problem occurs while activing the function exit. It gives the request number ( Local changes request number) but the Basis person enable to see the request number in his screen.
So, how should i make local change request to transportable change request. -
Problems adding object to Transport request via FM TR_REQUEST_CHOICE.
Hi.
Iu2019m having some problems with a function module to a table entries to a transport request.
I want to put all table entries of a specified table (ZTRANSPORT_TEST) into a transport request by calling a function module.
Iu2019m filling the structures e071 with programId u201CR3TRu201D and ObjectType u201CTABUu201D but I get the following error:
Object R3TR, referred to by the object key, does not exist
Message no. TR600
Diagnosis
The object keys of the request/task cannot be edited because the object (R3TR) which is referenced by the object key is not in the request, nor is it going to be added to the request.
What am I doing wrong?
Here the source code:
REPORT z_test_add_to_request.
PARAMETERS: p_req TYPE trkorr. "W22K900273
DATA: it_e071 TYPE tr_objects,
it_e071k TYPE tr_keys,
wa_e071 TYPE e071,
wa_e071k TYPE e071k.
* Create Object entry.
wa_e071-trkorr = p_req.
wa_e071-pgmid = 'R3TR'.
wa_e071-object = 'TABU'.
wa_e071-obj_name = 'ZTRANSPORT_TEST'.
* Create Key entry.
wa_e071k-trkorr = p_req.
wa_e071k-pgmid = 'R3TR'.
wa_e071k-object = 'TABU'.
wa_e071k-objname = 'ZTRANSPORT_TEST'.
wa_e071k-tabkey = '*'.
* Fill tables.
APPEND wa_e071 TO it_e071.
APPEND wa_e071k TO it_e071k.
* Add table entries to the transport.
CALL FUNCTION 'TR_REQUEST_CHOICE'
EXPORTING
iv_suppress_dialog = 'X'
iv_request_types = '*'
iv_request = p_req
it_e071 = it_e071
it_e071k = it_e071k
iv_lock_objects = ' '
iv_with_error_log = 'X'
iv_no_owner_check = 'X'
EXCEPTIONS
invalid_request = 1
invalid_request_type = 2
user_not_owner = 3
no_objects_appended = 4
enqueue_error = 5
cancelled_by_user = 6
recursive_call = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Regards MichaelHi.
Found the problem. I missed to fill the entries:
wa_e071-objfunc = 'K'.
wa_e071k-mastertype = wa_e071-object.
wa_e071k-mastername = wa_e071-obj_name.
Regards Michael. -
Problem with externalURL function over sandboxbridge
I have a simple application that I am running , I have run items through the sandbox bridge without any issue until I try to run the openExternalURL command, that one will not run, I am posting my client and the page here in hopes that someone might have come across this and have a fix for it , I am pretty sure that the fix is simple and that I am probably overlooking something small with this one LOL .
If I call any of the other functions they work like a charm but if I call openExternalURL , it won't work so I am pretty sure the problem is the function openExternalURL
Any ideas would be helpfull
-R
**************AIR CLIENT*********************************************************************
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script src="AIRAliases.js"></script>
<script language="javascript">
function openExternalURL(href) {
var request = new air.URLRequest(href);
try {
air.navigateToURL(request);
catch (e) {
function testFunction(T){
alert(T);
function getUrlVars(){
var vars = [], hash;
var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
for(var i = 0; i < hashes.length; i++)
hash = hashes[i].split('=');
vars.push(hash[0]);
vars[hash[0]] = hash[1];
return vars;
function noLogin(){
alert('Your login information was incorrect, please try again');
top.location.href="login.html";
var Exposed = new Object();
Exposed.openExternalURL = openExternalURL;
Exposed.getUrlVars = getUrlVars;
Exposed.noLogin = noLogin;
Exposed.testFunction = testFunction;
function doLoad() {
var frame = document.getElementById('viperframe').contentWindow.parentSandboxBridge = Exposed;
setIframeHeight('viperframe');
</script>
</head>
<body onload="doLoad();" onresize="setIframeHeight('viperframe');" onfocus="setIframeHeight('viperframe');" bgcolor="#222222">
<iframe src="processlogin.html" id="viperframe" name="viperframe" frameborder="0" scrolling="no" width="100%"></iframe>
</body>
</html>
********************************END AIR CLIENT*********************************************
*******************************PAGE CALLING FUNCTION**********************************
<script language="javascript">
parentSandboxBridge.openExternalURL('http://www.google.com')
</script>
****************************END PAGE CALLING FUNCTION********************************Hi
Could not find exact FM for your requirement but I have one logic which I also used for similar rquirement
Table MCHB contain the batch and 'clabs' is the field for quantity,
Just write your own logic and get the desired result.
Hope this helps.
Regards
Bikas -
Problem in using function module parameters in abap program
i want to use the coding present in on one of the function module 'AS_API_INFOSTRUC_FIND' i got the problem using the function module parameters in my abap program.
these are the parameters inside fm
""Lokale Schnittstelle:
*" IMPORTING
*" VALUE(I_FIELDCAT) TYPE AIND_FCAT
*" VALUE(I_FIELDS) TYPE TABLE OPTIONAL
*" VALUE(I_OBLIGATORY_FIELDS) TYPE TABLE OPTIONAL
*" EXPORTING
*" VALUE(E_INFOSTRUC) TYPE AIND_DESC
*" REFERENCE(E_ALL_FIELDS) TYPE TABLE
*" REFERENCE(E_MATCHING_FIELDS) TYPE TABLE
*" EXCEPTIONS
*" NO_INFOSTRUC_FOUND
i want to declare E_ALL_FIELDS parameter in my abap program,
i have declared as
data: E_ALL_FIELDS TYPE TABLE.
but the system throws error that
'type of field 'TABLE' is generic .no table line has been specified'.
i want to use it in my abap program how can i declare in my abap program .You have to declare the table using any specific type.
The type table in the FM is generic so you can pass any type you need.
For instance:
TYPES: BEGIN OF ty_fields,
fieldname LIKE dfies-fieldname,
END OF ty_fields,
TYPES: TY_T_GLU1 LIKE GLU1 OCCURS 0,
ty_t_fields type ty_fields occurs 0.
DATA: lt_info_struct_fields TYPE ty_t_fields WITH HEADER LINE,
lt_matching_fields TYPE ty_t_fields WITH HEADER LINE.
CALL FUNCTION 'AS_API_INFOSTRUC_FIND'
EXPORTING
i_fieldcat = ft_fieldcat-fieldcat
i_fields = ft_fields_filled[]
IMPORTING
e_infostruc = lv_info_struct_name
e_all_fields = lt_info_struct_fields[]
e_matching_fields = lt_matching_fields[]
EXCEPTIONS
no_infostruc_found = 1. -
Error thread java : problem with the function "resume 0x***" (forum sun)
One problem with the function of jdb occured when I tried to use it to
pilot the processor with differents threads. In fact, I use a simple example with 2 threads.
I stop the two threads with two breakpoint, and I want to resume one or the other (with the function "resume 0x****"), the one wich I resumed stop again on the breackpoint and I decide again to resume one or the other. All of that to obtain a tree of execution.
I give you the code of the class and the code of jdb.
CLASS: (it's just a object Room with a variable degre that I increment and decrement with two threads increase and decrease)
public class Test{
public static void main(String[] args){
Room r = new Room();
decrease de = new decrease(r);
increase in = new increase(r);
de.start();
in.start();
class Room {
private volatile int degre=20;
public void more(){
degre += 4;
public void less(){
degre -= 3;
class decrease extends Thread{
private Room room;
public decrease(Room r){
room =r;
public void run(){
try{
while (!interrupted()){
room.less();
catch(InterruptedException e) {}
class increase extends Thread{
private Room room;
public increase(Room r){
room =r;
public void run(){
try{
while (!interrupted()){
room.more();
catch(InterruptedException e) {}
JDB:
Initializing jdb ...
stop at Test:7Deferring breakpoint Test:7.
It will be set after the class is loaded.
runrun Test
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
>
VM Started: Set deferred breakpoint Test:7
Breakpoint hit: "thread=main", Test.main(), line=7 bci=30
7 in.start();
main[1] stop at room:16
Set breakpoint room:16
main[1] stop at room:20
Set breakpoint room:20
main[1] resume
All threads resumed.
>
Breakpoint hit: "thread=Thread-0", room.less(), line=20 bci=0
20 degre -= 3;
Thread-0[1] threads
Group system:
(java.lang.ref.Reference$ReferenceHandler)0x10d Reference Handler cond. waiting
(java.lang.ref.Finalizer$FinalizerThread)0x10c Finalizer cond. waiting
(java.lang.Thread)0x10b Signal Dispatcher running
Group main:
(decrease)0x146 Thread-0 running (at breakpoint)
(increase)0x147 Thread-1 running (at breakpoint)
(java.lang.Thread)0x148 DestroyJavaVM running
Thread-0[1] resume 0x147
Thread-0[1]
Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
16 degre += 4;
Thread-1[1] resume 0x147
Thread-1[1]
Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
16 degre += 4;
Thread-1[1] print degre
degre = 24
Thread-1[1] resume 0x146 //It's here the problem, thread 0x146 have to stop on the //next breakpoint of decrease but nothing happen
Thread-1[1] resume 0x147
Thread-1[1]
Breakpoint hit: "thread=Thread-1", room.more(), line=16 bci=0
16 degre += 4;
Thread-1[1] clear
Breakpoints set:
breakpoint Test:7
breakpoint room:16
breakpoint room:20
PS: I tried many other examples with other class and other kind of breakpoints, but, in any cases, on thread doesn't manage to resume. When I try with general resume (no specification of the thread), It works but it isn't interresting for me because I want to decide wich thread continue his execution.Hi,
I have read the FAQ of the JMF.
The problem was the jar files of the JMF were not in the JRE\BIN\EXT
folder of the Java runtime!
now it works!
thanks
Reg -
Problem using two function based indexes at once!
Hello Oracle!
I've got problems using two function based indexes on geometries at once.
The problem occures, when I use a spatial join between two geometries both using function based indexes.
The test case:
CREATE TABLE quad (centroid NUMBER);
CREATE TABLE points (no NUMBER, point MDSYS.SDO_GEOMETRY);
CREATE OR REPLACE FUNCTION getQuad (centroid NUMBER) RETURN MDSYS.SDO_GEOMETRY DETERMINISTIC IS
BEGIN
RETURN MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),MDSYS.SDO_ORDINATE_ARRAY(centroid-5,centroid-5,centroid+5,centroid-5,centroid+5,centroid+5,centroid-5,centroid+5,centroid-5,centroid-5));
END;
INSERT INTO USER_SDO_GEOM_METADATA VALUES('quad','tiedge.getQuad(centroid)',MDSYS.SDO_DIM_ARRAY(MDSYS.SDO_DIM_ELEMENT('X', -100, 100, .0000001), MDSYS.SDO_DIM_ELEMENT('Y', -100, 100, .0000001)),NULL);
CREATE INDEX quad_idx on quad(getQuad(centroid)) INDEXTYPE IS MDSYS.SPATIAL_INDEX;
INSERT INTO quad VALUES (0);
INSERT INTO quad VALUES (5);
INSERT INTO quad VALUES (10);
INSERT INTO points VALUES (1, MDSYS.SDO_GEOMETRY(1001,NULL,NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1,1),MDSYS.SDO_ORDINATE_ARRAY(4,4)));
ALTER SESSION SET QUERY_REWRITE_INTEGRITY=TRUSTED;
ALTER SESSION SET QUERY_REWRITE_ENA[i]Long postings are being truncated to ~1 kB at this time.hi there,
For a better audience for this question, I'd look at the database forum.
guys on that will be a lot more familiar with FBIs
thanks
Barry -
Hi Guyz,
I am having small problem using LIKE function . The problem is I am using LIKE function in the WHERE clause
to compare a column to a particular value, which gets this value from the front end. If the user has a single quote in the string he entered then the LIKE function is not working because of the single quote. Is there any way I can escape the single quote like we escape '%' and '_'.
Thankyou.Mod_plsql supports bind variables, as do almost all front-end tools that deal with Oracle (and most other databases). I do not code mod pl/sql myself, but others here do, and I see bind variables in their code all the time (if I don't, they hear from me :-)).
If you pass a bind variable, the quote problem goes away. As far as I know (which is not very far), you should be able to take the string with the quote directly from your input field, bind it to the variable in your query and have no problems.
I suspect that the reson you are having issues is that you are just gluing strings together to create a sql statement. this is the wrong approach.
The java term for what you are looking for is prepared statement, I'm not sure what the equivalent is i mod plsql, but that should give you a start.
John -
Problem with renameTo function
Hello !
I hava got a problem on renameTo function. I can rename the short file name (for example: REPORT.TXT to REPORT.ERR), but I can't rename the long file name (for example: XXX_REPORT_20040125.TXT to XXX_REPORT_20040125.ERR). The following codes I have been used :
File f1 = new File("c:\\sunny\\data\\interfaces\\XXX_REPORT_20040125.TXT");
File f2 = new File("c:\\sunny\\data\\interfaces\\XXX_REPORT_20040125.ERR");
f1.renameTo(f2);
Thanks.JDK version? 1.1.8? 1.2.2? 1.3.1? 1.4.2? else?
Windows version? 3.11? 95? 98? 98SE? ME? NT 4? 2000? XP? 2003? else? -
Problem with 'GetType' Function calling in MSVC++
Hello
I have problem with the function in TestStand API .
When I call the function " GetType " with the following statements in
a DLL called from TestStand (NI) implemented in MS VC ++
, it does not work and this exception is caught by the ONLY ' try catch ' block
to catch exceptions in TestStand API giving the error message
" Unexpected operating system error".
VARIANT_BOOL ok;
VARIANT_BOOL hi;
BSTR Name;
PropertyObject *property = (*step_)->AsPropertyObject();
( *step_ is a STEP Object of type Step* *step_ )
property = property->GetPropertyObject( "TS.SData", 0);
enum TS:ropertyValueTypes i = property->GetType( "" , 0 , &hi , &ok
, &Name);//Problem
Please solve my problem.
You can email me at [email protected]
Thankyou very much.
Best regards
Fahad EjazHello,
The problem is that the Name is not initialized (the BSTR is defined as OLECHAR*). Thus, replace the
BSTR Name;
declaration with the following lines:
char buf[1024];
BSTR Name = _bstr_t(buf);
This should solve the problem.
Best Regards,
Silvius
Silvius Iancu -
Problem with CONTAINS function
Hi all!!
i got a problem with contains function. i'm running oracle 11g.
if i execute this query:
SELECT x.lid as id, x.sztitular as titular, e.szname as proName, x.szresumen as resumen, b.sztitle as catName,
f.szname as secName, d.szname as cliName, x.datecreation as datecreation
FROM CPR_PRACTICAL_CASE x,ctg_category b, CPR_CLIENT d, pro_product e, CAT_SECTOR f, CPR_PCASE_PRODUCT g, CPR_PCASE_SECTOR h,
PRO_PRODUCTCATEGORY i WHERE x.lid = g.lpcaseid and e.lid = g.lproductid and x.lid = h.lpcaseid
and f.lid = h.lsectorid and x.lclientid = d.lid and i.lproductid = e.lid and b.lid = i.lcategoryid
AND x.szlocale = 'es-ES' AND x.bavailable = '1'i get 1 row as result with the column sztitular = "rodillos de medidas"
if i only add one more sentece to that query:
AND CONTAINS( x.sztitular, 'rodillos',1) >0the query returns an empty set.. i really don't understand why because the term "rodillos" is present in the row's column called "sztitular"...
i've put an index on that column:
create index ITXT_TITULAR on CPR_PRACTICAL_CASE(sztitular) INDEXTYPE IS CTXSYS.CONTEXT;any help?
many thanks!!!!
Edited by: ElMazzaX on May 21, 2012 5:51 PM
Edited by: ElMazzaX on May 21, 2012 5:53 PMHow are you synchronising the index?
http://docs.oracle.com/cd/E11882_01/text.112/e24435/ind.htm#i1008452
Also see the Oracle Text forum:
Text -
Problem facing in Function module.
Hi friends,
Happy New year to all.
I am facing the problem while crating Function module.
As my requirement:
I need to call this Function module in SAP-BW application area. I am creating this in BW side(SE37).
The intenal table which i am passing to the function module will vary. The structure is not constant.
Data is flowing from one table(source table) to another table(Destination table) . In BW if we want to refer the data in source table in START ROUTINE while loading, we use SOURCE_PACKAGE internal table.
1) I am passing Source_package internal table as ITAB_SOURCE_PACKAGE. (this source_package strucute also not canstant, it will vary)
2) passing second internal table as ITAB1, this structure also vary. I will declare this structure before calling the function module.
In Function module Table tab i given as
PARAMETER TYPE Associated Type
ITAB1 LIKE ANY
ITAB_SOURCE_PACK LIKE ANY
In Import tab:
SOURCEINFOOBJECT pass value
In source code i written as
DATA: WA_SOURCE_PACK like line of ITAB_SOURCE_PACK.
DATA: WA_ITAB1 like line of ITAB1.
LOOP AT ITAB_SOURCE_PACK INTO WA_SOURCE_PACK.
READ TABLE ITAB1 WITH KEY SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT
INTO WA_ITAB1.
IF SY-SUBRC NE 0.
WA_ITAB1-SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT.
INSERT WA_ITAB1 INTO TABLE ITAB1.
ENDIF.
ENDLOOP.
(Note: this is piece of code)
While checking i am getting as error
Field "ANY" is unknown. It is neither in one of the specified tablesnor defined by a "DATA" statement. "DATA" statement. "DATA" statement.
For this what i need to do.
As i am not very good in ABAP, pls help me.
Thanks & Regard
MRKHi,
u have to do like this..decalre itab1 and ITAB_SOURCE_PACK in the tables parameter...
so change like this
In Function module Table tab do like this
PARAMETER TYPE Associated Type
ITAB1
ITAB_SOURCE_PACK
In Import tab:
SOURCEINFOOBJECT pass value
In source code i written as
DATA: WA_SOURCE_PACK type ITAB_SOURCE_PACK.
DATA: WA_ITAB1 type ITAB1.
LOOP AT ITAB_SOURCE_PACK INTO WA_SOURCE_PACK.
READ TABLE ITAB1 WITH KEY SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT
INTO WA_ITAB1.
IF SY-SUBRC NE 0.
WA_ITAB1-SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT.
INSERT WA_ITAB1 INTO TABLE ITAB1.
ENDIF.
ENDLOOP.
Regards,
Nagaraj -
Hi all,
I am getting an error I can't solve until now.. Who can help?
The Default Trace in the EP 7.0/NWA gives the following information:
Severity: Error
Message: Problem in executing function module:[date]:com.sap.mw.jco.JCO$AbapException: (126) ERROR_IN_PDO: ERROR_IN_PDO
Category: /uwl/service
Location: com.sap.netweaver.bc.uwl.core.connect.abap.FunctionModuleActionHandler
Application: sap.com/tcwddispwda
The UWL connection tests are correct! So, who can help!
There is nothing to find in sap notes or sdn forum
Best regards,
G. LeursHi john,
I am also facing hte same issue.
when the user is trying to approve the Compleated shopping cart from the button availble in the UWL preview , I am getting the below error.
Exception type:com.sap.netweaver.bc.uwl.connect.ConnectorException Message:Wed Aug 25 12:16:52 CEST 2010 (Connector) :com.sap.netweaver.bc.uwl.connect.ConnectorException:Wed Aug 25 12:16:52 CEST 2010 (Connector) :com.sap.mw.jco.JCO$AbapException:ERROR_IN_PDO
we are not passing any ABAP role from teh SRM system.
it would be great if you can share your views regarding this.
Raji -
Performance problem with OLE_FLUSH_CALL function module
Hello Everyone,
I am facing problem with OLE_FLUSH_CALL function module (execution is taking long time which is going to be dump error).
Could you please help me in knowing solution for this problem?
Thanking you in advance.
SrinivasHi Srinivas,
the OLE_FLUSH_CALL does an RFC from ABAP backend to frontend UI. So high execution time could result from high network time, for example latency between UI and backend server.
How many UI interaction steps did you measure for the trace above? Ideally, there should only be one OLE_FLUSH_CALL per user interaction step. If its more, the application is not written in an optimized way.
Best Regards, Randolf
Maybe you are looking for
-
After I save my InDesign Document and close it... When I open it back up again. There are borders around all of my Illustrator placed images. I can't seem to find out what is causing them or how to get rid of them. When I am working on the file with
-
Can I use a second monitor and have an extended desktop
Thinking of getting a new imac. Maybe the "20. I was wondering will I be able to hook up a second monitor and be able to either mirror the desktop or have an extended desktop. Will it work in windows? ibook Mac OS X (10.4.7) ibook Mac OS X (10.
-
Materialized View and Ord Media questions
Hey Guys, My first question is on the use and creation of materialized views which i have previously done using TOAD. The question that i have is where/if can i visually see the constraints that are on a materialized view and where is the information
-
Help!! Why wont the recovery media I purchased from HP auto run/auto play when I turn my notebook on? My notebook is an HP pavillion g6.
-
Please Help!!! Dreamweaver CS5.5 Issues
Someone please help. This is my second post. I have a proplem with Dreamweaver CS5.5 CSS panel. When you in the css panel box when you select and add a property, and then tab over to enter the values, all it does is highlight the box. In all previo