Sitemap

Amicuk Programming Answers

Handling Exception in BADI

-0001-11-30   Views:0

Advertisement

*Hi Experts,* *I am using a badi WORKORDER_UPDATE in that i am using a method BEFORE_UPDATE  for  IW31 or IW32 Operations to give an error message, if the operation dates less than today's date but at the time of saving the tcode is giving an Error M

*Hi Experts,*
*I am using a badi WORKORDER_UPDATE in that i am using a method BEFORE_UPDATE  for  IW31 or IW32 Operations to give an error message, if the operation dates less than today's date but at the time of saving the tcode is giving an Error Message and it's coming out of the tcode or sometimes it's going to runtime error but i want to stay there only after displaying the error message.*
*And for this method there is no Exception to raise so how can i handle this please let me know.*
*Regards*
*Shashikiran*
Edited by: kicchaa on Dec 17, 2009 5:04 AM

The replay answer
Advertisement
Hi Suresh,
In some cases we can use particularly while trying to change some data. But in case of creation certainly errpr type "E" is not allowed.
In that case Maninder can use error type "W".
For Package BUPA you have message classes defined as :
BUR
BUPA_STATUS
R1
R11
Code :
IF SY-SUBRC <> 0.
MESSAGE E001(BUR) WITH 'TEXT'.
ENDIF.
Regards,
Lanka

Go to See the other 11 answers

Handling of free goods in PO

Category:DefaultRelease time:2015-10-11Views:130

Dear ALL, Our vendor has agreed that he will give us one drum of oil free if we buy 100 drums from him. how can we bifurcate this in the system that 100 drums we have purchased and one is as a free good. 1) what we have to do when raising a PO ? shal[More]

Get Attribute values from a page and procedure exception handling?

Category:DefaultRelease time:2015-10-11Views:130

Hi All, I have created new page with two input attributes not based on any VO. This page is created to capture two values and pass these to an AM method upon pressing OK button. The method in AM will call a procedure with two in parameter expecting t[More]

Report handling names with a single quote

Category:DefaultRelease time:2015-10-11Views:130

Report 10gR2 I have created a report and most of the functionality that i want is working as expected. I have a report where i am letting user enter their first name on one field and last name on another field in the parameter screen ( thats how it's[More]

Can FDM handle more than one year at a time?

Category:DefaultRelease time:2015-10-11Views:130

Hi, I'm trying to load a multi-load file through FDM with the target being an Essbase cube and the source being a text file. The file is for 36 months which crosses 3 years. The problem is Oracle support is saying FDM can only handle one calendar yea[More]

How can I execute an external program from within a button's event handler?

Category:DefaultRelease time:2015-10-11Views:130

I am using Tomcat ApacheTomcat 6.0.16 with Netbeans 6.1 (with the latest JDK/J2EE) I need to execute external programs from an event handler for a button on a JSF page (the program is compiled, and extremely fast compared both to plain java and espec[More]

XFi Can't Handle more than one sound at a time?!?

Category:DefaultRelease time:2015-10-11Views:130

I bought an XFi Elite Pro and it was working great. Now, however, it will only handle one sound at a time. For example, if I'm playing a song in iTunes and windows makes a sound, the itunes song cuts out, the windows sound plays, then itunes abruptly[More]

I have an Apple MacBook Pro and when surfing the web my computer will slow to a crawl and I will have a multi-colored spinning wheel visible until my latest request is handled.  What is causing this and is there a way to prevent this from occuring

Category:DefaultRelease time:2015-10-11Views:130

I have a MacBook Pro.  When surfing the web it will eventually slow to a crawl.  When this occurs, there will be a small multi-colored wheel spinning until my latest command is handled.  What is causing this and is there a way that I can modify or pr[More]

Handling Type in Free Goods Item (IS-OIL)

Category:DefaultRelease time:2015-10-11Views:130

Hello, Could anyone give me a suggestion how to enable Handling Type field (VBAP-OIHANTYP) for free goods line item (Item Cat TANN)  in Sales Order? Currently this field was disable and not allow to enter any value. Thank youHi, Try to do as mentione[More]

Free Goods handling in Import Scenario

Category:DefaultRelease time:2015-10-11Views:130

Hello All, 1)We have a scenario of imports/foreign vendor providing the materials free of cost. 2)Here the requirement is that the materials are free of cost(From Vendor), but customs duty has to be paid to the customs office for that material. 3)How[More]

Can my macbook pro mid 2007 3.1 AA896ll/a handle a SSD and how do I make the switch. Can I do a clean install of Snow Leopard from an original cd

Category:DefaultRelease time:2015-10-11Views:130

Here is my problem, I want to upgrade my macbook pro mid 2007 3.1 AA896ll/a to an Solid State Drive, a Crucial m4 256 gb, I want to know if the macbook will be able to handle it and how do I do the switch. also once I install the drive will I be able[More]

Hi, I don't know who to turn to: the person who handles all the compter stuff is out of town, This A.M.I started up Firefox and there was a message re an update, I thoght I new just to click on install and wait to re start Firefox. But what I can remember

Category:DefaultRelease time:2015-10-11Views:130

Hi, I don't know who to turn to: the person who handles all the compter stuff is out of town, This A.M.I started up Firefox and there was a message re an update, I thoght I new just to click on install and wait to re start Firefox. But what I can rem[More]

Hot
Hi there, I have by mistake made a word, in my sms, "cmd" and it keeps coming up instead of "and", how can I get rid of this word??? ThxUsually typing the correct word many times in a row will force it to take priority as the default s [More]
Hi, This is the company into construction activity... for which.. they're using free materials from stores.. (eg: wooden ladder: - wherever the project site requires this ... they'll send from stores.. for some time.. after projhect over.. they'll re [More]
I have read about 100 forums concerning this process and I must say that I am lost. I am trying to connect a second display to my iMac but when I go to system preferences/display and click on detect display, nothing happens. The arrangement tab does [More]
In JDev 10.1.2, I have a JSP with a read-only form that has the navigation buttons at the bottom ('First-Next-Previous-Last') and an LOV at the top that also controls which record I am viewing. I have been trying to add the capability to search on th [More]
My Bravia 32 has some bubbles in the screen. Any recall on this model?Hi fitobass, You can try the basic troubleshooting steps on the link below based on the screen problem you have : https://us.en.kb.sony.com/app/answers/detail/a_id/42981/p/61659,62 [More]
I returned my iPhone - I finally gave up trying to sync with Outlook after 8 hours on the phone with Apple support and countless hours on my own. I bought the phone at AT&T and they were very nice about taking it back. I was a few days beyond the 14- [More]
Hi, Is it possible to force the portal to be displayed in a specific language based on an attribute passed by URL? We are on NW04S SP 10. Is there any other way to force the portal to be displayed in a specific language other than the browser setting [More]
I just upgraded my trusty 20D to the new 50D. Aperture 1.5 wont read the RAW files. Is there a work around or do I have to upgrade to Aperture 2? Thanksyou have to upgrade to 2.x ... http://www.apple.com/aperture/specs/raw.html EOS 50D* * Requires Ap [More]
How to share music file downlaod form other app to itune on my iphone.set "manually manage music" in Itunes Iphone settings and drag and drop the .mp3 file into the music section of the Iphone as seen within Itunes.Read other 3 answers [More]
So ive been looking to buy a MSI laptop and i have been looking at the MSI GT70 Dominator with model number 9S7-1763A2-2294, i have seen others with the model# 9S7-1763A2-2295 are they different? or is it the same laptop ive seen the specs and they l [More]