Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_PO_GETDETAIL1 Giving Runtime Error

Former Member
0 Likes
851

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

3 REPLIES 3
Read only

mvoros
Active Contributor
0 Likes
645

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

Read only

Former Member
0 Likes
645

also check if all data elements of the import parameters are matching.

Read only

Former Member
0 Likes
645

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