Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
7 subscribers
Views
4432 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Integrations
We are working on SAP integration with Appian through RFC. We are using bind() f
shakilahd
over 10 years ago
We are working on SAP integration with Appian through RFC. We are using bind() function where we are getting null output. Can someone please help us through the approach of using bind() using the following SAP write function.
= a!sapInvokeWriter(
scsExternalSystemKey: "sapintegrationuser",
usePerUserCredentials: false,
hostname: cons!hostName,
clientnumber: "100",
systemNumber: "00",
bapi: "ZBAPI_OEPRATING_ACCOUNT",
importParameters: {
ACCOUNTDEFNITION: "Holder",
ACCOUNTID: 100,
ACCOUNTNAME: "Appian",
ACCOUNTTYPEID: "A",
ACTIVE: "Y",
ICACCOUNT: 2001,
LINKEDACCOUNT: "Yes",
LINKEDACCOUNTOPID: 1001,
RQST_ID: 500,
TEMPID: 110,
TYPEACCOUNTID: "A"
},
tableParameters: ""
)
...
OriginalPostID-116825
OriginalPostID-116825
Discussion posts and replies are publicly visible
0
rajganeshn
over 10 years ago
Hi,
You can refer the below link,
forum.appian.com/.../Evaluation_Functions.html
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
shakilahd
over 10 years ago
Hi, we tried as it is, but got the below error.
Expression evaluation error at function a!taskui_taskRejectionReassignment: An error occurred while executing a save: Expression evaluation error : There was an error evaluating the “set” parameter of the “bind” function for variable local!sapCreateWriter. Details: Expression evaluation error in rule 'sap_writer': Rule 'sap_writer' has 0 parameters, but instead passed 1 parameters.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Brett Shomaker
Appian Employee
over 10 years ago
Can you copy in your full bind expression (or provide a link to a gist/pastebin/etc.)? Writers do not return a value, so my hunch is that the get parameter for your bind function is returning null and you are expecting it to return something else. You could use a!sapInvoke as your get parameter and call a BAPI that would request the account you are updating so that you can capture the result of the update. Can you confirm that the account you are trying to update has been updated in SAP?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
shakilahd
over 10 years ago
Hi,
I used a!sapInvoke and I can able to get the data from SAP, but I'm not able to write a new data or update the existing data using a!sapInvokeWriter.
Could you please let me know what is correct parameters need to be passed to this a!sapInvokeWriter in order to write/ update the data.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 10 years ago
Why are using this syntax in your rule
rule!SAP_writeOperate(
_
)
if rule!SAP_writeOperate doesn't take any inputs? (see screenshot)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel