Skip to main content

Transfer Request using sap integrated in beas

Comments

6 comments

  • Martin Heigl

    Hi Filipe

    you can have more then more lines. Means: Must be defined as Array

    setvar=ls_json={ "DocumentLines":&
    [{"ItemCode":"000001","Quantity":3,"WhsCode":"AL","ToWareHouse":"AL"}]&
    }

     

  • Filipe

    Hi! Martin,

    Could you give me an example because I'm not progressing, as I said.

     

  • Martin Heigl

    Hi Filipe,

    instance json j
    // here you create a json object
    j.parse={"DocumentLines":[{"ItemCode":"RM",     "Quantity":1,"WhsCode":"01","ToWareHouse":"02"}]}
    instance bsl b
    // the post command need a String as second parameter
    // you must convert the json back to a string, example with <j.string>
    // and you must send the complete json and not only an item
    b.post=TransferRequest=<j.string>
    messagebox=<b.ret_text> <b.ret_value>

    It don't make really sense to convert a string to json and back to string
    Work only with string or only with json
    In this case only string make sense

    setvar=j={"DocumentLines":[{"ItemCode":"RM",     "Quantity":1,"WhsCode":"01","ToWareHouse":"02"}]}
    instance bsl b
    b.post=TransferRequest=<j>
    messagebox=<b.ret_text> <b.ret_value>

     

  • Filipe

    I'm getting error with ue_api

     

     

  • Martin Heigl

    Hi Filipe,

    this problem is solved

    http://www.beascloud.com/beasweb/tfsActivityLog.php?wid=N5171733

    regards

    Martin

     

  • Filipe

    Hi Martin,

    Thank you for your help!

Please sign in to leave a comment.