Hello Community,
I am struggling finding the right json format I should provide in the "SAP function input" parameter when using a "Call SAP function" action.
Acording to the connector documentation, the “functionInput” key is a dynamic schema where you specify SAP function input, but there is no example of how you specify that input.
I suppose it is in json format, and have done several tests … but it looks the values I try to pass to SAP don’t arrive in the right place.
For instance, I have an SAP RFC named “ZGEF080_DATOS_USUARIO” that requires an input structure named CONTROL, with two values:
The way I specify these values in the flow action depends on if, when using the “Call SAP Function”, I specify directly the static name of the SAP RFC or if I use a dynamic name:
If I use “peek code” on both cases:
So the final question is if anyone know what format should I use for the “SAP Function input” parameter.
Screen | A | B |
1
SAP call with static/direct RFC name and 2 parameters |
|
|
2
SAP call with dynamic RFC name and dynamic parameters through a compose action |
|
|
Thanks, Victor.
Hello
With the help of a person from the Microsoft/Sap/Powerautomate team (thank you, Scott), I finally understood what is the syntax of the json to be used in the "SAP function input".
In the sample case I mentioned where the RFC expects a structure named CONTROL, with two fields (LANGU and RFCTYP), the json should be:
{
"CONTROL": {
"LANGU": "ES",
"RFCTYP": "C"
}
}
Regards, Victor.