Skip to Content
author's profile photo Former Member
Former Member

BAPI_PO_GETDETAIL1 issue.

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2008 at 01:50 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 24, 2008 at 01:37 AM

    nobody know this issue??

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.