12-04-2013 3:12 PM
Hi Experts,
Need your urgent help,
I am trying to enhance VL01n such that once a new delivery is created ,the delivery ,serial numbers are extracted into a file in my PC.On debugging I noticed that the internal table XLIPS and XLIKP which contains delivery data is sometimes empty,thus no delivery data downloaded.But when it is populated with data ,delivery data is downloaded ok.How can make this itab not to be empty but have data whenever I create a new delivery.I did the enhancement to download the data on include FV50XF0B_BELEG_SICHERN of sap program SAPMV50A.Please help my brain intellingence as run low
Regds
Student of Abap
12-04-2013 3:32 PM
Hi
I don't think you need to enhance the standard program, but you can place your code in the user-exit for saving likr userexit_save_document or userexit_save_document_prepare.
In this exit the internal table XLIPS and XLIKP are always filled.
Max
12-04-2013 3:32 PM
Hi
I don't think you need to enhance the standard program, but you can place your code in the user-exit for saving likr userexit_save_document or userexit_save_document_prepare.
In this exit the internal table XLIPS and XLIKP are always filled.
Max
12-15-2013 6:55 PM
Hi Max,
Now XLIPS and XLIKPs are always filled with delivery in user exit_save_document for in include MV50AFZ1.But now the same problem is occurring in the internal table XOBJK[] when I tried to fetch the serials too in the created delivery.The serials are sometimes available but sometimes not available in the internal table XOBJK[] , is there a way this serials can be available too all the time in internal table XOBJK[] so that i can downloaded them with the rest of delivery details?
see my code how i implemented in the exit.
data : l_prog(50) type c value '(SAPLIPW1)XOBJK[]'.
ASSIGN (l_prog) TO <xobjk>.
if sy-subrc = 0.
t_objk[] = <xobjk>.
endif.
or if there is a better way please suggest?
12-16-2013 7:10 AM
I guess, this is the better way, if you want to implement the user-exit.
other wise, search for any enhancement spot is avialabe!
12-16-2013 11:42 AM
05-07-2014 1:49 PM
sorry for taking long to monitor this issue.The only workable solution for this which I came up with and worked well was i created ztables of standard tables LIPS and LIKPS and update all content in there once a delivery is created using user exit_save_document for in includeMV50AFZ1 .Then i created a zprogram in which i scheduled it every 5 mins to check if the ztables have data.If data is found it download all delivery data with the serials to a file which is transfer to a remote file server location ,then immediately after transfer,the the ztable contents are deleted to avoid duplication of entries .This works just fine