Does it matter if I call the same UDF several times in my mapping?

Hi !
I have to map one TXT file to an IDOC. One field of the source file is needed to define values of several IDOC target fields.
I've developed an advanced java UDF that receives the source field, calls an RFC via JCO to convert the source value, and returns the converted value.
Then I use this UDF as part of the graphical mapping, to define the values of about 10 or 15 fields of the IDOC. That is, the UDF is placed 10 or 15 times, one time for each target field.
My doubt is if this an expected way of solving this kind of problem..I'm worried about calling  the UDF (RFC via JCO) about 15 times for each source file record...and they could be 1000 aprox !
I've added a trace, and a global variable, and inside the UDF, I check if the current input value is equal the last processed value, if it is that case, then I return automatically the buffered value (in a global variable), avoiding the call to RFC....
Checking my trace...I see that the UDF is called with several different input values in some random order, so my "optimizacion method" does nothing.
Some ideas?
Thanks. Have a nice weekend.

Hi Matias,
we had a similar problem, and we solved it using a java has table stored in the global container.
During the mapping program, every time a new source-value has to be look up, that value becomes a new key of the hash and the result of the RFC call (target-value) is stored in the hash table as the value corresponding to that key.
So this avoid the problem of random calls with different values and you can read from the hash table if a value already exists in the hash table before calling the lookup RFC.
We implemented this solution and it works like a charm
Hope it helps,
Kind Regards,
Sergio

