2008 Jul 16 10:05 AM
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.
2008 Jul 19 5:10 AM
Hello,
Did you check in debug whether the field: lwa_deldoor-door has any value?
Rajeev
2008 Jul 19 5:12 AM
Hello,
Did you check in debug whether the field: lwa_deldoor-door has any value?
Rajeev