Handle error or warning message in updata task fm

Hi Experts,
I have an requirement of creating materials. I am doing this in an update task FM. Now i want that if some error comes during creation of material then i display them in an alv on the screen.So inside the FM in case of error i populated it in the tables parameter of FM.But when i come back to the calling program this table is always coming empty. Could anybody please explain how to solved this problem or how we can pass the data back to the main program.
Thanks in advance

Hi,
Do you know how an update BAPI  ( Create, Change ) works .
1) At First, it does validation for important fields for every tables passed in the BAPI.
perform check_on_header.
*  In the subroutine called, if error occurs, it sets sy-subrc value to 8 and fills the bapireturn     parameter.
check sy-subrc < 8.
perform check_on_items.
check sy-subrc < 8.
At the end, when all the data is clean, it calls the update task
if sy-subrc = 0.
CALL FUNCTION 'BAPI_XXX_POST' in update task.
endif.
2) We check the return parameters of the bapi call and if successful call 'BAPI_TRANSACTION_COMMIT'.
3) The actual posting in 'BAPI_XXX_POST' happens once commit work statement is called in 'BAPI_TRANSACTION_COMMIT' .
You too have to adopt similar approach.
Regards,
DPM

Similar Messages

  • Error or warning message when closing WBS element

    Hello Friends,
    Is it possible to issue any error or warning message while closing the account assigned WBS after balancing cost to zero on WBS by settlement and (commitment zero) fully  completion of GR, but IR has not yet done that means PO is still open.
    Thanks for the help.
    Kris

    you should not use messages on closure for this
    run ME5J report
    or run a line item report on the GR/IR account
    This should be checxked from logistics side not from WBS or projects

  • Error and warning message querry?

    How is it that i can see in spro all the error and warning messages???

    Hi,
    in table t100 through se11  i can see the field MSGNR  , THATS IT ,

  • Error and Warning message documentation

    Hi. I'm looking for general documentation that I can use as a reference whenever the compiler/linker/etc. spews out an error or warning message. For example, I'm trying to build a UnitTest framework and I'm getting the following error from the linker:
    ld: fatal: symbol 'X' is multiply defined: (file a.o and file b.o)
    Thanks,
    Mike

    Hi,
    in table t100 through se11  i can see the field MSGNR  , THATS IT ,

  • Regarding Error in Function Module in Update Task

    Hi All,
    If a function module is called in Update Task and there is some error generated from it, it comes as an exit message unlike in a normal function module.
    Is there any possible way to avoid such an exit message?
    Thanks in advance.
    Regards,
    Garima

    Hi,
    The problem is I am updating Z tables in a function and also calling a function in Update task to update a different set of tables.
    Now, if for some reason there is an error in Update Function module, then my requirement is that rather than throwing an Exit message (which it is presently doing) the errors coming from the function should be captured so that the user knows what was wrong with the data he entered.
    Is there any work around to the above requirement? Either all the tables should be updated or none of them should be updated.
    Regards,
    Garima Thapar.

  • Update termination error while calling FM in Update task

    Hi Friends,
    I am calliing my Z Function Module in update task from my report, my function module contain reuse alv list display fm which should create a Spool in the spool list.
    When ever i am directly executing my Z function module i am getting spool in SP01, but when ever i am calling the Z Function Module in update task from my report i am getting a message as "Express document "Update was terminated" received from author.
    I want to call the Function module in update task and it should generate spools .
    Syntax:
    CALL FUNCTION 'ZLOK_TEST' IN UPDATE TASK.
    Commit work.
    Thanks Regards,
    Sandipan jena

    Hi sandipan jena,
    a function called in update task will not create a spool list if not told so to to. Only reports scheduled in a JOB will put the output into spool.
    Make sure you have no COMMIT WORK and no MESSAGE output when in UPDATE TASK. You can enter /h and in debugger switch on UPDATE debugging. This will lead you to any error occurring.
    You should analyze the errors you get. Mabe NEW-PAGE PRINT ON can help you.
    Regards
    Clemens

  • Regarding error and warning messages in log.

    hi all,
    i need to move the error meaasges and warning messages to log....am downloading the FI data from EC...
    my req is if the company code  is not in header..throws warning message" comp has not been for header" and at the same the file has to be generated.....
    and for line item if the trading partner is not present it throws error message and at the same time file has to be generated.....
    for exxample like this.....
    GL account     FS item      Trading Partner  TC     Value in TC       LC       Value in LC
    12345678          213344   XXXX            USD     1,000          1,000
         USD

    Hi,
    u can use an internla table and get all the Logs,
    for Example if company code is not there the move the company code and pernr to ITAB1,
    if EMP subgroup is not there in header then move to ITAB2.and at the final appene itab1,itab2 to one more inernal table so that this final table contains all the errored pernrs, and u can display it

  • How to handle "Memory Low" warning message?

    Recently users have been getting a warning message when they log on: "Memory low.  Leave the transaction before taking a break."  When we look at SM50 the user has a status of "On Hold" and the reason column says "PRIV".  We are on ECC 6.0 (since January 2010) and V7R1 (March 2011). 
    Usually the message is received as soon as the user logs on so it is not like it is related to a particular program.  We can go weeks without any reported instance of the message so it is not a regular occurrence.  Fortunately there does not seem to be any other symptom other than getting the message.
    I have seen a post on an SAP forum that said to adjust the instance profile with these parameters:
    rdisp/max_priv_time
    rdisp/wppriv_max_no
    I do not have any entries for this now and am not sure what the values should be.
    Does anyone have any suggestions on how to handle this on an AS/400?  Thanks in advance.
    Alan

    Hi Alan,
    what 1024 ???
    then we definetely do NOT need as4/MAXSHR64 !
    I would normally at least go for em/initial_size_MB = 8000 - as you are having issues right now ...
    Or is this a small DEV-system ?
    then 4000 might be sufficient ...
    (the 4096 is just crap - make it simple and use e.g. 4000 then ...)
    Regards
    Volker Gueldenpfennig, consolut international ag
    http://www.consolut.com http://www.4soi.de http://www.easymarketplace.de

  • Firefox not loading webpages from yesterday. I am getting a string of error and warning messages. I tried reloading but getting same messages. Like Parsing Value, Unknown property zoom. Lots of different errors. Cannot re-load pluggins. Help!

    Used Firefox for some time no problem until yesterday. Now it wont load web pages. Getting a string of warnings and errors. Tried reloading but getting same errors. Can't download pluggins. Error in Parsing, Unknown Property, Unknown Zoom, loads of messages like this for no apparent reason. Help please!
    == 10 July 2010

    Same thing started after updating to 3.6.6 on Window XP. Some pages load after doing "shift - Reload page", but not always. Error Console is showing a lot of "Errors" and lots of "Warnings" from pages that do not load. But before 3.6.6 update the pages loaded OK.

  • Firefox 10.0.2 causes "image data corrupted" warning message during update try on OSX 10.7.3?

    I tried to update firefox 10.0.0 to 10.0.2 on Mac Pro OSX 10.7.3 which failed with warning "Image data corrupted". Any ideas what to do?

    If there are problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the disk image (dmg) file to the desktop
    *Firefox 10.0.x: http://www.mozilla.org/en-US/firefox/all.html
    *Trash the current Firefox application to do a clean (re-)install
    *Install the new version that you have downloaded
    Your profile data is stored elsewhere in the Firefox Profile Folder, so you won't lose your bookmarks and other personal data if you uninstall and (re)install Firefox.
    *http://kb.mozillazine.org/Profile_folder_-_Firefox

  • IDOC to File (BYpass)-- Error or Warning  :  " Message Branched. "

    HI all,
    Iam trying idoc to file scenario(bypass)
    my idoc is triggered succesfully and it is reaching to the receiver system.
    but the problem is in SXMB_MONI ,it is not showing my Receiver service details and showing with different symbol like " <b>>></b>  " with message as " MESSAGE BRANCHED".
    what might be the problem....???
    Also Idoc reaching to the receiving system very lately.
    Pls suggest me ASAP..
    Thanks in Advance.
    Regards,
    Vijji

    In the receiver determination, do you have multiple receivers, i.e , is the same idoc being sent to multiple receivers ?
    If yes, then the message branch is used to split the source message so that it can be send to differetn targets. You will find multiple entires below the Slit Message Entry one for each receiver.
    Regards
    Bhavesh

  • Handling error with multiple row insert/update

    Hi,
    I need to insert multiple rows into a table, and I understand that i need to use executeArrayUpdate().
    My problem is this :
    1. How do I know in case some of the rows in the array failed during the INSERT?
    2. When I do know that, how do I find those particular rows?
    Thanks

    ODAFEONIHOWO wrote:
    Please i need help on how to enter multiple row into mysql with one insert
    statement and jsp it's not possible - you'll need to do a batch insert
    i have been trying this for weeks without sucess e.g how much experience do you have with Java?

  • Handling a warning message in BDC through RFC

    Hi all,
    I have a requirement where I have to do a CALL TRANSACTION using a RFC Fn. Module.
    This is for sending time sheet data to CATSDB thru CAT2 (T-code). In the process of time entry I have to go through a warning message (time entry for saturday & sunday ) and save the time sheet. I have recorded all this thru SHDB and created the BDC. The FM works fine in the back end. It is also fine when this RFC is called in the front end from a portal, except for the warning message part. The FM errors out when called thru portal  for uploading data for saturday or sunday.
    There seems to be no problem when I call this function module in the backend using a custom program and try to save time for saturday and sunday. I have tried various options and founnd that the RFC is failing only when called for saturday and sunday. Somehow the BDC part where the warning message is handled is causing the error.
    One of my colleague said, the backend is trying to return a dialog box/screen (warning message pop up) to the fucntion module which is not being accomodated or something of that sort????
    Is this true??? So does this mean I cannot do it the way I am trying to.
    Any suggestions and thoughts on why this is happening. Am I missing something here???
    Any kind of input is highly appreciated.
    Thanks
    M
    Edited by: Mark Mark on Aug 26, 2008 5:45 AM
    Edited by: Mark Mark on Aug 26, 2008 6:07 AM

    Hi Anees, Thanks for your suggestion.
    I was probably not very clear in stating my problem. I do not have to display the error or warning message.
    During time entry,when I click SAVE button, I get a warning message, to get through this message I have to hit ENTER  again (now the time sheet is saved). All this I have recorded in SHDB and used in the BDC.
    Now my problem is this BDC for saturday & sunday (the warning message comes up for these days) does not work when the RFC is called from the portal, whereas the time sheet is saved without any errors when I try to call this from the back end.
    Also the RFC works fine for the rest of the days both in the back end and also when called from the portal.
    I hope I am clear.....
    Any suggestions
    Thanks
    M

  • Error/warning messages when trying to add a lookup field

    I have gotten error and warning messages when I attempt to put a lookup field on a form. Based on a Municipality Code match in the Account table, I want to add to the form the Municipality Name from the  Municipality Table.

    After taking out a lookup field that was not looking up coreectly, I get this warning message and 3 simailar ones:
    The referenced assembly "System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" could not be resolved because it has
    a dependency on "System.Web.Abstractions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted
    framework or consider retargeting your project.
    I got this response on the message board:
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because the issue is on ASP.NET Web Application, I suggest that you can consult your issue on ASP.NET forum
    THANKS.

  • Message FH 110 and FH 511 Control (Change Error to Warning Type)

    Hello everybody,
    I have following problem: some people changed G/L Master data Recon.Account for Account Type from 'blank' into 'asset' recon.account.
    Now we can't change it back. I know that once the G/L account is changed into Recon.Account there is now possibility to make changes back.
    Please is there a way to change the error into warning messages.
    I used se91, se93 and other ways but still nothing.
    Regards
    Laurynas

    Hi,
    You change the account type back to blank if the balance in that account is zero.
    Nullify the figures in that account and then change the account type.
    Cheers and good luck
    Rajesh

