EXIT_SAPLCORF_008 - how to raise the exception "PREDEC_NOT_CONFIRMED "

Hi,
I am using the user exit " EXIT_SAPLCORF_008 "  to the check the previous activity is confimed or not.
so i want to raise the exception "PREDEC_NOT_CONFIRMED " , Because this exit comes under function module  "CO_RU_CHECK_OPERATION ".
I am not able to raise the Exception . Plz guide me how to go ahead.
Exception List - CO_RU_CHECK_OPERATION
CONFIRMATION_NOT_ALLOWED     Confirmation not allowed
NEW_STATUS_NOT_POSSIBLE     Confirmation not possible because of status management
OPERATION_NOT_FOUND     Operation not found
OPERATION_NOT_SELECTABLE     Operation cannot be selected because of parameter setting
ORDER_DATA_MISSING     Order data was not yet supplied
PREDEC_NOT_CONFIRMED     Predecessor of operation not confirmed
PRT_LOCKED     Production resource/tool is frozen.
Regards,
Rani

Hi,
I am using the user exit " EXIT_SAPLCORF_008 "  to the check the previous activity is confimed or not.
so i want to raise the exception "PREDEC_NOT_CONFIRMED " , Because this exit comes under function module  "CO_RU_CHECK_OPERATION ".
I am not able to raise the Exception . Plz guide me how to go ahead.
Exception List - CO_RU_CHECK_OPERATION
CONFIRMATION_NOT_ALLOWED     Confirmation not allowed
NEW_STATUS_NOT_POSSIBLE     Confirmation not possible because of status management
OPERATION_NOT_FOUND     Operation not found
OPERATION_NOT_SELECTABLE     Operation cannot be selected because of parameter setting
ORDER_DATA_MISSING     Order data was not yet supplied
PREDEC_NOT_CONFIRMED     Predecessor of operation not confirmed
PRT_LOCKED     Production resource/tool is frozen.
Regards,
Rani