Similar Messages

  • When I plug in my panasonic videocamera iMovie doesn't recognize the videocamera (iPhoto does). I did the same operations several times in the past, I don't understand because is not working anymore...please

    I don't understand why iPhoto recognize the pictrures in the videocamera and iMovie doesn't recognize the videos and the videocamera.
    I see all the pictures taken in iPhoto but I can't see any video in iMovie because I don't see the videocamera in iMovie.
    I did the same operation several times in the past and always worked it out, with USB connection, I've tryed to restart the computer, to turn on and off the camera, to change cable, to change MAC: always the same problem!
    Please is anybody so kind to help me ? Thank you!

    hi dlpmaster!
    So, when it updates the program is working but then it sort of freezes. Then unfreezes and then again..
    hmmm. what antivirus applications are you using?
    as an experiment, does the freezing behavior still occur if you disable the antivirus prior to plugging your ipod in?
    love, b

  • It's currently taking me ages to send multiple emails as I'm having to copy and paste the email each time. Does anyone know if there is a way that I can send the same email several times but that can be addressed (Dear....) to different people?

    It's currently taking me ages to send multiple emails as I'm having to copy and paste the email each time. Does anyone know if there is a way that I can send the same email several times but that can be addressed (Dear....) to different people?

    Oh at least just duplicate the same email several times so all I will be maunally inserting each time will be the address/name??? Please help!!!

  • Hi. My 2013 MacBook Air has suddenly reverted to a previous Excel spreadsheet (from May). I use the same spreadsheet several times a day and hit cmd 's' every 5-10 minutes. How can I find the version I was using yesterday?? Please help. Thanks

    Hi. My 2013 MacBook Air has suddenly reverted to a previous Excel spreadsheet (from May). I use the same spreadsheet several times a day and hit cmd 's' every 5-10 minutes. How can I find the version I was using yesterday?? Please help. Thanks

    Might be something for you here > Automatically save and recover files - mac excel

  • Printing the same picture several time on the same paper

    I use to be able to print the same photo on 1 paper , often to create ID photos but i cannot succeed anymore with the latest version of my i photo !!!! any help is welcome

    Welcome to the Apple Discussions. Once you choose your photo, paper size and print size you'll get this window. Now click on the Customize button and in the next window click on the Setting button and select the option seen in this screenshot.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.≤br>
    Note: There now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Time Capsule backs up the same amount several times

    Right now I'm using my laptop and for the past 3 hours, my Time Capsule has backed up 2.3GB. I'm just surfing the web!!!!. No idea of why it backs up the same amount while doing nothing

    Welcome to the discussions!
    Suggest that you download Time Tracker to find out what is taking up the space on your backups. Depending on how much data you have on your Time Capsule, it may take 5-10 minutes for everything to load the first time you run the program. You will be able to see exactly what is backed up on each run.
    May be a program like VM Fusion, Entourage, Aperture, and others that backup their entire database whenever any small change is made. If that's the case, you can exclude that program from Time Machine backups and do this manually.
    If you don't really need to backup each hour, you might want to take a look at Time Machine Editor to allow you to schedule backups whenever you like.

  • HT5622 i downloaded a book.  howver it did not go through the 1st time - yet  I was billed for the same book several times

    i used Itunes to download a book
    it did not download the 1st several times....and I did not get it
    it finally went thru
    but I was billed several times for the same book
    how can I get the duplicate charges for the same book reversed?

    Try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via the Store > View Account menu option and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that book and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, about 24 hours).
    If the 'report a problem' link doesn't work (it's been taking some people to this site on a browser instead of showing a form in iTunes) then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption.

  • "Open with" menu displaying the same apps several times...

    I've tried googling this several times but never really found a good answer nor a way to solve this (see image below)...
    As you can see, the "open with" menu displays the GROUP OF APPS several times, not just the apps themselves... Funny thing is, this only happens when I navigate with the keyboard to the "open with" option, i.e., if I highlight it with the mouse a correct menu pops up...!
    Any thoughts on how to fix this?
    NOTE: This has happened to me since Leopard.

    Ok, I will try your suggestion (reinstalling Snow Leopard), maybe not today or tomorrow since this is my work computer but when I have a little time off...
    Just so you can see the "error in action" (the 'insert video' button was disabled, hence the link): http://dl.dropbox.com/u/10042917/Error.mov
    It's a screen recording of me trying to "open with" an image file 1st using the mouse and then using the keyboard (NOTE: if the first navigation in the menu is done with the keyboard, i.e., if you highlight "open" using the keyboard and then navigate to "open with" with the mouse I will still get the repeated menu while... in other words, the use of the keyboard always activates the repeated menu.)
    Anyway, thank you for your help

  • EXECUTE THE SAME JSP SEVERAL TIMES

    Hi all,
    this is my problem:
    I have a formula, when it gets submited the data goes to a jsp that generates a html. The first time i submit it i works fine, it runs the jsp ... everything is ok but if i submit it again it doent not run the jsp again, it just show the page it generated during the first execution. The jsp only gets executed when i click on the reload button of the browser.
    thanks in advance for your help

    What you are saying is quite improbable and I feel that you are making some mistake some where.
    I could have called it a browser caching problem... but you are saying that you are doing a submit ... and all browsers send data to a server whenever a form is submitted. It may reload from cache but NEVER on submit.
    Check what u r doing and still if u r sure you are correct, then change your web server
    Shubhrajit

  • Diplay Message with ABAP Planning Function (same message several times)

    Hello experts,
    I use a ABAP Planning Function (custom developed funtion type) to vaildate the planning data.
    I want to display the validation results in a message box in the workbook. Therefor I use the Parameter I_R_MSG of the "Execute" Method.
    This works fine, BUT
    I want to display the same message several times.
    Example (I want an output in the message box like this):
    AREA1
      Error Message A
    AREA 2
      Error Message A
      Error Message B
    The system merge the identical messages. And the output is this:
    AREA 1
      Error Message A
    AREA 2
      Error Message B
    Can I avoid the automatical merge of identical messages in the monitor?
    Thanks
    Johannes

    Hello Johannes,
    I think the only way is to use a field for (e.g. MSGV4) to group the messages since the system compares
    all fields msgty, ..., msgv4 to identify duplicates. So if your messages do not use msgv4 the above suggestion
    should work.
    Regards,
    Gregor

  • I have an iPod and an Ipad and want to use FaceTime calling from the iPod to the Ipad but it does not work. I use the same iCloud acount.

    I have an iPod and an Ipad and want to use FaceTime calling from the iPod to the Ipad but it does not work. I use the same iCloud accountedge

    Did you set up different email addresses for each device?
    iOS: Using FaceTime
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems

  • How does one remove duplicate versions of the same songs on an iPhone5?

    How does one remove duplicate versions of the same songs on an iPhone5?

    Yes, I use Live Bookmarks.
    This is the RSS http://www.ctech.com/forum/rss.php
    Each of those entries at the RSS site show up in my Firefox RSS folder twice. The content of each entry when I go to it is exactly the same. It's not that one is the reply to the original post or anything like that. For instance, see the attached image of the list of items that show up. The highlighted yellow on top is an example. Both of those links display exactly the same original post and replies. Why is that? Is is possible that somehow I'm subscribed twice? Does that make sense? How can I delete the duplicates, or for that matter, clear all those items that show on the list? I just want to see the new ones. Thanks.

  • NSArray of UIButtons calling the same function

    I've been thinking and searching and I can't figure it out. I've come across these two threads which seem to be pieces of my issue:
    http://discussions.apple.com/message.jspa?messageID=7891554
    http://discussions.apple.com/thread.jspa?threadID=1985019&tstart=0
    I'm basically attempting to create an array of 9 UIButtons which will all call the same function, but I need to know which button was clicked.
    I'm not entirely sure how to create the NSArray of buttons, and when I include (id)sender with the selectSquare function, it doesn't work. Any help is much appreciated!
    // Square a1
    a1 = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    [a1 setFrame:CGRectMake(0.0f, 0.0f, 70.0f, 70.0f)];
    [a1 setBackgroundImage:[UIImage imageNamed:@"black.png"] forState:UIControlStateNormal];
    [a1 setCenter:CGPointMake(60.0f, 200.0f)];
    [a1 addTarget:self action:@selector(selectSquare) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:a1];
    // I currently have the previous "a1" button code repeated 9 times, each
    // with a different button name... I want to put all these in a single
    // array instead
    -(void) selectSquare:(id) sender {
    if(turn == x) {
    [sender setBackgroundImage:[UIImage imageNamed:@"x_button.png"] forState:UIControlStateNormal];
    statusImage.image = [UIImage imageNamed:@"o_image.png"];

    TicTacToe indeed!
    The positions I have for my buttons seemed to be perfect when I tested them, so I just went with that vs. using IB.
    As for the tag property, would it just be an int? Like:button1.tag = 5And then use the tag as that button's index in the array? So the button with tag 5 would be the 6th element?
    Also, I'm still not sure on why -(void) selectSquare:(id) sender; doesn't work. When I click on "a1" (the current button with an action assigned to it), the simulator does nothing and then brings Xcode to the front... But when I take out (id)sender, it works fine.
    In the second thread I posted, somebody mentioned something about unbinding and rebinding control actions to fix this, but I'm not too sure what that process entails.
    Here is my interface for that controller:#import <UIKit/UIKit.h>
    @interface TicTacToeViewController : UIViewController {
    UIImageView *statusImage;
    UIButton *playButton;
    UIButton *a1;
    UIButton *a2;
    UIButton *a3;
    UIButton *b1;
    UIButton *b2;
    UIButton *b3;
    UIButton *c1;
    UIButton *c2;
    UIButton *c3;
    //IBOutlet UILabel *gameText;
    //IBOutlet UILabel *x_score;
    //IBOutlet UILabel *o_score;
    //IBOutlet UILabel *round;
    NSInteger turn;
    //NSInteger xscorevalue;
    //NSInteger oscorevalue;
    @property(nonatomic,retain) IBOutlet UIImageView *statusImage;
    @property(nonatomic, retain) UIButton *playButton;
    @property(nonatomic, retain) UIButton *a1;
    @property(nonatomic, retain) UIButton *a2;
    @property(nonatomic, retain) UIButton *a3;
    @property(nonatomic, retain) UIButton *b1;
    @property(nonatomic, retain) UIButton *b2;
    @property(nonatomic, retain) UIButton *b3;
    @property(nonatomic, retain) UIButton *c1;
    @property(nonatomic, retain) UIButton *c2;
    @property(nonatomic, retain) UIButton *c3;
    //@property(nonatomic,retain) IBOutlet UILabel *gameText;
    //@property(nonatomic,retain) IBOutlet UILabel *x_score;
    //@property(nonatomic,retain) IBOutlet UILabel *o_score;
    //@property(nonatomic,retain) IBOutlet UILabel *round;
    @property(nonatomic) NSInteger turn;
    //@property(nonatomic) NSInteger x_score;
    //@property(nonatomic) NSInteger o_score;
    //-(void)reset:(BOOL) newGame;
    -(void) selectSquare:(id) sender;
    @end

  • Step into method- call the same method (bermuda triangle)

    I don't know why but I have:
    step into method1-> call the same method1->step into method1-> call the same method1->step into method1-> call the same method1 and so on.
    Off course, the result is error "stack over flow".
    public Object getObject(Object o, String msg) {
              Object object = null;
              if (o instanceof Center) {
                   object = this.getObject((Center) o, msg);
              if (o instanceof Student) {
                   object = this.getObject((Student) o, msg);
              if (o instanceof Curriculumn) {
                   object = this.getObject((Curriculumn) o, msg);
              if (o instanceof Course) {
                      System.out.println("YAHOO!");
                object = this.getObject((Course) o, msg);
                   System.out.println("google");                                // no google
              return object;
    public Object getObject(Curriculumn curriculumn, String msg) {
              Object object = null;
              if(msg.equals("Author")) {
                   String s = new String();
                   curriculumn.setAuthor(s);
                   return s;
              if(msg.equals("CurriculumTitle")) {
                   String s = new String();
                   curriculumn.setTitle(s);
                   return s;
              if(msg.equals("RevisionDate")) {
                   String s = new String();
                   curriculumn.setRevisionDate(this.stringToCalendar(s));
                   return s;
              if(msg.equals("id")) {
                   String s = new String();
                   s ="0";                                     //dfsfsdfsd_____________0
                   curriculumn.setId(Integer.parseInt(s));
                   return s;
              if(msg.equals("Course")) {
                   Course course = new Course();
                   curriculumn.addCourse(course);
                   return course;
              return object;
         public Object getObjest(Course course, String msg) {
              Object object = null;
              if(msg.equals("RevisionDate")) {
                   String s = new String();
                   course.setRevisionDate(this.stringToCalendar(s));
                   return s;
              if(msg.equals("Author")) {
                   String s = new String();
                   course.setAuthor(s);
                   return s;
              if(msg.equals("Task")) {
                   Task task = new Task();
                   course.addTask(task);
                   return task;
              if(msg.equals("id")) {
                   String s = new String();
                   s = "0";                             //dfsdfffffffff______________________--3
                   course.setId(Integer.parseInt(s));
                   System.out.println("MESSAGE in id COurse"); ///9009090909
                   return s;
         if(object==null) System.out.println("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA");     
         return object;
         } The problem is that getObject((Curriculumn curriculumn,...) works well, but getObject((Course course, ) not.
    The out put is
    Yahoo
    Yahoo
    Yahoo
    and so on... it does not print google

    You forgot to use the @Overload
    annotation.
    Err.. @Override ?Won't work here :):-( Obviously I'm missing the point!There isn't one :)

  • When I try and play music on my iPhone downloaded from iTunes it says 'this URL is not found on this server'. This does not happen when I play the same music through my iPad. Can anyone help?

    When I try to play music downloaded from itunes on my iPhone 4S it says 'this URL is not found on the server'. This does not happen when I play the same music on my iPad. The music plays fine. The message also comes up when I try and login to iTunes on my iMac. Can anyone help?

    I too am having the same issue as the OP.
    Your USER AGENT information is Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/600.3.18 (KHTML, like Gecko) Version/8.0.3 Safari/600.3.18
    Every webserver that receives a request from your browser is able to determine the HTTP USER AGENT information unless it has been removed by some software (e.g. firewall) before the request was trasmitted.

Maybe you are looking for

  • Software update for ipod touch 1st generation

    quick question. i ahve a 1st gen ipod touch and theres a few apps that when i try to download them it says i need the iphone 3.0 upgrade. if i purchase the 3.1 software upgrade will i be able to download those apps or are they only avaliable on the i

  • Time Series Objects for a Planning Area

    Hi all, Can anyone let me know why do we create Time Series Objects for a Planning Area. What is its Role & significance.. Regards,. Vishal.S.Pandya

  • Why is fire fox saying (not responding) all the time

    I refresh the firefox but still takes long time or says NOT RESPONDING. Please help

  • BoundsInScene property

    Referring to Re: How do I listen for change in the global position of a Node there is no "super easy" way to listen to a node's boundsInScene. I really hope that this is not true or that there is a reasonable workaround for this. Otherwise I'm afraid

  • Smartview connectivity to HFM issue

    Problem Description Smartview is not connecting to HFM application. Other apps like Essbase, Workspace (IR & FR) all are fine. Smarview v 11.1.2.2 & HFM v.11.1.2.2; Error Codes Failed to Authenticate users. Problem Category/Subcategory Shared Service