on 2023 Jan 23 2:46 PM
I've got the output from execute-BAPI activity. I think it'll be JSON object format. I tried to loop each item using for-each loop which works fine.
I want to update one of the element in an item for ex: BAPIResponse[0]["LOW"] = "100" like in the image. I tried with set variable but it not allowing to assign variable parameter like currentMember["LOW"]
How to achieve this? I want to update the value of "LOW" element of each item in BAPIResponse variable.
Request clarification before answering.
Hi Ranji, yes. This is tricky. This is not going to work like this though I wish it did. After the execute BAPI you need to add a custom script and add the BAPI response as an input parameter. You have to then program your logic there in javascript and return your output parameter. You want for every record to change the value of LOW to "100"?
If you get stuck with it write me some more and I can help you with the script if necessary.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks jakub.konstantynowicz
I used the below custom code and it worked...
var Valutabl;
for(var i = 0; i < BAPIResponse.length; i++)
{
if(BAPIResponse[i].SELNAME == "S_BEDAT")
{
BAPIResponse[i].LOW = Config.startDocDate;
BAPIResponse[i].HIGH = Config.endDocDate;
}
}
Valutabl = BAPIResponse;
return Valutabl;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
21 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.