Multiple records in 0FI_GL_06 Cube for single key
Hi,
We have observed that after running f.16 (GL Balance CarryForward)program in R/3, those records are inserted into BW instead of updating the existing records for the key (Financial Year/PeriodBusiness AreaGl Code). This
resulting in multiple records in BW, resulting errors in Balance Sheet & Trial Balance.
The data target is 0FIGL_O06
Note 741829 tells about errors in R/3 updation routine. But, those symptoms are not visible in present case (creation of null records for current fiscal), but these information get updated in BW.
Has anybody encountered such an issue ? or any solutions ?
Regards,
Vijay
Message was edited by: Vijay Badgeri
Hi Raj,
As Arun already explained why there are multiple records.......I just want to add one point........that always remember that delta means changes........and from DSO to cube........in Data Marting always takes place from Change Log Table of the ODS..........and Change Log table keeps track of all changed records........
Active Table
XXX 100
Change Log Table
XXX 100
Suppose a new record come............
In Active table data will be Overwritten....
XXX 200
Change Log Table
XXX 100
XXX -100
XXX 200
So for each changed entry.................In Change Log table there will be two entry............
So this is the reason............
Regards,
Debjani.........
Similar Messages
-
Multiple record created in Cube
Hi BI Expert,
I have got a DSO and it's passing data to infocube. When it passes data, the cube generates multiple records. I am using the following code and this was originally written by BI consultant.
PROGRAM UPDATE_ROUTINE.
$$ begin of global - insert your declaration only below this line -
TABLES: /bic/azo_sop_100,
/bic/aZO_POP_100,
/bic/azo_pop0600,
/BIC/AZO_PRE_100,
/BIC/AZO_SBP_100,
/BIC/AZO_SDP_100.
DATA: in TYPE f,
out TYPE f,
denom TYPE f,
numer TYPE f,
vc_df_preq type /BI0/OIDF_PREQ.
Def. of 'credit-documents': following doc.categ. are 'credit docs'
return order (H)
credit memo (K)
Credit-documents are delivered with negative sign. Sign is switched
to positive to provide positive key-figures in the cube.
The combination of characteristics DE_CRED and DOC-CLASS provides
a comfortable way to distinguisch e.g. positive incoming orders or
order returns.
Def. der 'Soll-Dokumente': folgende Belegtypen sind 'Soll-Belege'
Retoure (H)
Gutschriftsanforderung (K)
Soll-Dokumente werden mit negativem Vorzeichen geliefert. Um die Kenn-
zahlen positiv in den Cube zu schreiben, wird das Vorzeich. gedreht
Die Kombination der Merkmale DEB_CRED und DOC-CLASS gibt Ihnen die
Möglichkeit schnell z.B. zwischen Auftrags-Eingang oder Retouren zu
unterscheiden.
DATA: deb_cred(2) TYPE c VALUE 'HK'.
DATA: quot(1) TYPE c VALUE 'B'.
CONSTANTS: c_msgty_e VALUE 'E'.
Variable declarations for
derivation of Fiscal week {by SB:18.10.2007}
DATA: lv_createdon TYPE /bi0/oicreatedon,
lv_period LIKE t009b-poper,
lv_year LIKE t009b-bdatj,
lv_fiscweek TYPE /bi0/oicalweek,
w_vendor like /BIC/AZO_POP_100-VENDOR.
Deriving Master Data Attribute (0MRP_CONTRL)
from 0MAT_PLANT {by SB:18.10.2007}
Hashed table declaration for 0MAT_PLANT master data
*DATA: it_mat_plant
TYPE HASHED TABLE OF /bi0/pmat_plant
WITH UNIQUE KEY plant mat_plant
INITIAL SIZE 0.
$$ end of global - insert your declaration only before this line -
FORM compute_data_field
TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
USING COMM_STRUCTURE LIKE /BIC/CS8ZO_SOP_5
RECORD_NO LIKE SY-TABIX
RECORD_ALL LIKE SY-TABIX
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
CHANGING RESULT LIKE /BIC/VZIB_SOP_1T-SUBTOT_1S
RETURNCODE LIKE SY-SUBRC
ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
$$ begin of routine - insert your code only below this line -
DATA: VALUE LIKE COMM_STRUCTURE-NET_VALUE.
DATA: US_RATE_TYPE LIKE COMM_STRUCTURE-RATE_TYPE.
CLEAR RESULT.
IF NOT COMM_STRUCTURE-SUBTOTAL_1 IS INITIAL AND
COMM_STRUCTURE-DOC_CURRCY NE COMM_STRUCTURE-STAT_CURR.
US_RATE_TYPE = COMM_STRUCTURE-RATE_TYPE.
IF US_RATE_TYPE EQ SPACE.
US_RATE_TYPE = 'M'.
ENDIF.
ENDIF.
IF COMM_STRUCTURE-DOC_CURRCY NE COMM_STRUCTURE-STAT_CURR.
CALL FUNCTION 'CONVERT_TO_STAT_CURRENCY'
EXPORTING
DATE = COMM_STRUCTURE-ST_UP_DTE
DOCUMENT_AMOUNT = COMM_STRUCTURE-SUBTOTAL_1
DOCUMENT_CURRENCY = COMM_STRUCTURE-DOC_CURRCY
LOCAL_CURRENCY = COMM_STRUCTURE-LOC_CURRCY
STAT_CURRENCY = COMM_STRUCTURE-STAT_CURR
LOCAL_RATE = COMM_STRUCTURE-EXCHG_RATE
STAT_RATE = COMM_STRUCTURE-EXCHG_STAT
LOCAL_TYPE_OF_RATE = US_RATE_TYPE
STAT_TYPE_OF_RATE = US_RATE_TYPE
IMPORTING
STATISTICAL_AMOUNT = VALUE
EXCEPTIONS
LOCAL_RATE_NOT_FOUND = 1
STAT_RATE_NOT_FOUND = 2.
CASE SY-SUBRC.
WHEN 0.
RESULT = VALUE.
RETURNCODE = 0.
WHEN 1.
CLEAR MONITOR.
MONITOR-msgno = '005'.
MONITOR-msgid = 'SDBW'.
MONITOR-msgty = c_msgty_e.
MONITOR-msgv1 = COMM_STRUCTURE-DOC_NUMBER.
MONITOR-msgv2 = COMM_STRUCTURE-ST_UP_DTE.
MONITOR-msgv3 = COMM_STRUCTURE-DOC_CURRCY.
MONITOR-msgv4 = COMM_STRUCTURE-LOC_CURRCY.
append MONITOR.
RETURNCODE = 4.
WHEN 2.
CLEAR MONITOR.
MONITOR-msgno = '006'.
MONITOR-msgid = 'SDBW'.
MONITOR-msgty = c_msgty_e.
MONITOR-msgv1 = COMM_STRUCTURE-DOC_NUMBER.
MONITOR-msgv2 = COMM_STRUCTURE-ST_UP_DTE.
MONITOR-msgv3 = COMM_STRUCTURE-DOC_CURRCY.
MONITOR-msgv4 = COMM_STRUCTURE-STAT_CURR.
append MONITOR.
RETURNCODE = 4.
ENDCASE.
ELSE.
RESULT = COMM_STRUCTURE-SUBTOTAL_1.
ENDIF.
IF COMM_STRUCTURE-DOC_CATEG CA DEB_CRED.
RESULT = RESULT * ( -1 ).
ENDIF.
If the order type is 'Returns' or 'Credit Memo' then the figure will be changed to positive value. But the cube has got both negative and positive value for the order line.
Order line PO no. 0COST 0CML_OR_QTY
89576 10 925401 130.60 1
89576 10 925401 -130.60 1-
Could you please help me as to how I can resolve this issue?
Thanks.
Edited by: Bhai Basnet on Mar 7, 2008 11:58 AMHi,
the code you provided does not duplicate records.
Most probably the records are duplicated in the start routine, or the key figure is copied in the update rule (so you get 0AMOUNT en 0AMOUNT_01).
So I'd check your start routine and take a look if the key figures are copied. -
Multiple records to be created for multiple values in a field
I am having a requirement in which i will have multiple values for a field.The values are seperated by commas.I need a record to be created for each value.(eg: if there are 4 values i need 4 records to be created). Any one please help me out.
Hi !
You can try solve it at File Content Conversion level, by specifing your value separator as the endSeparator.
Or you can import all values as a unique record and then solve it via graphical mapping, using an advanced UDF, where you receive N records, then inside the UDF, you split the values via its separator and create new array values (one for each input value after splitting) and output that array to be used to fill destination structure.
Regards,
Matias. -
Re: Issue with multiple records loading into cube
Hello Gurus,
A report is run on a monthly basis for Billing commissions. Info cube has all the data related to the Billing commission.
It has a custom field for total commissions for which the data gets populated from the DSO based on the Billing
document conditions. Look up has been done for the total commissions field. Most of them are showing up
the right values, but few billing documents are showing up the wrong values.
I made an attempt by reloading the effected Billing documents into Info cube, now the code works and
total commissions are showing up right values. I tried selective deletion and loaded the data for the whole month,
the billing documents again show up the wrong values. These billing documents show up the right values when
they are loaded individually.I tried checking if the code was wrong, but it was working when the effected ones
are loaded individually. Please let me know your suggestions on this. Thanks in advanceNanda,
Please find the start routine below
Z9SD_O21 = Billing document header
L_ZUARC like /BIC/AZ9SD_O2300-INV_QTY,
L_ZUART like /BIC/AZ9SD_O2300-KPRICE,
L_ZCGU like /BIC/AZ9SD_O2300-KNVAL,
L_ZCTU like /BIC/AZ9SD_O2300-KNVAL,
L_ZCNU like /BIC/AZ9SD_O2300-KNVAL,
L_ZCQU like /BIC/AZ9SD_O2300-KNVAL,
FORM SELECT_POST_ST
USING COMM_BILL_NUM LIKE /BIC/AZ9SD_O2100-DOC_NUMBER.
* COMM_BILL_DATE LIKE /BIC/AZ9SD_O2100-BILL_DATE.
IF COMM_BILL_NUM <> /BIC/AZ9SD_O2100-DOC_NUMBER.
* OR COMM_BILL_DATE <> /BIC/AZ9SD_O2100-BILL_DATE.
CLEAR /BIC/AZ9SD_O2100.
SELECT SINGLE DOC_NUMBER /BIC/ZPOST_ST
INTO (/BIC/AZ9SD_O2100-DOC_NUMBER,
* /BIC/AZ9SD_O2100-BILL_DATE,
/BIC/AZ9SD_O2100-/BIC/ZPOST_ST )
FROM /BIC/AZ9SD_O2100 WHERE
DOC_NUMBER = COMM_BILL_NUM.
ENDIF.
ENDFORM. "SELECT_POST_ST
*$*$ end of global - insert your declaration only before this line *-*
* The follow definition is new in the BW3.x
TYPES:
BEGIN OF DATA_PACKAGE_STRUCTURE.
INCLUDE STRUCTURE /BIC/CS8Z9SD_O24.
TYPES:
RECNO LIKE sy-tabix,
END OF DATA_PACKAGE_STRUCTURE.
DATA:
DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
WITH HEADER LINE
WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
FORM startup
TABLES MONITOR STRUCTURE RSMONITOR "user defined monitoring
MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
DATA_PACKAGE STRUCTURE DATA_PACKAGE
USING RECORD_ALL LIKE SY-TABIX
SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
*$*$ begin of routine - insert your code only below this line *-*
* fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
* to make monitor entries
* if abort is not equal zero, the update process will be canceled
* DELETE DATA_PACKAGE WHERE STORNO = 'X'.
* DELETE DATA_PACKAGE WHERE /BIC/ZPSTAS = 'A'.
* CG: 07/02/07 Assign Summarization group for each partner function
* based on Master Data.
DATA: LV_LINES TYPE I.
DATA: LV_RETURN(1).
DESCRIBE TABLE DATA_PACKAGE LINES LV_LINES.
IF LV_LINES > 0.
CLEAR: LV_RETURN, SY-SUBRC.
CALL FUNCTION 'Z_FIND_SUM_GROUP_2'
IMPORTING
MY_RETURN = LV_RETURN
TABLES
IT_DATAPACKAGE = DATA_PACKAGE
EXCEPTIONS
GENERAL_ERROR = 1.
ENDIF.
ABORT = 0.
*$*$ end of routine - insert your code only before this line *-*
ENDFORM. -
IBook G4 – multiple characters show up when a single key is pressed
My iBook G4 was recently in a fire at my apartment. I lost everything but my laptop happened to be lying on the floor and was undamaged by heavy amounts of smoke and soot. I cleaned the exterior of the iBook up with a soft damp cloth. I used this on the keypad as well.
After the fire and cleanup the keyboard is acting erratic. When I press "p" for example I get an input of "p0-" or "p[9" Obviously multiple keys are being pressed down at once but there isn't any particles or trash in the keys as far as I can tell. I've lifted out the keypad and blown it out (with my lungs) and have yet to purchase any compressed air to try this method further.
The strange thing is that sometimes the keyboard works just fine. Moments later, however, multiple keys will begin being pressed.
Has anyone had this issue?
As a side note, does anyone have any hints on removing the smoke smell from an apple product (white plastic) that's been in a house fire?
Thanks in advance,
JenkinYou say it wasn't damaged in the fire, but it sounds like it's possible that the heat maybe "welded" the 2 top rows' keys together, or did it get wet when the fire was being put out? It's possible that a new keyboard might fix the problem, but you should look first at the cable that connects it and inspect it for damage.
Take the keyboard out and see if you can see something catching when you press the QWERTY keys. Also using compressed air to blow it out would be worth a try. -
Multiple data sources and cubes for mining
We have two data sources:
1 - OLTP database for transactional operations
2 - Data Warehouse for analysis
We use change data capture to track changes in the OLTP and upload to DW each night.
Currently, we have one cube built on top of our DW for analysis and KPI's etc
However, if we wish to use the OLTP DB for data mining, can this done in the same solution using a new data source or do we need to create a new cube etc?Hi Darren,
According to your description, you are going to use the OLTP DB for data mining, what you want to know is can this done in the same solution using a new data source or do we need to create a new cube?
In your scenario, if the cube structure for data mining is same as original cube, then you needn't create anything, just edit the connection of the data source to point to the OLTP database. If the cube structure for data mining is not same as original
cube, then I am afraid you need to create a new cube.
Regards,
Charlie Liao
TechNet Community Support -
Multiple Partner Fucntions- Pop UP for Single Partner Funtion
Hi Gurus,
Agent Name from the Partner functions to be displayed in Sale order.
The requirement is to display the Agent name in the Sale order- Permanently or atleast Pop UP:
when we add more than one SA (agents Partner function) as parnter function in Customer Master. we get pop up to select the one of the SA partner function(i.e. Agent). Can this be made logic to bring even though only one parnter fucntion SA (Agent) is assigned in the partner functions for a particular Customer?
Thanks in Advance.
Regards
SRIHi Sri,
The logic is that, the pop up screen is there to enable users to select one of many partner functions. For example, a customer may use different transporters, so we enter all these possible transporters in the customer master.
When a sales order is created, the system prompts the user to select the right transporter.
If only one transporter exists in the customer master, there is no need to chose the right one because only one exists. SO the system defaults this one to the sales order.
The whole principle is what is assigned to the customer master, because if not assigned to the CM it cannot be entered in the sales documents at all,. -
How to store multiple records for one master reocrd using sequnce
dear,
my question is in one form i have master block f and detail block.
my question is i created one sequence and assign to master table. but i dont know how to assign that sequence to multiple record in detail table for that particular master record. i got lots of answer previously but i m not getting exactly.pls tell me full procedure otherwise gv me one demo application
NOTe: the sequnce is created after master record commiting to database.
PLS pls help me
Thanks
dambyi did not get answer pls help me.
-
Multiple record insert problem in Oracle Procedure that uses a cursor
Dear X-pert guies,
I have a oracle procedure that use a cursor, I repeatedly make query on 1st table using cursor value and insert that queried value(of 1st table) to 2nd table
y_summary. y_summary has composite primary key :PK_Y_SUM (BILL_DATE, TRUNK_MGR, IDD_FLAG, PK_FLAG, PREFIX).*
when i run the procedure explicit2('201001'); the it gives me the error:::: begin explicit2('201001'); end;_
ORA-00001: unique constraint (PRM.PK_Y_SUM) violated_
ORA-06512: at "PRM.EXPLICIT2", line 413_
ORA-06512: at line 1_
but when i remove the composite primary key from y_summary table then, the procedure runs ok and make so many duplicate entries in y_summary.
but i want the single record to be inserted for single time in y_summary ,so You guies are honorly requested to make the required help .
the structure of y_summary Table and Procdure code is given below.
Table:
-- Create table
create table Y_SUMMARY
BILL_DATE VARCHAR2(10) not null,
TRUNK_MGR VARCHAR2(20) not null,
IDD_FLAG VARCHAR2(10) not null,
PK_FLAG NUMBER(2) not null,
OUTCALLS NUMBER(20,2),
OUTDUR NUMBER(20,2),
PREFIX VARCHAR2(10) not null
tablespace TBS_PRM_D01
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
-- Create/Recreate primary, unique and foreign key constraints
alter table Y_SUMMARY
add constraint PK_Y_SUM primary key (BILL_DATE, TRUNK_MGR, IDD_FLAG, PK_FLAG, PREFIX)
using index
tablespace TBS_PRM_D01
pctfree 10
initrans 2
maxtrans 255
storage
initial 64K
minextents 1
maxextents unlimited
Procedure:
create or replace procedure explicit2( month_val in varchar2) is
cursor explicit_cur is select dest_code from y_table where dest_code like '44%' order by dest_code desc;
dummy varchar2(100);
lv_length Number(9);
sqlstr varchar2(2500);
rec_count1 number;
rec_count2 number;
rec_count3 number;
begin
open explicit_cur;
LOOP
fetch explicit_cur into dummy;
EXIT WHEN explicit_cur%NOTFOUND;
rec_count1 :=0;
rec_count2 :=0;
rec_count3 :=0;
lv_length := length(dummy);
sqlstr := 'select count(*) from y_table_data1 t where t.fee_dur_1_1 <> 0
and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
execute immediate sqlstr into rec_count1;
sqlstr := 'select count(*) from y_table_data1 t where t.fee_dur_1_2 <> 0
and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'',
''ITAX1B'',''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
execute immediate sqlstr into rec_count2;
sqlstr := 'select count(*) from y_table_data1 t where t.fee_dur_1_1 <> 0
and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'',
''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
and t.service_code = ''012'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
execute immediate sqlstr into rec_count3;
if(rec_count1>0) then
sqlstr := 'insert into y_summary(BILL_DATE ,PREFIX, TRUNK_MGR,OUTCALLS , OUTDUR , IDD_FLAG , PK_FLAG )
select '|| month_val||' ,substr(t.orig_called_num,1,'||lv_length||'),t.trunkout_operator ,count(*) , round(sum(ceil(t.duration / 15) * 15) / 60, 0),''00'',''1'' from y_table_data1 t where t.fee_dur_1_1 <> 0
and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||''''|| ' group by t.trunkout_operator,substr(t.orig_called_num,1,'||lv_length||')';
execute immediate sqlstr;
commit;
sqlstr :='DELETE from y_table_data1 t where t.fee_dur_1_1 <> 0
and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
execute immediate sqlstr;
commit;
end if ;
if(rec_count2>0) then
sqlstr :='insert into y_summary(BILL_DATE ,PREFIX, TRUNK_MGR,OUTCALLS , OUTDUR , IDD_FLAG , PK_FLAG )
select '|| month_val||' ,substr(t.orig_called_num,1,'||lv_length||'),t.trunkout_operator ,count(*) , round(sum(ceil(t.duration / 15) * 15) / 60, 0),''00'',''0'' from y_table_data1 t where t.fee_dur_1_2 <> 0
and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
and t.service_code = ''00'' group by t.trunkout_operator,substr(t.orig_called_num,1,'||lv_length||')';
execute immediate sqlstr;
commit;
sqlstr :='DELETE from y_table_data1 t where t.fee_dur_1_2 <> 0
and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
and t.service_code = ''00'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
execute immediate sqlstr;
commit;
end if;
if(rec_count3>0) then
sqlstr :='insert into y_summary(BILL_DATE ,PREFIX, TRUNK_MGR,OUTCALLS , OUTDUR , IDD_FLAG , PK_FLAG )
select '|| month_val||',substr(t.orig_called_num,1,'||lv_length||'),t.trunkout_operator ,count(*) , round(sum(ceil(t.duration / 15) * 15) / 60, 0),''012'',''0'' from y_table_data1 t where t.fee_dur_1_1 <> 0
and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
and t.service_code = ''012'' group by t.trunkout_operator,substr(t.orig_called_num,1,'||lv_length||')';
execute immediate sqlstr;
commit;
sqlstr :='DELETE from y_table_data1 t where t.fee_dur_1_1 <> 0
and t.out_trunk in (''MHISRM'', ''GEISRM'', ''GEIMRP'', ''MHIMRP'', ''13'', ''ITAX1B'', ''ITAX3B'',''ITAX5B'', ''ITAX6B'', ''ITAX7B'', ''BTIMRP'', ''BTI5RP'', ''BTI6RP'', ''BTI7RP'')
and t.service_code = ''012'' and substr(t.orig_called_num,1,'||lv_length||')='||''''||dummy||'''';
execute immediate sqlstr;
commit;
end if;
end loop;
close explicit_cur;
end explicit2;
Edited by: user10951541 on 25.4.2010 12.08Dear concern
Really sorry not to make format listing because i am amature to this blog.
my anwser to your way .
1. I have Tested my SQL statements manually in SQL*Plus. this runs ok
2. "Cursor loops, such as the one you have coded here, have been obsolete in Oracle since version 8i 12+ years ago.
Look up BULK COLLECT and FORALL in the docs and use them instead."
I am trying to make use of the BULK COLLECT and FORALL statement in proper location.
3. "Your procedure never performs a commit so no work actually takes place" i need to get the anwser why........................?
4. "On what basis was the decision made to use the default PCTFREE and PCTUSED values of 10 and 40?"
is there any problem if default is used..? if any suggestion........pls
5." You did not format your listing using the CODE tags as explained in the FAQ making your listing unreadable ... so I've not read it.
Please read the FAQ and use the proper way to post code so we can understand it. Then perhaps we can help you further. " really sorry not to make understandable to you..? but i will try from next post..
I really will try to be synced..
My aim is to make query to Table A using the cursor value like( '4422','442','4411','441','44') and get some data in accordance of these values.Then i put the data into another Table B. same time i need to delete the record from Table A containing the prefix value in accordance for example- i compute value for '4422' from Table A and put the computed value to Table B .Then i delete the record from Table A where prefix is '4422' .so that computed value for the next prefix '442' should contain the computed value for 442[0-1] and 442[3-9] .Same way it will be happened for ('4411','441','44'....bla...bla).
Thanks in advance.. -
RFIDYYWT across company codes produces 1099 with multiple records per TIN
We have multiple company codes that post 1099-MISC relevant payments to a common set of vendors. All payments are processed through our main (paying) company code.
All our company codes are one taxable entity to the federal government, with one TIN. We are required to submit one file to the IRS.
Unfortunately, when we execute RFIDYYWT across company codes we get multiple records per vendor, one for each company code, despite that the vendor has only one TIN.
How may we customize the system so that a single execution of RFIDYYWT provides an IRS compliant file that aggregates common vendor records?
Thank you in advance for your assistance.
Regards,
Otto Baskin
P.S. Iu2019m happy to award points.Hi
We have similar issue.. It's been long time.. but I thought of asking you.. Did you find solution? If so, can you please share.
Thanks
Srini -
Handling Change of IT with multiple records in P&F
Good Morning all,
Has anyone done this yet? What is the approach to change an infotype with multiple records using P&F; For example IT0021, Subtype 2 (Child). I'm assuming that we will need to display all the records in a tbale first in the Form. Then, create a button or radio button for each row. On click, we can then make changes to the record. Any ideas? Thanks
RegardsWelcome to the forum. You can loop through the records like following.
go_block('A');
First_Record;
Loop
variable := :A.Item_Name;
Exit when :System.Last_Record = 'TRUE';
Next_Record;
End Loop;But what happens when u run the above code, the variable will have the last record's item value.
So how you are trying to get all the record's Item value into one item?
Are you going to concatenate? What's the logic you are planning?
Regards
Sankar MN -
Doubt in updating multiple records
i am displaying all the records using table. once i selected the records for updation using checkbox, all those records should be updated.
how to pass the multiple records to server side for updation?
it is urgent...can anyone help me?Hi,
Using request.getParameter("checkBoxName") we will come to know what are all the records need to be updated.
Here put check box value is id of the record .
<input type=checkbox value="idOf theRecord" >
Now you know the id 's of all the records.
Use stored procedure or write the Update query with
update set column_name = 'somevaue' table_name
where id in (id's of records);
hope this will solve your problem
Thanks
Veeru -
Multiple record insert thru PROCEDURE - Urgent
All,
My requirement is, I have to invoke a procedure which accepts two input and 1 out variable. The operation of the procedure is to insert the data to two tables(head_tab and line_tab-accepts multiple record). I used %rowtype for the two inputs i.e procedure proc(head_var head_tab%rowtype, line_var line_tab%rowtype, out_var out number). The incoming doc comes from 3rd party application which sends a header record and multiple line record for the same header.
I used the transformation activity, to insert line record I used for-each loop for multiple record. But %rowtype being a scalar data type, it doesn't accept array of record to it! I'm stuck here. Can we achieve this scenario with using of procedure? or should I configure DBAdapter to insert the data directly to the table rather the procedure does this? If we can achieve it thru procedure, how can I go about?
Thanks,
SenHi,
I believe you should change the signature of the procedure.
I tried below code for my proc to send multiple records without use of for loop.
Type line_var_rec IS RECORD(
Var1;
var2;
Type line_var_tab IS TABLE OF line_var_rec INDEX BY BINARY INTEGER;
Type head_var_rec IS RECORD(
var3;
var4;
line_var line_var_tab ;
Type head_var_tab IS TABLE OF head_var_rec INDEX BY BINARY INTEGER;
proc(head_var IN head_var_tab, out_var out number);
With the above code you can insert multiple header records each having multiple line records.
Pls let me know if u have any questions. -
Multiple records for a single transaction - Issue in LSMW
Hi,
i'm facing a issue in LSMW
i have the data coming up in the flat file. the data which constitutes the single transaction consists of data from multiple records from the flat file..
suppose we have 10 records in the flat file... and all the 10 records related to ony 2 transactions i.e say 6 records to first transaction and next 4 records to next transaction.
we have a direct input method to handle this data like field1 for first record, field2 for 2nd record and so on...
while uploading, we will get all the records one by one into our source structure. My question is can we handle this scenario in lsmw? if yes, pls suggest
Thanks in advance
ShekharHi Kris,
this is regarding the asset creation via AS01..
we are getting the flat file in that way. Lets assume like this:
suppose for one transaction we may need to fill 5 depreciation keys and for another option only 3 dep. keys we need to fill.
then in the flat file, we can get like 5 records for first transaction i.e asset and 3 records for 2nd transaction
Can we handle this via lsmw
Regards
shekhar -
Get MUTLIPLE output files for SINGLE input file with multiple records
Hi ,
I have source xml file which has multiple records in it and I want to get multiple seperate flat files for it.
this is my source structure
<root>
<Header1 fld1=1234 fld2="name1" fld3='SAP1"
fld4='000" fld5=0 fld6="sdn1"></header>...............no line items here
<Header2 fld1=123 fld2="name" fld3='SAP"
fld4='00" fld5=0 fld6="sdn" ><line fld7=value1 fld8=value2 fld9=value3 /line><line fld7=value4 fld8=value5 fld9=value6 /line></header>.....two line items here
<Header3 fld1=123 fld2="name" fld3='SAP"
fld4='00" fld5=0 fld6="sdn" ><line fld7=value7 fld8=value8 fld9=value9 /line></header>......one line item here
Header4 fld1=12345 fld2="name2" fld3='SAP2"
fld4='0006" fld5=01 fld6="sdn2"</header>.......no line items here
</root>
I am trying to get flat files as many time the <b>header</b> values occur that many target files should appear in the target.
like
file1:
1234name1SAP10000~sdn1
file2:
123nameSAp000~sdn
value1value2valu3
valu4value5value6
file3:
123namesap000~sdn
value7valu8value9
file4:
12345name2SAP2000601~SDN2
here I have 4 headers so i need to get 4 output files ,similarly for 'n' headers I need to get 'n' output flat files. the above mentioned source xml file is just one file,like that I might get somany sourc xml files which has similar structure in it.
and also it is important to get the line items,if exists to the header, for the corresponding headers.
how can I achieve this?do I need to use BPM or any mappings other than Graphical?
please suggest me.
thank you.
Babu
sorry,output file structure changed
BabuBabu,
See the Mapping and the logic.
Make sure your target message occurrence:http://www.flickr.com/photo_zoom.gne?id=1412748793&size=o
Check out for source and target structure
http://www.flickr.com/photo_zoom.gne?id=1412748803&size=o
http://www.flickr.com/photo_zoom.gne?id=1412748809&size=o
http://www.flickr.com/photo_zoom.gne?id=1412748815&size=o
http://www.flickr.com/photo_zoom.gne?id=1412748825&size=o
Results:http://www.flickr.com/photo_zoom.gne?id=1412748799&size=o
Note:
While creating Interface determination choose it as Enhanced/Extended
The Receiver Content conversion - For field separator and line separator give 'nl' , coz we concatenated all of them using ~ in mapping.
If you find any discrepancy in the above logic , please let me know.
raj.
Maybe you are looking for
-
Trying a sound recording applet
Hi all.. I am developing an applet that records sound and stores it in a WAV file... The applet is signed and loads in the browser well but it does not give the output, i.e. the WAV file in the specified directory. Can you please have a look at my co
-
Creation of Shortend Fiscal year..
Dear Frenz, I have an issue regarding my shortened fiscal year.. My client is following 2009 as fiscal year for the period Jan 2008 to Dec 2008. Now he is closing the books in september and wants to create a shortened fiscal year for oct, nov & Dec..
-
Upgraded to Win 7 Pro lost internet connect
I had FiOS internet installed, but at the exact same time my desktop computer blew it brains, so I never established internet connection through my computer. I purchased a new HP desktop with Win 7 Home Edition operating system, and yesterday I set i
-
Automate saving a generated PDF at a particular location ?
Hi, I am generating a PDF out of a simple form. I have to save this generated PDF at a particular location (intranet). Can anybody give me the steps? Thanks Srinivas
-
Firewire transfer from G3 to ibook
How do I transfer data from my old B/W G3 with system 9.2.2 to my new ibook with 10.5 leopard ? The firewire cable is connected and I have verified firewire 2.8.5 on the G3, but Firewire icon does not appear. Thanks for your help