Tasting the mix of Ruby, Sinatra and SAP

I’m pretty sure that by now you have realized that I love Scripting Languages. That means that once in a while I love to play with a new language or a new web framework. This time I came to play with Sinatra a very amazing framework.

I must say that the documentation is very poor…even when a Sinatra book is in the making.

I have said a lot of times that I’m going to learn Rails but somehow…everytime I start I drop it a couple of days before…why? Surely because of Sinatra and Camping which much easier to learn and even can offer the same things as Rails.

But I’m sure that you don’t want to know about my private programming life…So let’s get into some code…

Ruby/Sinatra and SAP – SE16 Emulation

Host

System Number

Client

User

Password

eos end end get ‘/login_view’ do body do <<-eos

Table:

eos end end get ‘/show_table’ do $output = “” for i in 0…$Fields_Len $Fields_Fields = $Data_Names[i].to_s $output += “” end $output += “” for i in 0…$Data_Len $output += “” $Data_Fields = $Data[i] $Data_Split = $Data_Fields.split(“|”) for i in 0…$Fields_Len $output += “” end $output += “” end $output += “