Application Development 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: 

How to update the delivery door while running badi LE_SHP_DELIVERY_PROC

Former Member
0 Kudos
264

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.

2 REPLIES 2

Former Member
0 Kudos
78

Hello,

Did you check in debug whether the field: lwa_deldoor-door has any value?

Rajeev

Former Member
0 Kudos
78

Hello,

Did you check in debug whether the field: lwa_deldoor-door has any value?

Rajeev