ABAP Tips and Tricks
ABAP Tips and Tricks
The system will list out all the tables which contain your desired field name.
or
There you can see entire list of tables containing the desired field.
Here the difficulty is that one should know at least the name of the one of the
data tables which contain the desired field.
**********
*
* How to print Apostrophe using the write statement
* For e.g. You'll be there.
*
report zapostrophe message-id z1.
DATA: LINE(20).
WRITE:/ LINE.
**********
In 4.6c, you can used tcode search_sap_menu to find the SAP MENU tcode.
Please note that there are no tcode available to find the path of the IMG
transaction.
**********
When you delete an entry from an internal table in ABAP, the system has to re-
generate the index for all entries after your delete, slowing the report if you
have many records to eliminate.
It is much quicker to do an insert of the correct records into a second table than
to delete entries from the first. The reason for this is because the index is only
generated for the newest element.
**********
If you want to protect a program against debugging, you just have to set the
STATUS = S in the attributes view of the main program.
**********
BDC.
When You use a call transaction ,and populate the BDCDATA table.
Make sure you pass the "DATE FIELDS" of any transaction by formatting it as
"XX/XX/YYYY" cos if you pick this data from database it will be of the
format 20030505 or something like that. Make sure You pass this value as
character field.
Same is true for the "Rate Fields". Make sure you pass them as "Character
Fields" by formatting them.
**********
If you need to find out the Okcodes for BDC sessions, look for program
RSBDCCUA and run it for any platform say 'WN' for windows or MC for Mac
and it will generate list of function codes
**********
**********
**********
**********
How to find out the number of days between a given date, excluding
Saturdays and Sundays and public holidays?
Try functions,
=> DATE_CONVERT_TO_FACTORYDATE
=> HR_HK_DIFF_BT_2_DATES