How to re init sword swv1[128],swv2[128]

sword status, swv1[128], swv2[128], swv3[128], swv4[128], swv5[128], swv6[128];
     checkerr(errhp, OCIDefineByPos(stmthp, &defnp, errhp, 1,(dvoid *) &swv1, 9, SQLT_CHR, (dvoid *) 0, (ub2 *)0,(ub2 *)0, OCI_DEFAULT));
     checkerr(errhp, OCIDefineByPos(stmthp, &defnp, errhp, 2,(dvoid *) &swv2, 26, SQLT_CHR, (dvoid *) 0, (ub2 *)0,(ub2 *)0, OCI_DEFAULT));
     checkerr(errhp, OCIDefineByPos(stmthp, &defnp, errhp, 3,(dvoid *) &swv3, 4, SQLT_CHR, (dvoid *) 0, (ub2 *)0,(ub2 *)0, OCI_DEFAULT));
     checkerr(errhp, OCIDefineByPos(stmthp, &defnp, errhp, 4,(dvoid *) &swv4, 12, SQLT_CHR, (dvoid *) 0, (ub2 *)0,(ub2 *)0, OCI_DEFAULT));
     checkerr(errhp, OCIDefineByPos(stmthp, &defnp, errhp, 5,(dvoid *) &swv5, 12, SQLT_CHR, (dvoid *) 0, (ub2 *)0,(ub2 *)0, OCI_DEFAULT));
     checkerr(errhp, OCIDefineByPos(stmthp, &defnp, errhp, 6,(dvoid *) &swv6, 12, SQLT_CHR, (dvoid *) 0, (ub2 *)0,(ub2 *)0, OCI_DEFAULT));
     checkerr(errhp, OCIStmtExecute(svchp, stmthp, errhp, (ub4) 1, (ub4) 0,(CONST OCISnapshot *) NULL, (OCISnapshot *) NULL, OCI_DEFAULT));
second SQL
sqlstmt = (text *) "select... ";
OCIDefineByPos(stmthp, &defnp, errhp, 1,(dvoid *) &swv1, 31, SQLT_CHR, (dvoid *) 0, (ub2 *)0,(ub2 *)0, OCI_DEFAULT));
how to re init sword swv1[128],swv2[128]...
swv1 = (sword) 0; X
strncpy(swv2," "); X
strncpy(swv3," "); X
strncpy(swv4," "); X
strncpy(swv5," "); X
strncpy(swv6," "); X
how to re init sword swv1[128],swv2[128]...

Looks like you are trying to retrieve character data. Shouldn't you be doing this?
char swv1[128]; ------> not sword
memset (swv1,0,128);
...

