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
Dear all , I am facing problem in creation of intercompany invoice which is sales order relevant . Please tell which settings is required to resolve this as all the settings has been made. Send ur email id so that the problem can be described if requ [More]
So I generally connect my laptop through my WiFi connection, which is set as priority number 1. For connecting to certain servers at my office (I work remote) I need to VPN in. Now, I'd like to be able to stay connected to VPN without ALL my internet [More]
while installing netweaver, i m getting an error Last error reported by the step :The database installer reported an error. DIAGNOSIS: Some database applications might still be running. SOLUTION: Check the log file sdbinst.log and C:\sapdb\data\wrk\M [More]
I have the latest version of iTunes and I am unable to copy/paste album art from the internet.  Whenever I try to copy/paste album art from Amazon, it just displays a blank box.  I was able to copy/paste album art just fine before the last iTunes upd [More]
I've been using iTunes for years. I've used it to manage the large CD collection that I had before the creaton of the iTunes store.  My collection now contains CD's that were purchased after the store opened. In earlier years, the cover artwork for m [More]
Please can anyone help me regarding how to download a second copy of PSE 12 which I bought for a mac and now want it on my Win7 PC? I have serial number but when typed in said was invalid. Thanks RobHi Rob You can order the Win version from the Adobe [More]
IE version 6.02  SP3 Adobe Reader 9.1.3  some machines on 9.1.2 Some folks are experiencing a blank window when they click on a PDF URL.  Some of the URLs point to a virtual directory and some point directly to a file share.  Some of the PDF files ha [More]
hi frnds.. I am developing one requirement, within i need to do something like .. need to  change the equipment status from STKR ( STOCK RESTRICTED) TO STKD(STOCK AVAILABLE) using any function module or BAPI. frnds there any fm or bapi for the same? [More]
We have a sales order with several line items. Item 80 has a quantity of 22.500 pieces of material 935269912518. There has been a delivery of 15.000 pieces. These are also invoiced with the currency USD4. This was the header currency at the time. Now [More]
Can someone tell me if the follwoing is true so I won't waste time searching.  Since Window Vista Home Basic is not networkable so it won't see the storage link device connected to the WRT610N router.  If so, is there anyway to get it work? Thanks,It [More]