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

BAPI_INCOMINGINVOICE_CREATE, error using just after entrysheet

Hi,

I have an RFC function module that call firstly to the BAPI_ENTRYSHEET_CREATE and then calls to the BAPI_INCOMINGINVOICE_CREATE.

I am getting the M8(607) error code Error in sobroutine frseg_fill read tab_esll estructure.

I have tried put a BAPI_TRANSACTION_COMMIT between both of the function modules. even I have tried to check if some entries have been added to tables essr and essl before processing the invoice creation.

If I put a delay, it works fine.

Anybody know how I can avoid this error, what I have to check, before call to the invoice creation.

Thanks for your attention.

BR

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jun 15, 2006 at 03:02 PM

    Hi Jorge,

    Make a call to the FM MS_READ_ENTRY_SHEET in an indefinite loop and if it is successful, then only call the second bapi.

    do.

    call function 'MS_READ_ENTRY_SHEET'

    if sy-subrc = 0.

    exit.

    endif.

    enddo.

    call function 'BAPI_INCOMINGINVOICE_CREATE'

    alternatively you can check the table

    ESLL if an entry exists for the package number

    Regards,

    Ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 15, 2006 at 03:52 PM

    Hi Ravi,thanks for your response,

    it sounds well, but it didn't work or maybe I did something in a wrong way.

    I added in the source code the next call.

    But I get the same error.

    any other idea??

    Thanks again

    do.

    CALL FUNCTION 'MS_READ_ENTRY_SHEET'

    EXPORTING

    i_lblni = entrysheet

    I_WITH_ACCOUNTS = 'X'

    I_WITH_ESKL = 'X'

    I_WITH_ESLL = 'X'

    I_EXISTENCE_CHECK = 'X'

    .

    if sy-subrc = 0.

    exit.

    endif.

    enddo.

    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.