Bank Account not getting transferred when employee is created as supplier

Hi,
When an employee claims expenses for the first time, a supplier record is automatically created in AP. Unfortunately, when this record is created, it does not import the bank details from the HR record. So we need to insert the bank details again in Payables for the newly created supplier
This is 11.5.10
Do we have an option to get the bank details also automatically transfer when supplier site is created or we need to write database trigger (I know this is a bad option... but just asking) on po_vendor_sites table when a record is inserted.
Can anyone please help me in resolving this issue.
Thanks
D
Edited by: user11366291 on 28-May-2010 02:02

Well, you have my sympathy. The Oracle documentation does not specifically state what employee information gets moved over from HRMS when an employee type supplier record is created. Here is my thinking on what is going on. Are you using direct deposit to pay your employee expense reports (I assume expense reports are the primary thing you are processing for employees in payables)? Otherwise why do you care about the employee HRMS bank account information coming over into payables, right? That is, I believe, the issue. Direct Deposit has been very common in the Payroll world for many years. Alas direct deposit was much slower to catch on in the accounts payable arena. You also have the issue of what if the employee has multiple accounts in HRMS, or one account but wants to use another account for Payables payments. So consider the fact that direct deposit is rare in payables and the fact that trying to copy bank account information from HRMS would be problematic, and it does not surprise me that bank account information is not copied from HRMS into Payables. You could always submit an enahancment request to Oracle to ask for bank account information to be included in the employee supplier type record creation. Of course even if accepted, that would be in a future release, so does not help you today.
You could always log a service request to confirm that the bank account information does not come over.
So what can you do today? The only option I can see is doing something custom, and doing something custom can lead to its own problems. If you are going to go this route, you have to ask yourself how you determine what accounts to move over? Do you allow only one account for payroll? Would you be willing to set a rule that says whatever account is used for payroll has to be used for payables? The idea of copying HRMS bank account information over seems enticing, but make sure you do proper analysis and make sure you consider all possible situations, if you try to do something custom.
Not the answer you no doubt wanted, but hope this makes some sense.
John Dickey

