вторник, 27 августа 2013 г.

Finding the name of the BADI used in a Transaction



Scenario: Need to find the name of the BADI available in a transaction
  1. Go to Transaction SE24
  2. Enter the Object Type CL_EXITHANDLER and click on Display.
  3. Double Click on method "GET_INSTANCE".
  4. Put a Break-point on 
Call method cl_exithandler=>get_class_name_by_interface
  1. Run any Transaction for which you need enhancements.
  2. The execution will stop at the break point. Check the values of variable 'exit_name', it will give you the BADI name called at that time.
This way you will find all the BADIs called on click of any button in any transaction.

Оригинал 

понедельник, 19 августа 2013 г.

Отладка модальных (диалоговых) окон


Для переключения модального (диалогового) окна в режим отладки, делаем на рабочем столе текстовый файл со следующим содержимым

[FUNCTION]
Command=/H
Title=Debugger
Type=SystemCommand 

затем просто перетаскиваем и бросаем его на модальное окно, в результате включится отладка

среда, 24 июля 2013 г.

Negative values on screens, I/O templates for screen fields

When you try to display a field with negative content on a screen,
you can run into the error : "FX015: Sign lost."
As a solution you could change the I/O template for 
the field from "____________" to
"___________V" (with +/- sign).

Althoug SAP tells "... The template of an input/output field
on a screen may only consist of underscores. At runtime, this is       
replaced with a suitable template (for example, for entering a date).
"(message 620(37)), you can change the template, eg. for negativ values (V)
and separators.