Tuesday, November 29, 2011

How to copy released transport request to a new one

If sometime you need to copy the objects included in a released transport request to a new one, here you have how to do:
  1. Create new transport request type "Transport of copies"
  2. From Request/Task --> Object List --> Include object, you may include the objects in your released request.

Wednesday, November 16, 2011

How to skip any authority check

If you are allowed to debug a SAP system, you can easily skip any authority check that avoids you to execute a program or transaction. You only have to follow these steps:
  1. Execute command /H in command field before executing the transaction/report with authority checks to skip
  2. You will receive a message saying that debugging has been switched on
    If you don't receive this message, you are not allowed to debug and unfortunately you won't be able to apply this trick
  3. Execute the transaction/report. ABAB debugger will be launched.
  4. In the menu bar select Breakpoints --> Breakpoint at --> Statement...
  5. In the popup window write authority-check and accept (enter)
  6. F8 to continue with the execution. The execution will stop when first authority-check statement is reached. For example:
  7. F5 to execute the statement and check if system variable sy-subrc has a value not equal to 0.
  8. If it has a value not equal to 0, this means that you don't have authorization for this authority check and that you will be allowed to go on with the execution. If it is 0, F8 to go on until the next authority-check statement.
  9. When you reach an authority-check and execute it and sy-subrc has a  value not equal to 0, then you will have to update sy-subrc to 0 in order to be allowed to go on with the execution. To do this, just write sy-subrc in one of the field-names fields
  10. and overwrite variable's value to 0 in the field at the right and press the button with the pencil
  11. F8 to go on. You will have to repeat previous steps in all authority-check statements reached where sy-subrc is valuated to non 0 value when it is executed

Friday, September 16, 2011

CG3Z File Upload

Using transaction CG3Z you can upload any local file to SAP application server.

It is very easy. You have to indicate the entire path of the file in your computer, the path in SAP application server where you want to upload to and the format (ASCII or Binary):


CG3Y Download File

Using transaction CG3Y you can download any file stored in SAP application server.

It is very easy. You have to indicate the entire path of the file in the application server, the path in your computer where you want to download to and the format (ASCII or Binary):


SU53 User authority data

It is very usual that any user cannot execute some transaction or report due to any authorization issue. 

In order to know what authorization is failing, we can execute transaction SU53. This transaction will show for which authorization object we don't have the required authorizations.



Please note that you will have to execute SU53 just inmediately after the error message is displayed. 

Friday, September 9, 2011

Understanding how VOFM routines are technically implemented

While many SAP specialists have used and created VOFM routines in R/3, few
understand how these routines are technically implemented within the various programs
and function groups in which they exist.


In the following link you can find a very interesting paper that provides a technical explanation of how the VOFM
transaction works:
http://saptechsolutions.com/pdf/InsideVOFM.pdf

Keys in dropdown lists

Every SAP user can setup whether they want to see only descriptions in dropdown lists


or whether they prefer to see the keys in addition


In order to select how you want to see entries in dropdown lists press 'Customize Local Layout' button and select 'Options'


and in tab 'Expert' check/uncheck flag 'Show Keys in all dropdown lists'

Also, you can select if you want items in the lists to be shown sorted by key ('Sort items by Key' checked) or by description ('Sort items by Key' unchecked)