Skip to Content
0
Former Member
Mar 04, 2006 at 09:59 AM

Problem with BAPI BAPI_GOODSMVT_CREATE

11 Views

Hi All,

I am using the BAPI BAPI_GOODSMVT_CREATE in my program to create Material Document.

But, sometimes I get a message in ibapigm_ret saying 'You havent selected any items for the Material Document' <b>whereas the Material Document is actually getting created, but not available in bapigm_headret</b>.

Here is my code:

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

goodsmvt_header = bapigm_head

goodsmvt_code = bapigm_code

IMPORTING

goodsmvt_headret = bapigm_headret

TABLES

goodsmvt_item = ibapigm_item

return = ibapigm_ret.

*- Commit on Success

IF NOT bapigm_headret-mat_doc IS INITIAL.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

  • EXPORTING

  • WAIT =

  • IMPORTING

  • RETURN =

.

Can anyone explain why this peculiar problem?

Regards,

Raj