How can i send an error message at EXIT_SAPMM06E_013 ?

Hi
I'm making some validations to Vendor and Partner Functions (table control in 'Partners' Strip) in Creting/Changing Purchase Orders (ME21N/ME22N). 
I know the suitable user exit is EXIT_SAPMM06E_012 for making validation before saving, but this exit does not has (receive) the table with Partner Functions so i could validate them.
Then I use the Exit _013, wich executes when saving the PO, because this exit has the captured Partners table (XEKPA).
But, when i make the validations and try to send a error mesage,  the system shows other message type info (window) like 'The requested object is locked by another transaction' and then another like 'System error (error in method PO_POST)'.
I think this it's because the exit _013 is better suitable to make customer updates and not validations, that it's because just passing by MESSAGE Ennn(cc) command makes the methods catch my error and send other errors and close the transaction.
Does somebody can help me ??
How can i send error messages in exit _013 ??
Or is this incorrect ??
Or in wich User Exit can i validate the Partner Functions ??
I really will aprettiate if somebody can help me, because i'm delayed with my development !!
Regards

Hi Frank,
The eror message you are getting seems to be coming from somewgere else and may be due to the same PO being cahnged in another transaction or have you put some code in BADI ME_PROCESS_PO ( Method POST) .
You can try by commenting out the code in EXIT 13 .
If this does not work then use EXIT 12 only and below is the code you can use to access XEKPA in exit 12.
DATA IT_EKPA LIKE EKPA OCCURS 0 WITH HEADER LINE.
DATA NAME(50) VALUE '(SAPLMEPO)XEKPA[]'.
DATA NAME1(50) VALUE '(SAPMM06E)XEKPA[]'.
FIELD-SYMBOLS <F1> TYPE ANY .
IF SY-TCODE+4(1) = 'N'.
ASSIGN (NAME) TO <F1>.
ELSE.
ASSIGN (NAME1) TO <F1>.
ENDIF.
IT_EKPA[] = <F1>.
( Now you have the data in IT_EKPA table which you can use to validate )
Cheers

