cancel
Showing results for 
Search instead for 
Did you mean: 

SAPBWJSgdo.PostLoadInit(); ERROR

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

athavanraja
Active Contributor
0 Kudos

<i>I have followed code example for putting BSP in WAD, through XML conect</i>

which code sample you are talking about

Former Member
0 Kudos

hello Raja

Thx u for response your thread on (ajax table from bw webtemplate)

/people/durairaj.athavanraja/blog/2006/02/06/read-sap-table-data-from-bw-webtemplate-ajax-in-bw-webtemplate

Ayman

athavanraja
Active Contributor
0 Kudos

i havent seen this error before. however try this and let me know the result.

after the line req.send() (in webtemplate code) place the following code

alert(req.status);

save your template, run it again, you should get a pop up what does it say?

Raja

Former Member
0 Kudos

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>

athavanraja
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

athavanraja
Active Contributor
0 Kudos

looks like it is not able to resolve SAPBWJSgdo.PostLoadInit();

is bw/MIME node is active in transaction SICF?

Former Member
0 Kudos

yes it is active ,

here are version infos

SAP_BW 350 0013 SAPKW35013

BI_CONT 353 0007 SAPKIBIFP7

Netweaver 04

, we use WAD reports regularly no problem

athavanraja
Active Contributor
0 Kudos

just remove the following line of code i had given and run again

<link href="/sap/bw/Mime/BEx/StyleSheets/BWReports.css" type="text/css" rel="stylesheet"/>

Former Member
0 Kudos

nop i tried removing that line ...

i get same error but without the formatting from CSS. Maybe i forgot something in bsp or is there another way to integrate my bsp in a wad or either via a web item ? or is this only way?

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

athavanraja
Active Contributor
0 Kudos

if you run this bsp independently in browser, do you get the xml output?

Former Member
0 Kudos

I get the following error NOW

<?xml version="1.0" encoding="utf-16"?>

What is the problem ?

athavanraja
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

athavanraja
Active Contributor
0 Kudos

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 &amp;

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

Former Member
0 Kudos

i dnt see the problem i dnt generate any bad chars....? please elaborate

athavanraja
Active Contributor
0 Kudos

for example the colon ( is . you cannot have it in xml

Former Member
0 Kudos

HI

this just dosen't work seems my browser dosent support XML or something is wron g, i have removed special chars and still nothing

Ayman

athavanraja
Active Contributor
0 Kudos

can you post your complete code on oninitialization where you generate the xml, i will try to simulate and see

Answers (0)