Application Development and Automation 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: 
Read only

prog SAPLMLSR

Former Member
0 Likes
1,122

i want to update the external number,which u.xit do it i tried 20 and 10 but it's not work ther is else.

ok

but what about xit 10 i dont need him.

and what about this data where i update him i need to put it in c_essr?

5 REPLIES 5
Read only

Former Member
0 Likes
902

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

Read only

0 Likes
902

i need to remark w_ekbn becuase i get err.

what about xit 10 remark it to.

Read only

0 Likes
902

Hi

excuse me! Yes you have to define a work are for ekbn table so:

DATA: w_ebkn LIKE EBKN.

DATA: FIELD(30) VALUE '(SAPLMLSR)ESSR'.

FIELD-SYMBOLS: <FS_ESSR> TYPE ESSR.

ASSIGN (FIELD) TO <FS_ESSR>.

select single aufnr from ebkn into w_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.

I saw this exit is called in PBO, so perhaps is better to use the exit 21 instead of 20, because it's used in PAI, so you could place the code above in 21.

Max

Read only

0 Likes
902

ok

but what about xit 10 i dont need him.

and what about this data where i update him i need to put it in c_essr?

Read only

0 Likes
902

Hi

In my system I can't use those exits, but I believe the right exit to change the data of ESSR structure is 10.

But if you say the fields banfn and bnfpo are empty, the exit 10 is useless for you, so try to use only 21 (just I said before I think it's better than 20 because it's placed in PAI).

Anyway you should try to know in which moment those exits are triggered, what's very important to decide which exit has to be used.

Max