‎2012 Nov 09 1:50 AM
I want to get the field name and table name while I am inside a conversion routine.
For example, I want to see the table name and field name for which the conversion routine is being processed while
I am still inside a conversion routine.
Anybody has idea ?
Regards,
Arnold.
‎2012 Nov 09 6:53 PM
Hi Arnold,
Under the hood, a conversion routine is just a function module, e.g., domain MATNR has conversion routine MATN1, which points to function modules CONVERSION_EXIT_MATN1_INPUT and CONVERSION_EXIT_MATN1_OUTPUT. A function module knows only about its own parameters (plus global data from the function group), which in the case of a conversion routine, are untyped parameters, INPUT and OUTPUT.
What are you trying to achieve in the conversion? Sometimes a BAdI is available, again in the case of domain MATNR, there is BADI_MATN1
Cheers,
Amy
‎2012 Nov 14 6:57 AM
Hi,
there is no straight forward way to find this...If you are inside a conversion routine ( in debugging ) go to ABAP debugger>desktop 2>abap stack. Find the program where this conversion is being called. There might be some BAPI/FM/method which access that conversion routine. You can have an idea pf table or field for which it has been called.
‎2012 Nov 14 8:40 AM
Hello Arnold,
first, I would suggest to avoid the need of coding depending on tablenames or fieldnames. Dangerous if you change it. Hard to understand if someone else reads the code.
I would suggest to define a new parameter in your search help which you can explicitly fill if you link your search help. So it is transparent and better to read.
Regards,
Stefan