Skip to Content
0
Jan 16, 2023 at 02:07 AM

BAPI_GOODSMVT_CREATE Write off

54 Views Last edit Jan 16, 2023 at 02:09 AM 2 rev

Hello,

I use FM BAPI_GOODSMVT_CREATE transfer posting with GM_CODE='03' and Movement Type = (Z98/Z97) and testrun='X'.

The materials of the system cannot be stored in a negative number.
type:Z97 is posting,Z98 is write off.
There are a lot of materials to be stored in storage, and customers will have no problem if they want to check them.

In this way, there will be a problem, first test Z97, and then test Z98, but there is no Z97 material quantity in the system, it will lead to an error, indicating that the quantity can not be negative.


The method I'm dealing with now is to GM_CODE=06 ITEM-XSTBO ='X' TESTRUN ='X' if the type is Z98 for the first time, but I'm not sure it's okay, so far there's no error.