Similar Messages

  • When I update my nano ipod I get an error message "User ipod cannot be updated.  The disk couldnot be read from or written to."   How can I overcome this error message.

    In the iTunes window, when I update my nano ipod, I get an error message "User ipod cannot be updated.  The disk could not be read from or written to."   How can I overcome this error message.

    Hello there dilip77707,
    It sounds like you are getting this error message that your iPod cannot be read from or written to when you are trying to update your iPod Nano. I recommend the troubleshooting from the following article to help you get that resolved. Its pretty straight forward, just start at the top and work your way down as needed:
     'Disk cannot be read from or written to' when syncing iPod or 'Firmware update failure' error when updating or restoring iPod
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • How can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,-

    how can i stop an error message that comes up when i am using word? the error message is "word is unable to save the Autorecover file in the location specified. Make sure that you have specified a valid location for Autoreover files in Preferences,…"

    It sounds like if you open Preferences in Word there will be a place where you can specify where to store autorecover files. Right now it sounds like it's pointing to somewhere that doesn't exist.

  • How can I solve this error message? Some of your photos, including the photo "IMG_0374.jpg", were not copied to the iPad "(my name's) iPad" because they cannot be displayed on your iPad.

    how can I solve this error message? "Some of your photos, including the photo “IMG_0374.jpg”, were not copied to the iPad “(my name’s) iPad” because they cannot be displayed on your iPad."
    There were 273 photos in the event syncing from my Mac, but only the last 103 made it to the ipad. Most of the photos were taken by an iphone. I would appreciate any thoughts or insights - thanks.

    Adrian-
    That error message suggests the photo is somehow corrupt.
    Do you have the Apple Camera Connection Kit?  You can set up a USB thumb drive with MS-DOS FAT-32 format and copy your photos to it into a folder named DCIM.  Assuming they have an 8 character plus suffix name, the iPad will recognize them and give you the option of transferring them via the Kit's USB adapter.
    Once they are transferred, you can find out if there is a problem with any.
    Fred

  • I am running Windows 7 64Bit system and everything was working normal.  However, I am now getting an error message stating objc.dll is missing.  I've re-installed Itunes but to no avail.  How can I get this error message corrected?

    I am running Windows 7 64Bit system and everything was working normal.  However, I am now getting an error message stating objc.dll is missing.  I've re-installed Itunes but to no avail.  How can I get this error message corrected?

    See this User Tip by turingtest2
      https://discussions.apple.com/docs/DOC-6562

  • How can we view the error message numbers in the web ui?

    Dear all,
    How can we view the error message numbers in the web ui? It gives the error but no number.  It is possible to debug in web UI so how can we accomplish this?
    Thanks,
    FK

    Hi  Fakhan,
    You can absolutely do that.
    Check the class: CL_BSP_MESSAGES
    Also if you want to find out the exact Message Class and Message Number, go to table T100, type text in field TEXT, you will get Message Class and Message number in fields ARBGB and MSGNR respectively.
    I hope this helps.
    THanks
    Vishal

  • How can i dispaly an Error Message from Server Side To form

    Hi All,
    How can i dispaly an Error Message from Server Side To form side .
    i try several ways nothing succed.
    i put the error in stack and after call the procedure from form i added
    Qms$Trans_Errors.Display_Messages;
    and because it is an error not informantional error the error screen displayed and enter
    in infinite loop acts like flashing .
    can any one help me please i use C/S Headstart6i and Designer 6i
    thanks alot
    radi

    hi,
    thanks alot lauri.
    yr code work only using information message but in error message its still the same .
    the error window still flash and enter in infinite loop of executeing the same triggers.
    thanks again
    radi

  • How can u find SRM error message texts?

    hi friends
    How can u find SRM error message texts?
    thanks
    regards
    chinna

    Hi,
    There are several ways.
    1. Go to BBP_PD and open the document. Select the link "Check again" in the bottom area.
    2. Go to SE17 and serch it from table T100.
    3. Go to SE91.
    Regards,
    Masa

  • How can i see the error message?

    hi, i have written a procedure in the database 10g, with my own error, and it works. but, when my exception occurs, i want to see my ora-20000-message in the footer of the isql-screen in the same way like normal ora-errors do it. because, now the code handles the exeption, but i can not se any message.
    thx.
    (zahl1 in number, zahl2 in number)
    as
    maxvertrag number;
    ergebnis number;
    myerror exception;
    pragma exception_init(myerror, -20000);
    begin
    select max(vertragsnr) into maxvertrag from robertl.tblugovor;
    ergebnis := zahl1+zahl2+maxvertrag;
    if ergebnis>104
    then
    RAISE_APPLICATION_ERROR (-20000, 'Result is > 104!');
    end if;
    exception when myerror then
    ergebnis:=0;
    end;

    This is answered in how can i se the error message?.
    As a side note, you generally don't need to cross-post in these two fora, as many of us frequent both.
    Cheers, APC

  • How can I disable RPS error messages in the AS5300 ?

    How can I disable de error message:
    " %RPS-3-MULTFAIL: There is more than one failure with the Redundant Power System; please resolve problems immediately "
    in the AS5300 with RPS Chassis and normal single power supply ?

    If you only have a single power supply,
    I would try swapping it (or swapping
    slots) to verify if it is the problem.

  • How can i send and receive messages through CAN

    Hi,
    how can i send and receive messages using Vector CAN CARDXL

    As mentioned in this forum post, if you have a dll, this can easily be called from LabVIEW or CVI.
    I also went to the vector website and it does look like they have LabVIEW drivers available for download.
    Peter Flores
    Applications Engineer

  • How Can I Send A Video Message To More Than One Pe...

    I have been trying to send a video message to two or three people on my contact list.  Is it possible to do this by adding a name to the list on the message or can I send the same message to a second person after sending it to the first?  Or do I have to record a second and third message, if I want to send it to 2 or 3 people on my contact list?

    Thank you so much, will do it.
    Happy Holiday Season!

  • How can we restart the  Error Messages

    Hi,
             I have a Secnario like  JDBC- To - RFC(R/3)   .. here my Receiver(R/3 system was down in particular time..  so, the messages was  not processed successfully..
    but after the R/3  server was up .. the  remaing messages are processed normally.. except the   those messages are failured in that particular time server was down..
    if  I saw in SXMB_MONI.. the message was showing  (system error--  System Error - Restart is not possible... )   so, how can we  solve this issue..
    How can we restrt the  messages  from SXMB_MONI..
    Regards
    jain

    Hi Jain,
    You cant restart the synchronous messages nor u can restart it............Hence the messages regarding synchronous issues cant be solvable.....The only way you have is to Resend the same data by again posting it in the Outbound Folder (Outbound side or sender side).........So once the sychrouns message failed means then it is unslovable ......So just follow the above mentioned way of resending the data by posting in the Out folder......................
    Reward with points if helpful
    Regards
    Sai

  • I need help!!how can i resolve the error message?

         Security.addProvider(new com.sun.crypto.provider.SunJCE());
    KeyGenerator kg = KeyGenerator.getInstance("DES");
    Key key = kg.generateKey();
    Cipher cipher = Cipher.getInstance("DES");
    byte[] data = "Hello World!".getBytes();
    out.println("Original data : " + new String(data));
    cipher.init(Cipher.ENCRYPT_MODE, key);
    byte[] result = cipher.doFinal(data);
    out.println("Encrypted data: " + new String(result));
                   String temp=new String(result); //error occure here!
    cipher.init(Cipher.DECRYPT_MODE, key);
    byte[] original = cipher.doFinal(temp.getBytes()); //if replace temp.getBytes() to result,that's ok��
    out.println("Decrypted data: " + new String(original));
    error message��
    javax.crypto.BadPaddingException: Given final block not properly padded
         at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA6275)
         at com.sun.crypto.provider.DESCipher.engineDoFinal(DashoA6275)
         at javax.crypto.Cipher.doFinal(DashoA6275)
    and how can i post the key and Encrypted data to columns whose type is varchar in a table in my database,and next time to get the values from my database and translate to key to Decrypte the Encrypted data ?
    thanks!!

    I presume the no-padding error is happening when you attempt to do the decryption. This means, that in some way, you've modified the encrypted data, and the size of the data is not what the cipher object expects. You don't show all your code here, but most likely, you tried to put result into a string (temp?) and when you do your temp.getBytes(), the array of bytes you're getting back is not the same as the array called result in your post.
    Steve

  • How can I send just 1 message for 2 mail accounts under mail forwarding

    Hi everyone
    I have a question for mail forwarding.
    I have 2 inbound mail servers,4 outbound servers and many store servers.
    User A set his mail forwarding address to B, and B set his mail forwarding address to A.
    So 2 guys can receive each others message.
    In this case, If two users have same "mailhost' value(ex, x.test.com), forwarding mail goes just once for each accounts.
    If "mailhost' values , however, are different (ex, x.test.com and y.test.com - and also two mail servers connected as internal server),
    forwarding mail goes 4 times for each accounts.
    So sender gets 4 messages and receiver gets 5 messages.
    How can I set mail server configuration to send just once not 4 times for 2 users?
    Any advices would be welcomed.
    Thanks
    Message was edited by:
    1231dugi
    Message was edited by:
    1231dugi

    Hi,
    User A set his mail forwarding address to B, and B
    set his mail forwarding address to A.
    So 2 guys can receive each others message.You have just created a mail loop. This is not a good thing.
    Any advices would be welcomed.I would advise creating a mailing list which has both userA and userB as members, and then have emails sent to that address OR have a third account which they can both access (IMAP shared folders) and have email sent to that OR have them share each-others INBOX.
    The fact that userA & B didn't get multiple copies when they were on the same mailhost is due to good luck only.
    Shane.

Maybe you are looking for