Interrupt program processing

Hi Gurus,
In my application ..if some condition fails , i m raising an error message as follows:
CALL METHOD lo_message_manager->report_error_message
           EXPORTING
          message_text = 'Please fill Sold To Customer field'
          VIEW         = 'ISSUEORD_VIEW'.
But the program processing is being continued for eg.. a table is getting updated and both the message
i.e earlier error message and the table updation message are both appearing on the screen together..
How can i interrpt program processing after the error message and display that on the screen.
Best Regards,
Navin Fernandes.

Hi,
You can stop the action from happening, if you raise an attribute error message in WDDOBEFOREACTION using the REPORT_ATTRIBUTE_ERROR_MESSAGE method of message manager.
For e.g.
  IF lo_action IS BOUND.
    CASE lo_action->name.
      WHEN <Your action name>.
        lo_node = wd_context->get_child_node( name = <Your node name> ).
        lo_element = lo_node->get_element( ).
        lo_element->get_attribute( EXPORTING name =  <Your attribute name> IMPORTING value = lv_value ).
        IF lv_value IS INITIAL.
         lo_msg_manager->report_attribute_error_message(
                message_text      = 'Field is empty'
                element                = lo_elment
                attribute_name    = <Your attribute name> ).
        ENDIF.
    ENDCASE.
  ENDIF.
Best Regards,
Loveline Thomas.

