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: 

Transaction code not defined - Reg

Former Member
0 Kudos
2,504

Hi ,

I have copied the program RKAEP000 ( of transaction KSB1) into ZRKAEP000. I have assigned to new transaction to the program ZRKAEP000 and screen no :0100 .

When I try to exicute the tranction system is throwing below message .

'Transaction code not defined'

Can you please let me know if i miss any process.

I am getting the same error when i try to exicute the program RKAEP000 from se38 .

Thanks in advace,

Regards,

Jagadeshwar.G

1 ACCEPTED SOLUTION

Former Member
0 Kudos
512

Hi Jagadeshwar ,

Program RKAEP000 uses a function module , K_LINE_ITEM_LOGICAL_KEY_GET.

This fm has input as tcode name... and you are getting error in your program because this FM is fixed for only few tcodes....that is few T codes are hard coded in this FM

the code for that FM is as follows:

CASE I_TCODE.

  • documents

WHEN 'KSB5'.

E_ITEM_GROUP = CON_ITEM_GROUP-COST_ACTUAL.

E_REP_OBJECT = CON_REP_OBJECT-DOCUMENTS.

WHEN 'KABP'.

E_ITEM_GROUP = CON_ITEM_GROUP-COST_PLAN.

E_REP_OBJECT = CON_REP_OBJECT-DOCUMENTS.

  • cost centers

WHEN 'KSB1'.

E_ITEM_GROUP = CON_ITEM_GROUP-COST_ACTUAL.

E_REP_OBJECT = OBJEKTART_KS.

WHEN 'KSBP'..........................................

and so on.----


So when u give ur tcode.... it is goin to give error.

you need to copy this FM and make modification for your req.

Edited by: brijesh soni on Sep 1, 2009 8:31 AM

9 REPLIES 9

Former Member
0 Kudos
512

Hi,

Even I have done the same copying once.

No issues.

Just debug the program and see where it is throwing the error. If that part of the code is irrelevant for you 'Z' custom program, just delete it.

You might come across several piece of code that you may not need, just comment or delete in your 'Z' prg.

Regards,

Subramanian

Former Member
0 Kudos
512

...

In the perform transaction_init.

I think TCODE SE38 is not defined in the below FM ...

'K_LINE_ITEM_LOGICAL_KEY_GET'

Former Member
0 Kudos
512

Hi,

THis is because the program calls FM: K_LINE_ITEM_LOGICAL_KEY_GET which will have all the controlling standard transactions on which it has to do some action but our Z transaction code would be missing and it would raise exception 'Unknown transaction cehck the FM you will get to know.

Regards,

Himanshu

0 Kudos
512

Thanks for information provided.

Even I am getting the same error when I try to exicute the program RKAEP000 ( of Starndard transaction KSB1) in SE38.

Please let me know the possible reason.

Thanks in advace,

Reagrds,

Jagadeshwar.G

0 Kudos
512

Hi,

That is because when the program is executed using transaction code se38......the transaction code is se38 which is also not handled in that FM,if you check the FM you would understand what i am saying.

Regards,

Himanshu

0 Kudos
512

Thanks for your help.

I have placed break point on the function module and ran the transaction. Before getting exicuted the function modeule system throwing ' Transaction code does't exist' message.

I have commented the function module and tried , still i am getting the same error.

I am debugging the program from intial. If you have any information please pass me .

Regards,

Jagadeshwar.G

0 Kudos
512

check these transactions associated with the program RKAEP000 in table TSTC and accordingly you can create a new one for your purpose. some of the example Tcodes are mentioned here...

CJIG

CPB1

CPBP

KABP

KKAA

KKCA

KKCP

KKCS

KKFB

KOB1

KOB2

KOB3.......

0 Kudos
512

Hi,

Try like below:

When you are executing the program is se38 or using you transaction just switch the debugging before executng and then in debugging go to break-points > break-points at> statement> message and hit F8 it would yake you to the location where the error is coming from .

I would suggest you to copy that FM in a Z FM and then add your transaction code to the alreayd existing code lets say you want this prorgam to work as transaction KSB5 then just add your transaction code in that condition and check.

Regards,

Himanshu

Former Member
0 Kudos
513

Hi Jagadeshwar ,

Program RKAEP000 uses a function module , K_LINE_ITEM_LOGICAL_KEY_GET.

This fm has input as tcode name... and you are getting error in your program because this FM is fixed for only few tcodes....that is few T codes are hard coded in this FM

the code for that FM is as follows:

CASE I_TCODE.

  • documents

WHEN 'KSB5'.

E_ITEM_GROUP = CON_ITEM_GROUP-COST_ACTUAL.

E_REP_OBJECT = CON_REP_OBJECT-DOCUMENTS.

WHEN 'KABP'.

E_ITEM_GROUP = CON_ITEM_GROUP-COST_PLAN.

E_REP_OBJECT = CON_REP_OBJECT-DOCUMENTS.

  • cost centers

WHEN 'KSB1'.

E_ITEM_GROUP = CON_ITEM_GROUP-COST_ACTUAL.

E_REP_OBJECT = OBJEKTART_KS.

WHEN 'KSBP'..........................................

and so on.----


So when u give ur tcode.... it is goin to give error.

you need to copy this FM and make modification for your req.

Edited by: brijesh soni on Sep 1, 2009 8:31 AM