Skip to Content

If you have read

   body

   #login

 

image

   body

   #login

 

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

$SM30 = new SM30();

if(isset($_POST[‘BUTTON’]))
{
SWITCH($_POST[‘BUTTON’])
{
CASE ‘ADD’:
$Table = $_POST[‘Table’];
$SM30->Add_Record($Table,$RFC_Me);
BREAK;
CASE ‘MODEL’:
$Table = $_POST[‘Table’];
$Model = ‘X’;
$SM30->Update_Record($Table,$RFC_Me,$Model);
BREAK;
CASE ‘UPDATE’:
$Table = $_POST[‘Table’];
$Model = ”;
$SM30->Update_Record($Table,$RFC_Me,$Model);
BREAK;
CASE ‘DELETE’:
$Table = $_POST[‘Table’];
$SM30->Delete_Record($Table,$RFC_Me);
BREAK;
}
}
elseif(isset($_POST[‘ADD’]))
{
$Table = $_POST[‘TABLE’];
$Operation = $_POST[‘OPERATION’];
$SM30->Perform_Operation($Table,$RFC_Me,$Operation);
}
else
{
if(isset($_POST[‘Table’]) || isset($_GET[‘Table’]))
{
if(isset($_POST[‘Table’]))
$Table = $_POST[‘Table’];
else
{
$Table = $_GET[‘Table’];
}
$SM30->Show_Table($Table,$RFC_Me);
}
else
{
$SM30->Ask_for_Table($Choose_Mode);
}
}

?>

We’re done…But a picture worths more than a thousand words -;)

image

Insert New Record

image

Copy with Model

image

Update

image

Delete

image

To report this post you need to login first.

3 Comments

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

    1. Alvaro Tejada Galindo Post author
      Thanx buddy:

      You know that’s my goal…That way, SAP will maybe to us more seriously -;) And of course I gonna borrow you Base64 encoding functions -:D

      Greetings,

      Blag.

      (0) 
      1. Alvaro Tejada Galindo Post author
        Sorry guys…I make a mistake on the title…I think I get over excited -:) Now it’s fixed…”Tasting the mix of PHP and SAP – Volume 6″ and not “Volumen 7″…

        Greetings,

        Blag.

        (0) 

Leave a Reply