Skip to Content
0
Former Member
Jul 16, 2008 at 09:05 AM

How to update the delivery door while running badi LE_SHP_DELIVERY_PROC

186 Views

Hi,

While creating delivery I am trying to update the delivery door ie the effect should be seen in the vl01n screen as soon as the delivery is created. It takes input from badi_hu_autopack. My coding updates the structure however it does not update the vl01n screen. I have done the coding badi(LE_SHP_DELIVERY_PROC) in the method SAVE_DOCUMENT_PREPARE

IMPORT  p1 = lwa_deldoor FROM MEMORY ID 'MEM'.

" The above value is fetched once the badi( *badi_hu_autopack* )has run and autopacking has failed


  READ TABLE ct_xlikp INTO lwa_likp INDEX 1.

  " Update the delivery door if it is blank

  IF lwa_likp-lgtor EQ ''.
    lwa_likp-lgtor = lwa_deldoor-door.
*    IF if_tcode = 'VL01N' OR if_tcode = 'VL01'.
*    lwa_likp-lgtor = lwa_deldoor-door.
*    MODIFY ct_xlikp FROM lwa_likp INDEX 1.
*  ENDIF.


    MODIFY ct_xlikp FROM lwa_likp INDEX 1.
  ENDIF.

*  ct_ylikp[] = ct_xlikp[].

Please help me.