With_item linking with fi tables
Hi guys, I am carrying out a requiremnt for Brazil.
I need to print base, rate , tax code and amount all of which have nine types viz inss,ir,pis,confis,csll,iss,funrural,sest,senat.
Now as far as I understand I will have to read bseg with belnr gjahr bukrs and buzei with the same primary keys of with item and then pick up for different tax types. I would like to know is there any way to avoid bseg? can I use bkpf instead ? as my req is for vendor only , but bkpf dosent have buzei. Can anyone explain me the connetion of with_item with fi tables better?
Thanks
BSIK is for Vendor open items, and BSAK for Vendor cleared items.
Similar Messages
-
Dear All,
We have deleted variants in table VARID in order to solve error CKMLRUN112. Error ckmlrun112 in parameters for closing entry definition
But we still get this error in ckmlcp.
Could anyone tell the links with table VARID?
Where we should delete this variants somewhere else too?
With best regards,
Kamila.Sridhar,
While calling the transaction use call transaction tcode using i_bdcdata options from opt message into i_messages.
data: lws_cnt type char2,
lws_field type char15.
LOOP AT i_invoicing_plan INTO wa_invoicing_plan.
lws_cnt = sy-tabix.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = lws_cnt
IMPORTING
output = lws_cnt .
CONCATENATE 'FPLT-AFDAT(' lws_cnt ')' INTO lws_field.
CONCATENATE wa_invoicing_plan-date+6(2)
wa_invoicing_plan-date+4(2)
wa_invoicing_plan-date+0(4) INTO lws_date
SEPARATED BY '.'.
PERFORM bdc_field USING lws_field lws_date.
CONCATENATE 'FPLT-FPROZ(' lws_cnt ')' INTO lws_field.
lws_perct = wa_invoicing_plan-percentage.
CONDENSE lws_perct.
PERFORM bdc_field USING lws_field lws_perct.
ENDLOOP.
While calling the transaction give like this:
<b>DATA: opt TYPE ctu_params.
opt-dismode = 'N'.
opt-updmode = 'A'.
opt-defsize = 'X'.
CALL TRANSACTION tcode
USING i_bdcdata OPTIONS FROM opt MESSAGES INTO i_messages.
LOOP AT i_messages.
ENDLOOP.</b>
Prakash. -
Stored procedure with database link with "from table(...)"
Hi guys,
I've been told I can't create views on a database by the design team and so have to use this stored procedure to obtain the values.
select HAN_ID, HAN_DS, GLOBAL_IN, LOCAL_IN
from table(cast(ODADMIN.ODP00002_QUERY.Execute001@DBLINK(11312,'EN') as
ODADMIN.ODP00002_001_Array@DBLINK)) WHERE LOCAL_IN = 'Y';I've been told that it works when you remove the database links (so on the actual database) when you remove the cast part. I've tried it with my link and with/without the cast part but it doesn't work. With the example above I get the error: ORA-00907: missing right parenthesis.
When I remove the CAST-AS and the additional parenthesis it brings i get the error: ORA-00904: "ODADMIN"."ODP00002_QUERY"."EXECUTE001": invalid identifier
When I do table( *"* ODADMIN.ODP00002_QUERY.Execute001@MWW_DEV(11312,'EN') *"* )... -- wrapping the call in speech marks I get: ORA-00972: identifier is too long
Anyone see what's wrong? Thanks for any help.
MikeHi Ben,
Asking now. By a view I mean one local to the database; I could create one on APEX but then I use the database link twice instead of just 1.
His reasoning Ben:
Firstly, Maintenance. We will have to maintain additional views (at additional code). Secondly, if the view has a JOIN, then you can't update through it (without complexities). If we have to get the View to pass the data to a Procedure (that's a pain). Also, standards..
All update occur via either a Procedure, or a Base view, across over 1000 tables
That's the standard, and doing things differently is costly long term
People will not know how it works, it will have to be explained, maintained..etc.
If the Application has the Business Rules, then updates via Base Views, that's a more standard way of developing. Also, if you update via this view, you'll update multiple rows in one call, which is in-effficient if only ONE row needs to change. Therefore, single row updates from the Application is more efficient
The procedure is as follows:
--SET SERVEROUTPUT ON
DECLARE
nPBusLoc NUMBER(5):=11312;
sPHanId VARCHAR2(3):='SB1';
sPLngId VARCHAR2(2):='EN';
sPDesc VARCHAR2(30);
sPAllowAlloc VARCHAR2(1);
sPShowEnq VARCHAR2(1);
sPAllowDel VARCHAR2(1);
sPShowScan VARCHAR2(1);
sPGlobalLocal VARCHAR2(1);
sPReturnCd VARCHAR2(2);
sPReturnTx VARCHAR2(100);
BEGIN
ODADMIN.ODP00001.getHandlingCodes
(nPBusLoc -- IN NUMBER
,sPHanId -- IN VARCHAR2
,sPLngId -- IN VARCHAR2
,sPDesc -- OUT VARCHAR2
,sPAllowAlloc -- OUT VARCHAR2
,sPShowEnq -- OUT VARCHAR2
,sPAllowDel -- OUT VARCHAR2
,sPShowScan -- OUT VARCHAR2
,sPGlobalLocal-- OUT VARCHAR2
,sPReturnCd -- OUT VARCHAR2
,sPReturnTx -- OUT VARCHAR2
DBMS_OUTPUT.PUT_LINE('nPBusLoc = '||nPBusLoc );
DBMS_OUTPUT.PUT_LINE('sPHanId = '||sPHanId );
DBMS_OUTPUT.PUT_LINE('sPLngId = '||sPLngId );
DBMS_OUTPUT.PUT_LINE('sPDesc = '||sPDesc );
DBMS_OUTPUT.PUT_LINE('sPAllowAlloc = '||sPAllowAlloc );
DBMS_OUTPUT.PUT_LINE('sPShowEnq = '||sPShowEnq );
DBMS_OUTPUT.PUT_LINE('sPAllowDel = '||sPAllowDel );
DBMS_OUTPUT.PUT_LINE('sPShowScan = '||sPShowScan );
DBMS_OUTPUT.PUT_LINE('sPGlobalLocal = '||sPGlobalLocal );
DBMS_OUTPUT.PUT_LINE('sPReturnCd = '||sPReturnCd );
DBMS_OUTPUT.PUT_LINE('sPReturnTx = '||sPReturnTx );
END;
/Mike
Edited by: Dird on 27-Aug-2009 01:50 -
BI - ABAP To pick the field from One table and link with 2nd table
Hello, I am stuck to write the correct abap code. Requirement is that My Client BMW California require the below:
<b>1.</b> list of invoices (BELNR) that a has tcode = FB01 and FBVB" from Table BKPF. Account Number field (BELNR) is there in 0fiap_4 Data source
<b>2.</b> Now Link the above invoice Number (BELNR) that a has tcode = FB01 and FBVB" from Table BKPF to BMW Custom Table I_BMW_WI. - Field "PAT ID" which is the cocatenation of OBJNR (Object Number), Invoice Number and Purchase Year. where PICK only thos PAT ID where "TYPEID" Value = "BMW" in table I_BMW_WI.
To solve Number 1 Please fix my abap code and help me to write the Code to Solve Number 2 and Link #1 AND #2.
Please help me soon
Code # 1
case I_datasource.
WHEN '0FI_AP_4'.
loop at C_t_data into l_s_DTFIAP_3.
l_tabix = sy-tabix.
clear I_BMW_WI.
if sy-subrc = 0.
select single * from BKPF into I_BKPF where BELNR = l_s_DTFIAP_3-BELNR.
LOOP AT I_BKPF into I_FINAL WHERE
Code below is not working
(I_BKPF-TCODE = FV50) OR (I_BKPF-TCODE = FB01)
I_FINAL-BELNR = I_BKPF-BELNR
modify I_FINAL.
endloop
modify C_t_data from l_s_DTFIAP_3 index l_tabix.
endif.
endloop.
endcase
Code # 2 -
Please help with templates.
Thanks
Soniya KapoorHi,
Ad Code #1
First of all the key for BKPF consists of:
BUKRS, BELNR and GJAHR so I think you should use all key fields in your SELECT statement:
select single * from BKPF into I_BKPF
where BUKRS = l_s_DTFIAP_3-BUKRS and
BELNR = l_s_DTFIAP_3-BELNR and
GJAHR = l_s_DTFIAP_3-GJAHR.
And why do you test SY-SUBRC after CLEAR ?
Your IF statement should be after SELECT...
And last but not least when you are using SELECT SINGLE you always get only one record so what is the purpose of LOOP statement ?
Try following code:
case I_datasource.
WHEN '0FI_AP_4'.
loop at C_t_data into l_s_DTFIAP_3.
l_tabix = sy-tabix.
select single * from BKPF into I_BKPF
where BUKRS = l_s_DTFIAP_3-BUKRS and
BELNR = l_s_DTFIAP_3-BELNR and
GJAHR = l_s_DTFIAP_3-GJAHR.
if sy-subrc = 0.
if (I_BKPF-TCODE = FV50) OR
(I_BKPF-TCODE = FB01).
I_FINAL-BELNR = I_BKPF-BELNR
modify I_FINAL.
endif.
modify C_t_data from l_s_DTFIAP_3 index l_tabix.
endif.
endloop.
endcase.
regards
Krzys -
Hi,
I am trying to solve an issue I am having with reports created with free hand sql in BO 6.1 in BO Xi. I want to create a derived table that will contains the extra data that I need. after I create the derived table, do I need to create all the links from the original tables because I do want that new table to behave like to original ones.
BrianFreehand SQL , you are making in BO XI as Derived Table, correct??
As I told you, if you want then you can join those to derived tables, no issues. I also did joining tables to Derived tables to work with Inline Views. My queries has Inner join on two tables based on one more inner join with in those.
I used Derived table for Inner INNER join and joined that derived table with other objects.
In Report, you can use both of them same time.
Is it clear or am I missing ??
Thank You!!
Edited by: BOCP-BOE on Oct 1, 2010 1:47 AM -
Source(oracle 11g) with oracle 8i using db link with full table scan
Hi,
I'm using oracle 8i version and i'm facing some issue while using DBlinks.
SourceDB1 I'm using oracle 8i(Source)
select * from tab1
tabl where id in
(select id from stab1@SourceDB1 where updt_seq_num > 167720 and work_grp_id in (2900,2901))
For this, I could able to retrive the data.
but, today we have migrated one of our source from oracle 8i to oracle 11G
when I'm executing
select * from tab2
tabl where id in
(select id from stab2@SourceDB2 where updt_seq_num > 167720 and work_grp_id in (2900,2901))
we couldn't able to retrive data as it's scaning full table scan.
when oracle 8i source it's scanning using INDEX scan but if the source oracle 11 h it's scanning full table scan.
Could you please advise how to resolve this issue for source oracle 11i ?
Please let us know, if you need any information.Blocks that are read via full table scans are stored in the buffer cache, but putting them at the MRU end ensures that they don't push the rest of the useful blocks out of the buffer cache. In your example, if you're full scanning a 2 GB table (T) with a 500 MB buffer cache, the first block that is read from T is put at the MRU end of the buffer cache, displacing the previous block that was at the MRU end of the cache. The next block that is read from T is also put at the MRU end of the buffer cache, displacing the previous block that was at the MRU end of the cache, so block #2 from T displaces block #1 from T. So, you're reading 2 GB of data, but you're constantly purging the older blocks, so you're only really using that last block of the buffer cache.
Justin -
SAP script linking with internal table
Hi all,
This is my program to print invoices
REPORT z_g_test.
TABLES: sbook.
DATA sflights_wa TYPE sflights.
DATA: itcpo LIKE itcpo.
DATA itcpp LIKE itcpp.
DATA sflights_itab TYPE TABLE OF sflights WITH HEADER LINE.
DATA sbook_itab TYPE TABLE OF sbook WITH HEADER LINE.
*SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE text-001.
*SELECT-OPTIONS: s_carrid FOR sflights-carrid,
* s_fldate FOR sflights-fldate.
*SELECTION-SCREEN END OF BLOCK 1.
SELECTION-SCREEN BEGIN OF BLOCK 2 WITH FRAME TITLE text-002.
SELECTION-SCREEN COMMENT 1(79) text-004.
SELECT-OPTIONS: s_custid FOR sbook-customid,
s_bookid FOR sbook-bookid.
SELECTION-SCREEN END OF BLOCK 2.
INITIALIZATION.
s_custid-low = 00001721.
APPEND s_custid.
START-OF-SELECTION.
SELECT * FROM sbook INTO sbook_itab WHERE customid IN s_custid.
* APPEND sbook TO sbook_itab.
APPEND sbook_itab.
ENDSELECT.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
* APPLICATION = 'TX'
* ARCHIVE_INDEX =
* ARCHIVE_PARAMS =
device = 'PRINTER'
dialog = 'X'
form = 'ZG_SCRIPT'
language = sy-langu
OPTIONS = itcpo
* MAIL_SENDER =
* MAIL_RECIPIENT =
* MAIL_APPL_OBJECT =
* RAW_DATA_INTERFACE = '*'
* SPONUMIV =
* IMPORTING
* LANGUAGE =
* NEW_ARCHIVE_PARAMS =
* RESULT =
EXCEPTIONS
canceled = 1
device = 2
form = 3
OPTIONS = 4
unclosed = 5
mail_options = 6
archive_error = 7
invalid_fax_number = 8
more_params_needed_in_batch = 9
spool_error e = 10
codepage = 11
OTHERS = 12
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 'WRITE_FORM'
EXPORTING
element = 'MY_ELEMENT'
function = 'SET'
type = 'BODY'
window = 'MAIN'
* IMPORTING
* PENDING_LINES =
EXCEPTIONS
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
bad_pageformat_for_print = 7
spool_error = 8
codepage = 9
OTHERS = 10
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 'CLOSE_FORM'
IMPORTING
RESULT = itcpp
* RDI_RESULT =
* TABLES
* OTFDATA =
EXCEPTIONS
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
codepage = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
My question is! i am not passing the internal table any where. Now i am trying to print the values which is already existed in internal table,so iam not getting the out put. Now what shall i do in order to get output.
Regards,
LisaHi all,
the modified code is like this.
REPORT z_g_test.
TABLES: sbook.
DATA sflights_wa TYPE sflights.
DATA: itcpo LIKE itcpo.
DATA itcpp LIKE itcpp.
DATA sflights_itab TYPE TABLE OF sflights WITH HEADER LINE.
DATA sbook_itab TYPE TABLE OF sbook WITH HEADER LINE.
*SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE text-001.
*SELECT-OPTIONS: s_carrid FOR sflights-carrid,
* s_fldate FOR sflights-fldate.
*SELECTION-SCREEN END OF BLOCK 1.
SELECTION-SCREEN BEGIN OF BLOCK 2 WITH FRAME TITLE text-002.
SELECTION-SCREEN COMMENT 1(79) text-004.
SELECT-OPTIONS: s_custid FOR sbook-customid,
s_bookid FOR sbook-bookid.
SELECTION-SCREEN END OF BLOCK 2.
INITIALIZATION.
s_custid-low = 00001721.
APPEND s_custid.
START-OF-SELECTION.
SELECT * FROM sbook INTO sbook_itab WHERE customid IN s_custid.
* APPEND sbook TO sbook_itab.
APPEND sbook_itab.
ENDSELECT.
CALL FUNCTION 'OPEN_FORM'
EXPORTING
* APPLICATION = 'TX'
* ARCHIVE_INDEX =
* ARCHIVE_PARAMS =
device = 'PRINTER'
dialog = 'X'
form = 'ZG_SCRIPT'
language = sy-langu
OPTIONS = itcpo
* MAIL_SENDER =
* MAIL_RECIPIENT =
* MAIL_APPL_OBJECT =
* RAW_DATA_INTERFACE = '*'
* SPONUMIV =
* IMPORTING
* LANGUAGE =
* NEW_ARCHIVE_PARAMS =
* RESULT =
EXCEPTIONS
canceled = 1
device = 2
form = 3
OPTIONS = 4
unclosed = 5
mail_options = 6
archive_error = 7
invalid_fax_number = 8
more_params_needed_in_batch = 9
spool_error e = 10
codepage = 11
OTHERS = 12
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 sbook_itab.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
element = 'MY_ELEMENT'
function = 'SET'
type = 'BODY'
window = 'MAIN'
* IMPORTING
* PENDING_LINES =
EXCEPTIONS
element = 1
function = 2
type = 3
unopened = 4
unstarted = 5
window = 6
bad_pageformat_for_print = 7
spool_error = 8
codepage = 9
OTHERS = 10
ENDLOOP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = itcpp
* RDI_RESULT =
* TABLES
* OTFDATA =
EXCEPTIONS
unopened = 1
bad_pageformat_for_print = 2
send_error = 3
spool_error = 4
codepage = 5
OTHERS = 6
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
even though i am not getting the output.
The question is with out passing the internal table how we will get the output from it?. -
Find the idoc segment link with Sap Table
Dear Abaers,
I am new to Idoc. i have one Idoc (Orders01) for creating sales order.
I had seen the t-codes WE 30 and WE 60 to know the field description.
The fielddescription shows names like name1 name2 ort01 etc.
i want to know what are the db tables involved for that particular idoc segment.
Thanks in Advance,
AratiHi Arati,
to get the description name:
WE30 transaction and check the segments name available.
With the segment name, go to WE31 and check the fields used and column 'Data element'.
Double-click in data element (or inform in se11), you have the description value of the field.
About the tables involved:
Click in 'Where use list' os this data element. -
To find the tables which is having link with particular table.
hi all,
i am working on db 10g.
i have table called JOB_HEADER
My task is to delete the data in the job_header table.
Before doing this task, i want to know which are the tables referencing this particular table.
in other words i have to delelete child records first then i have to delete the above said table.
is there any way to know the child table existance for this particular parent table?
Thanks..GD wrote:
hi all,
i am working on db 10g.
i have table called JOB_HEADER
My task is to delete the data in the job_header table.
Before doing this task, i want to know which are the tables referencing this particular table.
in other words i have to delelete child records first then i have to delete the above said table.
is there any way to know the child table existance for this particular parent table?
Thanks..If there is properly declared referrential integrity declared then yes.
select *
from all_constraints
where r_constraint_name = (select constraint_name from all_constraints where table_name = 'JOB_HEADER' and constraint_type = 'P')
and constraint_type = 'R'Should do it.
Cheers, -
Need table name to link with mseg or ekko ekpo
hi ppl,
As i need to display mat charasteristics value,class,material id,vendor..etc..
i got mat char values,class,material id..but furthur i need to link with mseg table..so is there any table which links between mseg to ausp,kssk,ksml,susp..etc..HI.
mseg to ausp by field ATZHL,
kssk and ksml no link with MSEG.and susp is not a table ,check it out.
REgards.
jay -
Dear All
can you tell me the relation link with
BSIK table and EKKO table.
note that purchase order no (EBELN) not often stored
in BSIK table
actual i need the payment terms as per PO and need to create the report of creditor aging so please any buddy can help me?Hi
Well if you want to know the relation ship between two tables
1. Execute SQVI
2. Enter name and press CREATE
3.Enter Title and in Data Source select TABLE JOIN.and enter
4.Press Shift + F1 ans enter the table name.
continue the step 4 and enter the table names for which you want to know the relation ship.
EKKO-BUKRS -------- BSIK-BUKRS
EKKO-LIFNR----------- BSIK-LIFNR
EKKO-AEDAT--------- BSIK-AUGDT
EKKO-EBELN--------- BSIK-EBELN
I hope this will help you
Regards
Pavan -
Slow Query over Database Link with Bind Variable
I have a query over a DB link, with all tables on the remote database.
If I use a bind variable (from Toad), the query takes 4 minutes. If I replace the bind variable with a constant or substitution variable, it takes 1 second.
The query runs fine when run directly on the remote database using bind variable.
9.2.0.7Look up "Bind variable peeking"
What's happened is you have an execution plan that differs from the one with the constant. Why? My bet is that Oracle "peeked" at the bind variable to help it decide which execution plan to build. It then cached it. It probably cached an execution with an index when it should be doing a full table scan or a hash join instead of a nested loop. It's hard to say specifically what it is.
Try this, flush your shared pool and rerun the query with the bind and let us know if it takes 1 second or 4 minutes. If it takes 1 second, then that was probably it.
Read part 2 of Tom Kyte's blog post on what it is and it's behavior.
http://tkyte.blogspot.com/2007/09/sqltracetrue-part-two.html -
Can I Select from table skipping extents linked with lost datafiles?
Hi~,
I need your help to recover my database.
I'm using oracle 9.2.0.8 at Fedora 3 with no-archive mode.
and I don't have any backup.
Last night, I experenced hard disk failure.
I tried OS-level recovery, but I lost some datafiles of tablespace.
anyway, I wanted to recover my database without data of lost datafiles.
so, I issued "alter database datafile offline drop" and
start oracle instance.
But, datafiles were not removed from dba_data_files view and
extents linked with lost datafiles were not removed from dba_extents view!
Selecting query of some table containing extents linked with lost data files,
I got "ORA-00376: file xxx cannot be read at this time" message.
So, my question is that..
HOW CAN I SELECT FROM THAT TABLE WITHOUT SCANNING EXTENTS LINKED WITH LOST DATA FILES?
Thanks.Hi,
Without being in archivelog and without backup, one can't do any sort of recovery. That's why backups and archivelog are so so important.
The offline data file command never does actually drop the datafile. It merely indicates to the control file that now the said tablespace will also be dropped. This won't update any view that the files are not supposed to be used or shown to you anymore.
This is what documentation says about the recovery of the database in the NoARch mode,
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/osrecov.htm#i1007937
You do need a backup in order to get those tables being read. Oracle doesn't have any feature which can offline/skip the missing extents for you and let you read the data without them.
HTH
Aman.... -
Crystal Report linked to a table with filter attached
I have a Crystal Report based on 2 tables and I want it to display every incident in the incident table and to pull the truckID of the
first truck on the scene from the truck table . So the finished product should look like this…
IncidentID IncidentNum ResponseTime First Arriving Truck Disctict
1x44452 1258ab55 5:32 B8 2
*The first arriving truck is the truck in the Truck Table with the same IncidentID and the earliest ArrivalTime. There will be multiple trucks for each incident but I want it to only show the one that arrived first (ArrivalTime). So one line per incidentID.
Incident Table
IncidentID
IncidentNum
ResponseTime
District
Truck Table (Will contain many trucks for one incident with the following info
Truckkey
IncidentID (Link to Incident Table)
ArrivalTime
TruckID
I figure I probably need to build a formula with the min function or perhaps an OnCommand – I’m just not sure.
The biggest issue is the overall report has 4 filter settings. They can select a date range, a location, an incident type and a range for the response time. So I do this with the Select Expert
I can get all of that to work except I cannot figure out how to get it to pull the First Arriving Truck without duplicating the incident
line. Also, if there is a Truck with an ArrivalTime of Null I want it to ignore that Truck Table record.
Can anyone help???Hi Debbie,,
You may try this:
1) Go to the Group Expert > Create a Group on the 'Incident ID' field from the Incident Table
2) Insert a summary on the 'Arrival Time' field and place the field on the Group Footer
3) Move all the fields from the Details section to the Group Footer
4) Go to the Group Selection Formula (Report > Selection Formulas > Group) and use this code:
{Truck.ArrivalTime} = Minimum({Truck.ArrivalTime}, {Incident ID})
5) Suppress the Details Section
-Abhilash -
ORA-06502: error when inserting into table via db link with long datatype
Folks,
I am getting the following error:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small.
This occurs when an insert is done via a database link into a table that has a LONG data type for one of the columns, and the string contains some carriage returns and or line feeds.
I have checked by removing the db link, and inserting into a local table with identical column data types, where there is no error.
So this might be another db link bug?
So I need to remove the carriage returns and/or line feeds
in my pl/sql block in the page process. I have tried
l_text := REPLACE(l_text, CHR(10), ' ');
l_text := REPLACE(l_text, CHR(13), NULL);
but still getting the ORA-06502. Would really appreciate some advice here, please.
Cheers
KIMScott,
Time to 'fess up':
My fault sorry, the error was coming from another page process where I had allowed insufficient string length for one of the variables, and my error message did not identify the page process clearly.
This leads me to make a request for future releases, could the system error messages state which page process caused the problem?
One other thing I notice, and this might be a feature not a fault, the page processes are numbered: "Page Process: 3 of 5". However process 3 is not the 3rd one to be processed, and probably refers to the order in which they are created. Should the number reflect the process order?
Cheers
KIM
Maybe you are looking for
-
Logic taking too much time to execute
Dear Friends, My i_bkpf internal table has approx. 3 lakh records another table i_del has 2 lakh records. I have to delete these 2 lakh records of i_del from i_bkpf. I'd written the following piece of code for the same but it takes hell lot of time a
-
My MacBook Pro won't turn on, only a white screen with spinning circle, I've only had it a few weeks! Any ideas what is going on?
-
About generating an EXPLAIN plan
What is its use?
-
Availability Metric definition
What metric type/data do I need to define to have Oracle use it for it's "availability metric"? I've defined a simple target, but OEM can't find it's availability status. It reports "Availability metric not found for target ...." Do I have to name it
-
Anchoring multiple Guest SSIDs to the same WLC
Hi All, I've currently got a typical 'anchored' Guest WLAN solution where several WLCs tunnel guest traffic back to an isolated WLC for WebAuth - this all works fine using a mix of 5508 / 4400, all on v7.0.98.0 code. The question is, can I add a seco