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
I can pull up the application, but when I tap the record button, nothing happens. The little dial that says "VU" doesn't move, the red recording circle symbol doesn't change to a pause or stop button. Is this an application error? Any suggestion [More]
I am trying to transfer my iTunes from my PC to my new Mac. After reading through this forum a bit, I followed the instructions at: http://www.macworld.com/article/146958/2010/03/move_itunes_windows_mac.html I backed up my PC's iTunes folder to an ex [More]
Cannot extract files from archive to existing folder using drag and drop operation. screenshot here http ://imgur. com/lmERkkw (it doesn't let me attach images or links until "verify my account", but no such option I am offered) or a simply file [More]
I hear the sound when he starts but the display stays dark! why? Please Help me!!!First, detach any peripheral devices except keyboard/mouse. Then reset the SMC: Shut down the computer. Unplug the computer's power cord. Wait fifteen seconds. Attach t [More]
So yesterday all of a suddent after working fine for a month my n900 connects to my wifi connection at home but doesnt open webpages or anything. It connects normally but nothing opens. the vodafone gprs works perfectly. I reflashed phone restored to [More]
Hello I recently requested an change in the latency type for my internet from interleave to fastpath (my son plays online games and said it would be better) so I emailed the moderation team on this site for the change of which they have done. But now [More]
Hi. Jdeveloper 11.1.1.2 Is there a way in ADF to populate extra read-only text-columns in an af:table (based on a ViewObject) as was possible in Oracle Forms with a Post-Query-Trigger: Post-Query Perform an action after fetching a record, such as loo [More]
My ipod classic will not sync content, even after several hours.  I have restored the ipod, got a new dock connenctor, manually synced a few songs.  This is frustrating.  I am considering sending the ipod for service.  What do I do?How is your iPod c [More]
Illustrator CS5 and Flash CS5. Flash breaks gradients during importing or copying!By the way heres is the Vista Error Log: Produkt Adobe Flash CS3 Problemsignatur Problemhendelsesnavn: APPCRASH Programnavn: Flash.exe Programversjon: 9.0.0.494 Tidsste [More]
Yesterday I upgraded the HD in my Macbook Pro, and I used Time Machine to restore my stuff to the new drive. Worked like a charm, except... First bit of strangeness: I noticed that Time Machine hadn't restored the most recent versions of some of my a [More]