Skip to Content
0
Former Member
May 26, 2011 at 10:43 AM

Inside Customer_function, container is loaded automatically

154 Views

Hi Experts

I encounter a strange issue, can't figure it out.

Basically I load inbounding idoc to create a new Sales Order.

1. I load Idoc A to create sales order A in WE19, after SO A creation, I keep it on WE19 initial screen.

2. Then I create another session and the same to load idoc B to create Sales order B.

3. During Sales Order B createion, I debug it, outside customer-function EXIT_SAPLVEDA_001, internal table container xe1edpt2 is initial which is cleard by system program for every Idoc loading.

But don't know why once it is inside customer-function EXIT_SAPLVEDA_001, Idoc A's corresponding data is loaded into xe1edpt2 automatically, and of course when my code is reached in EXIT_SAPLVEDA_001, Idoc A and Idoc B's data are all in xe1edpt2.

I guess it must be related to memory, but I don't know the reason:

1. Before program reach EXIT_SAPLVEDA_001, xe1edpt2 is initial.

2. there is no local xe1edpt2 in EXIT_SAPLVEDA_001, it is global container.

3. When program reaches EXIT_SAPLVEDA_001, last Idoc's data will be automatially loaded into table xe1edpt2.

This is really strange. Is there anybody encounter this issue before? What is the reason?

Regards

Derek