Logistics Document Creation in SSR
I need to fill field CHARG in the logistics document for meter readings.
The field CHARG added to the schema (IMSEG-CHARG) and I use BADI to fill document before aggregation.
In proccess I defined value CHARG for Plant/SLoc (from OIRADBT) and check the stock of the batch.
If I define the same value for the field CHARG for next meter reading I have the same stock of the batch.
e.g. I have:
meter reading1 = 70L
meter reading2 = 100L
stock of the batch1 = 130L
When I define batch1 for 1st MR, I get the stock of the batch = 130L
When I define batch1 for 2nd MR, I get the stock of the batch = 130L
and in a result I get the message M7 021 "Shortfall below the specified stock level or quantity amounting to 40L".
How can I get actual stock of the batch with previous meter readings.