Skip to Content

ME2L - Work process Restarted, session terminated.

Hi experts,

When running the transaction ME2L, i encoutered the following error:

Work process Restarted, session terminated.

After doing some debugging i found the problem in SAPLMEREP in include LMEREPI02.

METHOD prefetch_accounting.

DATA: lt_ekpokey TYPE SORTED TABLE OF ekpo_key
WITH UNIQUE KEY ebeln ebelp,
ls_ekpokey LIKE LINE OF lt_ekpokey,
l_ref_ekpo TYPE REF TO data.

<t_ekpo> TYPE lty_t_sorted_ekpo,
<item> TYPE ekpo.

CLEAR re_t_ekkn.

CHECK im_any_ekpo IS BOUND.
l_ref_ekpo = im_any_ekpo->get_table( ).
CHECK l_ref_ekpo IS BOUND.
ASSIGN l_ref_ekpo->* TO <t_ekpo>.

LOOP AT <t_ekpo> ASSIGNING <item>.
CHECK <item>-knttp NE space
AND <item>-kzvbr NE cl_mmpur_constants=>kzvbr_u.
ls_ekpokey-ebeln = <item>-ebeln.
ls_ekpokey-ebelp = <item>-ebelp.
INSERT ls_ekpokey INTO TABLE lt_ekpokey.

SELECT * FROM ekkn INTO TABLE re_t_ekkn FOR ALL ENTRIES IN lt_ekpokey
WHERE ebeln = lt_ekpokey-ebeln AND
ebelp = lt_ekpokey-ebelp.
ENDMETHOD. "prefetch_accounting

The reason for the dump is that it_ekpokey does not contain any value. Is there an oss note which solve the problem ??

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jun 13, 2012 at 12:56 PM

    what happens if you access this PO in ME22N ?

    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.