Quantcast
Channel: SCN : Discussion List - Business Server Pages (BSP)
Viewing all 237 articles
Browse latest View live

Exception Class CX_OS_OBJECT_NOT_FOUND in class CL_TRIGGER_PPF

$
0
0

Hello,

 

I have developed a adobe PDF Form, which is integrated in web ui.

 

When I go to Web UI => ServicePro => Billing Document

I choose a billing document.

 

Clicking in Output preview I have the PDF preview !

Everything is going well except the fact that closing the PDF preview windows genrerate the following message :

 

Exception Class CX_OS_OBJECT_NOT_FOUND

Error Name 

Program CL_TRIGGER_PPF================CP

Include CL_TRIGGER_PPF================CM001

ABAP Class CL_TRIGGER_PPF

Method IF_OS_STATE~HANDLE_EXCEPTION

Line 32 

Long text -

 

Debugging my program, I have found that the probleme comes from the method GET_IS_INACTIV

The error is

state_read_access.

 

define state_read_access.

   try.

       raise event if_os_state~read_access.

     catch cx_os_no_check_container into

         cl_os_system=>exception_no_check_container.

       cl_os_system=>exception_object_not_found ?=

         cl_os_system=>exception_no_check_container->previous.

       call method if_os_state~handle_exception

         exporting i_ex_os = cl_os_system=>exception_object_not_found.

   endtry.

end-of-definition.

 

I can't go into os_state~read_access. method.

 

Does anyone had the same problem and found a solution ?

 

 

 

Best regards.

Abdou


Sap appcontext cookie

$
0
0

HI all,

I'm looking for a way to change or better yet remove the client cookie sap-appcontext from my bsp application.

 

any guidance would be appreciated

 

i have tried setting the cookie to a newly created guid on the request object but it doesn't work

 

Thanks David 

Dump when calling BSP application from External Alias

$
0
0

Hi Experts,

 

I need to call a standard BSP application(CRM_UI_START) from another BSP. I want to awoid the logon screen when calling the second BSP. I can't just set logon info on CRM_UI_START, so I created an external alias and set the logon info on this instead. This however results in a dump. (Message Type Unknown)

 

 

Any ideas?

 

Thanks,

Martin

problem with bsp-ajax

$
0
0

hi to all

I'm new on bsp programming and  i have  problem.

 

 

i have a layout in html and i have autocomplete on firts cell

 

 

when run autocomplete ad i select 1 row i want to run another page html and i want to get file json  but  i don't get result.

 

 

my javascript code is:

 

 

         $("#MATNR).autocomplete({

                source: function( request, response )

                {

                  $.ajax(

                  {

                      url: "Test.htm",

                      dataType: "json",

                      data: {term: request.term},

                      success: function(data){

                                  response($.map(data, function(item){

                                    return{

                                      label: item.id + ' ' +  item.name  ,

                                        value: item.id };}));}

                                        });

                },

                minLength: 2,

                select: function(event, ui)

                {

 

$.ajax({

         type: 'POST',

         url: 'get_price.htm',

         data: {term: ui.item.value},

         contentType: "application/json; charset=utf-8",

         sync: true,

         dataType: 'json',

         success: function (jsonData) {

             alert("OK " + jsonData); // alert box1

             return jsonData;

         }

 

     });

                }

            });

 

 

 

 

 

 

code test.hml ( on request event)

 

 

concatenate '[' json_string into json_string.

 

wa_matnr-matnr = '00001'.

wa_matnr-maktx = 'NAME'.

 

concatenate json_string '{"id":"' wa_matnr-matnr '","name":"' wa_matnr-maktx  '"}' into json_string.

concatenate  json_string ']' into json_string.

 

 

call method _m_response->if_http_entity~set_cdata

   EXPORTING

     data = json_string.

 

 

When execute alert("OK " + jsonData)  result is OK [Object, object],

 

 

where i wrong ????   help me

Problems Calling HAP_DOCUMENT With New XSRF Functionality

$
0
0

Back in 2008, we had developed a utility in which an employee of our client could initiate a 360 Degree appraisal with appraisers that were not employees of the client (we termed them "External Reviewers") and therefore did not have access to the client's portal.  When the employee invited an external reviewer, the employee would specify an email address for that External Reviewer.  With that, we would send the External Reviewer an email, notifying him/her of the invitation and providing a link to a custom BSP where he/she could accept or decline the invitation.  The link included an External Alias to the custom BSP, and that External Alias had a "System" user attached to it in order to avoid the login popup.

 

When the External Reviewer accessed the link and navigated to the BSP, the BSP provided "Accept" and "Decline" buttons.  If the External Reviewer accepted, then the BSP would generate an appraisal, and set the "System" user as the appraiser.  The BSP would then provide a link to the appraisal.  Once again, we used an External Alias to point to BSP "HAP_DOCUMENT", page "document_portal.htm".

 

