Question for support of community for an UDF

Hello,
because we are not really able to write Java-Code we have a question for support to the community!
We have a mapping were we get some strings. These strings containing data which we have to map to certain fields in target structure.
Example:
001GIE;002090429;0030853;005D  ;007TCT ;010TTNU9457423 ;01140;01296;013SCI01;019
4N ;02145G1;027E;0300;033V;03508388;03604508;03703880;039003054 ;040003054
The requirement is that we have to identify the fields to map by it's number, like "001GIE" means 001 field in target structure.
So how to do an UDF? We need to parse the string and put the found strings into right position in an array e.g. But how to get this result to the single target-fields in target structure?!
And another problem in example: how to get data if the identifier (019) and the data (4N) is divided by an end of line (see example)?!
Do you have some ideas?! We highly appreciate your help!
br

Hi Fritz,
Let us address the problem one by one.
1. You might need to change the source structure to :
-root 1..1
--Value 1..unbounded
Please note root and Value are the names given by me you can use any names as per your wish. But we cannot have the source as you specified, will this source be ok for you?
2. Give File content conversion parameter
recordset name = Vale
Value.endSeparator 'nl'
By doing this there will be a Value node created when the source file has a newline character
3. In message mapping create two UDF
*UDF1 (Simple ?UDF with input field named *input )
for (int i=0;i<input.length;i++)
   output += input<i>;
return output
*UDF2 (Simple UDF with input field named input)*
int i = 1;
String [] value = new String[112];
while (input.indexOf(";") != -1)
String counter = "";
Integer i_int = new Integer (i);
if (i<10)
    counter = "00"+ i_int.toString();
else if (i>9 && i<100)
     counter = "0"+ i_int.toString();
