SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News

упаковать существующую HU в поставку



 
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP
View previous topic :: View next topic  
Author Message
XXX_:)
Аналитик
Аналитик


Age: 40
Joined: 01 Feb 2008
Posts: 387
Location: Воронеж

PostPosted: Thu Jul 25, 2013 6:39 pm    Post subject: упаковать существующую HU в поставку Reply with quote

Кто нибудь должен был делать? чем кто пользовался. Целый день сижу, не выходит.
_________________
Hормальные люди делают вещи намного более безумные чем всё, что делают сумасшедшие (c) С.Лем
Back to top
View user's profile Send private message Blog
hoar
Участник
Участник



Joined: 23 Jun 2008
Posts: 30

PostPosted: Fri Jul 26, 2013 6:32 pm    Post subject: Re: упаковать существующую HU в поставку Reply with quote

XXX_:) wrote:
Кто нибудь должен был делать? чем кто пользовался. Целый день сижу, не выходит.

Что есть HU Question
Back to top
View user's profile Send private message
XXX_:)
Аналитик
Аналитик


Age: 40
Joined: 01 Feb 2008
Posts: 387
Location: Воронеж

PostPosted: Fri Jul 26, 2013 8:43 pm    Post subject: Reply with quote

Для потомков, все ли модули refresh необходимы точно не знаю, к сожалению времени нет проверить.
Code:

*create referense between HU und delivery
      LOOP AT lt_delivery ASSIGNING <fs_delivery>.

        CLEAR: lt_hus[].

        LOOP AT lt_ship ASSIGNING <fs_ship>
            WHERE vbeln = <fs_delivery>-vbeln.

          APPEND INITIAL LINE TO lt_hus ASSIGNING <fs_hus>.
          <fs_hus>-venum = <fs_hus>-top_hu_internal = <fs_ship>-venum.
          <fs_hus>-top_hu_external = <fs_ship>-exidv.

        ENDLOOP.

        lv_vbeln = <fs_delivery>-vbeln.

        ls_vbkok-vbeln_vl = ls_vbkok-vbeln = lv_vbeln.

        CALL FUNCTION 'STATUS_BUFFER_REFRESH'.

        CALL FUNCTION 'HU_PACKING_REFRESH'.

        CALL FUNCTION 'SERIAL_INTTAB_REFRESH'
          EXPORTING
            objects_status_refresh = 'C'.

*Pack the HUs onto the delivery
        CALL FUNCTION 'WS_DELIVERY_UPDATE'
          EXPORTING
            vbkok_wa          = ls_vbkok
            synchron          = 'X'
            commit            = 'X'
            delivery          = lv_vbeln
          TABLES
            it_handling_units = lt_hus
          EXCEPTIONS
            error_message     = 01
            OTHERS            = 02.

      ENDLOOP.


HU = Handling Unit

_________________
Hормальные люди делают вещи намного более безумные чем всё, что делают сумасшедшие (c) С.Лем
Back to top
View user's profile Send private message Blog
vga
Мастер
Мастер


Age: 195
Joined: 04 Oct 2007
Posts: 1218
Location: Санкт-Петербург

PostPosted: Fri Jul 26, 2013 8:46 pm    Post subject: Reply with quote

Из разговоров коллег, как только работа с HU, так сразу проблемы. Sad
_________________
Молитва - это запрос разработчику на изменение кода программы.
Back to top
View user's profile Send private message Blog Visit poster's website
su53
Участник
Участник



Joined: 02 Sep 2013
Posts: 1

PostPosted: Mon Sep 02, 2013 9:52 am    Post subject: Reply with quote

если тема еще не протухла, посмотрите на соседнем форуме.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> ABAP All times are GMT + 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG.
SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG.
Every effort is made to ensure content integrity. Use information on this site at your own risk.