Similar Messages

  • Hi, how to update my downloads from 128 to 256 kbits ?

    Hi, how to update my downloads from 128 to 256 kbits ?

    Al Tuco,
    You can do it with iTunes Match.
    See this document:  iTunes Store: iTunes Plus Frequently Asked Questions (FAQ)  and read the section on "Can I upgrade my previously purchased music to iTunes Plus?"

  • How to create SecretKey for AES 128 Encryption based on user's password??

    I have written a below program to encrypt a file with AES 128 algorithm. This code works fine. It does encrypt and decrypt file successfully..
    Here in this code I am generating SecretKey in the main() method with the use of key generator. But can anybody please tell me how can I generate SecretKey based on user's password?
    Thanks in Advance,
    Jenish
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.ObjectOutputStream;
    import java.io.ObjectInputStream;
    import javax.crypto.Cipher;
    import javax.crypto.SecretKey;
    import javax.crypto.spec.IvParameterSpec;
    import javax.crypto.CipherInputStream;
    import javax.crypto.CipherOutputStream;
    import javax.crypto.KeyGenerator;
    import java.security.spec.AlgorithmParameterSpec;
    public class AESEncrypter
         Cipher ecipher;
         Cipher dcipher;
         public AESEncrypter(SecretKey key)
              // Create an 8-byte initialization vector
              byte[] iv = new byte[]
                   0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09,0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f
              AlgorithmParameterSpec paramSpec = new IvParameterSpec(iv);
              try
                   ecipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
                   dcipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
                   // CBC requires an initialization vector
                   ecipher.init(Cipher.ENCRYPT_MODE, key, paramSpec);
                   dcipher.init(Cipher.DECRYPT_MODE, key, paramSpec);
              catch (Exception e)
                   e.printStackTrace();
         // Buffer used to transport the bytes from one stream to another
         byte[] buf = new byte[1024];
         public void encrypt(InputStream in, OutputStream out)
              try
                   // Bytes written to out will be encrypted
                   out = new CipherOutputStream(out, ecipher);
                   // Read in the cleartext bytes and write to out to encrypt
                   int numRead = 0;
                   while ((numRead = in.read(buf)) >= 0)
                        out.write(buf, 0, numRead);
                   out.close();
              catch (java.io.IOException e)
         public void decrypt(InputStream in, OutputStream out)
              try
                   // Bytes read from in will be decrypted
                   in = new CipherInputStream(in, dcipher);
                   // Read in the decrypted bytes and write the cleartext to out
                   int numRead = 0;
                   while ((numRead = in.read(buf)) >= 0)
                        out.write(buf, 0, numRead);
                   out.close();
              catch (java.io.IOException e)
         public static void main(String args[])
              try
                   // Generate a temporary key. In practice, you would save this key.
                   // See also e464 Encrypting with DES Using a Pass Phrase.
                   KeyGenerator     kgen     =     KeyGenerator.getInstance("AES");
                   kgen.init(128);
                   SecretKey key               =     kgen.generateKey();
                   // Create encrypter/decrypter class
                   AESEncrypter encrypter = new AESEncrypter(key);
                   // Encrypt
                   encrypter.encrypt(new FileInputStream("E:\\keeper.txt"),new FileOutputStream("E:\\Encrypted.txt"));
                   // Decrypt
                   encrypter.decrypt(new FileInputStream("E:\\keeper.txt"),new FileOutputStream("E:\\Decrypted.txt"));
              catch (Exception e)
                   e.printStackTrace();
    }

    sabre150 wrote:
    [PKCS12|http://www.rsa.com/rsalabs/node.asp?id=2138]
    [PKCS5|http://www.rsa.com/rsalabs/node.asp?id=2127] , no?
    In Java, you can use the [Password-based encryption PBE Cipher classes|http://java.sun.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#PBEEx] . I think you'll need the bouncycastle provider to get AES-based PBE ciphers.

  • How to do INIT for Sales order Itema Data (DS 2LIS_11_VAITM)

    Hi all
    I have a report on sales order item data, I have to reload it. DS 2LIS_11_VAITM
    Can any of you pls explain me the steps to do the INIT? Refill set up tables etc
    Many Thanks in advance
    Ishi

    Hi Hari
    Many Thanks for the explanation and steps. I deleted set up tables and executed to fill it.
    It says in R/3 Start of Processing, I ticked to continue and its still running.
    In the mean time I checked RSA3 and it says 1007 records selected. I am refreshing it and the no. of records are still the same.
    Can you tell me how long it takes to fill the table?
    And the R/3 system is still running (Start of Processing)
    Thanks again
    Ishi

  • How servlet's init method is overridden ?

    Here is a sample code to override servlet's init method.
    public class BookDBServlet ... {
            private BookstoreDB books;
            public void init(ServletConfig config) throws ServletException {
                // Store the ServletConfig object and log the initialization
                super.init(config);
                // Load the database to prepare for requests
                books = new BookstoreDB();
        }I dont get why super.init(config); is called.
    Comment says +// Store the ServletConfig object and log the initialization+
    what does "Store" mean here ? Where it is stored ?
    how it is logged ( log4j / commons -logging ? ) and where (which file) it is logged ?
    Can we remove this line without any damage ?

    There are several calls you can make to the servlet object which are simply delegated to the ServletConfig object, most notably getServletContext(). The default action of the init(SerletConfig config) method is to store the config in a field which is defined in GenericServlet, so that these calls can work. If you don't do this then calling getServletContext() at some later time will give you a NullPointerException.
    I think the reference to logging is that, if you use the built in servlet logging system, rather than log4j or java.util.loging then this depends on a valid servlet context, which in turn, depends on a valid servlet config reference.

  • How to re-init a delta upload?

    Hi experts
    I have done a delta initialization, and delta updates; but after occurs some troubles and then I must do a full update. Now when i want do new deltas uploads, the system tell me that can't find the last "mark". Im try to do an "initialization with out transfer data", but the message is that already exist delta loads for the same period in the id request 25910 (this id is the first inicialization)
    How can I do a re-init delta upload?
    Thank you in advance

    Sorry, I think that I dont understand you well..
    Please check if this right: "I can delete the init with Id request 25910 (in the way that wou tell me) , and the data in this id requist NOT will be delete in the Infocube"  is this true?
    In need to the re-init because when I run the delta actualizations the error msg is "Nº RSBM103 - Delta upload is possible after successfull init"
    Anyway, I understand that when is do a full update i lost the mark. Is this true?
    Your commets are very helpful!!

  • How to RE-INIT COPA (1_CO_PA010SPIN)

    Hi all,
    I was able to find threads and documentation on how to INITIALIZE CO-PA.
    But we had a re-alighnment in ECC6, and now I need to reinitialize CO-PA (Datasource 1_CO_PA010SPIN).
    Can you clarify (with System and T-codes) me wit the steps to reinitialize?
    Thank you!!!!
    Heidi

    Hi,
    for loading, you can use the easy way - you can do all steps in the BW system:
    - delete the data in the infocube/ODS
    - delete the data in PSA
    - delete the init-request in the infopackage (the queue in RSA7 in the source system is also deleted)
    - start the init with the infopackage
    - update the data in the infocube/ODS
    Sven

  • How to edit Init Parameters using OEM Website?

    How can one edit an init parameter of a servlet runnig in Oracle 9 iAS.
    I have Oracle 9iAS r2 running on a Win2K with 512 MB RAM. Everything works fine excpet editing the init parameters using OEM Website. The documentation says its possible to edit the init parameters by clicking on it. But here, the init parameters are not having hyperlinks. Please help...

    Thanks for the instant reply.
    If that is the case, what is the way out then?
    How can the end-user (ofcourse, the 9iAS administrator at customer site) change the init parameters?
    What we have suggested is to edit the web.xml in the EAR before deploying the application. Is it the only way out? Customer find it difficult to accept.
    Please help.
    Thanks in advance,
    -Jamal

  • Archiving in R/3 - Impact in BW?  How to solve Init-Problem?

    Hello,
    following question: currently we think about an R/3 Archiving Projekt.
    In scope we have different archiving objects. Now I have concerns
    when we do an re-initalization on BW side.
    I thought about a second ODS-Object (= Backup ODS). Where I run a
    selective deletion job in order to have the init run double. When then we have to re-init. I can "move" my init.-request from the backup ODS to my "reporting" ODS.
    Somebody got another idea how to solve delta /init. runs in BW linked to archiving objects?
    (For full-updates directly to Cube I can select - e.g. Fisc.Year/Period.)
    Any input is welcome.
    Thanks in advance.

    Hi Pascal,
    your idea to have a back-up ODS with all the R/3 archived data is good, so, when you have to delete the original ODS content and then you have to/can re-init it only with the available data in R/3 (without the archived object), you can use the back-up ODS in order to refill your reporting ODS with the archived data.
    This is good if you want:
    - to make (and maintain) all archived data available for reporting
    - to preserve the same granularity
    Otherwise, you can store in BW all the R/3 archived data in another object and then you can use a multiprovider to make your reporting (in this case you have to copy your query from an infoprovider to the multiprovider).
    Considerations about the data redundancy (and related disc space) have to be done in the solution analysis phase.
    Consider also that for the LBWE extractors (you can check this in the OLI* transaction for the setup jobs), you have the possibility to reload your archived objects..in this case you don't need to create a backup ODS.
    Hope it helps (and don't forget to assign some points by clickin'on the yellow star for each reply of the contributors that help you !)
    Bye,
    Roberto

  • How to delete init request when load is taking place from ods to Cube

    Dear All,
    I have initiated the init load from ODS to Cube, but the init request was not successfull... Now on clicking the init infopkg i get the short dump error....
    I am trying to acess this infopkg so that i can delete the old init and reschedule it again...
    Now in order to avoid this error i need to delete the init request somehow..... Since data load is happening in BW system only there is no way to go to delta queue and delete the init...
    How can i delete the init request in this case or how do i avoid this dumup error???
    Thanks & Regards,
    Anup

    From se11, go to the table, see the content... from this window mark the check box for relevant entries in the first column and click on Display button (F7)
    enter "/h" in the command prompt and press enter
    Click the top most green button to execute.
    From the debugging screen, double click on variable "CODE" change the value to "DELE" (from "SHOW") and save (by pressing enter in bi7 and by clicking pencil icon in bw 3.x ).
    Press F8
    In the result screen you will find the delete entry in the application bar
    Delete one by one after ensuring the record content.
    Better you can ask any abaper to delete the table entries in the debug mode coz its a production server..else you can call me 9500066350(I prefer you to go along with abaper if you have no option dont wait for calling).

  • How do I "Init without data transfer' using 7.0 transformations and DTP's?

    I have a data-mart situation where I have a standard DSO object that sends deltas up to a standard cube.  This data flow is created with 7.0 transformation and a delta type DTP and has been running fine.
    I now have a new single activated request loaded to the DSO object but I DO NOT want this request to delta update to the cube. In 3.x, I used to go into the init infopackage, manually delete the initialization pointer, and run a 'Initialize Without Data Transfer' to make this work.  Deltas could then continue as before. 
    I do not see a way to do this using 7.0 transformations and DTP's.  I want to reset the init from DSO to cube so this request does not get updated.  Does anyone have step by step ideas on how this can be accomplished?
    Thanks in advance for any help on this issue.

    Hi,
    delete the data in the cube by using oprtion selective deletion based on request number.
    (if delta request is deleted from cube, with next load last delta records will also come)
    in this scenario there is no need to delete initiaizations option.
    in BI 7.0, initialization load is not there.
    see below documentation on DTP in SAP help.
    "On the Extraction tab page, specify the parameters:
    a.      Choose Extraction Mode.
    You can choose Delta or Full mode.
    In contrast to a delta transfer with an InfoPackage, an explicit initialization of the delta process is not necessary for the delta transfer with a DTP. When the data transfer process is executed in delta mode for the first time, all existing requests are retrieved from the source and the delta status is initialized. "
    Link: [http://help.sap.com/saphelp_nw70/helpdata/EN/42/f98e07cc483255e10000000a1553f7/frameset.htm]
    Regards
    Daya Sagar

  • How to connect Pocket PC to 128 bit WEP protected Airport network

    Friends:
    Can anyone lead me through the steps to connect my Hp iPaq 4155 Pocket PC to my 128 bit WEB protected Airport network?
    Thanks for your help,
    Migs

    Accessing an Airport wireless network from a wifi enabled PocketPC 2003
    http://tech.ifelix.net/2006.html

  • How can I access more than 128 mb in an internal harddrive

    Howdy folks,
    I just bought a 250mb hard drive through ebay.
    My understanding is that I cannot install an internal hard drive larger than 128 in a g4 sawtooth.
    Do I have to install it as an external, or is it possible to use it as an internal 250mb.
    Thanks,
    Eric M.
    PS- I just disassembled my video card's fan and lubbed it. It is as quiet as can be now. It's a 15 miute job. Thanks to the person who posted the original idea.
    Early G4 Sawtooth   Mac OS X (10.3.2)   384mb ram- 20mb HD- ZipDrive- DVD-rom

    Eric:
    You can add additional drives down the line if you desire. The best advantages of the card option is that it natively supports large drives; provides a faster drive bus that the ATA-66 bus that's on the logic board; and it also provides this faster bus operating independent of the native one, meaning that when your two drives need to communicate with the CPU, one doesn't have to wait for the other as would be the case if both drives were on the same bus/ribbon cable. Secondarily, if (heaven forbid) your native bus goes bad, the one on the card will continue to let you use the Mac. The software solution doesn't allow for any of the above, except for the use of large drives.
    The Newegg site has an Acard ATA-133 PCI card which is Mac-compatible for roughly $60 and is pretty widely used, but the Sonnet still seems to be the card of choice for most folks here.
    Enjoy!
    Gary
    ps: BTW - If you save up and beef up your RAM, you'll likely see a noticeable difference in the speed of your Mac.

  • How to delete Init flag in a  process chain, before processing the init

    Hi,
    At the end of the week i need to re-execute the init request from ODS1 to ODS2.
    Therefore, i have to delete the init flag first and the requests in the CUBE1, everything automatically in the process chain.
    The schedule must be as follow :
    1. Delete init flag on ODS1
    2. Delete all request from ODS1 in the CUBE1
    3. Load an regular INIT request from ODS1 to CUBE1.
    Notes :
    I cannont clear all the CUBE1 content, as i have other datasource than ODS1.
    CUBE1 is the only one data-target of ODS1.
    Any suggestion, as there is no process in the process chain to "Delete Init Flag".
    Best regards,
    Ludovic

    Hi
    Ad.1
    start code----
    DATA: v_count TYPE i,
    p_dsourc LIKE roosprmsc-oltpsource,
    p_rlogsy LIKE roosprmsc-rlogsys.
    p_dsourc = 'your source'. *"8E2_ODS1"
    p_rlogsy = 'your system'. *"BP100"
    SELECT COUNT(*) FROM rssdlinit INTO v_count
    WHERE oltpsource = p_dsourc
    AND logsys = p_rlogsy.
    IF sy-subrc NE 0. "MesgTyp E end the program abnormally
    MESSAGE e508(db6) WITH 'x' 'x' 'in DSource and/or LogSys'.
    EXIT.
    ENDIF.
    Call delete function
    CALL FUNCTION 'RSS1_QUEUE_DELETED_IN_OLTP'
    EXPORTING
    i_oltpsource = p_dsourc "OLTP-Source
    i_logsys = p_rlogsy "LogSys (Myself or Remote)
    EXCEPTIONS
    failed = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    MESSAGE e508(db6) WITH 'x' 'x' '===> No sucess <==='.
    ENDIF.
    ---end code
    Ad.2
    See RSA1-> Infosources -> select your Infopackage -> Change ->
    Data targets -> Automatic Loading of Similar.. -> Delete existing Request
    Ad. 3
    Create Infopackage with init
    Regards
    PWnuk

  • How to add inits to Process Chain

    Hello Experts,
    I have a process chain with one ODS joining data of two other ODS.
    When I ran the chain for the first time everything was fine. But when I ran it a second time the process cain stops updating activated data from the first two ODS into the third one!
    I am not sure, maybe this is an init problem.
    But I don't know where to check in pc if it uses full, init or delta update!
    any suggestions?
    thanx
    Axel

    simple double--click on the infopackage process type in the chain..it will open up the infopackage change screen..there u can change and save it..
    but if u r in production..system will be closed and does not allow u to change infopackages in the chain..
    for this u have to goto rsa1--transport connection..click object changeability button..and set 'everything changeable' for infopackage and for some process chain related ones..(dont remember them exactly..sorry)..
    please..can u tell where chain is stuck..u said 3rd ods isnt getting data updated into the first 2 ODS's..right..is data updated and activated in first 2 ODS's when run 2nd time..?
    please also send steps used in the chain..
    cheers,
    Vishvesh

Maybe you are looking for

  • HT1553 How to backup an image of internal hard drive on external hard drive with disk utility

    I've followed the instructions under the paragraphph 'Instructions for backing up to an external hard disk via Disk Utility in this article: http://support.apple.com/kb/ht1553. My external hard drive is plugged in. I mount my install DVD of Leopard a

  • WM-PP interface, Release order Parts

    I have some components maintained with a control cycle staging indicator "3" i.e release order parts. I have tried two different ways of staging these components from warehouse and into the Production supply area. Option 1 is using MF60 (pull list) a

  • HT4356 Blank page when printing from email

    I just got and set up Epson NX 430. It is AirPrint printer and is printing from both iPhone and iPad. Seems to be fine except when printing except from email. Then it always feeds a blank page first then prints the email. I can't figure out how to st

  • RoboHelp5: Linking between project and subproject

    I have a master project and four subprojects They all exist in a flat directory; that is, the master project folder and all subproject folders are on the same directory level. I can merge the projects fine but when I try to add a hyperlink from a top

  • Faulty Macbook install

    Hi folks. I can't install Logic express 8 on my macbook. The macbook (2ghz intel w/2 gig of Ram)exceeded the spec required. Eash time i try to install I get a windon coming up saying "there was an error with the install, please try again" I do, repea