cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI/FM create warehouse task in EWM

Former Member
0 Kudos

HI all,

i need to create Warehouse Task in EWM system, i find a FM: /SCWM/TO_CREATE, there are so many fileds need to be filled, and i tried to test these FM so many times, but i still can not create WT. please give me a sample to show me which fields need to be filled to create a WT successfully by this FM.

or any other FM/BAPI.

Thanks a lot.

Accepted Solutions (0)

Answers (2)

Answers (2)

koen_durnez
Explorer
0 Kudos

Sample:

* Create warehouse task
  clear st_create. refresh it_create.
  move: v_procty        to st_create-procty,
        p_cs_admin-rsrc to st_create-prsrc,
        p_cs_ptwy-matid to st_create-matid,
        1               to st_create-anfme,
        p_cs_ptwy-altme to st_create-altme,
        p_cs_ptwy-vlpla to st_create-vlpla,
        v_owner         to st_create-owner,
        'BP'            to st_create-owner_role,
        v_entitled      to st_create-entitled,
        'BP'            to st_create-entitled_role,
        abap_true       to st_create-single_to,
        v_cat           to st_create-cat.

  append st_create to it_create.


  CALL FUNCTION '/SCWM/TO_CREATE'
    EXPORTING
      IV_LGNUM   = p_cs_admin-lgnum
      IT_CREATE  = it_create
    IMPORTING
      EV_TANUM   = v_tanum
      ET_LTAP_VB = it_ltap_vb
      ET_BAPIRET = it_bapiret.

Cheers,

Koen

Former Member
0 Kudos

Hi Koen,

Where are we passing the inbound delivery in this?

Please help me with it.

Best, S

Former Member
0 Kudos

SOS~~~

Need help~~~