Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function BAPI_WHSE_STOCK_GET_LIST

Former Member
0 Likes
752

I'm not getting any result from this function. I supplied the material number and the storage location. I'm not supplying any warehouse number because we have only one warehouse.

What could be the problem?

1 REPLY 1
Read only

Former Member
0 Likes
479

u have to commit ur work:


CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait   = 'X'.

for example:

  LOOP AT t_return.
   WRITE: / t_return-message_v1.
   WRITE: / t_return-message_v2.
   WRITE: / t_return-message.
  ENDLOOP.

 READ TABLE t_return with KEY type = 'E'.
  if sy-subrc NE 0 AND cb_test EQ ''.
   CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
      EXPORTING
        wait   = 'X'.
  else.
   CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
  endif.