Similar Messages

  • How to raise the exception in function module

    Dear abaper's.
                   I am creating a Function module .In that in' EXCEPTION' Tab i am giving
    3 exception .1.NO_DATA_FOUND 2.NO_PRINTER_FOUND 3.SMARTFORM_INTERFACE_NOT_FOUND.
    In my coding if this condtion matches i want to raise this exception.how can i do this in my coding .can any one suggest me..
    advance thanks,
    Warm regards,
    Veera

    Hi,
    if that condition is not satisfied,and u didn't handle that exception while calling function module then in the runtime error u will get the text as the description of the exception in function module definition.
    rgds,
    bharat.

  • How to raise the exception

    how to rise exception when the cursor returns no data,suppose
    begin
    for rec in (select * from scott.emp e
    where exists ( select 1 from scott.emp where e.deptno=30 ))
    loop
    dbms_output.put_line(rec.ename);
    end loop;
    exception
    when no_data_found then
    dbms_output.put_line('no such employee');
    end;now when other deptno(which is not there in table) given ,the exception should be raised.
    how to do this

    Hi,
    What about this?
    DECLARE
       v_numrecords NUMBER;
       no_matching_emp EXCEPTION;
    BEGIN
       SELECT COUNT(*) INTO v_numrecords FROM scott.emp e WHERE e.deptno = 30;
       IF v_numrecords = 0 THEN
          RAISE no_matching_emp;
       END IF;
       -- Here comes your loop
       FOR rec IN (SELECT * FROM scott.emp e WHERE e.deptno = 30) LOOP
          dbms_output.put_line(rec.ename);
       END LOOP;
    EXCEPTION
       WHEN no_matching_emp THEN
          dbms_output.put_line('no such employee');
    END;Regards,
    Edited by: Walter Fernández on Mar 3, 2009 11:29 AM - Adding loop...

  • How to log the exception using Log action in Oracle Service Bus

    Hi,
    Whenever an exception is raised how to log the exception using Log action in oracle service bus.After logging where I have to find the logged message.

    It would be in the log file for the managed server which ran the request. If you are logging the message at a lower level than your app server, however, you won't see it. You should be logging the exception at Error level.

  • How to write the exceptions in function module

    dear all,
         how to write the exceptions in function modules with example.
    thanq
    jyothi

    Hi,
    Raising Exceptions
    There are two ABAP statements for raising exceptions. They can only be used in function modules:
    RAISE except.
    und
    MESSAGE.....RAISING except.
    The effect of these statements depends on whether the calling program handles the exception or not. The calling program handles an exception If the name of the except exception or OTHERS is specified after the EXCEPTION option of the CALL FUNCTION statement.
    If the calling program does not handle the exception
    · The RAISEstatement terminates the program and switches to debugging mode.
    · The MESSAGE..... RAISING statement displays the specified message. Processing is continued in relation to the message type.
    If the calling program handles the exception, both statements return control to the program. No values are transferred. The MESSAGE..... RAISING statement does not display a message. Instead, it fills the system fields sy-msgid, sy-msgty, sy-msgno , and SY-MSGV1 to SY-MSGV4.
    Source Code of READ_SPFLI_INTO_TABLE
    The entire source code of READ_SPFLI_INTO_TABLE looks like this:
    FUNCTION read_spfli_into_table.
    ""Local Interface:
    *" IMPORTING
    *" VALUE(ID) LIKE SPFLI-CARRID DEFAULT 'LH '
    *" EXPORTING
    *" VALUE(ITAB) TYPE SPFLI_TAB
    *" EXCEPTIONS
    *" NOT_FOUND
    SELECT * FROM spfli INTO TABLE itab WHERE carrid = id.
    IF sy-subrc NE 0.
    MESSAGE e007(at) RAISING not_found.
    ENDIF.
    ENDFUNCTION.
    The function module reads all of the data from the database table SPFLI where the key field CARRID is equal to the import parameter ID and places the entries that it finds into the internal table spfli_tab. If it cannot find any entries, the exception NOT_FOUND is triggered with MESSAGE ... RAISING. Otherwise, the table is passed to the caller as an exporting parameter.
    Calling READ_SPFLI_INTO_TABLE
    The following program calls the function module READ_SPFLI_INTO_TABLE:
    REPORT demo_mod_tech_fb_read_spfli.
    PARAMETERS carrier TYPE s_carr_id.
    DATA: jtab TYPE spfli_tab,
    wa LIKE LINE OF jtab.
    CALL FUNCTION 'READ_SPFLI_INTO_TABLE'
    EXPORTING
    id = carrier
    IMPORTING
    itab = jtab
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    CASE sy-subrc.
    WHEN 1.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno.
    WHEN 2.
    MESSAGE e702(at).
    ENDCASE.
    LOOP AT jtab INTO wa.
    WRITE: / wa-carrid, wa-connid, wa-cityfrom, wa-cityto.
    ENDLOOP.
    The actual parameters carrier and jtab have the same data types as their corresponding interface parameters in the function module. The exception NOT_FOUND is handled in the program. It displays the same message that the function module would have displayed had it handled the error.
    Or
    just have to decide what exceptions u want and under what conditions.
    then declarethese exeptions under the exceptions tab.
    in the source code of ur function module.
    if
    like this u can code .
    now when u call the function module in tme mainprogram.
    if some error occurs and u have declared a exception for this then it will set sy-subrc = value u give inthe call of this fm.
    in the fm u can program these sy-subrc values and trigger the code for ur exception.
    Please reward if useful
    Regards,
    Ravi
    Edited by: Ravikanth Alapati on Mar 27, 2008 9:36 AM

  • How to raise the ringtone volume in nokia 5200??

    i cant figure it out how to raise the ringtone voice on my nokia 5200, when someone calls me the ringtone voice is low and than after like 4 seconds it goes higher and higher to the maximum...i want the ringtone volume to be at the maximum from the first second that someone calls me, some help would be great

    hi,
    What you need to do is go into:
    "Settings" then "Tones" and make sure "Incoming Alert" is changed to "Ringing" rather than "Ascending"
    I hope this helps.

  • How to trap the exception in cursors

    Hi
    How to trap the exception NO DATA FOUND/other exceptions with the cursor
    DECLARE
    CURSOR c1 IS SELECT * FROM EMP WHERE empno = 1234;
    BEGIN
    FOR i IN c1 LOOP
    DBMS_OUTPUT.PUT_LINE(i.ename);
    END LOOP;
    END;so 1234 is not in my table, how to trap this.could some one help me please
    Edited by: user4587979 on Sep 27, 2010 3:46 AM

    user4587979 wrote:
    Hi
    How to trap the exception NO DATA FOUND/other exceptions with the cursor
    DECLARE
    CURSOR c1 IS SELECT * FROM EMP WHERE empno = 1234;
    BEGIN
    FOR i IN c1 LOOP
    DBMS_OUTPUT.PUT_LINE(i.ename);
    END LOOP;
    END;so 1234 is not in my table, how to trap this.could some one help me please
    Edited by: user4587979 on Sep 27, 2010 3:46 AMYou don't trap NO_DATA_FOUND in a cursor loop, as for others ... you trap and handle the ones you expect.
    NO_DATA_FOUND isn't a condition associated with the processing of a cursor loop.
    You have other options though, for example ...
    declare
       l_processed_something boolean default false;
    begin
       for x in cursor
       loop
          l_processed_something   := true;
          <more processing>
       end loop;
    end;
    /

  • How to Raise a Exception in constructor ..

    Hi all...
    Can any one tell how to raise a Exception in Constructor ...
    u can Post codings if u have ....
    Thanking you ...

    Hello Jayakumar
    Here is a sample report showing how to use exception classes:
    *& Report  ZUS_SDN_EXCP_IN_CONSTRUCTOR
    REPORT  zus_sdn_excp_in_constructor.
    *       CLASS zcl_myclass DEFINITION
    CLASS zcl_myclass DEFINITION.
      PUBLIC SECTION.
        METHODS:
          constructor
            IMPORTING
              value(id_dump)  TYPE boolean
            " EXCEPTIONS  " do not use exceptions !!!
            RAISING
              cx_bapi_error.
    ENDCLASS.                    "zcl_myclass DEFINITION
    *       CLASS zcl_myclass IMPLEMENTATION
    CLASS zcl_myclass IMPLEMENTATION.
      METHOD constructor.
        IF ( id_dump = 'X' ).
          RAISE EXCEPTION TYPE cx_bapi_error
            EXPORTING
              textid = cx_bapi_error=>cx_bo_error
              class_name = 'ZCL_MYCLASS'.
        ENDIF.
      ENDMETHOD.                    "constructor
    ENDCLASS.                    "zcl_myclass IMPLEMENTATION
    DATA:
      gd_text     TYPE string,
      go_myclass  TYPE REF TO zcl_myclass,
      go_error    TYPE REF TO cx_root.
    START-OF-SELECTION.
      TRY.
          CREATE OBJECT go_myclass
                    EXPORTING
                      id_dump = 'X'.
        CATCH cx_bapi_error INTO go_error.
          gd_text = go_error->get_text( ).
          MESSAGE gd_text TYPE 'I'.
      ENDTRY.
    END-OF-SELECTION.
    Regards
      Uwe

  • Tcode VF02 RAISE statement in the program "SAPLCSS3" raised the exception.

    Hi,
          I am getting a short dump in my smartform attached with vf02. For few of invoice no. its working perfectly but giving dump in few invoice no.
    Below is short dump statement. Pls guide me for this issue.
    A RAISE statement in the program "SAPLCSS3" raised the exception
    condition "CALL_INVALID".
    Since the exception was not intercepted by a superior
    program, processing was terminated.
    Short description of exception condition:
    invalid call
    Regards,
    Ranu`
    Edited by: ranu sharma on Feb 6, 2010 2:55 PM

    Hi Dipesh,
    In background SAP GUI functionalities are not available.
    This question has been asked many times on scn:
    CNTL_ERROR
    CNTL_ERROR while running a report in background mode
    Regards,
    Ashvin

  • Raised the exception condition "NO_DBROUTID_FOUND".

    Hi All,
    Am trying to load the transaction data from flat file to bI 7.0.
    upto PSA level data will loaded perfectly. but while am loading data to infocube through DTP am getting short dump with error message saying.
    "A RAISE statement in the program "SAPLRSDGUTILITIES" raised the exception condition "NO_DBROUTID_FOUND".
    if g_sx_p-s_viobj-dbroutid = space
    raise no_dbroutid_found.
    endif.
    could you please let me know the reason why am getting this short dump and solution for the above.
    am loading below flat file data.
    ZD_PROD     CHANNEL     QUANTITY     UNIT     REVENUE     CURRENCY
    P1     C1     10     KG     200     USD
    P2     C2     10     KG     200     USD
    P3     C3     10     KG     200     INR
    P4     C4     10     KG     200     INR
    Thanks yours support.
    Regards
    Yogee

    Did you use any routine for mapping in DTP?What infoobjects are you using???
    REgards

  • Raised the exception condition"OUTPUTFIELD_TOO_SHORD"

    Hi Folks,
    I developed report on BOM explode. i sheduled my program in background mode and it is sucessfully completed. the movement i press 'print' to see the output its getting dumped.
    the terminationed occured in prg'SAPLBTCH'.
    1)raised the exception condition"OUTPUTFIELD_TOO_SHORD"
    2)length of field RESULT is too short.
    could you tell me i need to apply note on this or either the logic of my report may be inefficent ?( becoz  my report taking morethan 1000 sec to execution).
    thanks in advance
    srini vancha

    Hi Srinivas,
    Try this, If you are displaying any Icons or texts, increase the lenght and then check .
    Thanks
    Lakshman

  • How to raise a exception if the incoming value for a source field is empty

    Dear all,
    I have a scenario where the source and target structures are as follows :
    The output for the above transformation logic is
    The occurrence for field id in source and target is 1:1   Even if i don't provide the input value for id field,
    system is not throwing any runtime exception.But if the field tag id is missing in incoming payload, then
    system throws exception.
    1) *** How can i raise a exception it the value for field id is empty
    2) As the target structure occurrence for field id is 1:1  why system doesn't throw exception for null value
    Regards
    Koti Reddy

    1) *** How can i raise a exception it the value for field id is empty
    You need to impliment the check  to throw the error
    2) As the target structure occurrence for field id is 1:1  why system doesn't throw exception for null value
    You are sending a blank value " " and the same is being passed. if you remove the tag from source xml it'll throw the error
    Message was edited by: Hareesh Gampa

  • How to raise an exception in the badi

    Hi friends..I've got the badi to be used for my object.Badi workorder_confirm
    requirement is " if data is entered in one field leaving a field emprty,it should give an error message saying "Field is mandatory". I can make use of ERROR_WITH_MESSAGE exception for the message to be generated..
    but dont know the syntax of it..please provide me with the statement how the message needs to be raised

    Looking at the BAdI Documentation it says this:
    Note that in the methods, no system messages may be sent. The only      
    exceptions are the AT_SAVE and AT_CANCEL_CHECK methods. Within these    
    methods, a system message may be issued, but only if you trigger the    
    exception ERROR_WITH_MESSAGE (for AT_SAVE method) or NOT_ALLOWED (for   
    AT_CANCEL_CHECK method) at the same time.                                                                               
    Note also, that within the methods the "commit work" instruction may not
    be carried out because this would lead to incorrect data in the         
    database.                                                               
    So the only thing you can do is use:
    RAISE ERROR_WITH_MESSAGE.

  • Which column raised the exception?

    SQL&gt; desc test
    Name Null? Type
    A NUMBER(5)
    B VARCHAR2(10)
    SQL&gt; insert into test values(1,'abcdefghijkl');
    insert into test values(1,'abcdefghijkl')
    ERROR at line 1:
    ORA-01401: inserted value too large for column
    How do I know that which column/value raised this exception? In this case, is there a way to identify that the column "B" has raised this exception?

    What version of oracle are you running? Here is a run on 10.2
    SQL> desc afb
    A VARCHAR2(1)
    B VARCHAR2(2)
    C VARCHAR2(3)
    SQL> select version from v$instance;
    VERSION
    10.2.0.1.0
    SQL> insert into afb values ('A','BBB','CC');
    INSERT INTO AFB VALUES ('A','BBB','CC')
    ERROR at line 1:
    ORA-12899: value too large for column "TEST"."AFB"."B" (actual: 3, maximum: 2)
    The error message tells you. In prior versions you could tell in pro from the indicator variable and OCI had a similar method, but in straight SQL you were more or less out of luck.

  • How to handle the exception in GP(Exception : Activity could not be read)

    Hi all
    we are getting the GP exceptions  as  1) "Activity could not be read"  2) "Action has been stopped"
    3) error while processing the item can not be displayed
    Please let me know how to handle these exceptions in GP .
    currently i got some documents in SDN on GP exceptions but those are related to manual exceptions for example if you enterd wrong data in the inputfield then we can handle those exceptions then it will allow to enter the new value but the exceptions which i mentioned above are new it seems
    can you please let me know how to handle or solve those 3 exceptions
    Thanks
    bindu

    Hi Shikhil
    Thanks for your reply
    Please have a look below for exceptions which i am getting in GP and let me know how to handle these exceptions.
    1) "Activity could not be read"
    2) "Action has been stopped"
    3) error while processing the item can not be displayed
    if you give any idea/clue how to handle these exceptions then it would be great help to me
    Thanks
    Sunil

Maybe you are looking for

  • Changing the name of home folder

    When I set up my machine, I set up the name of my home folder without knowing some of the ramifications of using it. I reviewed the steps in http://www.macworld.com/article/132693/2008/03/changeshortusername.html which seemed reasonably straight forw

  • Change order of elements each time a page is loaded?

    I'm trying to do a web page that lists products but I want to make it load the products in a random order each time the page loads. Is there a way this can be done without having to set up a database? If I did each product, say as a library item, is

  • ITunes 11.3.1 update and Apple TV problems

    Since updating iTunes the other day I cant play Photos or stream video through my Apple TV v3. Current firmware on both devices. Used to work okay. No changes made to router or firmware etc. Everything else works as before. Apple TV will however find

  • Help on Subwoofer/​Amp installati​on?

    I was looking around the net for a sub/amp combination to put in my car to be installed by BestBuy.  I purchased the Alpine SWX-1043D. (Specs Below) Can I buy an enclosure at BestBuy that would be suitable for my subwoofer? Also wondering what amp I

  • Partition my external hd for win games?

    What is the best way to partition my external "wd my passport for mac" 1tb Hard disk, or do I even need to? I want to use it for storing windows games to use in boot camp and time machine for os x 10.8, itunes, iphoto etc... .