This website is not affiliated with, sponsored by, or approved by SAP AG.

Dump in BADI ME_PROCESS_PO_CUST when I use BAPI_PO_CHANGE

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Dump in BADI ME_PROCESS_PO_CUST when I use BAPI_PO_CHANGE

Postby metalgod » Wed Jul 23, 2014 10:11 am

Dump in BADI ME_PROCESS_PO_CUST when I use BAPI_PO_CHANGE


I have a problem using the BAPI_PO_CHANGE in test mode in the BADI ME_PROCESS_PO_CUST method POST , shows me a RAISE EXCEPTION Dump. Thank you
Last edited by Gothmog on Wed Jul 23, 2014 10:12 am, edited 1 time in total.
Reason: Urgency removed - please read the rules.
metalgod
 
Posts: 2
Joined: Wed Jul 23, 2014 10:01 am

Re: Dump in BADI ME_PROCESS_PO_CUST when I use BAPI_PO_CHANGE

Postby Gothmog » Wed Jul 23, 2014 10:14 am

Without the exact exception raised and the code you have in the BAdI method, there's not much we can do for you...
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67
Gothmog
 
Posts: 1943
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Dump in BADI ME_PROCESS_PO_CUST when I use BAPI_PO_CHANGE

Postby metalgod » Wed Jul 23, 2014 10:36 am

Category Error de programación ABAP
Runtime error RAISE_EXCEPTION
ABAP Program CL_PO_HEADER_HANDLE_MM========CP
Application Component MM-PUR

Short text
Exception condition "FAILURE" raised.

What happened?
The current ABAP/4 program encountered an unexpected situation.

Error analysis
A RAISE statement in the program "CL_HANDLE_MANAGER_MM==========CP" raised the exception condition "FAILURE".
Since the exception was not intercepted by a superior program, processing was terminated.

Short description of exception condition:

For detailed documentation of the exception condition, use
Transaction SE37 (Function Library). You can take the called
function module from the display of active calls.

Posición desencadenante de error tiempo ejecución
Program CL_HANDLE_MANAGER_MM==========CP
Include CL_HANDLE_MANAGER_MM==========CM005
Line 13
Module (METHOD)
Module name GET

BADI ME PROCESS_PO_CUST~POST

Code: Select all
      sl_test-bapiflag = 'X'.
      CALL FUNCTION 'ZMMMF_INSERTAR_ITEM_TEST'
        EXPORTING
          is_header   = sl_header2
          it_items    = tl_items_data2
          it_ekpo_old = tl_ekpo_old
          iv_test     = sl_test
        CHANGING
          et_errores  = tl_errores.

      IF ( tl_errores IS NOT INITIAL ).

        LOOP AT tl_errores INTO sl_errores.
          IF sl_errores-type EQ 'E' OR sl_errores-type EQ 'W'.
            mmpur_message_forced 'E' 'ME' '083' 'ERROR' '' '' ''.
          ENDIF.
        ENDLOOP.
        CALL METHOD im_header->invalidate( ).
      ENDIF.

    ENDIF.


FUNCTION 'ZMMMF_INSERTAR_ITEM_TEST'

..............
..............
Code: Select all
  CALL FUNCTION 'BAPI_PO_GETDETAIL1'
    EXPORTING
      purchaseorder = is_header-ebeln
    TABLES
      return        = tl_return[]
      poitem        = tl_poitem_det[]
      poschedule    = tl_poschedule_det[].
............................
............................
          CALL FUNCTION 'BAPI_PO_CHANGE'
            EXPORTING
              purchaseorder = is_header-ebeln
              testrun       = iv_test-bapiflag
            TABLES
              return        = tl_return[]
              poitem        = tl_poitem[]
              poitemx       = tl_poitemx[]
              poschedule    = tl_poschedule[]
              poschedulex   = tl_poschedulex[].
          IF ( sy-subrc <> 0 ).

          ENDIF.

          LOOP AT tl_return[] INTO sl_return.
            IF sl_return-type EQ 'E' OR sl_return-type EQ 'W'.
              APPEND sl_return TO et_errores.
            ENDIF.
          ENDLOOP.

The main function is to insert positions in the purchasing document if validations are correct. In the BADI MEP_PROCESS_PO_CUST I call a function, which is called the BAPI_PO_CHANGE in test mode to display error messages in the log of the transaction ME22N/ME21N.

Sorry for the English, I am Argentine and only speak Spanish.

Thanks for the help.
metalgod
 
Posts: 2
Joined: Wed Jul 23, 2014 10:01 am


Return to ABAP

Who is online

Users browsing this forum: No registered users and 4 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.