Similar Messages

  • Task Does not get triggered when User is created through API

    Hi,
    Each new user in our OIM environment is supposed to have a iPlanet account. I have configured the access policy for the same and it works.There is also a process task which needs to be triggered once the user is successfully created in the DS. Following is my issue:
    1.When the new user is created through the admin console, the user is provisioned successfully to DS as well because of the access policy and the task also gets triggered successfully.
    2. There is an approval workflow for another resource, at the end of which a user needs to be created through APIs in OIM. The user gets created successfully in OIM and also get provisionined to DS just like in the above use case. However, the task fails in this case. I see that the task is being triggered from the user's resource profile, but the status is rejected.
    Can someone please tell me why is this happening. I initially though there was some issue with my adapter for the task, but in case 1 it works just fine.
    Following is the exception I get as soon as the iPlanet connector finishes creating the user in DS:
    java.lang.ClassCastException: java.lang.String
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpSETFIELDSONUSERCREATE.implementation(adpSETFIELDSONUSERCREATE.java:51)
    at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    Thanks,
    Supreetha

    Hi,
    Have you checked the process data that you are passing to this adapter and check the mapping of process data to the adapter variable. Try to log the value which you get from process data. I got this error when I was trying to use the literal value from process data as "true" for a boolean value. This is a bug. This value is not actually a boolean value. It threw me error too sometimes back. Either you pass the boolean value from adaptor factory as a literal value or change the type boolean both in your code and the adapter.
    OIM works strangely. ;) All the best,
    Manila

  • I have two monthly scheduled iTunes allowances scheduled for my kids.  For some reason they did not get transferred to their accounts this month.

    I have two monthly scheduled iTunes allowances scheduled for my kids.  For some reason they did not get transferred to their accounts this month.

    @Dakotaep
    I am so sorry to hear of your experience with purchasing your new Samsung Galaxy Note 3!  This definitely should have been resolved in your first call to us.  I would be glad to review your account and ensure the Edge Agreement is corrected.  Please accept my "Follow" request and send me a direct message so I can further assist.  Thanks!
    AnthonyTa_VZW
    Follow us on Twitter VZWSupport on Twitter.

  • Profit Center Document not getting generated when direct FI doc is posted

    Dear Experts,
    Profit Center Document not getting generated when direct FI doc is posted. However CO Document is generated for Line Item 1 mentioned below.
    Accounting Entry
    Line 1 -Debit Expense ( Cost Center) 1000
    Line 2 - Credit Bank                             1000    
    Advance Thanks
    Sanjai

    Hi,
    Pls check profit center configuration.... Some config might have missed.....
    Use the t.code 1KE1 For analysing the profit center configuration.
    Regards,
    RAM
    Edited by: Ram000 on Oct 7, 2011 10:45 AM

  • I just noticed that some of the movies I had in iTunes did not get transferred to the iPhone. The missing movies are shown as generic movie icons in the iTunes panel. How do I get the original movies to show up again and transfer to the iPhone?

    I just noticed that some of the movies I had in iTunes did not get transferred to the iPhone 5. The missing movies are shown as generic movie icons in the iTunes panel and are checked to select them. But they do not show up in iPhone Videos. How do I get the original movies to show up again and transfer to the iPhone? I recently upgraded Mac OS to 10.6.8

    1. iTunes won't offer cloud downloads for songs that it "thinks" are in your library, even if it "knows" the files are missing. If you've exhaustively searched for the missing files and there is no prospect of repair by restoring to them to their original locations, or connecting to new ones, then delete that tracks that display both the missing exclamation mark and are of media kind Purchased/Protected AAC audio file. Don't hide from iTunes in the cloud when asked, close iTunes, then reopen. You can download from the cloud links or iTunes Store > Quicklinks > Purchased > Music > Not on this computer > All songs > Download all.
    2. Why? Not sure, perhaps 3rd party tools or accidental key presses combined with previously hidden warning messages when trying to organize the library. There is a hint that using the feature to downsample media as it is synced to a device may also be involved, though I've not replicated it. Whatever the reason a backup would protect your media.
    tt2

  • Inbound Delivery not getting transferred to GTS

    Hi Experts,
    We are presently implementing GTS 7.2 Customs Management in my company and we are experiencing this issue. Here are steps completed for the document transfer.
    1. GTS plugis are activated for the Inbound Delvieries along with other documents.
    2. All the basic configuration is also complete in the GTS system.
    When we create a inbound delivery in ECC 6.0, it is not getting transferred to GTS. But when I go set the incomplete check buttoen either at header or line item level of the delivery, then it is immediately transferred to GTS.
    I checked all the config related to incomplete procedure for SD/MM documents in ECC. I am able to see the green light automatically set (after the config VI29 and VI49) at the header/item level but still incomplete set is not automatically set. Can you please help to find are there any other config which needs to be done to make this inbound delivery automatic. I understand there is a user exit for this, but I would like to accomplish without userexit.
    Thanks in advance.
    Vijay.

    Hi Vijay,
    Ok, that's a lot clearer - thanks.
    I'm fairly sure that those "SET" buttons have no influence on the transfer of the Inbound Delivery to GTS.  And, as far as I know, they have no internal functionality - the toggling buttons are provided just so that you can flag manually if required for some reason.  My guess is that making ANY change to the Delivery would have the same result.
    The other question I should have asked is; why are you trying to transfer the Inbound Delivery?
    - compliance checks?
    - transit declaration?
    - customs declaration before GR?
    That's to say; what gets created in GTS when the Delivery transfers?
    Best regards,
    Dave

  • Playlists containing songs with titles starting with non-alphabetical characters do not get transferred at all

    I was really happy about how the desktop manager lets me choose the songs from my itunes library by playlists! this is smart! I'm also happy to see the playbook render asian characters properly (unlike my experience on the bold!)
    However, I have a lot of songs which have titles that begin with non-alphabetical characters, ie asian characters. For all playlists which contains such songs, those songs do not get transferred onto the playbook AT ALL. For example, I have one playlist which contains only songs with titles beginning with asian characters - this playlist was transferred but it is shown as containing zero songs! When I browse my song library by artist/album, I can find all those songs that should be in that/those playlists.
    Can this be fixed?
    thanks.
    Solved!
    Go to Solution.

    as it turns out, it kind of got fixed by itself. what i did (i think, since i have not definitively verified) was i went to browse "all songs" wherein i noticed all thoses songs starting with asian characters seemed to show correctly. then i went back to the playlists in question, and viola!
    clearly there is a bug or two in the music player somewhere regarding these title characters. but rim has more urgent things to resolve i guess - like my auto screen lock is still not working!

  • PO Release strategy workflow not getting transferred

    Hi All,
    I have done all the configurations related to PO release strategy workflow but when transferred to Quality certain configuartion done in PFTC workflow builder are not getting transferred.
    I also got message like 'release of purchase order transferred to buffer'.
    Please guide.
    Thanks in advance
    Pavan H S

    Hi,
    In QA
    1) Go to SWU3 check Workflow Configuration Done or not
    2) Execute the workflow in SWUS and check it
    3) If it working, test the workflow it via T.code SWUE, If not working then workflow is deactivated
    4) You have to move the Workbench Transport Request first,  then you have to Move customizing Transport Request.
    Regards,
    Surjith

  • Workflow configuration not getting transferred

    Hi All,
    I have done all the configurations related to PO release strategy workflow but when transferred to Quality certain configuartion done in PFTC workflow builder are not getting transferred.
    I also got message like 'release of purchase order transferred to buffer'.
    Please guide.
    Thanks in advance
    Pavan HS

    Hi Santosh,
    What settings I have to do in PFCG. User is able to release PO in ME29N.
    Thanks and Regards
    Pavan

  • Plan Driven Procurement - PR not getting transferred

    Hi Experts,
    << Moderator message - Everyone's problem is important. Please do not ask for help quickly. >>
    We are on SRM 5.0 , ECC 6.0 ,Extended Classic Scenario.
    I am trying to setup PDP in SRM.
    RFC connections have been setup.
    The required entries in the tables V_160PR and V_160EX have been maintained and mapped for the required Logical sys and Material grp.
    I created a Local Company code and inside it i have created Local P.Org and P.grp and assigned the RFC user.
    The required attributes have been setup as per the config guide.
    I have 2 issues here.
    I have 2 PR's which were generated from MRP .
    Issue 1:
    For one PR , when i run BBP_EXTREQ_TRANSFER , i can see the PR gets transferred indicated as '1' but in SMQ1 (outbound Queue of ECC ) , i see the Queue stuck up with the status "ANORETRY".
    I checked the SLG1 log in SRM and i have 2 errors
    1. User not Responsible for Purchasing Group of given Material
    2.Transaction type for local system missing.
    I created a Local Company code and flagged it as Company because i was getting an error"No address found for partner function type Ship-To Address" initially . I went through forums and per the suggestions i could resolve this error by creating the Local Company code but now i get the error "User not Responsible for Purchasing Group of given Material" in place of that.
    I have initially tried with ECDP and later with ECPO but no use.
    In BBP_PD, i see no Shopping carts that got created.
    Issue 2:
    Except the above PR, if i run the BBP_EXTREQ_TRANSFER report for any PR that i created later, the PR doen't even gets transferred . We are not maintaining EPRTRANS table so i dont see any entries there.
    For this issue, i see nothing in SMQ1,SLG1.
    What could be the probable reasons as why it is not getting transferred. And why is it that the BBP_EXTREQ_TRANSFER report is working for only the 1st PR and not anything else.
    Any Ideas, clues...pls ...
    Thanks,
    Addy
    Edited by: Rob Burbank on Dec 6, 2010 4:08 PM

    Issue Resolved.
    Thanks,
    Addy

  • Master recipes operations not getting transfered in SNP PDS to APO from R3

    Hello APO Gurus,
    I am trying to transfer SNP PDS for master receipes from R3 to APO.
    Issue description::
    The operation is not getting transfered correctly , some system default operation "010 generated Operation (from Planned Delive)" is getting generated in APO, also activity and resource capacity is not getting transfered. This situation exist for one plant 1000, for other plant 1100 the SNP PDS created correctly.
    i have following points:
    1. Is there some customizing setting missing on R3 or APO side  for plant 1000 tbefore SNP PDS transfer
    2. What need to be checked on master recipes data in R3,
    i have checked on below points
    1. FG Materials and all the Component Material to be in APO in a Active Integration Model.
    2. BOM & Routing and Production Version setup correctly.
    3. The Routing Operations have to Relevant to 'SCHEDULING'.
    4. Try deleting the existing Integration model for materials & re-create new IM & activate.
    Please help me to send SNP PDS correctly to APO to take heuristic run.
    Regards
    Gajendra
    Edited by: Gajendra_APO on Aug 23, 2011 1:14 PM

    Hi,
    It is good that you have given your already checked points.
    Please check the following things also and try to retransfer the PDS.
    1. Check your resource in ECC, whether you have maintained the Process formula.
    2. Check you have maintained some values in Master Recipe for processing time
    3. Check whether the resource has been transferred for your plant 1000 to APO and an active IM exists.
    4. Also check the type of the resource transferred to APO. It should be a single-mixed/ multi-mixed or bucket resource.
    Hope this will help you to solve the issue.
    Regards,
    Manimaran M.

  • Print program is not getting triggered when saving the application

    Hi all,
    My requirement is when i save the invoice using VF01 the print program should get triggered.
    The print program is not getting triggered when saving the application even when i have configured the outtype and have attached the print program.
    The setting "send immediately (when saving application)" is also checked.
    I need to configure it for VF01 transaction.
    The error message displayed was " please maintain output device in master data".
    Regards,
    Umesh

    Hi Umesh
    Please check if you have missed any of the following:
    1. Defining Access Sequence(can use existing).
    2. Defining Output Condition Type(can use existing). - Assigning the Driver Program and Form in processing routine.
    3. Output Determination Procedure
    4. Assign Output Procedure to Billing Types
    Kind Regards
    Eswar

  • Issue: Not getting response when the document is having special chars

    Please help following issue: Not getting response when the document is having special chars(Use any doc with special char(ex: &, $, <, >,.....) TestErrorFour.doc
    Error message:
    System.FormatException: Invalid length for a Base-64 char array. at
    System.Convert.FromBase64String(String s) at
    Summarize.Summarizer.AccumulateBroadcast(String filedata, String givenWords) in
    c:\DocumentSummarizer\App_Code\Summarizer.cs:line 66
    Code:
    File 1:
    import java.io.BufferedReader;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.OutputStream;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import java.net.URLConnection;
    import java.util.Properties;
    import org.apache.poi.poifs.filesystem.POIFSFileSystem;
    import org.apache.poi.hwpf.*;
    import org.apache.poi.hwpf.extractor.*;
    import com.lowagie.text.Document;
    import com.lowagie.text.pdf.PRTokeniser;
    import com.lowagie.text.pdf.PdfReader;
    public class DocumentSummarizerClient {
         static Properties loadProperties() {
              Properties prop = new Properties();
              try {
                   prop.load(DocumentSummarizerClient.class.getClassLoader().getResourceAsStream("vep.properties"));
              } catch (Exception ioe) {
                   ioe.printStackTrace();
              return prop;
         public String getSummary(String fileName,String noOfWordsOrPercentage ){
              String summaryInputData ="";
              String summarizedData="";
              String summarizerURL = loadProperties().getProperty("Summarizer.serviceURL");
              try {
                   String fileExtension=fileName.substring(fileName.lastIndexOf(".")+1, fileName.length());
                   if (fileExtension.equalsIgnoreCase("doc")|| fileExtension.equalsIgnoreCase("txt")|| fileExtension.equalsIgnoreCase("pdf")) {
                                  if (fileExtension.equalsIgnoreCase("txt")) {
                                       BufferedReader bufferedReader = new BufferedReader(
                                                 new FileReader(fileName));
                                       String line = null;
                                       while ((line = bufferedReader.readLine()) != null) {
                                            summaryInputData += line;
                                  if(fileExtension.equalsIgnoreCase("doc")){
                                       POIFSFileSystem fs = null;
                                        fs = new POIFSFileSystem(new FileInputStream(fileName));
                                         HWPFDocument doc = new HWPFDocument(fs);
                                         WordExtractor we = new WordExtractor(doc);
                                         String[] paragraphs = we.getParagraphText();
                                         for( int i=0; i<paragraphs .length; i++ ) {
                                            paragraphs[i] = paragraphs.replaceAll("\\cM?\r?\n","");
                                  summaryInputData+= paragraphs[i];
                                  if(fileExtension.equalsIgnoreCase("pdf")){
                                       Document document = new Document();
                   document.open();
                   PdfReader reader = new PdfReader(fileName);
                   int pageCount =reader.getNumberOfPages();
                        for(int i=1;i<=pageCount;i++){
                                  byte[] bytes = reader.getPageContent(i);
                                  PRTokeniser tokenizer = new PRTokeniser(bytes);
                                  StringBuffer buffer = new StringBuffer();
                                  while (tokenizer.nextToken()) {
                                  if (tokenizer.getTokenType() == PRTokeniser.TK_STRING) {
                                  buffer.append(tokenizer.getStringValue());
                                  summaryInputData += buffer.toString();
                   else{
                        System.out.println("This is Invalid document. Presntly we support only text,word and PDF documents ");
                   // String encoded =new String (summaryInputData.getBytes("ISO-8859-1"),"UTF-8");
                        String encoded=Base64Utils.base64Encode(summaryInputData.getBytes());
                   // encoded =new String (summaryInputData.getBytes("ISO-8859-1"),"UTF-8");
                        String parameters= "base64String="+encoded+"&noOfWordsOrPercentage="+noOfWordsOrPercentage;
                        summarizedData= postRequest(parameters,summarizerURL);
                        String slength= "<string xmlns=\"http://tempuri.org/\">";
                        if(summarizedData.contains("</string>")){
                        summarizedData= summarizedData.substring(summarizedData.indexOf(slength)+slength.length(),summarizedData.indexOf("</string>"));
                        summarizedData = replaceVal(summarizedData);
                        //System.out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?><![CDATA["+summarizedData+"]]>");
                        // System.out.println("Summarized data "+summarizedData);
                        if(summarizedData.contains("Please enter the percentage")){
                             summarizedData="Data given cannot be summarized further";
                   else{
                        System.out.println("Data given cannot be summarized further");
                        summarizedData="";
              } catch (FileNotFoundException e) {
                   return("The File is not found \n\n"+e.toString());
              } catch (IOException e) {
                   return("The File is already in use \n\n"+e.toString());
              } catch (Exception e) {
                   return(e.toString());
              return summarizedData;
         public static String postRequest(String parameters,String webServiceURL) throws Exception{
              Properties systemSettings = System.getProperties();
              systemSettings.put("http.proxyHost", loadProperties().getProperty("proxyHost"));
         systemSettings.put("http.proxyPort", loadProperties().getProperty("proxyPort"));
         System.setProperties(systemSettings);
              String responseXML = "";
              try {
                   URL url = new URL(webServiceURL);
                   URLConnection connection = url.openConnection();
                   HttpURLConnection httpConn = (HttpURLConnection) connection;
                   byte[] requestXML = parameters.getBytes();
                   httpConn.setRequestProperty("Content-Length", String
                             .valueOf(requestXML.length));
                   httpConn.setRequestProperty("Content-Type",
                             "application/x-www-form-urlencoded");
                   httpConn.setRequestMethod("POST");
                   httpConn.setDoOutput(true);
                   httpConn.setDoInput(true);
                   OutputStream out = httpConn.getOutputStream();
                   out.write(requestXML, 0, requestXML.length);
                   out.close();
                   InputStreamReader isr = new InputStreamReader(httpConn
                             .getInputStream());
                   BufferedReader br = new BufferedReader(isr);
                   String temp;
                   String tempResponse = "";
                   while ((temp = br.readLine()) != null)
                        tempResponse = tempResponse + temp;
                   responseXML = tempResponse;
                   br.close();
                   isr.close();
              } catch (java.net.MalformedURLException e) {
                   System.out
                             .println("Error in postRequest(): Secure Service Required");
              } catch (Exception e) {
                   System.out.println("Error in postRequest(): " + e.getMessage());
              return responseXML;
         public String replaceVal(String value) {
                   if (value == null) {
                        value = "";
                   value = value.replace("&lt;", "<");
                   value = value.replace("&gt;", ">");
                   value = value.replace("&amp;", "&");
                   return value;
              public static void main(String[] args) {  
                   DocumentSummarizerClient testdoc=new DocumentSummarizerClient();
                   System.out.println("hello");               
                   testdoc.getSummary("C:\\working_folder\\vep\\UnitTestCases\\VEP1.0\\DocumentSummarizerTestData\\TestErrorFour.doc","100%");     
    Note: Use any doc with special char(ex: &, $, <, >,.....) TestErrorFour.doc
    File 2:
    ---------public class Base64Utils {
    private static byte[] mBase64EncMap, mBase64DecMap;
    * Class initializer. Initializes the Base64 alphabet (specified in RFC-2045).
    static {
    byte[] base64Map = {
    (byte)'A', (byte)'B', (byte)'C', (byte)'D', (byte)'E', (byte)'F',
    (byte)'G', (byte)'H', (byte)'I', (byte)'J', (byte)'K', (byte)'L',
    (byte)'M', (byte)'N', (byte)'O', (byte)'P', (byte)'Q', (byte)'R',
    (byte)'S', (byte)'T', (byte)'U', (byte)'V', (byte)'W', (byte)'X',
    (byte)'Y', (byte)'Z',
    (byte)'a', (byte)'b', (byte)'c', (byte)'d', (byte)'e', (byte)'f',
    (byte)'g', (byte)'h', (byte)'i', (byte)'j', (byte)'k', (byte)'l',
    (byte)'m', (byte)'n', (byte)'o', (byte)'p', (byte)'q', (byte)'r',
    (byte)'s', (byte)'t', (byte)'u', (byte)'v', (byte)'w', (byte)'x',
    (byte)'y', (byte)'z',
    (byte)'0', (byte)'1', (byte)'2', (byte)'3', (byte)'4', (byte)'5',
    (byte)'6', (byte)'7', (byte)'8', (byte)'9', (byte)'+', (byte)'/'};
    mBase64EncMap = base64Map;
    mBase64DecMap = new byte[128];
    for (int i=0; i<mBase64EncMap.length; i++)
    mBase64DecMap[mBase64EncMap[i]] = (byte) i;
    * This class isn't meant to be instantiated.
    private Base64Utils() {
    * Encodes the given byte[] using the Base64-encoding,
    * as specified in RFC-2045 (Section 6.8).
    * @param aData the data to be encoded
    * @return the Base64-encoded <var>aData</var>
    * @exception IllegalArgumentException if NULL or empty array is passed
    public static String base64Encode(byte[] aData) {
    if ((aData == null) || (aData.length == 0))
    throw new IllegalArgumentException("Can not encode NULL or empty byte array.");
    byte encodedBuf[] = new byte[((aData.length+2)/3)*4];
    // 3-byte to 4-byte conversion
    int srcIndex, destIndex;
    for (srcIndex=0, destIndex=0; srcIndex < aData.length-2; srcIndex += 3) {
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex] >>> 2) & 077];
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex+1] >>> 4) & 017 |
    (aData[srcIndex] << 4) & 077];
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex+2] >>> 6) & 003 |
    (aData[srcIndex+1] << 2) & 077];
    encodedBuf[destIndex++] = mBase64EncMap[aData[srcIndex+2] & 077];
    // Convert the last 1 or 2 bytes
    if (srcIndex < aData.length) {
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex] >>> 2) & 077];
    if (srcIndex < aData.length-1) {
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex+1] >>> 4) & 017 |
    (aData[srcIndex] << 4) & 077];
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex+1] << 2) & 077];
    else {
    encodedBuf[destIndex++] = mBase64EncMap[(aData[srcIndex] << 4) & 077];
    // Add padding to the end of encoded data
    while (destIndex < encodedBuf.length) {
    encodedBuf[destIndex] = (byte) '=';
    destIndex++;
    String result = new String(encodedBuf);
    return result;
    * Decodes the given Base64-encoded data,
    * as specified in RFC-2045 (Section 6.8).
    * @param aData the Base64-encoded aData.
    * @return the decoded <var>aData</var>.
    * @exception IllegalArgumentException if NULL or empty data is passed
    public static byte[] base64Decode(String aData) {
    if ((aData == null) || (aData.length() == 0))
    throw new IllegalArgumentException("Can not decode NULL or empty string.");
    byte[] data = aData.getBytes();
    // Skip padding from the end of encoded data
    int tail = data.length;
    while (data[tail-1] == '=')
    tail--;
    byte decodedBuf[] = new byte[tail - data.length/4];
    // ASCII-printable to 0-63 conversion
    for (int i = 0; i < data.length; i++)
    data[i] = mBase64DecMap[data[i]];
    // 4-byte to 3-byte conversion
    int srcIndex, destIndex;
    for (srcIndex = 0, destIndex=0; destIndex < decodedBuf.length-2;
    srcIndex += 4, destIndex += 3) {
    decodedBuf[destIndex] = (byte) ( ((data[srcIndex] << 2) & 255) |
    ((data[srcIndex+1] >>> 4) & 003) );
    decodedBuf[destIndex+1] = (byte) ( ((data[srcIndex+1] << 4) & 255) |
    ((data[srcIndex+2] >>> 2) & 017) );
    decodedBuf[destIndex+2] = (byte) ( ((data[srcIndex+2] << 6) & 255) |
    (data[srcIndex+3] & 077) );
    // Handle last 1 or 2 bytes
    if (destIndex < decodedBuf.length)
    decodedBuf[destIndex] = (byte) ( ((data[srcIndex] << 2) & 255) |
    ((data[srcIndex+1] >>> 4) & 003) );
    if (++destIndex < decodedBuf.length)
    decodedBuf[destIndex] = (byte) ( ((data[srcIndex+1] << 4) & 255) |
    ((data[srcIndex+2] >>> 2) & 017) );
    return decodedBuf;
    issue 2: Exception when passing 2MB .txt file
    Steps to reproduce:
    Call getSummary() with 2MB .txt file
    Actual:
    The following exception has occured:
    1. Error in postRequest(): Unexpected end of file from server
    java.lang.NullPointerException
    Please provide your precious feedback/suggestions.
    Thanks in advance…..
    Edited by: EJP on 15/03/2011 16:52: added code tags. Please use them. Code is unreadable otherwise.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Thanks for your response….
    This is enhancement project and some one develops long back.
    Regarding point (b) You should be using the java.net.URLEncoder to encode URL parameters, not a base64 encoder.
    DocumentSummarizerClient.java I am using base64
    Ex:
    // String encoded =new String (summaryInputData.getBytes("ISO-8859-1"),"UTF-8");
                        String encoded=Base64Utils.base64Encode(summaryInputData.getBytes());
                   // encoded =new String (summaryInputData.getBytes("ISO-8859-1"),"UTF-8");
                        String parameters= "base64String="+encoded+"&noOfWordsOrPercentage="+noOfWordsOrPercentage;
                        summarizedData= postRequest(parameters,summarizerURL);
                        String slength= "<string xmlns=\"http://tempuri.org/\">";
                        if(summarizedData.contains("</string>")){
                        summarizedData= summarizedData.substring(summarizedData.indexOf(slength)+slength.length(),summarizedData.indexOf("</string>"));
                        summarizedData = replaceVal(summarizedData);
                        //System.out.println("<?xml version=\"1.0\" encoding=\"utf-8\"?><![CDATA["+summarizedData+"]]>");
                        System.out.println("Summarized data "+summarizedData);
                        if(summarizedData.contains("Please enter the percentage")){
                             summarizedData="Data given cannot be summarized further";
    Above specific please I need to modify to resolve above issue.
    Could you please suggest me what changes I need to do.
    Waiting for positive response.

  • HT201269 while transferring data from iphone 3GS to iphone 4S SMS details are not getting transferred.

    While transferring data from old iphone 3gs to new iphone4s through itunes the data in messages is not getting transferred.

    @ melfromvictoria
    Have you tried right clicking on the 4s and select "restore from back up"

  • How do I save photos that have been synced to my Ipad2, so that they do not get deleted when I sync with a different photo file on my computer.

    How do I save photos that have been synced to my Ipad2, so that they do not get deleted when I sync with a different photo foder on my computer (Pc win7).

    Place that first folder of photos that you synced to the iPad within the main folder of photos that you sync from and select them to sync again. You can place any number of subfolders within the main folder that you sync from and select those folders to sync. Just "tick"(select) the folders in the photos tab in iTunes.
    iOS and iPod: Syncing photos using iTunes

Maybe you are looking for

  • Looking for Acrobat 9 Pro

    Where can I find an Acrobat 9 Pro download? I have a CS4 cd and serial number but my new machine does not have a cd drive.

  • T code for ER1 report

    Hello CIN experts , Pls tell me the T code for SAp ER1 report . Also if there are any other Excise reports available with SAP Regards

  • Oracle data file not accessible

    Dear All, I hitting the following error while trying using dbv command: kuldb84s:oraq00 50> dbv FILE=p00.data483 DBVERIFY: Release 10.2.0.4.0 - Production on Mon Nov 22 14:53:12 2010 Copyright (c) 1982, 2007, Oracle.  All rights reserved. DBV-00100:

  • Xorg-utils (or xorg-apps) split up

    Hello, why was the xorg-utils (or xorg-apps) package split up in ~30 single packages? IMO it's totally dumb. These are all sometimes useful tools. Now I have to install each one by hand. They're not even in a group or similar. I think package splitti

  • Does anyone know when the new macbook pro comes out ?

    im wondering if there will be a new macbook pro version sometimes this year  or when was the last uptade or the last macbook pro came out.. thanx