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: 

Find UE into the transaction ME51N/ME52N to check the allocation

philippe_gauthier
Participant
0 Kudos
120

Hello,

I try to find the best userexit into the transaction ME51N/ME52N.

We need to check the allocation versus the account used issued from the class valuation.

There is someone knows the best to use, I try to exploit the userexit: ACCOBL01 but it's ok for the PO but not for the request.

Someone can help me ?

Best regards,

Philippe

1 ACCEPTED SOLUTION

venkata_ramisetti
Active Contributor
0 Kudos
59

Hi

You can use enhancement MEREQ001.

EXIT_SAPLMEREQ_001

EXIT_SAPLMEREQ_002

EXIT_SAPLMEREQ_003

EXIT_SAPLMEREQ_004

EXIT_SAPLMEREQ_005

EXIT_SAPLMEREQ_006

EXIT_SAPLMEREQ_007

EXIT_SAPLMEREQ_008

EXIT_SAPLMEREQ_009

EXIT_SAPLMEREQ_010

Thanks,

ramakrishna

3 REPLIES 3

venkata_ramisetti
Active Contributor
0 Kudos
60

Hi

You can use enhancement MEREQ001.

EXIT_SAPLMEREQ_001

EXIT_SAPLMEREQ_002

EXIT_SAPLMEREQ_003

EXIT_SAPLMEREQ_004

EXIT_SAPLMEREQ_005

EXIT_SAPLMEREQ_006

EXIT_SAPLMEREQ_007

EXIT_SAPLMEREQ_008

EXIT_SAPLMEREQ_009

EXIT_SAPLMEREQ_010

Thanks,

ramakrishna

0 Kudos
59

Thanks for your help

also when i write these code, SAP gives an error. I don't understand why

DATA :
  t_eban TYPE mereq_t_eban, "Imputation du poste de DA
  t_ebkn TYPE mereq_t_ebkn, "Groupe de marchandise &cpt
  v_bukrs like t001-bukrs,
  v_EIGEN type EIGEN, "Mix de caractéristique
  v_sakto type sakto. "compte comptable
  
FIELD-SYMBOLS: <f0> type mereq_t_ebkn.
FIELD-SYMBOLS: <f1> type mereq_t_eban.

ASSIGN TABLE FIELD im_t_ebkn TO <F0>. 
loop at im_t_eban ASSIGNING <f1>.
*LOOP AT <f0>.
v_sakto = <f0>-SAKTO.
select single EIGEN from cskb into v_EIGEN
  where kokrs = '1000'
  and kstar = v_SAKTO
  and datab <= sy-datum
  and DATBI >= sy-datum.

*ENDLOOP.

endloop.

Could you help me?

thanks

Philippe

0 Kudos
59

Hello, Philippe.

First of all, I'm not sure you can use ASSIGN with TABLE FIELD addition for purpose you try reach. Probably, it's better to FOR ALL ENTRIES:

select EIGEN from cskb into <b>table</b> t_EIGEN

<b>for all entries of im_t_ebkn</b>

where <b>kstar = im_t_ebkn-SAKTO</b>

and kokrs = '1000'

and datab <= sy-datum

and DATBI >= sy-datum.

Second thing, you should check matching of types of structures you use.

mereq_t_eban and mereq_t_ebkn are table types, but you evidently want <f1> to be of structure type. Try to use EBAN type for field-symbols.