This has worked fine until we just installed an HRSP upgrade that included SAP's new XSRF functionality.  I tried shutting off XSRF Protection in HAP_DOCUMENT, but the "document_portal.htm" page explicitly calls "runtime->get_token()" in OnInitialization.  GET_TOKEN, in turn, calls

server->get_xsrf_token().  This returns with exception "CALLED_BY_PUBLIC_SERVICE", which eventually leads to an ABAP dump.  I tried calling the "document.htm" page instead of "document_portal.htm", but with no luck.

 

Has anyone out there built appraisal functionality where you allow appraisers that are external to the company and therefore have no portal access?  I believe that this is also kind of similar to having external candidates in an e-recruiting scenario?

 

Thanks,

 

Manny Pacheco

how to call webdynpro application using BSP application

$
0
0

Hello  ,

 

Could you please explain about calling webdynpro application using BSP application ?

 

 

Regards

Srini

how can we call webdynpro application threw BSP

$
0
0

Hello,

 

I developed one WDA .

 

I want to call that threw BSP based on some action .

 

I don't know the basic of BSP.

Please guide me about this  issue and also please provide  solution to get the windows user id  in BSP.\

 

regards

Srini

BSP Field limitation error message

$
0
0

I'm getting the error that "The length of the field is limited to 150 characters" in the text box. Where can I find this declarartion or condition in the program, and correct it?


I am trying to include Java script from MIME object its doesnt work

$
0
0

I just have a the below code and I have attached the Java script too..

Kindly help how to achieve this.

<%@page language="abap"%>

<%@extension name="htmlb" prefix="htmlb"%>

<htmlb:content design="design2003">

   <script language="JavaScript" src = "Java Scripts/right_click.js"></ script>

   <htmlb:page title = "test">

     <htmlb:form>

     </htmlb:form>

   </htmlb:page>

</htmlb:content>

getting An exception with the type CX_SY_REF_IS_INITIAL occurred,

$
0
0

Hi ,

 

  I am getting the following error...

 

SAP Note

 

 

  • The following error text was processed in the system:

      An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause

 

 

Exception Class     CX_SY_REF_IS_INITIAL

Error Name     

Program     CL_HTMLB_LABEL================CP

Include     CL_HTMLB_LABEL================CM006

ABAP Class     CL_HTMLB_LABEL

Analyze     RESOLVE_MODEL_BINDING

Line     67

Long text     Es wurde versucht, auf eine initiale (NULL-) Objektreferenz einen dynamischen Methodenaufruf auszuführen. Die Referenz muß auf ein Objekt verweisen.

 

anyone can tell me some hint where it is going wrong....

 

calling BSP application URL from external website

$
0
0

Hi All,

 

I have a BSP application that inserts entries in to database tables in CRM system. Its URL is:

 

http://<domainname>:<port>/sap/bc/bsp/sap/yy_facebook/shoppingcart.htm

 

When I call this URL directly from a browser, it works. When I call it from a BSP page of a component, it works too. Below is how I am calling it using javascript:

 

function contactsearch(){

if(window.XMLHttpRequest){

 

  request = new XMLHttpRequest();

  try{

    var url ="http://<domainname>:<port>/sap/bc/bsp/sap/yy_facebook/shoppingcart.htm?name=facebook";

    request.open("GET",url,true);

    request.send();

    request.onreadystatechange  = funcContactReadyStateChange;

     }

  catch(e){alert(e);};

}

}

 

function funcContactReadyStateChange(){

if(request.readyState == 4){

  if(request.status == 200){

    try{

    alert("insertion done");

       }

    catch(e){};

    }

    }

}

 

A parameter "name" is appended to the URL. This will be picked and processed by the BSP application.

 

Now, if I call the same URL from an external website(in my case, I am calling it from a static HTML app of a facebook page), it doesn't work. Request.status is always 0 and sometimes I get the HTTP status 302 moved temporarily exception.

 

I modified the URL by adding logon parameters also. It is not recommended to add log on credentials directly in the URL due to obvious reasons, but this is just for testing purpose.

 

http://<domain name>:<portnumber>/sap/bc/bsp/sap/yy_facebook/shoppingcart.htm?sap-client=<client no>&sap-user=<logon id>&sap-password=<password>&sap-language=EN&name=<some identifier>

 

But still I get the same HTTP error. I also enabled HTTPS in my SAP systemd and used it instead of HTTP. Still no luck.

 

Please let me know what might be the issue or if I need to pass any other parameters while calling BSP page URL externally.

 

Regards,

Narendra

