Dear All,
There's a development which posts a goods movement in the following way:
1) Goods movmeent (material document; GR) is posted by standard SAP transaction
2) Output is determined for the material document and processed
3) z-program, assigned to the output, is called and posts an (additional) goods movmeent
The z-program calls a z-FM in which there's a standard BAPi which performs the goods movement.
1) output's processing time is 3 (no immediate processing)
The z-FM is called and posts the additional goods movement properly
2) output is processed immediately
The z-FM is called in background task as spearate unit.
Problem: additiona; goods movement is posted SEVERAL times instead of one posting.
Does anyone knows what can be the reason of this, why the additional goods movement is posted SEVERAL times if the FM is called in background task...?
Thanks in advance,
Csaba
Update:
It was simply wrong logic in the program which resulted in endless loop.