Skip to Content
I’m sure that everyone hates Short Dumps. And I don’t blame you, I hate Short Dumps myself…But, wouldn’t it be nice if you could your ABAP Team Short Dumps? Maybe to try to identify in what areas they have more problems, or maybe just to make fun of them…”Hi, Mr. Short Dump” or “I’m short of dump, can you give some of yours?”

The idea for this blog, came to me while I was browsing the ST22 transaction looking for the Short Dump information that my program was generated.

So, after that short intro, we can start to get our hands dirty.

image

I’m not going to paste the source code of the Login_Class.php, because you can find them on “Tasting the Mix” starting from volume 4…But index.php is important.

      Log_In($_SESSION[“Server”],$_SESSION[“Sysnum”],$_SESSION[“Client”], $_SESSION[“User”],$_SESSION[“Pass”]); $RFC_Me = $Login->RFC_Connection($Log_Me); PRINT(“

“); PRINT(“

“); PRINT(“

“); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“

Date:
Time:
User:
“); PRINT(“

“); PRINT(“

“); PRINT(“Log Out“); PRINT(“

“); } else { $_SESSION = array(); session_destroy(); $Login = new Login(); $Login->Login_Page(); } ?>

image

ST22.php is the most important file in this project, because it’s in charge off calling the FM.

“); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); PRINT(“”); for ($i=1; $i<=$dumps_row; $i++) { $DUMPS = saprfc_table_read ($this->fce,”FLIST”,$i); $DATUM[$i] = $DUMPS[‘DATUM’]; $UZEIT[$i] = $DUMPS[‘UZEIT’]; $AHOST[$i] = $DUMPS[‘AHOST’]; $UNAME[$i] = $DUMPS[‘UNAME’]; list($FLISTS,$PROGS) = split(“/”, $DUMPS[‘FLIST’]); $FLIST[$i] = $FLISTS; $PROG[$i] = $PROGS; } for ($i=1; $i<=$dumps_row; $i++) { PRINT(“”); $Date_var = Make_Date($DATUM[$i]); PRINT(“”); $Time_var = Make_Time($UZEIT[$i]); PRINT(“”); if($UNAME[$i] == $User) { PRINT(“”); PRINT(“”); } else { PRINT(“”); PRINT(“”); } PRINT(“”); PRINT(“”); PRINT(“”); } PRINT(“

Current Date Time Host Name Name of RunTime Error Program Name
$Date_var $Time_var $AHOST[$i] $UNAME[$i] $AHOST[$i] $UNAME[$i] $FLIST[$i] $PROG[$i]

“); PRINT(“

“); PRINT(“
“); PRINT(”   “); PRINT(“

“); PRINT(“

“); } } function Make_Date($Date) { $New_Date = 0; $Year = substr ($Date, 0, 4); $Month = substr ($Date, 4, 2); $Day = substr ($Date, 6, 2); $New_Date = $Day . ‘.’ . $Month . ‘.’ . $Year; return $New_Date; } function Make_Time($Time) { $New_Time = 0; $Hour = substr ($Time, 0, 2); $Minute = substr ($Time, 2, 2); $Second = substr ($Time, 4, 2); $New_Time = $Hour . ‘:’ . $Minute . ‘:’ . $Second; return $New_Time; } ?> 

If you’re wonder what FM I’m talking about…Well, it’s of course a custom FM…So please, don’t use it on a productive system. Anyway, the FM is called ZGET_ST22

Finally, we need Show_List.php which is the file that calls the method of our Class ST22.php and alos it’s called by our index.php

image

I hope you like this one. It’s simple but it can be useful.

To report this post you need to login first.

14 Comments

You must be Logged on to comment or reply to a post.

    1. Alvaro Tejada Galindo Post author
      Thanx Craig! -:D

      A framework? Well, I’m planning to start working on in next year…Integrate all of the plug ins is not going to be an easy task, but it will surely be something cool -;)

      Greetings,

      Blag.

      (0) 
  1. Kathirvel Balakrishnan
    Hi Blag,

    SE16, SM30, Email, SE38… and now ST22. At some point later you will have your own PHP based SAP Transactions as said before.

    I would rather suggest you to build some transactions like MM01, ofcourse it is very complex still it would be great job.

    Regards
    Kathirvel

    (0) 
    1. Alvaro Tejada Galindo Post author
      Thanx Kathir! -:D

      You forget SE11 -:P Yeah…A couple more “Basic Transactions” and I’m going to start with the complex ones -;) Sadly…There’s no a Web Dynpro for PHP -:(

      Next year…It’s going to be year of “SAPHP”…Or something like that -:P I’m not sure about the name yet…

      Greetings,

      Blag.

      (0) 
        1. Alvaro Tejada Galindo Post author
          Yeah Kathirvel…It’s going to be a busy year -;) But I expect of course some help from my friends -:) As I told Anton, I want this to be a Community Project, so anyone interested can drop me a mail -:D

          Greetings,

          Blag.

          (0) 

Leave a Reply