Similar Messages

  • What is variant in ABAP Program Process Block in Process Chain?

    I wrote an ABAP program:
    REPORT ZTEST,
    PARAMETERS:  PROC(80) TYPE C.
    I can test this PORGRAM from SE38, it shows me a pop-up screen for PROC and I can enter a value and execute.
    Now I want to call this  program ZTEST from a process chain. In Process Chain Selected a Process u201CABAP Programu201D. It asks me program name and Program variant, I entered Program Name as ZTEST and
    Program variant as a character string HELLO.
    When I execute Porcess Chain, ABAP Program errors saying that variant HELLO not found.
    What is Program variant in ABAP Program Process in Process Chain?
    Thanks,

    Dont get confused here.
    Variant name is not which you are pasing to the program.
    You enter some values inside the variant and you specify the program to take the input from the variant.
    Suppose you have to pass 10 parameters to a program.
    user1 creates a variant " hello1" which contains his own selection for the 10 values
    user2 creates another variant "hello2" which contain his own set of selecion values.
    When we use this program in PC, you can use the variant user1 or user2 as per our requirement.
    please check if you are giving variant as input or the proc value.
    Hope this helps,
    Sri....

  • Setting ram limits on individual programs/processes

    Is it possible to set ram limits on individual programs/processes?
    Specifically, can you limit the about of ram gunzip uses whenever it is run?

    That helps some, but the true desired effect is to do something similar to virtualizing memory -- I want to be able to say "process x is allowed to work within 512mb of memory," for example.
    Thanks for the pointer on setrlimit... It does kill the process if it hits the hard limit? The man page sounds almost like it does what I want, but I guess not.
    Last edited by mrbug (2008-09-29 00:25:57)

  • Interrupted upgrading process of database to 3.1

    Hi guys,
    I am new to this forum but have solved many of my problems by just reading through some topics, thanks.
    I got interrupted the process while upgrading the database to version 3.1 when opening it, computer shut down. Since then by opening the effected database the screen shows "Warning, error when opening......" and can only quit. I tried by open another database, which converted fine, and to switch to the effected one, now a message shows "Upgrading Step 6 of 10" and is shows an ongoing activity, under Force Quit no error message - the application seems to run, but I am still able to continue other work in the opened database. That message "upgrading' already runs quite a while, either it takes that long or simply not doing anything?
    I tried the repair database function, but it wants to finish the upgrade first? Any ideas? Unfortunately I have no backup of this file. Would appreciate some help, thanks.
    Cheers
    Rene

    Problem solved by miracle? Just a quick update:
    - downgraded Aperture to version 3.03 (same as last version of effected library file), executed "Repair function" (option/command keys when opening) started with 1st option, was prompted to 2nd option and then prompted to last option of full rebuild. Run that but not much changed overnight.
    - upgraded next day Aperture back to 3.1 and thought simply to try again. This time when opening it attempted to finish the remaining "upgrading to 3.1" steps but ended with an error message "being corrupted". Opened again in repair mode (option/command key pressed) and started again with 1st option, got prompted to 2nd option - after that it just stopped and quit itself. Reopened again in repair mode, selected last option to complete rebuild - and finally it started rebuilding the library file and completed in about 10min (50GB). Now I can access it again.
    - tried to import projects directly from this effected library file into a new library file, but it could not read the current version of that library - so it is clear even after the rebuild it somehow still is not 100%. However it is can be accessed.
    - as a precaution (also advised by apple support), will now export all projects from this effected file and simply rebuild a new database file.
    - learned also from apple support that even the corrupted files can be read, select the library file from your finder window, right mouse click and choose "Show Package Contents". Now at least you get access to your original pictures stored previously in your library file - look for folder "Masters". This may be your last option if all attempts to repair would fail, with the exception of having access to your original pics all other work is lost. At least one gets to rebuild his library manually.
    Hope this may give anyone other option besides the ones already known...
    Cheers
    Rene

  • Interrupting a process involving an infinite loop

    I am using a JInternalFrame, with a JSplitPane, and panels within the SplitPane. My application involves the server continuously listening to a port.
    When this happens, I am not able to STOP the process (the while(true)) loop, the buttons do not respond, and the JInternalFrame freezes. During this time, if I switch from this application to another application (while the processing is on), the controls disappear, and I am not able to view anything, until an OptionPane (which I have used to indicate the completion of an event0 appears.
    Ideally, a user must be able to QUIT the application whenever he/she wants to, but my application does not allow the user to do this.
    Please can anyone suggest a way out of this???
    Thanks in advance :-)
    p.s. : I hope the information I provided is sufficient to help reply to my query...... :-?

    Thanks for your help, but please could you explain
    the solution better?
    I am not using threads in my program..............
    Then, why is it giving a problem?
    Is it because the server is listening to a port in an
    infinite loop, and that blocks all other processes,
    even prevents me frmo exiting the application!!! Is
    there any way out of this? I mean, can I interrupt
    the server listening to the port, and if so, how can
    this be done????The problem is that you have a loop in your program that is running on the EDT. That loop is hogging 100% of the CPU, preventing anything else from running.

  • Cleaning up obsolete interrupts in process chain

    Hi Everyone,
    We have just recently started using process chains to manage our forecasting solution. We use Interrupt Processes to wait for triggers from external systems. However, recently we've had a problem wherein certain interrupts no longer wait for the triggers and just continue to the next process.
    When we checked the table RSPCINTERRUPTLOG, we found several Interrupt entries do not have an associated LOG-ID and INSTANCE-ID. We suspect that this is what's causing those interrupts to just go through without waiting for the correct triggers.
    Would anyone know any standard program/report or process that can clean up / re-initialize this table?
    Thanks,
    Chasky Bolido

    Hi Im a coworker of the original poster,
    Our process chains are always scheduled and active daily but decision logic will end the chain for weekends. The interrupts are waiting for an external event and these are sent daily from another BI system. But it seems due to the reason that the chains are partially active in the weekends (ending with the decision logic before the interrupt process) and the external triggers are received daily, the events register and the next run of the interrupt process will not wait for the new event.
    Are there ways to clean up the registered events?
    Thanks,
    Ram G.

  • How do I restore "Restart" and uninterrupted program processing on my 3.6 GHz Intel Core i5, running Mac OS 10.6.8?

    Restart gets hung up on a blank screen with a little circle of black spokes that sequentially fade and recover in a spinning wheel effect.
    Computer turns off after power button is depressed for a few seconds. Computer turns on with a short press of the power button. While off, all wires and power cord have been unplugged, to no apparent subsequent effect, compared to leaving them connected. Programs, especially iMovie, get increasingly interrupted, with a spinning color ball appearing during longer interruptions. Although Restart shuts down all programs, it won't stop and start the Computer. After manually stopping and starting the computer, programs run uninterrupted for a couple hours before interruptions begin again.

    Try this repair your hard drive with disk utility, also repair your permissions.  If you are still having problems check your CPU and RAM usage with activity monitor. 

  • Interrupt workflow process in process controlled workflow

    Hello experts,
    In a custom requirement, we need to interrupt the workflow process.
    For example, if we have 4 levels of approval. After the 2nd approver has approved the shopping cart, then the workflow process should be kept on hold. Based on a custom interface result, if the condition from another interface is satisfied, then the shopping cart should appear in 3rd approver's UWL.
    I tried with triggering interrupt method of class /SAPSRM/cl_wf_apv_facade in save BADI of shopping cart. But it did not work.
    Please let me know how can i interrupt the workflow process till some custom condition is satisfied.
    Regards,
    Yayati Ekbote

    Quite often this kind of requirements can be fulfilled by using wait steps in the workflow. One example could be that you put a "wait for event" step in your workflow template. Then you could trigger this event from your interface (or whatever) with function module SAP_WAPI_CREATE_EVENT.
    Maybe I should ask that how do you know that the condition has been fulfilled? Is it a field in a certain table, or? If yes, instead of the "wait for event" step, you could also wait that your condition is fulfilled (a field in your table gets value X). Just take a look into the workflow template and its step types. Wait step is the way to go.
    Of course it might be possible that in the SRM/shopping cart workflows, there is already something built-in, which can be then utilized by using some of the BADIs, but if you cannot find anything from the documentation, then choose one of the above-mentioned approaches.
    Regards,
    Karri

  • Two transactions, same program, processed in background task problem

    Y0 Team ABAP,
    i got something here that bugs me.
    I have done a report. Nothing special, simple selection screen, selection of data, and output via SALV.
    One of my selection screen fields (a parameter) is VKBUR and it is "obligatory".
    2 weeks ago i got the requirement to create a copy of this program, and adopt VKBUR as select option.
    Since i didnt want changeanomalies i decided not to duplicate the program, but just add a second transaction to my program.
    In a routine at event at-selection-screen output, i´m hiding either the parameter or the select option, depending on which tcode was used.
    In some routine which gets triggered at the event at-selection-screen i´m moving either what we got in our parameter to our local range we use for the select, or just assign the select option to our local range, or process an error message if according field is not filled. Yeah that obligatory condition is done by myself since i cant just set the obligatory addition to the statement.
    This all works quite fine so far.
    BUT:
    Today i hear that the end-users process that report in background task by pressing F9.
    Problem is now that when it is processed in background task, sy-tcode is initial, so i dont know which of the transactions the user picked, and so i dont know which of the two fields has to be filled.
    Sure i could do another report, containing just my second selection screen, and when this is checked, do a submit on my real report, tho i still believe there must be some more elegant way.
    Any ideas?

    Unfortunateley those subtotals cant be handeled by the layout, thats why i manually add them.
    But you got me back on track! right now i´m for your solution.
    right now i´m having just ONE selection screen with the select option on it.
    User can decide if he fills just one value or more.
    In the end i loop over my output table and look if there are records of different VKBUR´s.
    If there are i know he wants subtotals and process them. If its just data of one VKBUR i can spare myself the hassle as there is anyway just one records per VKBUR so subtotaling this wouldnt make sense.
    thanks. Thats what i will present my consultant now lets see if i can get him satisfied with it...

  • Automatic payment program process

    Hi,
    plz tell me the process of Automatic payment program?
    how to execute the program and  wht are the steps involved while running this  Automatic payment program..?
    pls give me a detailed explanation on Automatic Payment Program?
    Regards
    Ajay..

    Dear, As found..
    Automatic payment program in SAP selects appropriate invoices to be paid based on following paramete:
    1. Documents entered upto. The selects invoices entered in SAP system with entry date upto the date specified in the filed.
    2. Nex payment run date:  The progam selects invoices in SAP system whcih will be overdue or incur lost cash discounts if paid on the date specified in this field.
    When executing the automatic payment program (F110 transaction), a proposal run must be always be carried out in SAP system first. The proposal list will sometimes include exceptions.
    Common exceptions are:
    SAP Invoice contains payment block. To pay this invoice, remove the payment block when editing the proposal list (unless the payment block is one whch cannot be edited during payment proposal) or remove payment block via FB02 for each SAP invoice.
    Payment method in vendor master/invoice is different from the one specified in the payment program parameter. To pay this invoice, allocate the payment method in the parameter of the payment run to this invoice while editing the proposal list.
    Vendor master does not contain information specified as mandatory in the payment method in teh paramter of the SAP paymement program. For example, depending on the payment method configuration for the country, certain fileds such as city or PO Box must be populated in the vendor master. In this case, delete the proposal run, make the necessary changes in the vendor master and execute the proposal run again.
    Typically, Payment program pays due invoices in full. To cater for partial payment via automatic payment program, payment request will be used (optional). Down payments to staff and vendorcan also be made via the automatic payment program if down payment request was posted.
    If foreign currency invoice is paid via automatic payment run, the relevant exchange rate type should be selected in the payment run parameter. Exchange rate gain/ loss on making the payment will be automatically posted to their relevant profit and loss account based on the reconciliation account of vendor.
    The payment method specified in the parameter of the payment program determines the bank account and the GL account used to make the payment. Also, depending on the payment method, cheques, other forms and payment files will be generated.
    Continued....

  • Dialog Box simulation without interrupting program flow

    I'm developing data acquisition/control software and need to give the end
    user flexibility to change the file to which the acquired data is being
    saved during operations. In the past, users have been confused with a
    simple string control that specifies the data file path, so I would prefer
    to move to the popup/dialog box standard to windows. Unfortunately, calling
    a dialog box results in the stoppage of program flow for the caller until
    the dialog box is closed (even though there may be no apparent data flow
    from the popup VI.) and stopping the program flow is not an option for this
    control system (the computer is controlling pressure, temperature, flow
    rates, etc of a very expensive and sensitive bit of hardware, so halting the
    control function for an unknown length of time is unacceptable).
    I am looking for the best way to accomplish this under LabVIEW 6i.
    Using a VI class reference through VI Server, I can essentially detach the
    popup window from the base program execution, spawning a separate
    application and passing the relevant parameters through judicious use of
    global variables. If I call the subroutine via VI server with "Wait until
    done" attribute set to false, the appropriate VI appears, functions
    correctly, and terminates as expected. Unfortunately, it remains visible on
    the screen, an inactive application. I have the VI Properties -> Window
    Appearance -> Customize -> Show Front Panel When Called and the Close
    Afterwards if Originally Closed checkboxes checked on this popup VI. It
    seems that calls through VI Server trigger the "Originally Open" flag, so
    the window does not close as I had expected.
    The way I have found to get around this problem is to use VI Server to call
    an intermediate subroutine whose front panel is not displayed and whose sole
    purpose it to call the subroutine that calls the dialog box. This does what
    I wanted, essentially. When the user wants to change directories, they
    press a button that triggers a call to VI Server to open a separate
    application. This application's front panel is never displayed and only
    calls a sub-VI that performs all the actual work and ends when it is
    completed. As this sub-VI terminates, all visible traces of the subroutines
    disappear and I'm left with just the primary program executing, continuing
    to take and send control signals through this whole process.
    This seems a rather cumbersome way to get a custom dialog box on the screen
    without stopping the program flow of the caller, however. Is there a more
    efficient way to accomplish this?
    Wade C. Eckhoff
    [email protected]

    Wouldn't it be easier to use two parallel independent while loops in the
    main vi, with one taking care of acquisition and the other of user
    interaction.
    When the UI loop is temporarily 'halted' because of the dialogue box poping
    up, the acquiring loop continues without delay.
    Regards
    Harrie Boonen
    www.novonordisk.com
    "Default User" wrote in message
    news:[email protected]...
    > I'm developing data acquisition/control software and need to give the end
    > user flexibility to change the file to which the acquired data is being
    > saved during operations. In the past, users have been confused with a
    > simple string control that specifies the data file path, so I would prefer
    > to move to the popup/dialog box standard to windows. Unfortunately,
    calling
    > a dialog box results in the stoppage of program flow for the caller until
    > the dialog box is closed (even though there may be no apparent data flow
    > from the popup VI.) and stopping the program flow is not an option for
    this
    > control system (the computer is controlling pressure, temperature, flow
    > rates, etc of a very expensive and sensitive bit of hardware, so halting
    the
    > control function for an unknown length of time is unacceptable).
    >
    > I am looking for the best way to accomplish this under LabVIEW 6i.
    >
    > Using a VI class reference through VI Server, I can essentially detach the
    > popup window from the base program execution, spawning a separate
    > application and passing the relevant parameters through judicious use of
    > global variables. If I call the subroutine via VI server with "Wait until
    > done" attribute set to false, the appropriate VI appears, functions
    > correctly, and terminates as expected. Unfortunately, it remains visible
    on
    > the screen, an inactive application. I have the VI Properties -> Window
    > Appearance -> Customize -> Show Front Panel When Called and the Close
    > Afterwards if Originally Closed checkboxes checked on this popup VI. It
    > seems that calls through VI Server trigger the "Originally Open" flag, so
    > the window does not close as I had expected.
    >
    > The way I have found to get around this problem is to use VI Server to
    call
    > an intermediate subroutine whose front panel is not displayed and whose
    sole
    > purpose it to call the subroutine that calls the dialog box. This does
    what
    > I wanted, essentially. When the user wants to change directories, they
    > press a button that triggers a call to VI Server to open a separate
    > application. This application's front panel is never displayed and only
    > calls a sub-VI that performs all the actual work and ends when it is
    > completed. As this sub-VI terminates, all visible traces of the
    subroutines
    > disappear and I'm left with just the primary program executing, continuing
    > to take and send control signals through this whole process.
    >
    > This seems a rather cumbersome way to get a custom dialog box on the
    screen
    > without stopping the program flow of the caller, however. Is there a more
    > efficient way to accomplish this?
    >
    >
    > Wade C. Eckhoff
    > [email protected]
    >
    >
    >

  • How to interrupt a process ?

    I have started a process to transfer files from my pc to my imac and it seems to be blocked. Howcan I interrupt it ?

    It's best to let it run, however you can always Quit Migration Assistant or if you have to Force Quit it.

  • Program Process chain-- Number of records per day.

    Hi  Friends,
    i need to  develop a program based   upon the below template.
    Chain Name      Start Date     Start Time   End Date      End Time     Total Run Time    Number of Records      Total number of records
                                                                                    IP1/IP2/IP3
    Imgaine that i have a process chain with 3 infocpakages..
    Please help us in having the code as i donot know ABAP and program /ssa/bwt will not survive my purpose.\
    Regards,
    Siddhu

    hi sid,
    i think while creating the abap code u need to take help of following tables:-
    Chain Name              RSPCLOGCHAIN.  take chain id from corresponding Chain name, and navigate to table RSPCPROCESSLOG.
    Start Date                          RSPCPROCESSLOG
    Start Time                          RSPCPROCESSLOG
    End Date
    End Time                           RSPCPROCESSLOG
    Total Run Time                  can be caluted using ENDSTAMP and STARTTIME.
    Number of Records          RSMONICDP
    Total number of records   RSMONICDP
    you have to hit these table and take the latest data from your abap code.
    thanks

  • Can I tell what program/process is opening safari?

    Some program or process is opening Safari.  It's not going to any pages in a window, it just opens and is on.  I shut it down, and it comes back sometime later - I don't know the pattern though.
    Any idea how I can track this down?
    I'm on a 1 year old iMac 10.6.8

    Look in the system logs for possible clues.
    You could temporarily rename safari and hope that whoever launches it doesn't fail quietly, i.e., produces some kind of message or log.
    Does this happen when you log in?  If so check your account's login items or ~/Library/LaunchAgents (home directory LaunchAgents) for clues.
    Does this happen if you log into another account?

  • Interrupt program execution to get data and resume execution

    Hi everybody,
    Does somebody know how can I interrupt the execution of my program (main VI and all sub-VIs), display a dialog box, collect a given datum from the user, and resume execution?
    Best regards,
    Esteban

    On the other hand, dialogs in LabVIEW are inherently blocking anyway. What exactly are you trying to accomplish, and how much do you know about LabVIEW? Sounds like you might want to go through some of the online tutorials.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Maybe you are looking for

  • Error at the time of PR creation

    I am facing a Error at the time of PR creation:- Status "Material Inactive" of material 30001668 does not allow external procurement Message no. ME053 how to active the material.

  • Ibook g4 video capabilities

    my video is an ATI Mobility Radeon 9550 , and i would like to know if it could be improved from 32mb to 128mb. But i got one thing in my mind, i think the video is not shared, its dedicated. Could it be possible to make it shared video memory, becaus

  • Aperture, Photo Stream and new iPhone

    My wife just got her first iPhone but was disappointed when she looked at Photo Stream and only about 85 shots showed - I guess the ones that were sent to the iCloud in the past 30 days. She wanted some of the older ones. So - figuring I would be a g

  • Apps for macbook air?

    who can tell me good aps for macbook air... as app store is a little poor on free apps.. i would like apps, games or something entertaining to download from the web.

  • Lightroom 2.1 Edit in PTLens

    When I edit in PTLens it creates a Tiff file and opens PTLens then after editing it reverts to Lightroom but when I try to edit the Tiff file in Lightroom it says " An unexpected end-of-file occurred" I am on windows XP Pro SP3