Handling unpredicted error message with return value of the same  in BDC

Hi all,
When i create a bdc program to create a purchase order , the screen stops at an message (of type I).
in background mode (eg : Sometimes becoz of condensing problem in fields and character conversion).
In such cases i need to move on with transaction by handling this popup.
Is there any way that i could atleast handle an information(Non critical) message and make the value of the message as always 'OK' .

Hi,
FORM populate_data  USING    value(p_fieldname)
                             value(p_fieldval).
  CLEAR t_bdcdata.
  bdcdata-fnam = p_fieldname.
  bdcdata-fval = p_fieldval.
    Condense p_fieldname.
    Condense p_fieldval.
  APPEND t_bdcdata.
ENDFORM.                            
Hope this Code will Work.
Provide me with your Code  i will try to  help you....
Thanks
kalyan.

Similar Messages

  • Urgent! Display lookup value and return value at the same time.

    We are using pop up lov.
    How can we display lookup value and return value at the same time. let me claer..
    Our lov query is like fallowing
    select dname, deptno from dept
    we want to return deptno column into a database bind text item and dname column into a display item (look up)
    can we do it (we need to do)
    thanks for your help.

    We did it .
    But pop up key lov (display description return value ) property doesn't appear for tabular forms item.
    (Report Attributes pages Tabular Form Element section display As property list)
    can we set or not.
    Thank you.

  • Error message with offer to download the 4.1.B.0.587 update and note: "installation not possible" (because it's already there) cannot partition SD card

    Hi - Recently I put the latest update on my LT15i (4.1.B.0.587), after this I rooted the phone, and everything seemed okay. But since then I keep getting an error message with an offer to download the 4.1.B.0.587 update and the note: "installation not possible" (because it's already there). The news line on top shows a red exclamation mark all the time. It seems to me that it is due to this error that I cannot partition my SD card. Does anybody have an idea how to fix that? Thanks much in advance, and happy holidays - nerissa

    Moved thread to Android development.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Displaying an error message with a link to the error field

    By default, ADF validation usually displays an alert with an error message and a link to the error field.
    I have some custom validations where I finally display the error message with this:
      public static void MessageError(String messageText){
        //String messageText="No se han encontrado estos datos";
        FacesMessage fm = new FacesMessage(messageText);
         * set the type of the message.
         * Valid types: error, fatal,info,warning
        fm.setSeverity(FacesMessage.SEVERITY_ERROR);
        FacesContext context = FacesContext.getCurrentInstance();
        context.addMessage(null, fm);
    My customer is asking for displaying a link to the error field in this kind of error alerts as standard errors do.
    Is there any way to get this ?

    Can't you include this in your message?
    You may want to check Duncan's blog https://blogs.oracle.com/groundside/entry/get_more_from_your_messages whichgives more inside on what you can do
    Timo

  • Error Message with Itunes "Some of the items in the Itunes Library...

    Itunes gives me the following message when I hook up my Ipod.
    "Some of the items in the Itunes library were not copied to teh Ipod because they could not be found"
    For some reason my Ipod gave me this message. I went through and recopied my songs from the file on my computer and deleted the duplicates that had issues. Everything works fine for awhile. Then I hook it up again and get the error message again. I am not sure what to do now. Any ideas? Thanks for any help you can give me.

    I got this message regarding my iTunes purchases when I got a new computer. I had to go into the Store/Authorize Computer... menu selection in iTunes and provide my iTunes Store ID and password. Don't know if this applies to you, but it fixed my problem. Even if you aren't on a new computer you might want to give it a try.

  • I'm having problems burning discs,whether it is photos or music i keep getting error messages,i have been using the same brand for years and have faith in them and this problem has only started since I got a new hard drive installed,any thoughts ? thanks

    at the moment i have had a disc in for at least 20 mins and it's still 'finishing' sems a bit long for 17 songs . also the fan is on almost all of the time , maybe that has a bearing .. ? I'd appreciate some help here as it is getting increasingly frustrating . alao when i put in the discs that i have used they do not register on the desktop . so i have been wasting lots of discs doing this .
    Thank you all .

    What brand of media are you using?
    What error messages are you getting?
    What application/s are you using to burn?
    iDVD: Troubleshooting issues with burning discs
    http://support.apple.com/kb/HT1583
    Mac OS X: "Unknown Error -2147352480" when burning CD-R, CD-RW, or DVD-R media
    http://support.apple.com/kb/HT2718

  • Item with many values in the same page

    Hi!
    This is how ma page will look :
    item 1 : textfield
    item 2 : textfidl
    item3 : list1
    list2
    ... list3
    button add item3
    item3 can take mutiple values (1 or more) for the same
    values of item1 ans item2.
    the user has to click on a button in order to add a value to item3
    I am looking for how can I do that ?
    thank you for help

    Sorry Kglad, I didn't mean to be rude. With "No coding
    errors" I meant the animation itself runs with no errors. I'm sure
    you could run the 20 instances with no freezing (that's why I put
    the post :) ) But I'm affraid it is an animation for a client, so I
    cannot distribute the code.
    Perhaps I didnt explain the situation clearly enough (in part
    because of my poor english...).-
    - By 20 instances I mean 20 separated embedded objects in the
    html
    - The animation is relatively simple. A turned on candle, in
    each cycle I calculate the next position of the flame (that
    oscilates from left to right). The flame is composed by 4
    concentric gradients. There is NO loops, only an 'onEnterFrame'
    function refreshing the flame each time.
    - It's true that I got plenty variables at the _root level.
    If that could be the problem, how can I workaround it?
    - It is my first time trying to embed so many objects at the
    same time too. No idea if the problem could be the way I embed the
    object from the html :(
    - The only thing I can guess is that when a cycle of one of
    the object is running, the other 19 objects must wait their turn.
    That would explain why the more instances I run, the worst results
    I get. In that case, I wonder if there's a way to run them in a
    kind of asynchronous mode, just guessing...
    Any other comment would be appreciated. Anyway, thanks a lot
    everybody for your colaboration.

  • Messaging With Multiple Devices on the Same iTunes Account

    My husband and I each have an iPhone 4s.  We share the same iTunes account.  We have never had any problems texting.  My daughter got an iPod Touch for Christmas.  So we set it up using the same iTunes account (since I was told you can have up to 5 devices on 1 acct).  Now when any of the 3 of us send a text, it shows up on all 3 devices.  It didn't happen before with just the 2 iPhones, but after adding the touch it does with all 3.  Even if a txt is sent between the 2 iPhones, it shows up on the touch.  And everything is set to 'off' except "find my iPhone" under on the iCloud settings on both phones Any suggestions???

    Go into Settings -> Messages -> Send & Receive on the devices that your would not like to get your text messages to.
    Then remove the email addresses that you would not like to be reached on, especially the one that is the same as your Apple ID.
    Just leave the phone number there, and then the text messages should only appear on your iPhone 4s.

  • How can I create a hashmap() with multiple values for the same key?

    I am trying to write an application that will us something like a Map() with multiple values but some have the same key. Is this possible?

    i had the same question. just create a List, add all the values u want to it, and then put the List into the map like u would a normal single value. e.g.
    List list = new ArrayList();
    list.add(value1);
    list.add(value2);
    map.put(key, list);
    i bet u r doing the same course as i am =)

  • IT0041 : Same date type with different values in the same infotype

    Hi,
    Is it possible to store in the 0041 infotype, the same type date but with a diffentent date.
    Example :
    IT0041
    employee 1000:
    date type : xx 01.05.10
    date type : xx 02.05.10.....
    Thanks

    Hi there,
    My two cents.
    I don't think it can be done in standard. Also copying IT 0041 would limit you to enter only 12 dates.
    My suggestion:
    Create a custom infotype with subtype field and a date field like IT 0015.
    On the screen you will only be seeing subtype and date. And assign time constraint 3 to it.
    In this way with the same subtype you can record several dates.
    cheers
    Ajay

  • Defining return values of the same class in interface implementations

    hello,
    i'm trying to update older code to java 1.5 using generics. i'm new to generics and i have a problem i cannot solve: assuming the interface
    public interface Stake
         public Stake makeACopyAndShift( long delta );
    }and the class
    public class BasicStake
          private final long pos;
          public BasicStake( long pos )
                 this.pos = pos;
          public Stake makeACopyAndShift( long delta )
                  return new BasicStake( pos + delta );
    }... and a container class Trail:
    public class Trail<S> {
           private final List<S> stakes = new ArrayList<S>();
           public Trail() {}
           public void add( S stake ) { stakes.add( stake ); }
           public S get( int index ) { return stakes.get( index ); }
           public void shiftAll( long delta )
                  final List<S> stakesNew = new ArrayList<S>( stakes.size() );
                  S orig, copy;
                  for( int i = 0; i < stakes.size(); i++ ) {
                          orig = stakes.get( i );
                          copy = (S) orig.makeCopyAndShift( delta );
                          stakesNew.add( copy );
                  stakes.clear();
                  stakes.addAll( stakesNew );
    so that i could do:
    Trail<BasicStake> t = new Trail<BasicStake>();etc.
    how do i manage to get rid of the warning
    "Type safety: The cast from Stake to S is actually checking against the erased type Stake"
    with casting to (S) in the for-loop in the shiftAll function? Obviously the problem is that in interface Stake the return type of makeCopyAndShift should not be Stake but "<SameClassAsMe>", so that in BasicStake the method would be
    public BasicStake makeCopyAndShift( long delta ) { ... }. how do i accomplish that?
    thanks a lot!
    ciao, -sciss-

    This seems to work just fine for me:
    public class Foo {
        public static void main(String[] args) {
            Trail<Stake> trail = new Trail<Stake>();
            trail.add(new BasicStake(1L));
            trail.add(new AnotherStake(1L));
            trail.shiftAll(10L);
    interface Stake {
         public Stake makeACopyAndShift(long delta);
    class BasicStake implements Stake {
        private final long pos;
        public BasicStake(long pos) {
            this.pos = pos;
        public Stake makeACopyAndShift(long delta) {
            return new BasicStake(pos+delta);
    class AnotherStake implements Stake {
        private final long pos;
        public AnotherStake(long pos) {
            this.pos = pos;
        public Stake makeACopyAndShift(long delta) {
            return new AnotherStake(pos*delta);
    class Trail<S extends Stake> {
        private final List<Stake> stakes;
        public Trail() { stakes = new ArrayList<Stake>(); }
        public void add(S stake) { stakes.add(stake); }
        public Stake get(int index) { return stakes.get(index); }
        public void shiftAll(long delta) {
            final List<Stake> stakesNew = new ArrayList<Stake>(stakes.size());
            for(int i = 0; i < stakes.size(); i++ ) {
                Stake orig = stakes.get(i);
                Stake copy = orig.makeACopyAndShift(delta);
                stakesNew.add(copy);
            stakes.clear();
            stakes.addAll(stakesNew);
    }

  • Problem with return value of stored function

    Hi,
    I've made a stored function that insert a new row in a table and return the primary key (see at the end of the message the function script).
    In VS 2005 with Visual basic, using the designer, I've created a dataset containing a tableAdapter to be able to use the Pl/SQL function.
    My problem is I can't get the proper return value. The VB code below works without error except that I get 0 as value.
    What's wrong?
    Cheers,
    Sebastien
    VB code
    Dim myAddSession As New ICISDataSetTableAdapters.AddSessionTableAdapter
    Dim intSessionId As Integer
    intSessionId = myAddSession.ADD_SESSION(tbxUsername.Text, _
    tempFolder.Substring(tempFolder.LastIndexOf("\") + 1), _
    "toto", Environment.GetEnvironmentVariable("COMPUTERNAME"), _
    myLevelAccess.icisUserId, myLevelAccess.levelId)
    The debugger tells me that the ADD_SESSION function return value is Object.
    add_session PL/SQL script:
    CREATE OR REPLACE FUNCTION ICISSEC.add_session (
    orausername IN icis_session.ora_user_name%TYPE,
    ctxsessionid IN icis_session.ctx_session_id%TYPE,
    ctxsessionname IN icis_session.ctx_session_name%TYPE,
    ctxservername IN icis_session.ctx_server_name%TYPE,
    icisuserid IN icis_session.icis_user_id%TYPE,
    startlevelid IN icis_session.start_lvl_id%TYPE
    RETURN icis_session.ICIS_SESSION_ID%TYPE
    IS
    tmpvar icis_session.ICIS_SESSION_ID%TYPE;
    BEGIN
    INSERT INTO icis_session
    (ora_user_name, ctx_session_id, ctx_server_name,
    icis_user_id, start_lvl_id, ctx_session_name
    VALUES (orausername, ctxsessionid, ctxservername,
    icisuserid, startlevelid, ctxsessionname
    RETURNING icis_session_id
    INTO tmpvar;
    COMMIT;
    RETURN tmpvar;
    EXCEPTION
    WHEN OTHERS
    THEN
    RAISE;
    END add_session;

    naama wrote:
    that if a value is null to convert it to 0 ? . i mean in the part of the declaration of parameter
    Nope, can't do that in the signature. You'll need to handle that by validating the passed parameters at the start of the function.
    It's simple enough. In your case you might just as well test for NULL and fail the function like this:
        FUNCTION date_post_message(
                user_lock_in IN NUMBER,
                form_type_in IN NUMBER DEFAULT 0 ,
                date_in      IN DATE)
            RETURN BOOLEAN
        IS
            v_num NUMBER(1);
        BEGIN
            dbms_output.put_line('Value of parameters : user_lock_in : '||user_lock_in || ' : form_type_in : '||form_type_in||' : date_in : '||date_in );
            IF user_lock_in = 1 THEN
                RETURN FALSE;
            END IF;
            IF form_type_in IS NULL THEN
                RETURN FALSE;
            ELSIF form_type_in NOT IN (1,2) THEN
                RETURN FALSE;
            END IF;
            RETURN TRUE;
        EXCEPTION
        WHEN NO_DATA_FOUND THEN
            RETURN FALSE;
        END;In other use cases I would declare a local variable and process it like this:
            IF form_type_in IS NULL THEN
                l_form_type := 0;
            ELSE
                 l_form_type := form_type_in;
            END IF;Obviously the code should use the local variable rather than the parameter.
    Validating the values passed in parameters at the start of a function is good practice. If you really want to go to town, read about Design By Contract.
    Cheers, APC
    Edited by: APC on Nov 9, 2011 1:36 PM
    Added example, as requested by OP

  • Error Handling and Error Messages

    I already posted this in the java programming forum, but I dont think the people responded understand patterns, or what I was asking. Here is my original post, for reference I am not asking how to catch and exception, or how to display an error, I am asking about the pattern implementation.
    I am currently in the process of creating my Exception model for my program, and I have a question about error messages. I was reading the book "Effective Java Programming" which deals with patterns and it states that an exception should state the error and report information on all relavent states. For instance If you have a class the modeled some sort of memory array, and an access was requested to a block of memory outside the array you should throw an ArrayIndexOutOfBoundsException("Index:" + index + ", start:" + 0 + ",end:" + Array.length) or if you made your own MemoryAddressOutOfBoundsException(same as above) which when printed should read
    ArrayIndexOutOfBoundsException: Index:-1, start:0, end:0
    stack trace
    The pertinate information is the index, start index, and end index.
    The book CLEARLY states as an industry design pattern that exceptions weather checked or unchecked should not contain user error messages. For instance with the above example one might be tempted to use this as the exception message: "The memory addres index is not a valid memory address." This is clearly a user error message.
    So heres my situation. In a gui environment (command line console not visible) how do you generated a user error message, letting the user know that an internal exception has occured.
    In my previous implementation of my project, I used the exception message the user error message and just reported the message on a dialog. I have heard of people using error catalogs, which centrallizes all the error messages into a single class or file.
    I was wondering if and Error catalog was a good approach, how I might go about implementing one, and if not how do you the community handle user error messages.

    class MyAppErrors {
       public static final int FILE_NOT_FOUND = 0;
       public static final int DIR_NOT_FOUND = 1;
       public stat final String[] errMsgs = {
          "The file was not found.",
          "The directory was not found.",
       public String getErrMsg( int n ) { return errMsgs[n]; }
    [\code]
    And a nicer version would allow the calling code to pass in a substring so you could say "The file 'somename.ext' was not found."                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • HT4910 My iCal has frozen after I tried to paste info from an email into a reminder.  I get a "server reports an error" message with what I tried to paste in the box.  Calendar is frozen and will only close by forcing it.  Any help?

    My iCal has frozen after I tried to paste info from an email into a reminder.  I get a "server reports an error" message with what I tried to paste in the box.  Calendar is frozen and will only close by forcing it.  Any help?

    Did another window open with the pasted information?  If so, try hitting "enter/return" key and "delete" key at the same time.  That should get rid of the current action on the ical, the extra window should go bye-bye, and all should be fine with the world.

  • Windows could not complete the installation recovery error message with HP recovery discs

    While doing a system recovery on an HP G72-b50US notebook using HP purchased recovery DVD's, the reboot "Welcome" screen always (tried 5 recovery attempts from scratch) generates the error message "Windows could not complete the installation. To install Windows on theis compuiter, restart the installation". any attempt at a reboot, even into safe mode, regenerates this same error message. How does this get fixed to allow completion of the installation process?

    I wish I could tell you.
    I also used the HP factory recovery disks on an 8200 Elite CMT. I used them once before with no problem.
    The second time was a show-stopper. The recovery process would ask for all 4 disks, then the recovery installation would begin, reboot continue on, everything normal.
    Then on the last reboot, when the recovery program stated it was configuring windows, it just quit and stated Windows could not complete the installation.
    I made sure that I had absolutely nothing connected to the PC except the keyboard, mouse and monitor.
    The only thing I can possibly think of was that I installed a Radeon HD 6570 video card which I replaced the Radeon HD 6350 card with. However, both cards are supported in the PC, and I cannot remember if I did the restore with the 6350 the last time or the 6570.
    Now, the reason the ISO file will work is because this is a plain and simple Microsoft Windows 7 ISO file--the very same one that you download when you purchase W7 online from the very same download site.
    It is not PC-specific and will install on any PC in the world.
    A recovery disk is PC-specific, and is a very complicated mish-mash of programs, drivers, operating system, all customized for your specific model PC.  Even something like installing a new hard drive or memory can foul up the works.
    The downside of using the plain MS disk is the only programs and drivers you can install are the ones found on your notebook's support and driver page.
    The upside of using the plain W7 installation, is you normally end up with a better performing PC, free of bloatware and unnecessary running processes.
    For someone like me, it is a non-issue, but for others, they may miss some of the included software.
    But that is better than having a computer that is of no value with no operating system installed, wouldn't you agree?
    Paul

Maybe you are looking for

  • How to load externl files (PDF) into BLOB column.  Please help.

    Hi All, I've currently been working on loading many external binary files (PDF) into BLOB column. After some digging, I learn that the SQL*LOADER can be used to load data from external files into table. I also got help from another forummate mentioni

  • Disable app turn gray then it is disabled

    I can't find any answer on the web. then I disable the app using this.enabled=false; this action also show a gray layer, is there anyway I can disable the app without the gray layer? thanks Willy

  • How I fixed "imessage waiting for activation"

    Hi people. I recently was having that problem with my iphone saying "waiting for activation." All i did to fix it was re enter my appl ID when i switched i message on. This solved the problem immediatley. Give it a try?

  • Problem with Time Machine or ext HDD?

    I am using a Western Digital Firewire800 ext HDD for my Time Machine back ups. In the past the ext HDD will turn on by itself when my iMac is turned on and the light remains on. Of late I notice sometimes the light turns off and the ext HDD icon on t

  • Rexchnage rate change

    Sir, At the time of we create customer master maintain th currency inn USD ( we received P.O. in USD)& that rate for S.O. & all other doc was prepared in USD. but now received P.O. in EURO , now we want to maintain the currency in EURO. how to change