how read serialized POST data from JQuery/AJAX call in the another page

$
0
0

hi,

 

i've a page (one.htm), which has a form with input/dropdown etc fields and make a call to second.htm using AJAX call method. I'm serializing the form data and sending along with AJAX method to second.htm. When i debug, it goes to second.html. but now i want this form data to be submitted to SAP from second.htm. So how should i get/read the data (each element value in the form) in second.htm and so that call a function module to update it to SAP.

 

waiting for your inputs, and let me know if need to provide more details..! plz refer me the blogs, articles if any in this similar exercise!

 

thanks, JB

How to get the field names and values when using method="post"

$
0
0

Hi all,

 

 

I have a simple page first.htm with a <form> and method="post" this page has 2 fields and a button

when the submit button is pressed is going to a second page second.htm

 

my question is since I am using method="post" how can I get the fields and values on the second page?

 

In the past I was not using any kind of method so I was able to see the parameters and their values on the top of the Internet Explorer as

?field1=value&field2=value2

 

but now since I am using POST so how can I get his fields with values in my second page?

 

by the way, I am using straight html

 

thanks

neo

Business Server Page (BSP) error During CRM_UI

$
0
0

Hi experts,

 

we are facing the issue in CRM while traction CRM_UI browser showing error as mention below.

 

 

Business Server Page (BSP) error


What happened?

Calling the BSP page was terminated due to an error.

SAP Note
  • The following error text was processed in the system:
    Die URL enthält keine vollständige Domainangabe (122.160.85.17 statt 122.160.85.17.<domain>.<ext>).
Exception ClassCX_FQDN
Error Name
ProgramCX_FQDN=======================CP
IncludeCX_FQDN=======================CM002
ABAP ClassCX_FQDN
MethodCHECK
Line10
Long text-

Error type: Exception

Your SAP Business Server Pages Team

How to clear Inputfield element when selected?

$
0
0

Hi,

 

I'm using an inputfield element on my BSP application. There will be a default value in the field when the view is displayed.

When the user wants to change the value and places the cursor in the filed, the default value should be cleared.

 

Where can I write the code for this?

 

For button type fields, we can specify a method for onClick and then write the logic. Please let me know which event we should use for inputfield.

 

Thank you,

Prakash


Not using could this slow down my transaction?

$
0
0

Hi all,

 

I am using BSP (page with flow logic) with plain html, javascript to move stock around the warehouse using mobile devices.

this guns run my application using internet explorer.

 

Well the issue I am having is when user saves some data previously scanned the screen shows an icon like is thinking and the application gets stuck.

For a moment I tough it was the network but i discarded that because the strength is really good.

 

one page is collecting the data scanned and then I pass all these parameter to another page so my thought is this is the issue because many parameters are passed and I am not using method="post" in my <form>

 

Could this be the issue?

Since i am not using POST, all parameters are shown in my top line of the IE

 

or why do you think at some point in the process the system gets really slow?

 

note: while running the application in my computer during testing everything looks fine and fast but not in the gun.

 

Thanks,

neo

BSP destroying server session on closing browser.

$
0
0

Hi All,

 

Is there any other way except the standard applications  SYSTEM and ITSM  , of destroying the BSP session on server when the browser is closed?

 

 

Thanks,

Anubhav.

How to pass inputfield's value to F4 help window

$
0
0

Hi Gurus,

 

I am working on enhancement of old classical BSP application where I have created a page for F4 help and page and Help is working fine. I am facing an issue when I am trying to pass inputfield's value to (say Z*) to Help window, which I called through open.window, I am unable to do so. I tried passing it for onLoad of next page form but I have problem with that as onRequest event gets called it reloads and even if I do any other event handling page gets loaded every time and hence losing data.

 

Regards,

Gaurav

Using .jar file in BSP created for SAPUI5 application

$
0
0

Hi everybody,

 

We have created SAPUI5 application with a local control which we would like to be able to use as a library (.jar) locally, only in our application. We do not want to "share" it as a custom control.

The SAPUI5 runs fine without problems, but once the app is uploaded into BSP, BSP can not load the scripts anymore as it seems not to be able to locate .jar, which finds itself in the local MIME folder of BSP.

Is such scenario possible?

What would be the right way to declare .jar file in the index.html of BSP to make it work?

 

Thanks,

Helen

Interactive Script editor - translate

$
0
0

Hi guys,

I have a problem with the translation functionality in interactive script editor and to be more specific - I cannot add a new language. It does not seem as customizing setup, because I did that part. I have a couple of available languages in the translator. They are different from the set upped ones in the customizing. I do not see where they could be maintained and I suppose that this may be Java related.

Does somebody have an idea how this could be resolved?

Thanks in advance!

Silvia

Viewing all 237 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>