else counter = i_int.toString();
if (input.startsWith(counter)) {
  value<i> = input.substring(3, input.indexOf(";"));
  if (input.indexOf(";") != -1 )
     input = input.substring(input.indexOf(";")+1);   
else
  value <i> = "";
i++;
int j;
GlobalContainer globalContainer = container.getGlobalContainer();
globalContainer.setParameter("Output", value);
Now do a mapping like this
Value (context root)--> UDF1 > UDF2> target root node (ie Bewsatz)
By this step you set all the values in global container named Output
3. Now for each target  field call this UDF
*UDF3 (Simple UDF with input field named pos)*
GlobalContainer globalContainer = container.getGlobalContainer();
String[] Value = (String[] )globalContainer.getParameter("Output");;
String outvalue;
if (Value != null) {
outvalue = Value(pos) ;
return outvalue;
Call this UDF for each output field with positions like 1, 2, 3, ...111
Please try this
Regards
Suraj

Similar Messages

  • Interview question for support engineer

    interview question for support engineer ....please can i get this sir..need to interview for apple as support engineer...thank you

    Hi Fritz,
    Let us address the problem one by one.
    1. You might need to change the source structure to :
    -root 1..1
    --Value 1..unbounded
    Please note root and Value are the names given by me you can use any names as per your wish. But we cannot have the source as you specified, will this source be ok for you?
    2. Give File content conversion parameter
    recordset name = Vale
    Value.endSeparator 'nl'
    By doing this there will be a Value node created when the source file has a newline character
    3. In message mapping create two UDF
    *UDF1 (Simple ?UDF with input field named *input )
    for (int i=0;i<input.length;i++)
       output += input<i>;
    return output
    *UDF2 (Simple UDF with input field named input)*
    int i = 1;
    String [] value = new String[112];
    while (input.indexOf(";") != -1)
    String counter = "";
    Integer i_int = new Integer (i);
    if (i<10)
        counter = "00"+ i_int.toString();
    else if (i>9 && i<100)
         counter = "0"+ i_int.toString();
    else counter = i_int.toString();
    if (input.startsWith(counter)) {
      value<i> = input.substring(3, input.indexOf(";"));
      if (input.indexOf(";") != -1 )
         input = input.substring(input.indexOf(";")+1);   
    else
      value <i> = "";
    i++;
    int j;
    GlobalContainer globalContainer = container.getGlobalContainer();
    globalContainer.setParameter("Output", value);
    Now do a mapping like this
    Value (context root)--> UDF1 > UDF2> target root node (ie Bewsatz)
    By this step you set all the values in global container named Output
    3. Now for each target  field call this UDF
    *UDF3 (Simple UDF with input field named pos)*
    GlobalContainer globalContainer = container.getGlobalContainer();
    String[] Value = (String[] )globalContainer.getParameter("Output");;
    String outvalue;
    if (Value != null) {
    outvalue = Value(pos) ;
    return outvalue;
    Call this UDF for each output field with positions like 1, 2, 3, ...111
    Please try this
    Regards
    Suraj

  • HT4792 So I have a question for this: I folowed this procedure, but when I'm trying to import the IOS from IMovies in my laptop I receive a message that states that the IMovie version installed doen't supports IOS files, although I have the last version i

    So I have a question for this: I folowed this procedure, but when I'm trying to import the IOS from IMovies in my laptop I receive a message that states that the IMovie version installed doen't supports IOS files, although I have the last version installed with all the updates... Any ideas, thoughts?
    Thanks

    I also have Jolly's problem. I found the iMovie 9.0.9 folder and tried to launch the older version of iMove. It would not launch. I removed all of the iMovie preferences from the Preferences folder, removed iMove 10 from the applications folder, and restarted my Mac. iMove 9.0.9 still won't launch and I can't access my videos created with the older version of iMovie. Is there a way to uninstall iMovie 10 and reinstall iMovie 9.0.9?
    I am running Yosemitie on a  iMac.
    Paul

  • I have a question for the Adobe customer service dept., not for the "community" as a whole!

    I have a question for the Adobe Customer Serice Dept., not the "community" as a whole. And I expect an answer! I want to know why I am expected to sign up for another service package when I just paid $25+ yesterday to be able to convert files back and forth from a PDF to a Word file and then back to a PDF. What kind of rip-off is this?

    Hi,
    I am very sorry that you had unpleasant experiences with our customer service.
    If you would like to export your PDF files to MS Word files then ExportPDF tool will do the job.
    If you would like to convert MS Word files to PDF then ConvertPDF tool will the the job.
    If you would like to export your PDF files to Word file then convert the Word files back to PDF then PDF Pack service is required which includes ExportPDF/Convert to PDF/Combine Files tools.
    Please let me know if you have any questions/issues.
    Thank you.
    Hisami

  • Support ,​ ​ This is Thamer mohammad  ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .​ ​ Best wishes

    Support ,​
    This is Thamer mohammad
    ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .​
    Best wishes

    These boards aren't Apple Support; nobody here can reset the questions. Click here, phone Apple, and ask for the Account Security team, or fill out and submit this form.
    (90021)

  • HT5312 Dear Apple Support ,  I can't remember my security question answers , so Please help me to Create new Security Question for my Account .  Best wishes

    Dear Apple Support , I can't remember my security question answers , so Please help me to Create new Security Question for my Account .  Best wishes
    <Email Edited by Host>

    Welcome to the user to User Technical Support Forum provided by Apple.
    Please do not post personal information on a Public Forum.
    I have requested the Hosts remove it for you
    For your issue...
    See Here > Apple ID: Contacting Apple for help with Apple ID account security
              Ask to speak with the Account Security Team...
    Or Email Here  >  Apple  Support  iTunes Store  Contact
    More Info >  Apple ID: All about Apple ID security questions
    Note:
    You can only set up and/or change a Rescue Email Before you forget the questions/answers.

  • Dear Apple Support ,  This is amany alnajjar ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .

    Dear Apple Support ,
    This is amany alnajjar ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .

    The Best Alternatives for Security Questions and Rescue Mail
        a. Send Apple an email request at: Apple - Support - iTunes Store - Contact Us.
        b. Call Apple Support in your country: Customer Service: Contact Apple support.
        c. Rescue email address and how to reset Apple ID security questions.

  • Dear Apple Support , This is ***Abdurrahman*** ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account . Best wishes,

    Dear Apple Support ,
    This is ***Abdurrahman*** ,I can't remember my security question answers , so Please help me to Create new Security Question for my Account .
    Best wishes,

    The people on these boards aren't Apple Support and can't do that for you. You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (102461)

  • HT5312 I have been trying to reset my Apple security question for weeks, the site keeps taking me in circles!

    What is the simple way to reset my Security questions?

    Welcome to the Apple Community.
    Start here (change country if necessary) and navigate to 'Password and Security', reset your security questions using the link provided, you will receive an email to your rescue address, it has been reported that the email can take a while to arrive. Use the link in the email and reset your security questions.
    If that doesn't help, you don't receive a reset email or you don't have a rescue address, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

  • How can you change your security question for I tunes?

    How can you change your security question for I tunes?

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then the steps half-way down this page give you a reset link on your account : http://support.apple.com/kb/HT5312
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

  • I have a new email address and my old email keeps coming up on icloud when trying to update apps and i don't know the password or security questions for the old email. I can sign in with my apple id which is tied to another email but not itunes how to fix

    I have an apple id and it has my current email attached to it. however when i go to update apps it's asking for the password for an old email. I no longer have the old email and can't use it. when I go to icloud on my ipad it asks for the password for old email. it doesn't allow me to change the old email to current. when i go to reset it i can't remember the password or security questions for the old email so it doesn't let me go any further. How do I fix this? Do i need to call apple support?

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • I am having trouble answering my old security questions for my itunes account and it is creating a problem because I am not able to purchase apps/songs on my new IPAD. What phone number/email adress should I call to get a quick response to my issue?

    I have recently bought an IPAD 2 for my girlfriend and have encountered a problem with purchasing apps through my itunes account. It is requesting that I not only enter my pasword (which I know) but answer my old account questions, which I have forgotten the answers to. It had since locked me out of changing my questions for eight hours. Is there any number I can call to prove that I am the real owner of my itunes account so my girlfriend will be able to use her ipad to purchase new apps without having to go through the trouble of using one of my other apple devices? Random information: I believe my questions were set back in 2007 when I purchased my first ipod nano, since then I have used this same itunes account for my own ipod touch and ipad 2 and my girlfriends iphone 1st generation. I have never run into a problem regarding my questions before on any of these devices

    http://www.apple.com/support/itunes/contact/

  • I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put

    I seem to not enter the correct answers to my security questions for itunes to buy an in-app purchase and also cannot answer the questions exactly like i answered them when creating the account for my ipod, how do i find out what answers i put for my ipod touch and itunes?

    Try these previous discusssions:
    recover answers to security questions: Apple Support Communities
    how do i change apple ID security...: Apple Support Communities

  • I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file can anyone tell me why its not working?

    I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file can anyone tell me why its not working?

    1)  Apple ID: All about Apple ID security questions
    Torrifromny wrote:
    I want to reset my privacy questions for my apple i.d. But when i request to do so it sends it to a email address that isnt on my file ?
    2)  See Here.  Apple ID: Contacting Apple for help with Apple ID account security
    Ask to speak with the Account Security Team...
    3)  Or Email Here  >  Apple  Support  iTunes Store  Contact

  • I have an itunes account, and log in ok, but when buying an apps it asked for security answers to questions for which I have tried but cannot remember

    can anyone help I can log in to itunes, successfully, but when I try to buy anse app on ipod via itunes etc and it asks security questions I cannot remember what they are , have tried but no joy... help.. I cannot call support as I am deaf.

    Hello DreamCakes,
    The following article provides the necessary steps for restting your security questions.
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Cheers,
    Allen

Maybe you are looking for

  • AFS Elementary Field Extraction (Category Fields)

    Hello Guru's, I have a problem of extracting category fields. The problem is in the mapping of Characteristics (Category) to the Elementary fields in the R3 AFS BW interface. For an example if you take the category characteristic 'Quality" it has two

  • HTML Snippet was working on iWeb 08 but not now on iWeb 09

    Having upgraded to iWeb 09 from iWeb 08, suddenly I am unable to upload slideshows using a third party program called "SlideShowPro for Lightroom" successfully. They embed in iWeb fine but once they export they do not show up online. So, in short the

  • Custom report prime infrastructure 2.0

    Hi all. I'm missing a function in PI 2.0 (as I know from LMS 4.2). Reporting a MAC-Address-List by device (switch). In PI, I've only found a report "device" ==> "wired port attribute" ==> "wired port attribute detailed report" Here I can select "Repo

  • Internet on all apps except Safari and App Store?

    Hi, I got a question. I just bought an iPhone yesterday (before this I had Blackberry, but it broke for the second time already). All things work, got my apps installed and stuff like that. Now the problem is: Whenever i am NOT on Wi-Fi but i'm on th

  • Search by qualified parameter in a LookUP Qualified Flat Multi Valued Table

    I am working  on a MDM development but I am having some problems the development consists in searching in MDM a certain key but the thing is that this value is stored in a Look up qualified flat multi valued table, I have implemented a code that give