‎2010 Feb 22 4:37 PM
Hello
I am getting the following error on calling a BAPI BAPI_PO_GETDETAIL1 from smartform layout set.
Please could you let me know if something can be cone about it.
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.
-
Regards
Atush Rohan
‎2010 Feb 22 10:34 PM
Hi,
have you searched for OSS notes on service.sap.com/notes? There are couple of notes related to your BAPI. There is also note 1277055 which is related to ME59N and exception FAILURE. This error may affect your BAPI as well.
Cheers
‎2010 Feb 23 6:18 AM
also check if all data elements of the import parameters are matching.
‎2010 Feb 25 11:16 AM
REPORT zbapi_po_items .
TABLES: ekpo.
DATA: BEGIN OF po_details.
INCLUDE STRUCTURE bapiekpo.
DATA: END OF po_details.
DATA: it_po_details LIKE STANDARD TABLE OF po_details.
PARAMETERS: p_ebeln LIKE ekpo-ebeln.
*SELECT-OPTIONS: p_ebeln FOR ekpo-ebeln.
CALL FUNCTION 'BAPI_PO_GETDETAIL'
EXPORTING
purchaseorder = p_ebeln
TABLES
po_items = it_po_details.
START-OF-SELECTION.
LOOP AT it_po_details INTO po_details.
WRITE:/01 po_details-po_number COLOR COL_HEADING,
20 po_details-po_item,
50 po_details-material,
70 po_details-short_text.
CLEAR po_details.
ENDLOOP.
Edited by: Krupaji on Feb 25, 2010 12:16 PM