Maybe you are looking for

  • Sending a PDF to printer

    Hi, I have a requirement to send the PDF file to the printer/spool in my BADI implementation. I have generated the pdf file using web service, got it converted to binary/byte stream. Now i want to send that to the printer for printing. Please help me

  • Wide screen problem with my humax

    Hi Am aware this is not a BT vision problem but any help appreciated. Just connected a new TV to Vision box and Humax Freesat HD. For the HD box switched to hdmi connection but can't get a full screen resolution, tried going to settings etc...The TV

  • The problem with iTunes

    Hi, help to deal with this problem. When you purchase the games says you can contact support iTunes to complete this transaction. After 3 payments in the game, four payment does not work, then the issue that I described above. No debt on the card the

  • Download files from table.

    HI Experts, I have some files stored in a table. The table structure is as follows. MANDT     MANDT     CLNT     3     0     Client RELID     INDX_RELID     CHAR     2     0     Area in IMPORT/EXPORT data table TEXT_AREA     CHAR3     CHAR     3     

  • A problem with initiating a BPEL process through its web service interface

    hi, i am trying to initiate the helloWorld BPEL process through its web service interface. i use a proxy class that i wrote and i use it from J#.net. this is the relevant code part: hello.HelloWorldBinding wsProxy = new hello.HelloWorldBinding(); wsP