Max Titov IV @ TechSplice

The most beautiful music of all is the music of what happens.
  • Home
  • About
23 Apr 2009

Computer Science and I – where it all started

This is a little reminiscent – these are the guys who were there when I walked down the halls of UofT.

Brought to you by ByteClub.

23 April, 2009 at 19:23 by Max

Posted in Software Engineering | No Comments »

23 Apr 2009

Online ABAP community

Get involved, get started!

23 April, 2009 at 19:19 by Max

Tags: community
Posted in SAP/ABAP | No Comments »

23 Apr 2009

ABAP cancelling an SD Billing Document

If you have access to a billing document number try executing the following function:

DATA: l_rtrn TYPE bapireturn1 OCCURS 0.
DATA: l_succ TYPE bapivbrksuccess OCCURS 0.

CALL FUNCTION 'BAPI_BILLINGDOC_CANCEL1'
              EXPORTING
                billingdocument       =
*               testrun               =
*               no_commit             =
                billingdate           = sy-datum
              TABLES
                return                = l_rtrn
                success               = l_succ.

This should create a cancellation document.

23 April, 2009 at 10:49 by Max

Tags: cancellation, code, function, invoice, SAP/ABAP
Posted in SAP/ABAP | No Comments »

23 Apr 2009

A scam or not a scam [phone tracking]

Just got a phone call from a Police Association asking for a donation. Obviously the first thought that crossed my mind is ‘another scam’. But I did some checking and it looks like these guys are legid – though it seems that only a small percentage of the funds goes to the actual charity.

To check if you got a scam phone check with Phonebusters [applies to Canada only].

23 April, 2009 at 8:45 by Max

Tags: call scam, phone
Posted in Everyday stuff | No Comments »

25 Mar 2009

ABAP: execute OS level command

There are many things that one can do to execute a command in an Operating System from an ABAP report.  I’ll explain one method that one can take to accomplish this.

  1. Using transactions SM49 and SM69 set up and test a new OS command that you wish to execute.  For the purposes of this post I’ve set up an executable command ZSAPCAR32.
  2. When I was setting up the new command I’ve selected the option to add additional parameters to the command.
  3. Once tested and satisfied you can add a new function module [SXPG_COMMAND_EXECUTE] to your report that will call preset executable command.
data: g_rlog                TYPE btcxpm OCCURS 0.

CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
       EXPORTING
            commandname                   = 'ZSAPCAR32'
            additional_parameters         = <additional parameters>
            operatingsystem               = <system you specified in SM69>
       TABLES
            exec_protocol                 = g_rlog
       EXCEPTIONS
            no_permission                 = 1
            command_not_found             = 2
            parameters_too_long           = 3
            security_risk                 = 4
            wrong_check_call_interface    = 5
            program_start_error           = 6
            program_termination_error     = 7
            x_error                       = 8
            parameter_expected            = 9
            too_many_parameters           = 10
            illegal_command               = 11
            wrong_asynchronous_parameters = 12
            cant_enq_tbtco_entry          = 13
            jobcount_generation_error     = 14
            OTHERS                        = 15.

if sy-subrc eq 0.
    LOOP AT g_rlog INTO g_warlog.
*     display command output
      write g_warlog.
    ENDLOOP.
endif.

The above code will execute your OS command and display the results.

25 March, 2009 at 9:13 by Max

Tags: function, programmer, sap, SAP/ABAP
Posted in SAP/ABAP | 1 Comment »

25 Mar 2009

ABAP: load file using pop-up window

When writing a program the simplest way to load a file from your client PC in to the server SAP syste is through a use of a regular text box.  But if you want to get a little fancier try using the following function:

data: l_select TYPE sapb-sappfad.

CALL FUNCTION 'WS_FILENAME_GET'
       EXPORTING
            def_filename     = l_select
            def_path         = ' '
            mask             = ',*.*,*.*.'
            mode             = 'O'
            title            = 'Select filename to OPEN'(f05)
       IMPORTING
            filename         = l_select
       EXCEPTIONS
            selection_cancel = 1
            selection_error  = 2
            OTHERS           = 3.

This function will open up a pop-up window [standard to windows] allowing the user to select a file somewhere on their local comptuer.

25 March, 2009 at 7:00 by Max

Tags: function, programmer, sap, SAP/ABAP
Posted in SAP/ABAP | No Comments »

19 Mar 2009

UltraEdit Backup Files

I love workign with UltraEdit though there is one thing that always annoys me.  Every time I update the contents of a file the program creates a backup file in the same directory.  Well for those of you who run in to the same problem here’s how you go about fixing this issue:

Go to:

Advanced -> Configuration ->File Handling -> Backup

UltraEdit Backup configuration

By default the configurations are set up to create a .BAK file in the same directory.  Although the functionality is annoying I still think it’s quite useful.  So the best thign to do [in my oppinion] is to populate the default directory field with the a directory somewhere on your local computer.

19 March, 2009 at 9:20 by Max

Tags: configuration, development, setup, tool, troubleshooting, ultraedit
Posted in Everyday stuff | 1 Comment »

17 Mar 2009

SAPGUI_PROGRESS_INDICATOR

A usefull little function that will allow you to display a status update on the bottom left corner of the screen when running your reports.

call function 'SAPGUI_PROGRESS_INDICATOR'
       EXPORTING
            percentage = 0
            text = STATUS_TEXT.

Note: anything lower then 0 will be rounded up to 0 and anything greater then 100 will be rounded down to 100.

17 March, 2009 at 9:36 by Max

Tags: code, sap, SAP/ABAP
Posted in Everyday stuff | No Comments »

16 Mar 2009

Online textures

rustA collection of free textures can be found at the Texture King.  Anything from the concrete images to wooden and liquet samples.

16 March, 2009 at 21:57 by Max

Tags: free, images, texture
Posted in Photography | No Comments »

13 Mar 2009

When was the last System Refresh done in an SAP system?

To quickly check when your DEV/QA system was refreshed from a production box perform the following steps:

  1. Execute the transaction SCCL
  2. Fill in the Source Clinet filed [ie: 001]
  3. Select <Goto> <Log display> from the main menu

You should see a screen with a list of dates of when the system was last refreshed.

Other useful transactions: 

SCC9: client copy – copy a client

SCC8: client export

SCC7: client import

SCC1: copy as per transport request

13 March, 2009 at 9:34 by Max

Tags: client, configuration, copy, sap, system, transaction
Posted in Everyday stuff | 3 Comments »

« Older Entries
Newer Entries »
  • Subscribe using FeedBurner
  • Cloud

    abap adobe animation basic beautiful builder camera code configuration contribution design development digital engineering fix flash Flex friends function images interesting lesson new paypal Photography php problem problems program programmer review sap SAP/ABAP sdk setup soap software solution story system tables transaction transports user video

    WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

  • My Links

    • Cooking
    • Gallery
    • Resume
  • Online Tools

    • Airline Ticket Search
    • Estimate Shipping Cost [from US]
    • Link your Blog
  • Software Engineering Blogs

    • Adam Goucher
    • Joel on Software
    • The Third Bit
    • Wide Awake Developers
  • Categories

    • Everyday stuff
    • Flex
    • Photography
    • SAP/ABAP
    • Short Stories
    • Software Engineering
    • Web Development
  • Gallery

    Roy Tanck's Flickr Widget requires Flash Player 9 or better.

Max Titov IV @ TechSplice is proudly powered by WordPress
Design & code by Jonk
Entries (RSS) and Comments (RSS).
Podcast Powered by podPress (v8.8)