Skip to Content
0
Former Member
Apr 29, 2009 at 04:25 PM

BAPI_GOODSMVT_CANCEL having MB01 as transaction type .

136 Views

Hi All,

I am facing a strange problem. When I cancel a material document from MBST it gets cancelled and the new material document bears the transaction type as MBST. So far so good. Now when I am cancelling a material document from code ( BAPI_GOODSMVT_CANCEL ). it cancels the document but it puts the transaction type of MB01 (which I think its picking from the document being cancelled). I checcked in debug mode and it looks for some entry in T158 table which I am not sure how and what should be maintained. Any ideas how to have MBST using the code? I am working on ECC 6.0 .

Thanks

Anuj