BEAS Script / Integration to SAP / #JBS

Andreas von Arx

The Project module, in particular, has options to integrate "seamless" into SAP, but it is not working stable, and with the February Release, it does not work at all. I would like to have much better documentation and scripting functions to open standard SAP forms and write to its window.

I do see that you can do so in SAP 10 with the latest release, and it looks nice. Can you tell me what kind of script you are using? It does not look at all like BEAS Script and even seems to be object-oriented?

Comments

2 comments

  • Comment author
    Andreas von Arx

    exactly what I need!

    // Return Item Name from Item "FP"
    let h=new HTTPClient;
    h.SetRequestHeader("Content-Type", "application/json;charset=UTF-8") ;
    let check=h.SendRequest("GET","http://192.168.178.21:8080/odata4/Itemu('FP')");
    // Error handling
    if (check<1) {
      alert("Error reading data: "+check);
      return 1;}
    // check return status
    if (h.GetResponseStatusCode()!=200) {
      let j=h.GetResponseJSON() ; // Convert error message to josn
      alert("Can't read Data: "+h.GetResponseStatusText()+" "+j.error.message.value);
      return 1;}
     
    let j=h.GetResponseJSON() ;

    alert(j.value.ItemName);

    Just make this active and official. where is the documentation? Seems to work as intended. Why is there some form of language which we could use to script with and it is not there?

    0
  • Comment author
    Martin Heigl

    good question ...

    0

Please sign in to leave a comment.