Ruby on Rails Meets the World of Enterprise Applications dan mcweeney Solution Architect Colgate-Palmolive TS-91440
GOOOOOOOOOOOAAAAAAAAALL! Learn how and why we attached Ruby on Rails to a SAP system. Find out the pros and cons and learn where you can help.
Stuff I will talk about What the heck is SAP Who uses it Our problem Why Rails Architecture Code and Demos
Big Does lots A bit dreary Enterprisey
Transaction Codes Toolbar Keyboard Interaction
Who uses it Anheuser-Busch Co. The Boston Beer Company General Mills Tyson Foods Inc De' Longhi H.J. Heinz Company Nabisco Nestlé Starbucks Corp. Bose Corp. Burton Snowboards Oakley JBL-Professional Mercedes-Benz Peugeot DaimlerChrysler Delta Air Lines Air France Ryanair Lufthansa Global Electric Adidas Sony Whirlpool Cole Haan Adaptec Microsoft HP Nvidia Adobe 7-Eleven J.Crew
 
People Projects Timing Visual
Development Speed UI Learn Web 2.0!
SAP4Rails
Iteration 1 2 Weeks 1 Programmer No Graphics People No Rails or Ruby
Iteration 1 http://danmcweeney.com/static/railsDemo/rails.html
Iteration 2 2 weeks 1 Programmer Still no Graphics Some Rails / Ruby!
Iteration 2
def addUser newResource = ProjectResource.add_resource( params[ :id ], params[ :resourceType ], params[ :user ].split( '_' )[ 1 ], params[ :requirementID ] ) render( :update ){|page| page.insert_html :bottom , "resources_#{params[:requirementID]}" , :partial => "resource" , :locals => { :resource => newResource } } end
def self.add_resource(projectID, resourceType, userName, uuid) ProjectResource.Z_RP_ADD_RESOURCE.reset() ProjectResource.Z_RP_ADD_RESOURCE.FLEX_PROJ = projectID ProjectResource.Z_RP_ADD_RESOURCE.FLEX_TYPE = resourceType ProjectResource.Z_RP_ADD_RESOURCE.FLEX_USER = userName ProjectResource.Z_RP_ADD_RESOURCE.ID = uuid ProjectResource.Z_RP_ADD_RESOURCE.call() table = [] ProjectResource.Z_RP_ADD_RESOURCE.NEWREQ.rows(). each {|row| table.push(ProjectResource. new (row[ 'ID' ].strip, row[ 'FLEX_PROJ' ].strip, row[ 'FLEX_TYPE' ].strip, row[ 'STARTWEEK' ][ 4 , 2 ].to_i, row[ 'ENDWEEK' ][ 4 , 2 ].to_i, row[ 'FLEX_USER' ].strip, row[ 'PARENTID' ].strip)) } ProjectResource.Z_RP_ADD_RESOURCE.rfc.close() table[ 0 ] end
require_gem &quot;sap4rails&quot; class ProjectResource < SAP4Rails::Base function_module :Z_RP_GET_RESOURCE_DETAILS , :Z_RP_ADD_RESOURCE , :Z_RP_DELETE , :Z_RP_CHANGE_RESOURCE end
Useful info SDN SAP Developer Network ( http://sdn.sap.com ) Ruby on Rails ( http:// www. ruby on rails .org ) SAP for Rails ( http://raa.ruby-lang.org/project/sap4rails )
Great Photos jasoncartwright - http://www.flickr.com/photos/jasoncartwright/138205239/ danielgreene - http://www.flickr.com/photos/danielgreene/319689254/ swirlingthoughts - http://www.flickr.com/photos/swirlingthoughts/235667768/ kd5ftn - http://www.flickr.com/photos/kd5ftn/194248784/ kb35 - http://www.flickr.com/photos/kb35/361901328/ mikehunter - http://www.flickr.com/photos/mikehunter/433302528/ birdjsb - http://www.flickr.com/photos/birdjsb/422765102/ michaelsarver - http://www.flickr.com/photos/michaelsarver/108557419/
Q&A

Java One Presentation - Ruby on Rails meets Enterprise

  • 1.
    Ruby on RailsMeets the World of Enterprise Applications dan mcweeney Solution Architect Colgate-Palmolive TS-91440
  • 2.
    GOOOOOOOOOOOAAAAAAAAALL! Learn howand why we attached Ruby on Rails to a SAP system. Find out the pros and cons and learn where you can help.
  • 3.
    Stuff I willtalk about What the heck is SAP Who uses it Our problem Why Rails Architecture Code and Demos
  • 4.
    Big Does lotsA bit dreary Enterprisey
  • 5.
    Transaction Codes ToolbarKeyboard Interaction
  • 6.
    Who uses itAnheuser-Busch Co. The Boston Beer Company General Mills Tyson Foods Inc De' Longhi H.J. Heinz Company Nabisco Nestlé Starbucks Corp. Bose Corp. Burton Snowboards Oakley JBL-Professional Mercedes-Benz Peugeot DaimlerChrysler Delta Air Lines Air France Ryanair Lufthansa Global Electric Adidas Sony Whirlpool Cole Haan Adaptec Microsoft HP Nvidia Adobe 7-Eleven J.Crew
  • 7.
  • 8.
  • 9.
    Development Speed UILearn Web 2.0!
  • 10.
  • 11.
    Iteration 1 2Weeks 1 Programmer No Graphics People No Rails or Ruby
  • 12.
  • 13.
    Iteration 2 2weeks 1 Programmer Still no Graphics Some Rails / Ruby!
  • 14.
  • 15.
    def addUsernewResource = ProjectResource.add_resource( params[ :id ], params[ :resourceType ], params[ :user ].split( '_' )[ 1 ], params[ :requirementID ] ) render( :update ){|page| page.insert_html :bottom , &quot;resources_#{params[:requirementID]}&quot; , :partial => &quot;resource&quot; , :locals => { :resource => newResource } } end
  • 16.
    def self.add_resource(projectID,resourceType, userName, uuid) ProjectResource.Z_RP_ADD_RESOURCE.reset() ProjectResource.Z_RP_ADD_RESOURCE.FLEX_PROJ = projectID ProjectResource.Z_RP_ADD_RESOURCE.FLEX_TYPE = resourceType ProjectResource.Z_RP_ADD_RESOURCE.FLEX_USER = userName ProjectResource.Z_RP_ADD_RESOURCE.ID = uuid ProjectResource.Z_RP_ADD_RESOURCE.call() table = [] ProjectResource.Z_RP_ADD_RESOURCE.NEWREQ.rows(). each {|row| table.push(ProjectResource. new (row[ 'ID' ].strip, row[ 'FLEX_PROJ' ].strip, row[ 'FLEX_TYPE' ].strip, row[ 'STARTWEEK' ][ 4 , 2 ].to_i, row[ 'ENDWEEK' ][ 4 , 2 ].to_i, row[ 'FLEX_USER' ].strip, row[ 'PARENTID' ].strip)) } ProjectResource.Z_RP_ADD_RESOURCE.rfc.close() table[ 0 ] end
  • 17.
    require_gem &quot;sap4rails&quot;class ProjectResource < SAP4Rails::Base function_module :Z_RP_GET_RESOURCE_DETAILS , :Z_RP_ADD_RESOURCE , :Z_RP_DELETE , :Z_RP_CHANGE_RESOURCE end
  • 18.
    Useful info SDNSAP Developer Network ( http://sdn.sap.com ) Ruby on Rails ( http:// www. ruby on rails .org ) SAP for Rails ( http://raa.ruby-lang.org/project/sap4rails )
  • 19.
    Great Photos jasoncartwright- http://www.flickr.com/photos/jasoncartwright/138205239/ danielgreene - http://www.flickr.com/photos/danielgreene/319689254/ swirlingthoughts - http://www.flickr.com/photos/swirlingthoughts/235667768/ kd5ftn - http://www.flickr.com/photos/kd5ftn/194248784/ kb35 - http://www.flickr.com/photos/kb35/361901328/ mikehunter - http://www.flickr.com/photos/mikehunter/433302528/ birdjsb - http://www.flickr.com/photos/birdjsb/422765102/ michaelsarver - http://www.flickr.com/photos/michaelsarver/108557419/
  • 20.