Hi Experts.
I was trying to update a quantity of an inbound delivery using BAPI BAPI_INB_DELIVERY_CHANGE
Inside the process during my debug, once inside FM WS_DELIVERY_UPDATE_2,
It performs this subroutine PERFORM beleg_lesen_direkt(sapmv50a) USING likp-vbeln.
Inside the form:
FORM BELEG_LESEN_DIREKT USING IF_VBELN LIKE LIKP-VBELN.
LIKP-VBELN = IF_VBELN.
PERFORM BELEG_LESEN.
ENDFORM.
After PERFORM BELEG_LESEN, Internal table XLIKP and XLIPS have entries.
But once you get out of the form FORM beleg_lesen_direkt after pressing F5,
XLIKP and XLIPS entries are gone. There were no Refresh/Clear that the process have passed thru.
That is why when the process returns to my program, it is only returning an error message "Items does not exists".
But in SM37, when I tested FM WS_DELIVERY_UPDATE_2, XLIKP and XLIPS does not loses their value after the same scenario.
I'm wishing you can help me with this issue.
Thank you very much in advance.
Regards,
Rex