05-28-2006 11:21 AM
select single aufnr
from ebkn
into ebkn-aufnr
where banfn = i_essr-banfn
and bnfpo = i_essr-bnfpo
and loekz = ' '.
it_essr-lblne = ebkn-aufnr.
it_essr-xblnr = ebkn-aufnr.
it_ekko-ebeln = i_essr-ebeln.
it_ekpo-ebeln = i_essr-ebeln.
it_ekpo-ebelp = i_essr-ebelp.
call function 'EXIT_SAPLMLSR_010'
exporting
i_ekko = it_ekko
i_ekpo = it_ekpo
changing
c_essr = it_essr.
so i cohfuse
this is right to do it?
05-28-2006 11:24 AM
05-28-2006 11:26 AM
05-28-2006 11:29 AM
hi
what is your exact problem?
may i know the code which you have written in this customer exit?
Cheers,
Abdul Hakim
05-28-2006 11:38 AM
Hi
Try to use only the exit EXIT_SAPLMLSR_010 (not EXIT_SAPLMLSR_020), here place your code:
select single aufnr from ebkn into ebkn-aufnr
where banfn = c_essr-banfn
and bnfpo = c_essr-bnfpo
and loekz = ' '.
if sy-subrc = 0.
c_essr-lblne = ebkn-aufnr.
c_essr-xblnr = ebkn-aufnr.
endif.
Max
05-28-2006 11:38 AM
05-28-2006 11:44 AM
yes but c_essr-banfn
and bnfpo is empty
and in 20 i get this data.
this is my problem
05-28-2006 11:54 AM
Uhm...Ok! Try this:
In the include LXMLUTOP active the top include ZXMLUTOP and here define your global data:
DATA: w_ebkn LIKE ebkn.
In user-exit EXIT_SAPLMLSR_020:
select single aufnr from ebkn into w_ebkn
where banfn = i_essr-banfn
and bnfpo = i_essr-bnfpo
and loekz = ' '.
if sy-subrc <> 0.
clear w_ebkn.
endif.
In the user-exit EXIT_SAPLMLSR_010:
check not w_ebkn is initial
c_essr-lblne = w_ebkn-aufnr.
c_essr-xblnr = w_ebkn-aufnr.
If in the user-exit EXIT_SAPLMLSR_010 w_ebkn is empty it means this exit is called before than EXIT_SAPLMLSR_020, so you should to read the data of main program: which trx are you using?
Max
05-28-2006 12:48 PM
hi max
i tried what you wrote
it's not working
i did not get data in w_ebkn-aufnr and i have
i see it in the debug
05-28-2006 12:52 PM
OK
Can you indicate me the point of standard program where the xit 20 is called?
05-28-2006 1:05 PM
in smod> program> SRVEUSCR
i made as you say but in se58 the external number dont update , even if i see it in the debug in xit 10
05-28-2006 1:44 PM
Hi
The EXIT_SAPLMLSR_020 is called in include LMLSRF6B of main program SAPLMLSR, here the header line of table essr is transferd to exit, so put this code in EXIT_SAPLMLSR_020:
DATA: FIELD(30) VALUE '(SAPLMLSR)ESSR'.
FIELD-SYMBOLS: <FS_ESSR> TYPE ESSR.
ASSIGN (FIELD) TO <FS_ESSR>.
select single aufnr from ebkn into ebkn-aufnr
where banfn = <FS_ESSR>.-banfn
and bnfpo = <FS_ESSR>.-bnfpo
and loekz = ' '.
if sy-subrc = 0.
<FS_ESSR>-lblne = ebkn-aufnr.
<FS_ESSR>-xblnr = ebkn-aufnr.
endif.
Max