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

required the transaction code for the user exit

Former Member
0 Likes
1,237

Hi Abap Gurus,

i want to find out the *sap transaction code for which the user exit belongs to from the below code i am getting the enhancement name and the type.

i want to know the transaction code for exit EXIT_SAPLMEKO_002 and EXIT_SAPLFYTX_USER_001

data: begin of it_modsap occurs 0,
        name   type modsap-name,
        typ    type modsap-typ,
        member type modsap-member,
      end of it_modsap.
type-pools:slis.
data:wa_layout type slis_layout_alv.
data:it_sort   type slis_t_sortinfo_alv.
data:wa_sort   like line of it_sort.
parameters:p_exit type modsap-member.
select * from modsap into table it_modsap where member = p_exit.
read table it_modsap index 1.
select * from modsap into table it_modsap where name = it_modsap-name.
wa_layout-colwidth_optimize = 'X'.
wa_sort-fieldname = 'NAME'.
wa_sort-tabname   = 'IT_MODSAP'.
wa_sort-up        = 'X'.
append wa_sort to it_sort.
clear  wa_sort.
call function 'REUSE_ALV_GRID_DISPLAY'
  exporting
    i_callback_program = sy-repid
    i_structure_name   = 'MODSAP'
    is_layout          = wa_layout
    it_sort            = it_sort
  tables
    t_outtab           = it_modsap.

1 ACCEPTED SOLUTION
Read only

vijaymanikandan
Contributor
0 Likes
1,101

HI

The user exit EXIT_SAPLFYTX_USER_001 is trigered for the below transactions and also postings via IDOC.

'ME21' 'ME21N' 'ME22' 'ME22N' 'ME23' 'ME23N' 'ME31L' 'ME31' 'ME32L' 'ME32' 'ME33L' 'ME33' 'ME38' 'ME39' 'VL31N' 'VL32N' 'VL33N'.

This is basically used for tax calculation purposes.

The user exit EXIT_SAPLMEKO_002 is trigerred for multiple transactions of purchansing scenario.

Also use user exit for your business scenario.

Br

Vijay V

Hi Abap Gurus,

i want to find out the *sap transaction code for which the user exit belongs to from the below code i am getting the enhancement name and the type.

i want to know the transaction code for exit EXIT_SAPLMEKO_002 and EXIT_SAPLFYTX_USER_001

data: begin of it_modsap occurs 0,
        name   type modsap-name,
        typ    type modsap-typ,
        member type modsap-member,
      end of it_modsap.
type-pools:slis.
data:wa_layout type slis_layout_alv.
data:it_sort   type slis_t_sortinfo_alv.
data:wa_sort   like line of it_sort.
parameters:p_exit type modsap-member.
select * from modsap into table it_modsap where member = p_exit.
read table it_modsap index 1.
select * from modsap into table it_modsap where name = it_modsap-name.
wa_layout-colwidth_optimize = 'X'.
wa_sort-fieldname = 'NAME'.
wa_sort-tabname   = 'IT_MODSAP'.
wa_sort-up        = 'X'.
append wa_sort to it_sort.
clear  wa_sort.
call function 'REUSE_ALV_GRID_DISPLAY'
  exporting
    i_callback_program = sy-repid
    i_structure_name   = 'MODSAP'
    is_layout          = wa_layout
    it_sort            = it_sort
  tables
    t_outtab           = it_modsap.

5 REPLIES 5
Read only

davis_raja
Active Participant
0 Likes
1,101

Put a BREAKPOINT inside the user-exit and execute any t code. If it opens the debugger, type SY-TCODE in the right screen and you will get the transaction which is calling this user-exit.

Read only

vijaymanikandan
Contributor
0 Likes
1,102

HI

The user exit EXIT_SAPLFYTX_USER_001 is trigered for the below transactions and also postings via IDOC.

'ME21' 'ME21N' 'ME22' 'ME22N' 'ME23' 'ME23N' 'ME31L' 'ME31' 'ME32L' 'ME32' 'ME33L' 'ME33' 'ME38' 'ME39' 'VL31N' 'VL32N' 'VL33N'.

This is basically used for tax calculation purposes.

The user exit EXIT_SAPLMEKO_002 is trigerred for multiple transactions of purchansing scenario.

Also use user exit for your business scenario.

Br

Vijay V

Read only

0 Likes
1,101

Hi Vijay,

how did you find the transaction code for a particular exit. please let me know also.

Read only

0 Likes
1,101

Hi the naming convention for user exit is :

EXIT_<program name><3 digit suffix>

you have the program name. Goto se80, give program name, and see attached transactions.

Read only

Former Member
0 Likes
1,101

Hi abap gurus,

i want to know how to find the sap transaction code for any exit for example : EXIT_SAPLMEQR_001

thanks in advance.

Edited by: srinu_varahalu on Mar 1, 2012 8:21 PM