Transfer Request using sap integrated in beas
Hi!
How can I proceed to use a transfer request?
Following the documentation, it is not very clear, because the example I am not able to make it work.
setvar=ls_json={ "DocumentLines":{"ItemCode":"000001","Quantity":3,"WhsCode":"AL","ToWareHouse":"AL"}}
instance bsl b
b.post=TransferRequest=<ls_json>
messagebox=<b.ret_code> <b.ret_text> <b.ret_value>
0
-
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"}]&
} -
Hi! Martin,
Could you give me an example because I'm not progressing, as I said.


-
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 sensesetvar=j={"DocumentLines":[{"ItemCode":"RM", "Quantity":1,"WhsCode":"01","ToWareHouse":"02"}]}
instance bsl b
b.post=TransferRequest=<j>
messagebox=<b.ret_text> <b.ret_value> -
I'm getting error with ue_api

-
Hi Filipe,
this problem is solved
http://www.beascloud.com/beasweb/tfsActivityLog.php?wid=N5171733
regards
Martin
-
Hi Martin,
Thank you for your help!
Please sign in to leave a comment.
Comments
6 comments