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: 

Problem of XLIPS itab empty on delivery creation.

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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

0 Kudos

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?

0 Kudos

I guess, this is the better way, if you want to implement the user-exit.

other wise, search for any enhancement spot is avialabe!

0 Kudos

Uhm

I'll try to check it

Max

Former Member
0 Kudos

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