How to write a UDF which when encountered it should stop the map

hi all,
My task is to write a UDF which when encountered it should stop the map and return what is given as an input to the UDF For ex: UDF(map failed!)
when this udf is encountered than the map should stop and the output output should be mapfailed!

<i>But over there it is given to stop a particular mapping step only But my requirement is that i should stop the Entire Mapping process</i>
UDFs r used in graphical mappings and the details in blog shows that when a UDF stops a mapping, it in turn stops whole messgae mapping. So ur entire Mapping process would get stopped
Regards,
Prateek

Similar Messages

  • How To Make A Program Which When I Press A Button The Number Goes Up One?

    I have already made this:
    import java.awt.Container;
    import java.awt.LayoutManager;
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JTextField;
    import javax.swing.JButton;
    public class Lab04 extends JFrame
    private Container content;
    private LayoutManager layout;
    private JLabel number, division, modulus, space;
    private JTextField text;
    private String string;
    private ActionListener listener;
    private char char1;
    private int x, Add1, Add2;
    private JButton bAdd;
    public Lab04()
    formatWindow();
    listener = new Handler();
    bAdd = createAndAddButton("+1");
    number = createAndAddLabel("Current Number: 0");
    division = createAndAddLabel(" n DIV 4 = 0");
    space = createAndAddLabel(" ");
    modulus = createAndAddLabel(" n MOD 4 = 0");
    public void formatWindow()
    content = getContentPane();
    layout = new FlowLayout();
    content.setLayout(layout);
    private JLabel createAndAddLabel(String s)
    JLabel temp = new JLabel();
    temp.setText(s);
    content.add(temp);
    return temp;
    private JTextField createAndAddTextField(int x)
    JTextField temp = new JTextField(x);
    temp.addActionListener(listener);
    content.add(temp);
    return temp;
    private JButton createAndAddButton(String s)
    JButton temp = new JButton();
    temp.setText(s);
    temp.addActionListener(listener);
    content.add(temp);
    return temp;
    private void process()
    int x = 0;
    Add1 = x +1;
    private void output()
    number.setText("Current Number: "+x+1);
    private class Handler implements ActionListener
    public void actionPerformed(ActionEvent e)
    process();
    output();
    public static void main(String[] args)
    //create graphics window
    Lab04 window = new Lab04();
    //configure graphics window
    window.setSize(200, 150);
    window.setLocation(300, 175);
    window.setTitle("Unit 3 Lab03: Filling Out Forms");
    window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    //display graphics window
    window.setVisible(true);
    And all it does is it gives me the number 01, what should I do?

    public void process{
    int x = 0;
    Add1 = x +1;
    }just what is this supposed to do? every time you call it, it create a primitive x with value 0, and then makes Add1 equal to x+1. that will be 1 no matter how many times you call it.

  • HI, I need your help. How can I delete all data, when I do not have the special security code, which I didn´t remember ? I also think, that I never create this code before. But I cannot put my settings back.

    HI, I need your help. How can I delete all data, when I do not have the special security code, which I didn´t remember ? I also think, that I never create this code before. But I cannot put my settings back.

    You must remember the code, if you can't then take the phone and proof of purchase to an Apple Store.

  • My iPod classic has stop working and when ever i try to synch it there is a alert saying that do not disconnect it and there are some songs which when i try to play the iPod re-starts again so please tell me what is the issue

    my iPod classic has stop working and when ever i try to synch it there is a alert saying that do not disconnect it and there are some songs which when i try to play the iPod re-starts again so please tell me what is the issue and some sound is comming from the back pannel .
    so please do something about it and give me the solution
    thank you,
    Saajan jain

    To give you something, I need something too, like
    How old is the Ipod? (if it is still under warranty, then send it to Apple service shop)
    Are you running Windows iTunes or Mac iTunes?
    What do you see on the iPod screen?
    My guess is, your iPod classic is more than 2 years old and out of warranty, and the hardisk has gone kaput! and need to be replaced.
    Have a nice day!

  • How to exclude STOs from GATP, when we need to ship the "Customer return" products from branch to Central DC?

    How to exclude STOs from GATP, when we need to ship the "Customer return" products from branch to Central DC?
    We have to set up a scenario for sending "Customer returned" products from branches to Central DC through STO. But we do not want GATP check for these STOs, as they are Customer Returns, which need to analyze at CDC for further actions. We are using SCM 7.0 and ECC 6.0
    Thanks in advance,
    Ravi

    Hi,
    You can exclude the "customer returned" category from the scope of check from that particular Check control

  • How do i fix my printer when it won't show the print preview for web pages? it worked and now not.

    how do i fix my printer when it won't show the print preview for web pages?  it worked for a while and now it doesn't.  printer is an hp officejet 7310 all-in-one.

    I would suspect this is a hardware issue.  The rollers are probably having issues picking up the relatively smooth thick media.  You might have better results be cleaning the paper pickup rollers with a damp paper towel.  Also make sure the paper is snugly loaded and the paper guides have been correctly positioned.
    Regards,
    Bob Headrick, MS MVP Printing/Imaging
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • I have iphone 5s which when i connect to import the pictures directly to my windows computer. a folder by the name of my phone appears in "My Computer" . when i open it, it shows the storage information and one icon to click on. when opened it shows

    i have iphone 5s which when i connect to import the pictures directly to my windows computer. a folder by the name of my phone appears in "My Computer" . when i open it, it shows the storage information and one icon to click on. when opened it shows a couple of folders to click upon to view pictures. when i open the pictures folder and delete all the pictures , even then a lots of unclickable windows icons remain
    i have attached the picture of that window's screenshot. plus when ever i try deleting them it says,
    please help!.. i shall be really thankful.
    iPhone 5s, iOS 8

    I have the same issue and it has to do with iOS 8.2
    Apple, please mend this ASAP. Really stupid change since iOS 8.1
    If you for some reason must have many different folder make sure that you put the newst photo in the last folder so one can easily find a photo when I don't want to copy all photos to, let' say, my friend computer.

  • TS2755 How do I turn of imessage when i no longer have the iphone!?

    How do I turn of imessage when i no longer have the iphone it was activated on? so frustrating dont get any messages from iphone friends also it seems like there is no solution to this problem and to make it worse apple cant help without a serial number!!

    please
       Allan Sampson  
       wjosten  
    can you do something about my message, to much personnal info. Possible to make it diseappear ?

  • How can I use Guest network when my internal server provides the DNS?

    How can I use guest network when my internal server provides the DNS? The help article TS4505 tells me to enter an external DNS server, but I believe I can not configure my network that way...

    Apple assumes that you will be connecting the Time Capsule to a simple modem....and.....that the Time Capsule is configured as a router to provide DHCP and NAT services for the network.
    The Guest Network cannot be enabled correctly unless the Time Capsule is in charge of DHCP and NAT services on the network.
    Another way of saying the same thing is that the Guest Network will not operate correctly if the  Time Capsule is configured in Bridge Mode or DHCP Only.

  • How do I disable immediate delete when I pit something in the trash ?

    How do I disable immediate delete when I put something in the trash ?

    http://forums.macrumors.com/showthread.php?t=835768

  • I put in my gift card code and at the top of my home page it says that I have 15 dollars. When I go to purchase it still makes me put in the code and says that it invalid. How do I pay for something when I already put in the code? please help

    I put in my gift card code and at the top of my home page it says that I have 15 dollars. When I go to purchase it still makes me put in the code and says that it invalid. How do I pay for something when I already put in the code? please help

    See Here  >  http://support.apple.com/kb/TS1646
    If no joy...
    Contact iTunes Customer Service
    Apple  Support  iTunes Store  Contact Us

  • HT201441 how can i activate my phone when i can't remember the apple ID that was logged inside my iphone?

    how can i activate my phone when i can't remember the apple ID that was logged inside my iphone?

    To find your Apple IDs go here...
    Look up your old and forgotten Apple ID

  • When sending attachment in email the image is so large it takes up the screen, how do i make it normal, when sending attachment in email the image is so large it takes up the screen, how do i make it normal

    when sending attachment in email the image is so large it takes up the screen, how do i make it normal, when sending attachment in email the image is so large it takes up the screen, how do i make it normal

    In the Mail app, open the help menu. You will find your answer under "add attachments"

  • How to rotate pictures from iphone  when you put them on the computer

    how to rotate pictures from iphone  when you put them on the computer

    The program you use on your computer to view the picture might have a feature to allow you to rotate the photo

  • I start my macbook up an i write my password but when i come in only the background shows ????

    I start my macbook up an i write my password but when i come in only the background shows ????

    I start my macbook up an i write my password but when i come in only the background shows ????

Maybe you are looking for

  • Purchase Order qty changed from 10 to zero, system takes as one

    Hi experts, SRM 7.0 EHP2 without EP. PO is created with 10 line items and qty of each line item is greater than zero. The qty of one line item is changed to zero and clicked/saved. The system takes the qty as one inspite of original qty more than one

  • Problems with P6 R8 Web Application

    Hi, I am currently experiencing problems accessing the web app. I have installed and configured the application (both MS1 and Admin Server) using the admin server configuration panel. My final stumbling block I believe is the correct URL to launch th

  • How do I get thumbprint images to appear in the Organizer of Photoshop Elements 13?

    After installing 13, I get hourglass symbols for all the pictures in the catalog, and when I click on them, I can see the picture image, but obviously can't search the catalog visually. Any ideas?

  • Oracle rac 11g installation

    Hi Am planning to install oracle RAC 11g on linux server. Have doubt on installation of clusterware or grid infrastructure first .? I think grid infrastructure covers clusterware and ASM both and then oracle 11g software to be installed. But how to d

  • VAT for sales

    Hi, I want detailed config steps for vat on sales. Please provide a detailed list of config settings. Thanks CHEERS