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: 

'EXIT_SAPLMLSR_020 / 10

Former Member
0 Kudos

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?

11 REPLIES 11

abdul_hakim
Active Contributor
0 Kudos

Your are right!!

What is your problem??

Cheers,

Abdul Hakim

0 Kudos

this not update

LBLNE

0 Kudos

hi

what is your exact problem?

may i know the code which you have written in this customer exit?

Cheers,

Abdul Hakim

0 Kudos

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

0 Kudos

the code is up

0 Kudos

yes but c_essr-banfn

and bnfpo is empty

and in 20 i get this data.

this is my problem

0 Kudos

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

0 Kudos

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

0 Kudos

OK

Can you indicate me the point of standard program where the xit 20 is called?

0 Kudos

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

0 Kudos

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