Quantcast
Channel: SCN : All Content - Business Server Pages (BSP)
Viewing all 296 articles
Browse latest View live

Show graphic button throwing error in BSP application

$
0
0

Dear Geeks,

 

We are getting an error while executing transaction code PECM_START_JPR_BSP in development system. The issue is that "Show Graphic" button is throwing an error when opening in BSP application. Screen shot is attached.

 

 

Please help.

 

Thanks & Regards,

Aishwarya.


Design2008 impacting bsp display and rendering time

$
0
0

We are going through upgrade to ECC 7.0 and are attempting to pick up Chrome support for our bsps.  So, I have converted my bsps to Design2008. Things have (obviously) changed in the look and feel, but also performance.  I don't see many posts regarding Design2008, so I'm hoping I can get some feedback from others.  There seems to be hardly any threads on Design2008, and none which tell the deprecations or changes between 2003 and 2008 (unlike 2002 to 2003). Is no one using it?

 

Here are some of the things we have encountered...any ideas?

 

- Editable inputfields created with CL_HTMLB_INPUTFIELD=>FACTORY are now displaying with the same blue background as disabled inputfields.

- xhtmlb:protectDoubleSubmit no longer appears as a popup box.  The text just appears in a clear background, so it's overlaid on the screen contents.

- Significant lag time loading pages, especially the first load of the bsp - apps that took 3 seconds previously are now taking around 15 seconds.  It would appear to be rendering time, since the browser just displays an all-white screen.

- Any html tags added in phtmlb:messageBar no longer render (ex. <B> for bold), now it just displays the tag itself.

- items created with phtmlb:formLayout (Item/InputField) are now displaying a colon after the label.  It's irritating because it's adding the colon even if the item has no label.  How can we remove it?

 

Thanks so much in advance!

Lisa

PHTMLB:messageBar JavaScript

$
0
0

Hello community,

 

I'm pretty new in BSP but I have a few experiences with ASP.NET. For my current project I want to know, how to access attributes of HTMLB or PHMLTB elements via JavaScript.

 

I created a new BSP application using MVC design pattern. At DO_HANDLE_EVENT, I validate user input (check material exist etc.). I use

ADD_MESSAGE_FROM_T100 of CL_BSP_MESSAGES to collect the messages.

 

On my page layout, I loop the messages and create a messageBar for each single message. This works like a charm.

 

Now I want to do some client validation first (like check mandantory fields) to reduce the server roundtrips. To keep look and feel, I don't want to use alert(). Instead I want to create a phtmlb:messageBar on client side using JavaScript.

 

First I tried to create a phtmlb:messageBar by JavaScript, but I don't know how or if it is possible. In my opinion, it is not possible because BSP runtime converts HTMLB or PHTMLB elements in simple HTML and CSS. Correct me if I'm wrong.

 

My second idea was to create an empty messageBar in page layout. If I need a message from Client side, I want to change the text of this empty messageBar.This also doesn't work because the DOM element created for the message bar doesn't have Attribute text.

 

To sum up

1. How to create a messageBar from Client side

2. Is it possible to change attributes of PHTMLB/HTMLB elements by JavaScript

 

Thank you for your support

Send upload document from BSP to EP6-KM

$
0
0

Hi everybody,

i upload document from a BSP and i want send this document to KM-CM. I don't want use Web folder to do this, i can't create a java code with Javadocs, I want (i must) use WebDAV protocol.

