2009 Aug 28 5:31 PM
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
2009 Aug 31 1:44 PM
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
2009 Aug 28 5:34 PM
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
2009 Aug 28 5:38 PM
...
In the perform transaction_init.
I think TCODE SE38 is not defined in the below FM ...
'K_LINE_ITEM_LOGICAL_KEY_GET'
2009 Aug 28 6:01 PM
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
2009 Aug 28 6:14 PM
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
2009 Aug 28 6:59 PM
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
2009 Aug 31 12:24 PM
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
2009 Aug 31 12:32 PM
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.......
2009 Aug 31 12:33 PM
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
2009 Aug 31 1:44 PM
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