batoha
Active Member
Hello everybody!
I'm trying to make the thing working for the last three days. The thing is:
I have POs with related SOs (RORN, RLLN, RKCO, RCTO filled).
I have the temporary table to hold the list of PO lines that have to be splitted.
I wrote business function where I go thru those lines and make F4311EditLine calls to split the each line into two line.
After line is splitted I check if there is a related SO line and if so make a calls to F4211EditLine to split it also.
Here comes the problem. It looks like lpDS structure for F4211EditLine is not properly cleaned by the system. I figured out that on a second loop (after successfuly splitted first pair of PO and SO lines) some fields of that structure filled with data from previous call!!! What a wreck!
Did anyone met that kind of behaviour and if so what was the solution?
BTW: I decided to call EndDocument after each loop. But it still doesn't matter for EditLine.
Sergey.
I'm trying to make the thing working for the last three days. The thing is:
I have POs with related SOs (RORN, RLLN, RKCO, RCTO filled).
I have the temporary table to hold the list of PO lines that have to be splitted.
I wrote business function where I go thru those lines and make F4311EditLine calls to split the each line into two line.
After line is splitted I check if there is a related SO line and if so make a calls to F4211EditLine to split it also.
Here comes the problem. It looks like lpDS structure for F4211EditLine is not properly cleaned by the system. I figured out that on a second loop (after successfuly splitted first pair of PO and SO lines) some fields of that structure filled with data from previous call!!! What a wreck!
Did anyone met that kind of behaviour and if so what was the solution?
BTW: I decided to call EndDocument after each loop. But it still doesn't matter for EditLine.
Sergey.