I find documents for Content Server (transaction, customizing ... ContentServer.dll and it's works) but nothing about KM Content Manager and i must use KM not CS.

 

Can somebody help me ?

 

Best regards.

 

Daniel

BSP & DMS Document Download

$
0
0

Hi All,

 

I'm developing a BSP which can download a folder with documents present in SAP's DMS, to c:\temp.

At the moment I use the EasyDMS function "Z_EASYDMS_FOLDER_EXPORT".

During development, it worked fine because I was going through the program in debug mode. Therefor, the SAPHTTP can connect with the SAP gui.

But when running "normallly" (not in debug), the program runs in error. It turns out that the SAPHTTP (nor SAPFTP) cannot connect and thus the documents cannot be downloaded.

I also tried to use call functions: CVAPI_DOC_CHECKOUTVIEW, SCMS_HTTP_GET_FILE and HTTP_GET_FILE, but all with no result. I also tried to call SAPFTP & SAPHTTP directly via "SYSTEM_START_REG_SERVER" and via the build of a command and the function "RFC_START_PROGRAM".

Again, with no result. The BSP runs in an error (HTTP 500 internal server error).

 

As this is an urgent development, help would be very much appreciated!!!

 

Regards,

 

Sander

BSP Application not working in IE11

$
0
0

Hi,

     I have a BSP application built as jsp pages where the users are able to access the SAP interface through the web browser itself. But this is working only in IE10 and lower versions. When IE11 is used the interface is not visible. Only when manually switching the compatible mode of IE11 to a lower version , the SAP interface is available. Can this compatible change be done via code level in BSP itself? Please let me know if any alternate solutions are available for this.

Alternative to OTR long text

$
0
0

Hello,

 

does anyone know a good and working alternative to OTR Long texts?

 

I don't know why SAP developed the behavior of <OTR> tag as it is. The usage of this tag is really a pain and a totally waste of time (my opinion).

I use htmlb:textView to show OTR Long text. Each time I modify the page (not the text), also if I just edit an other Element of the page, the Environment creates a new GUID for Long text. So I get tons of unused Long text references in SOTR_EDIT.

 

How do you handle Long text in multi-language environments?

HTMLB:fileUpload - Extension and max file size

$
0
0

Hello community,

 

I use HTMLB:fileUpload to upload files to our SAP System. The file gets stored in our archive system.

 

I need to ensure that user only upload files of a given file format (like *.xls, *.pdf). Also the user should only upload files with a maximum size of 5MB. How can this be realised? I can't find an attribute at fileUpload tag to realize. It should be checked at Client side (maybe JS?). I'm able to check the size and file type on server side but this is a silly solution. Imagine, you select a huge file, waiting several minutes for update and after upload completes, the page tells you the file is too large and also doesn't match allowed extensions.

 

Thanks for your help.


create structure for dependent objects

$
0
0

Hi All,

Can any one tell me why there is no create structure for dependent objects?

XTSRING to Binary Problem

$
0
0

Hi all

 

  Iam trying to convert a XSTRING content that is uplaoded into a Z table from BSP by using UI element which is stored as XString when ever uploaded

 

and i have gone through the different threads and by using the FM SCMS_XSTRING_TO_BINARY will convert the Xstirng to binary

 

and i have declared the type of tables parameter in the FM of binary_tab as SOLIX_TAB but still when am executing Iam getting the ouptu in numbers but not in characters.

 

but if i execute the same FM from se37 directly by giving some XSTRING to the BUFFER parameter am able to get the Binary content why?

 

 

  • My issue is I have to attach a .doc docuemnt to my work item* for that sake i have to convert XSTRING to BINARY.

 

 

Thanks in Advance

Pavan

calling bsp cross abap application server

$
0
0

Hi,

 

I have a question about bsp application.

I have 2 bsp application built in different sap abap application server, say one on SRM, one on ECC.

I'd like to add the url in the bsp on SRM to start another bsp application in ECC.

Is it possible to do this ?

or is it possible to include the ECC bsp in the div section of CRM application ?

 

Thank you.

 

Benj.

BSP application navigation to next portal tab

$
0
0

Dear Experts,

  We have 2 tabs on portal screen and these tabs are created by EP consultant (by creating iView and assigning ROLES). Now We are displaying BSP application in first tab and Webdynpro(WD) Application in second tab. These 2 applications are linked to respective iviews.

Now my requirement is:

  1. There are so many links on BSP application. So when user click on respective link in BSP application then it should navigate to second tab to display WD application.
  2. Based on link clicked by user, I need to pass parameters from BSP to WD application.

I have tried following options.

       I tried navigation->next_page. When I use this method, it is displaying WD application in first tab but I need to display WD application in second tab.

 

        I have updated second tab URL (iview folder URL) in parent location href by writing following code in JavaScript.

       parent.location.href = "https:<HOST>/irj/portal?NavigationTarget=ROLES://portal_content/iv_ZQ_INVOICE_STAT";

After writing this code it is switching to next tab and displaying WD application in second tab as expected. But now I am not able to pass parameters from BSP to WD.

 

I tried following options to pass parameters from BSP to WD:

      When user click on link, executing OnInputProcessing event and updating parameters in shared memory.

And in JavaScript updating parent.location.href to switch to next tab. But it is not working. ABAP code in OnInputProcessing is triggering but tab not switching to second tab.

 

       I tried to pass parameters as application parameter by concatenating parameter names and values to URL. But URL is not opening any application as I am not calling WD application URL directly here.

 

So please let me know the solution for this issue. Is there any easy way to switch EP tabs by writing code in BSP?

Or is there any easy way to pass parameters from BSP to WD application.

 

FYI, BSP screen was designed by writing HTML and JavaScript code.

 

Thanks & Regards,

Sasidhar V.

How to Set URL-Based Session Tracking to No

$
0
0

Dear BSP Gurus

 

I am fairly new to BSP applications, but I am getting an error which goes "BSP exception: Access to URL /sap(bD1lbiZjPTEwMCZkPW1pbg==)/bc/bsp/sap/crm_ui_frame/ is forbidden" and notice some say they solved it by Setting URL-Based Session Tracking to No, so my question is how do I do that.

 

Unless off course there is another way to solve my problem. Would greatly appreciate it.

 

Awaiting your favorable response

Number of visible items in htmlb:dropdownListBox

$
0
0

Hi, we are using an htmlb:dropdownListBox element with quite a large number of options in our BSP application. Everything works fine, however, only 8 such values are shown in the browser when the user clicks on the dropdown list box.

 

Is there any way to increase that number of visible entries?

 

Kind regards, Matthias

 

PS: I think the option I am looking for is called "size" in normal HTML combo boxes.

How do I embedd an ExtJS application in a BSP Page? Microloader not working.

$
0
0

Hello,

 

I would like to ask how to embedd a compiled ExtJS production build into a BSP page. I am able to upload and view a test build but when producing a production build it does not work.

 

I get this error on the microloader. "Uncaught: SyntaxError: Unexpected token ILLEGAL"

 

The scripts work fine when uploaded to a web server.

Capture.PNG


Create custom Filter on the tableview in BSP page

$
0
0

Hello all,

 

I have  a BSP page where i display a table using htmlb:ableView .

 

I need to create a button 'FILTER' on the page which will calls a popup and take the input for filtering the records displayed in the table.

 

My question is if i have these values with me, how do i filter the records which are displayed on the page ?

 

Is there any way to do this ?

 

Thanks in advance.

 

BR

Nilesh

Changes are not updated in Vistex BSP application

$
0
0

Hi Friends,

Iam working on VIstex BSP Applications. I have a problem with data update.

I create a new Agreement Request using existing Agreement in BSP. In the Agreement Request I have different Rules and each Rule has some records in it. When I click on Save, initially all the records are alloted a temporary variable $$000000XX (XX is some number). After Save, from the Number Range object, these records are alloted permanent numbers. Up to here it works fine. When I go to any of the Rules tab and add a new record to that then this record is not saved properly. I mean when i go to the ECC (backend), it shows the newly added record, but when i click on the same tab again in BSP i could see in debugging, that

the record still has a temporary number to it. So it always inserts a duplicate record in ECC.

 

The issue is after i add a new record in BSP, Save the Agreement Request and come out of the transaction, then it saves properly. But when i add the record, Save and go the same tab again and change something to the newly added record, it is creating duplicates. And this is because it is not saving the record properly.

 

Also if I just come out of the BSP page and load it again after clicking on save, the save is done properly and no duplicates are created if i modify the newly created record.

 

Any suggestions to solve the issue will be appreciated.

 

Thanks & Regards,

Raju

 

Edited by: Narayana Raju Sampathirao on Oct 6, 2009 3:02 AM

call javascript function

$
0
0

Hi experts,

 

I want call a javascript function in ABAP coding but I don't know how it works.

I only know the way to call a javascript fuction with htmlb:button but this

ist not the way I can go.

 

Thanks for help

Alex

Treeview toggle issue

$
0
0

Hello everybody, I am having a problem with a HTMLB:treeview control. Here is the layout for it:

 

The tree displays nicely, but I am not able to expand the tree nodes, only at my laptop. I have tested it from some other places and it works without any issues. The difference is that I am running Windows 10 and also newer versions of browsers compared to those where it works. The application is going to be used by many people, probably with all kinds of different browser versions and OS-es. Also, This is my first BSP application so I do not have much experience with it. Have you had any issues with htmlb controls depending on the platform?

Problem in Data Retrieval from REQUEST->GET_FORM_FIELDS_CS Method

$
0
0

Hello Experts,

 

We have migrated a BSP Application from older SAP 620 version to SAP 740 Version. When we are changing the data in a table view and clicking on save button, the standard method REQUEST->GET_FORM_FIELDS_CS is triggered. It has a system call shown below which retrieves the changed value in the internal table 'fields'.

 

system-call ict

    did

      ihttp_scid_get_form_fields_cs

    parameters

      m_c_msg                            " > c handle

      fields                             " > form fields table

      m_last_error                       " < return code

      search_option.                     " > search option

 

This internal table specifically has 2 fields 'data_changed' and 'data_changed_index' which holds the values of the changed record index which is working fine in the old version but the same is having empty values in the above two fields in newer version. Rest all fields in the internal table are fetching the right and proper values same as that of older version.

 

Request you to please help us here as we couldn't even debug the system call as in many forums we have read that system calls cannot be debugged. In this case, how to analyze why those 2 fields are not getting filled? please help

 

BR

Shiva

Viewing all 296 articles
Browse latest View live


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