Urgent help in data load ascii

Hi
I have a table with following data
Table A
ID Number(4)
Convert Varhchar2(6)
Values
ID Convert
10 ???
20 10ae
30 2a10
40 (2345
I have a Final Table
Table B
ID number(4)
Convert number(20)
What I need is i need to insert values from table a into Table b
while inserting values into tableb.column
Insert number as number and char and special charaters Using ascii
So for example
If i have data like
TABLEa.Convert Tableb.convert
??? ascii('?')||ascii('?')||ascii('?')
10ae 10||ascii('a')||ascii('e')
Can anybody create a procedure to insert values into tableb
Thanks for all your help
Thanks

declare
type idtyp is table of number(5) index by binary_integer;
idtab idtyp;
type converttyp is table of varchar2(6) index by binary_integer;
converttab converttyp;
pos number(1);
convertnew varchar2(20);
begin
select id,convert bulk collect into idtab,converttab
from a;
for i in 1..idtab.count loop
pos := 1;
convertnew := '';
for j in 1..length(converttab(i)) loop
if substr(converttab(i),pos,1) not in
('1','2','3','4','5','6','7','8','9','0') then
convertnew := convertnew||ascii(subst(converttab(i),pos,1));
else
convertnew := convertnew||substr(converttab(i),pos,1);
end if;
pos := pos + 1;
end loop;
insert into b values(idtab(i),to_number(convertnew));
end loop;
end;

Similar Messages

  • Help with data load model

    Hi,
    I need help with a data load model. First, i'm doing delta extraction from R/3, we load data with a InfoSource to InfoCube A and InfoCube B.
    I'm doing master data validation on the load, so if a load fails for InfoCube A, it fails for InfoCube B too (this is because i can have only 1 InfoPackage for the 2 infocubes, because of the delta update).
    So i propose a new model in wich:
    - The delta load is taked first to an ODS.
    - ODS is cleaned before the delta update.
    - Then i create 2 InfoPackages for full load from ODS to  Infocube A, and from ODS to InfoCube B.
    With this solution i can have 2 infopackages from ODS because i'm not doing a delta load from here to the cubes, and with 2 infopackages i can have independent validations for each cube so if one of them fails, the other can still be loaded sucessfully.
    The solution fails because if i load delta from R/3 to the ODS i can't clean it first. The initialization and the old updates needs to be previuslly loaded on the ODS. Then i can't do full load to the cubes and neither have 2 infopackages.
    Please help me to solve this issue.
    thanks a lot

    Hi jeremy,
    what about this simple solution:
    load data by delta from R/3 in your ODS. You can also have an ODS/cube for the historical data which is more space-saving than holding all the old data in PSA. Then you load your historical data from PSA into the historical ODS/cube.
    From your ODS with the actual data you update your requests by full from ODS into the cubes with 2 different full infopackages. But because you load by full you have to use deletion selections in the infopackages to avoid duplicate data!
    regards,
    Jürgen

  • URGENT HELP ON SQL LOADER CONTROL FILE

    Dear All,
    Please find my control file below. I need two leading zeros for the coulmn DDA_CLEARING_NUMBER. Presently its loading 18 characters. position is (0791:0808). Now i need this to be loaded with two leading zeros to the left. I need padding two zeros in front of the 18 characters. HOW CAN I DO THAT? PLEASE HELP ME IN IT.
    OPTIONS (DIRECT=FALSE,
    ROWS=30000,
    BINDSIZE=3000000,
    READSIZE=3000000,
    SKIP_UNUSABLE_INDEXES=TRUE)
    LOAD DATA
    INFILE '/xxx/xxx/xxx.dat'
    BADFILE '/xxx/xxx/xxx.bad'
    DISCARDFILE '/dev/null'
    APPEND
    INTO TABLE AAA
    WHEN MONTH_END_STATUS = 'O'
    TIME_PERIOD POSITION (0079:0086) DATE "YYYYMMDD",
    SERVICE_TYPE POSITION (0077:0078) CHAR,
    ACCOUNT_NUMBER POSITION (0001:0020) CHAR,
    MONTH_END_STATUS POSITION (0060:0060) CHAR,
    CIF_BANK POSITION (0066:0069) CHAR,
    CIF_BRANCH POSITION (0070:0074) CHAR,
    PLAN_CODE POSITION (0075:0076) CHAR,
    DDA_CLEARING_NUMBER POSITION (0791:0808) CHAR,
    TAX_ID POSITION (0516:0524) CHAR)

    Dear peterson,
    When i do what you said, its inserting nothing. not even space. Please help me in it what to do?
    thanks and regards

  • Need URGENT help on DATA PACKAGE

    Hi team,
    When we extract the data from the data source it's getting as a package by package before start process i need to add all the packages into one internal table .
    How do i do that ?.
    Pl help me it's URGENt appreciate your response. thanks.
    Regards,
    Senthil

    hi,
    you need to do the process in source system or BW.
    if it is in source system, extract through program/function module that coolects all the data package and process there and push to BW once procee is over.
    if it is to be done in BW- i hope in the start routine u can do only by package by package.
    please give ur actual requirment so that others can give suggesstion.
    Ramesh

  • Urgent Help with Date and then email in ASP

    Hii,
    USING ASP AND ACCESS
    I am implementing a classified section for my website and I
    am displaying
    everything successfully.
    When the user posts the classified he selects how many days
    he wants his
    POST like 10 days, 20 days or 30 days and i can successfully
    show the posts
    So if the user posts on says 1st of July 2006 and selects 10
    days for his
    post to be showed on my website
    THEN
    8th July 2006 an email shud go to him saying if he wants to
    keep his POST
    for another 10 days, 20 days or 30 days with 3 links
    and IF YES the 1st july 2006 date must be changed to
    Date of Post + Number of days selected initially + Number of
    days selected.
    I am using two columsn in the DB for this date thing one is
    the strPostDate
    and strAddDate
    So basically the number of days selected for the post to be
    shown on the
    website keeps adding up each time the user clicks on the link
    for 10 days,
    20 days or 30 days with 3 links
    please help need it badly :-)

    I have to disagree with my colleages above - this isn't that
    hard at all. I have done it a number of times successfully. It does
    depend on a "trick", but who cares as long as it works.
    Basically, the "trick" says that your site will receive a
    visit once in a while! It better, or why have the site!
    In ASP, use the global.asa file. In the "Session start"
    section of global.asa, which is fired off every time a new comer
    arrives, you have an opportunity to:
    1. check if it's ok to check who needs an email (in other
    words, you don't want to be checking EVERY time someone comines on
    board every last listing on your site. So what i would do is allow
    it to do the full check once daily, say after midnight.
    2. If its ok to check who needs an email, do so, and send the
    emails out.
    3. After sending out emails, fix it so you will not be
    resending uptil teh next time window. You could also set "flags"
    for any lister where you sent an email 1st round email has been
    sent.
    The above is one way.
    Sometimes i do the very same thing, but i simply tie the
    checking routine into the home page.
    Both schemes work as long as you have a single visitor once
    in a while. if you never had a visitor to teh site, not even one,
    then the emails would never be sent. But as i said if you go days
    without a visit, better start looking for a new vocation!
    www.brunswickdowntown.com is a site i did that has a
    sign-up-to-stay informed email system, its been running for a year
    just fine, all automatically, using the method of #1 (but for
    asp.net, same difference!)
    Rick

  • URGENT HELP *** Need to load BOM Header TEXT

    Hello Experts,
    How can i load BOM Header text using LSMW
    Thanks
    S

    Two ways to upload:
    1. Via FM: SAVE_TEXT
    2. Create a recording to add text for BOM Header and Use accordingly.
    Regards
    Eswar

  • URGENT HELP WITH DATES

    Hi, I need to compare two dates, so I can get the difference betweem them in hours.

    Try this.. This does it in days but I think you will get the idea..
    import java.io.*;
    import java.util.*;
    import java.text.*;
    public class Ex1805
         public static void main(String[] args)
              SimpleDateFormat sdf = new SimpleDateFormat("d/M/y");
              BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
              String inputDate;
              Date first = new Date(), second = new Date();
              final long MSInDay = 1000 * 60 * 60 * 24;
              boolean valid;
    // input first date
              valid = false;
              while(!valid)
                   try
                   System.out.print("Enter first date: ");
                   inputDate = br.readLine();
                   first = sdf.parse(inputDate);
                   valid = true;
                   catch(ParseException e)
                        System.out.println("Invalid     date. Please enter again.");
                   catch(IOException e)
                        System.out.println("IO Error");
    // input second date
              valid = false;
              while(!valid)
                   try
                   System.out.print("Enter second date: ");
                   inputDate = br.readLine();
                   second = sdf.parse(inputDate);
                   valid = true;
                   catch(ParseException e)
                        System.out.println("Invalid     date. Please enter again.");
                   catch(IOException e)
                        System.out.println("IO Error");
    //     calculate difference in days
              long milliseconds = second.getTime() - first.getTime();
              double doubleDays = (double)milliseconds / MSInDay;
              int days = (int)(doubleDays + 0.5);
              System.out.println("Number of days: " + days);

  • Urgent help  : Meta Data lost

    Hi,
    We are using our dev server to deploy on different prod server. Recently our server is dead and no way to recover anything from disks because they are all damaged. Even worst, the backups are unreadable and all the Metadata were on dev server.
    My question is : is there any way to regenerate OWB Metadata from Runtime environment ?
    Thanks for your help.

    Hi,
    there's no way to get the metadata back! :-( If you import the packages from the target database you get them as packages into the repository - not as mappings.
    That's why you should backup the metadata - and try to import it again too. ;-)
    Regards
    Detlef

  • Urgent help on date query

    select userid,month,year from counter where to_char(month,'MM') ='04'
    and to_char(year,'YYYY')='2003'
    I am getting error when i ran this query
    invalid number format
    thanks

    The error message appears to indicate your columns are numeric so the query is obviously:
    select userid,month,year from counter
    where month = 4
    and year = 2003
    ... or am I missing some hidden problem here ?

  • Sap bw data loading

    Hi Gurus,
    I need your help on data loading about how to create alert messages(to mobiles/mail ids) about the data loading sucessful or unseccessful.Means after getting finished loading we need to get alert message in our mobile.
    Could you please help out in this case.
    Thanks and Regards
    Surya

    Hi
    you can use PROCESS CHAINS to load the data in BW infoproviders and to the Planning area and with the process chain you can trigger mails/sms to the users about the status.
    Process Chains
    http://help.sap.com/saphelp_nw2004s/helpdata/en/67/13843b74f7be0fe10000000a114084/frameset.htm

  • Urgent help require-ASO data loading

    I am working on 9.3.0 and want to do incremental data loading so that it wont affect my past data.I am still not sure that it is doable or not .Now the question is
    do I need to design a new aggragation after loading data.
    Thanks in advance

    Hi,
    The ASO cube will clear off all the data , if you make any structural changes to the cube ( i.e if you change your outline ,and you can find out what exactly can clear off hte data ,for example , if you add a new member ,then ,it clears off , and in other case ,if you just add a simple formula to the existing member , it might not clear off the data ).
    If you dont want to effect the past data ,and yet you want to incrementally load , then ensure that all the members are already in the otl( take care of time dimension , let all the time members be there in place) and then you can load in ,using the option of 'add to existing values' while you load .
    But remember , you can only do ,without any structural changes. Else , you need to load all together again
    Its good if you design aggregation , as it helps in retrieval performance, but its not mandatory.
    Sandeep Reddy Enti
    HCC

  • Data uload to ODS ending up with an error. URGENT HELP NEEDED!!!!!!

    Hi
    My Sceniro is Full load from ODS1 to 5 other ODS. Iam uploading the data to other 5 ODS by selecting 1 ODS at a time.
    Problem i am facing is upload is ending up with error mesg. Error Mesg are
    <b>Error 8 when starting the extraction program - R3019
    Error in Source System - RSM340
    Req xxx in ODS2 must have QM ststus green before it is activated - RSM1110</b>
    I have seen the the OSS notes for given error no, but they are not applicable to me. what could be the other possible solution.
    In detail tab of the monitor i see red light at Extraction step and Subseq. processing.
    Its quite urgent bcoz this error is occuring in Production system.
    Plzzzz urgent help needed.
    Thanks
    Rohini
    Message was edited by: Rohini Garg

    rohini,
    go to RSA1->Modeling->Source Systems and right-click on your BW system, and click on 'Replicate Datasources'.
    also, go to the ODS that's causing the problem (via RSA1->InfoProvider and go to your ODS), right click and click on 'Generate Export Datasource'.
    one more thing, make sure that all your record/s in the source ODS is active. if you're not sure manage its contents and click on 'Activate'. if there are any entries in the the next screen that comes up, you need to activate it first, then try everything again.
    let me know what happens. also try to look for error messages in ST22 and SM21 that may be related to this and post whatever possible error you see there here.
    ryan.

  • Load XML in intranet ? urgent help please...

    Dear friends, I need urgent help: I have a CAYIN screen (which lets me display evetns, etc) and gives me the option of loading/displaying a FLASH (SWF) file, well, I need this SWF to load some XML data ("texto.xml") but  seems that when the CAYIN program which executes flash, does not allow the SWF to find the XML in the same folder...
    Then I tried many ways to load the XML file with no success till now. Some tries are :
    obj_xml.load("\\192.168.0.100\media\texto.xml")
    obj_xml.load("\media\texto.xml")
    obj_xml.load("texto.xml")
    obj_xml.load("../media/texto.xml")
    obj_xml.load("\\media\texto.xml")
    obj_xml.load("file:\\192.168.0.100\media\texto.xml")
    obj_xml.load("..\\192.168.0.100\media\texto.xml")
    I guess I am writting something wrong or forgetting something. Would anyone please help me ? because these files are in an internal server "192.168.0.100" (intranet).
    Urgent help please, thanks in advance,

    if the swf is in a directory with subdirectory media which contains texto.xml, use:
    obj_xml.load("media/texto.xml")

  • Open HUB ( SAP BW ) to SAP HANA through DB Connection data loading , Delete data from table option is not working Please help any one from this forum

    Issue:
    I have SAP BW system and SAP HANA System
    SAP BW to SAP HANA connecting through a DB Connection (named HANA)
    Whenever I created any Open Hub as Destination like DB Table with the help of DB Connection, table will be created at HANA Schema level ( L_F50800_D )
    Executed the Open Hub service without checking DELETING Data from table option
    Data loaded with 16 Records from BW to HANA same
    Second time again executed from BW to HANA now 32 records came ( it is going to append )
    Executed the Open Hub service with checking DELETING Data from table option
    Now am getting short Dump DBIF_RSQL_TABLE_KNOWN getting
    If checking in SAP BW system tio SAP BW system it is working fine ..
    will this option supports through DB Connection or not ?
    Please follow the attachemnet along with this discussion and help me to resolve how ?
    From
    Santhosh Kumar

    Hi Ramanjaneyulu ,
    First of all thanks for the reply ,
    Here the issue is At OH level ( Definition Level - DESTINATION TAB and FIELD DEFINITION )
    in that there is check box i have selected already that is what my issue even though selected also
    not performing the deletion from target level .
    SAP BW - to SAP HANA via DBC connection
    1. first time from BW suppose 16 records - Dtp Executed -loaded up to HANA - 16 same
    2. second time again executed from BW - now hana side appaended means 16+16 = 32
    3. so that i used to select the check box at OH level like Deleting data from table
    4. Now excuted the DTP it throws an Short Dump - DBIF_RSQL_TABLE_KNOWN
    Now please tell me how to resolve this ? will this option is applicable for HANA mean to say like , deleting data from table option ...
    Thanks
    Santhosh Kumar

  • Urgent help needed: registry.dat is missing when i run my form in web base

    Hi gurus,
    i configured my forms and report server in windows 2003 and i received the following error msg when tryin to access my web base forms 6I.
    FRM-92129: Registry file http://domain.com/form60java/oracle/forms/registry/Registry.dat is missing.
    Details...
    Java Exception:
    oracle.forms.engine.RunformException: FRM-92120: Registry file http://domain.com/form60java/oracle/forms/registry/Registry.dat is missing.
    at oracle.forms.engine.Runform.initRegistry(Unknow Source)
    at oracle.forms.engine.Runform.startRegistry(Unknow Source)
    at oracle.forms.engine.Main.createRunform(Unknow Source)
    at oracle.forms.engine.Main.start(Unknow Source)
    at sun.applet.JinitAppletPanel.run(Compiled code)
    at java.lang.Tread.run(Thread.java:466)
    what can be goes wrong with my steps to receive the above error?? i tried in windows XP and Vista, and i getting the same error message as above.
    Your urgent help and advise is needed plssssssss.......
    Many thanks in advance.

    The URL doesn't seem correct: http://domain.com/form60java/oracle/forms/registry/Registry.dat
    I'm expecting a slash (/) between forms60 and java. Have a look in the formsweb.cfg if any paths are misconfigured.
    Also, try if the URL with the slash:
    http://domain.com/form60/java/oracle/forms/registry/Registry.dat
    does work when you just paste it in a browser. It should download the Registry.dat file

Maybe you are looking for