HU CREATE GOODS MOVEMENT: Unterschied zwischen den Versionen

Aus SAP Wiki ツ
(Die Seite wurde neu angelegt: „== Lagerort Umbuchung == DATA: lt_move_to TYPE hum_data_move_to_t, lv_event TYPE huwbevent, lv_sysubrc TYPE sysubrc, lt_mo…“)
 
 
Zeile 1: Zeile 1:
== Lagerort Umbuchung ==
== Lagerort Umbuchung ==
<syntaxhighlight lang="abap" line start="1">


  DATA: lt_move_to    TYPE hum_data_move_to_t,
  DATA: lt_move_to    TYPE hum_data_move_to_t,
Zeile 22: Zeile 24:
   es_message    = ls_move_msg
   es_message    = ls_move_msg
   et_messages    = lt_move_msgs.
   et_messages    = lt_move_msgs.
 
  IF NOT lv_sysubrc = 1.
  IF NOT lv_sysubrc = 1.
   "error handling here
   "error handling here
  ENDIF.
  ENDIF.
</syntaxhighlight>

Aktuelle Version vom 29. September 2021, 07:38 Uhr

Lagerort Umbuchung

 DATA: lt_move_to     TYPE hum_data_move_to_t,
       lv_event       TYPE huwbevent,
       lv_sysubrc     TYPE sysubrc,
       lt_move_msgs   TYPE huitem_messages_t,
       ls_move_msg    TYPE huitem_messages,
       lt_internal_id TYPE hum_venum_t.
 
 lv_event = '0006'.
 lt_move_to = VALUE #( ( lgort = iv_storloc_for_moveing ) ).
 SELECT SINGLE venum FROM vekp INTO @DATA(lv_venum) WHERE exidv = @ls_get_hu_no-exidv.
 lt_internal_id = VALUE #( ( venum = lv_venum ) ).
 
 CALL FUNCTION 'HU_CREATE_GOODS_MOVEMENT'
  EXPORTING
   if_event       = lv_event
   it_move_to     = lt_move_to
   it_internal_id = lt_internal_id
  IMPORTING
   ef_posted      = lv_sysubrc
   es_message     = ls_move_msg
   et_messages    = lt_move_msgs.
 
 IF NOT lv_sysubrc = 1.
  "error handling here
 ENDIF.