Application Development 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: 

BAPI_PO_GETDETAIL1 issue.

Former Member
0 Kudos

Hi, all.

I meet a runtime error after using the below function in my program. I totally dun know how to start to solve it

CALL FUNCTION 'BAPI_PO_GETDETAIL1'

EXPORTING

PURCHASEORDER = PO_NUMBER

DELIVERY_ADDRESS = 'X'

TABLES

POADDRDELIVERY = IT_DELIVER[]

.

Am I using this function correctly?

The error analysis is like below:

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.

Very appreciate if somebody can guide me. Thanks in advance.

5 REPLIES 5

Former Member
0 Kudos

nobody know this issue??

Former Member
0 Kudos

Hi there

Use FM 'BAPI_PO_GETDETAIL' as follows:

DATA: l_po_order type ebeln,

wa_header type bapiekkol,

tb_po_items type table of bapiekpo,

tb_return type table of bapireturn.

wa_return type bapireturn.

call function 'BAPI_PO_GETDETAIL'

exporting

purchaseorder = l_po_order

items = 'X'

account_assignment = ' '

schedules = ' '

history = ' '

item_texts = ' '

header_texts = ' '

services = ' '

confirmations = ' '

service_texts = ' '

importing

po_header = wa_po_header

tables

po_items = tb_po_items

return = tb_return.

  • Error handling

read table tb_return index 1 into wa_return.

if wa_return-type = 'E'.

message e000( ) raising error_in_bapi_po_getdetail.

endif.

Thanks

Shivika

0 Kudos

Which function module can let me retrieve the address number and also the delivery address according to the item in PO??

0 Kudos

may be you have to consider the plant and derive the address from the plant address number.

0 Kudos

Hello

Address will be there in the parametr PO_ADDRESS as an exporting parameter from FM BAPI_PO_GETDETAIL.

Thanks

Shivika