Way to call SAP Fiori



Job:

Calls SAP service named ‘zanilfiori’

Calls method “CHECK_USER_AND_PASSWORD”

in SAP service named ‘zanilfiori’ with input parameters:

Username = username

Password = password.

Then gets a return named data.

// Defining Parameters

var oParameters = {

“method” : “CHECK_USER_AND_PASSWORD”,

“username” :  ‘username’,

“password” :  ‘password’

};

oBusyDialog.open();

$.ajax({

url : “/zanilfiori/” ,

contentType : “application/json”,

dataType : “json” ,

data : oParameters ,

success : function(data, textStatus ,jqXHR)

{

console.log(data);

oBusyDialog.close();

if(data.type == ‘S’)

{ sap.m.MessageToast.show(data.message ,{ at : “center center”});}}});

Leave a comment

Your email address will not be published. Required fields are marked *