on 02-19-2007 10:37 AM
Hello all,
I have followed code example for putting BSP in WAD, through XML conect
my xml works fine if i execute in se80 i see my result on web page .. when i try
to call from wad exaclty as you have stated in ur exmple i get error
SAPBWJSgdo.PostLoadInit(); in the browser , what does this mean...?
thxs
AYMAN
<i>I have followed code example for putting BSP in WAD, through XML conect</i>
which code sample you are talking about
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
no , get no popup
here is exact code , i have change a little bit because i just get one line of data from bsp xml_out
<script>
function getFlight(){
var url = "/sap/bc/bsp/sap/zbspr3dt_extr/data.xml?sap-client=100&sap-sessioncmd=open" ;
req = new ActiveXObject("Microsoft.XMLHTTP");
if (req){
req.onreadystatechange = processReqChange;
req.open("GET", url, true);
req.send();
alert(req.status);
}
else{
alert("Failed to Create XML Request Object.");
}
}
function processReqChange(){
var response ;
if (req.readyState == 4){
if (req.status == 200){
response = req.responseText;
var xml = new ActiveXObject("Microsoft.XMLDOM");
xml.async = false;
xml.loadXML(response);
}
}
}
</script>
can you identify at which point SAPBWJSgdo.PostLoadInit(); error happens?
also have you seen this
http://www.sapfans.com/forums/viewtopic.php?t=44593&sid=cc4fcac2d83d740ae8c44c717c2008ca
Raja
Hi
after i execute it asks to log on , i log on and then it stops and displays in topp left corner of my webpage SAPBWJSgdo.PostLoadInit();
on javascript there is error log says : LINE: 62
car: 1
error: unspecified
URL:http://bsapbwbd.MYCUSTOMER.COM:8000/sap/bw/BEx?bsplanguage=EN&CMD=LDOC&TEMPLATE_ID=Y_AJAX_WT&sap-system-login-basic_auth=X&sap-client=100&sap-language=EN
i dont know how to see my data here is my BSP code is there problem there :
data header type string.
concatenate runtime->application_name
`: testing data `
sy-sysid ` ` line ` `
into header.
xml_out = header.
Set HTTp entity with XML
if not xml_out is initial.
CALL METHOD response->if_http_entity~set_cdata
EXPORTING
data = xml_out.
endif.
i have inserted code after my initial code in se80
*================
CALL TRANSFORMATION (`ID`)
SOURCE xml_out = xml_out
RESULT XML xml_out.
*=================
now i look in debug and i see a bunch of converted stuff with some xml tags , but in wad when i execute i see nothing BLANK screen??? ANY IDEAS
Ayman
data header type string.
concatenate runtime->application_name
`: testing data `
sy-sysid ` ` line ` `
into header.
xml_out = header.
convert to XML
CALL TRANSFORMATION (`ID`)
SOURCE xml_out = xml_out
RESULT XML xml_out.
Set HTTp entity with XML
if not xml_out is initial.
CALL METHOD response->if_http_entity~set_cdata
EXPORTING
data = xml_out.
endif.
if you dont get to see the xml in the browser then you cannot use it.
you need to generate a valid xml, if the xml is not valid browser wont render.
go into debuggin mode of you bsp app. and get the xml_out content (which you are setting as response of the page) and post the same ehre, we will see whats wrong in that
Raja
before i call transmormation ('ID') , I have the following content in xml_out:
"last Extraction date in R/3 was done in feb 20 2007". Its basically a concatenated string of INFO i am bulding up .
After I send it trhought the call trancformation and in DEBUG I See the following
xml_out:
#<?xml version="1.0" encoding="utf-16"?>#<asx:abap xmlns:asx="http://www.sap.com
/abapxml" version="1.0"><asx:values><X-ML_OUT>zbspr3dt_extr: last Extraction date in R/3 was done in feb 20 2007</X-ML_OUT></asx:values></asx:abap>
Thanks u
Ayman
since your xml consists invalid characters, you are facing this problem.
for example : in the xml, and some psecial chars.
what you need to do is you have to escape them in your code
for example for & the escape sequence is &
like wise you need to escape all special characters in xml.
(i am looking for a way how this can be done in ABAP, if i find it will post it here)
Regards
Raja
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.