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

Column Header width

$
0
0

Hi,

I'm working on a tableview but if my table is displayed without any rows... all the column headings are partially displayed, e.g. the column header text is "Employee" but it is displayed as "Em...", The column with automatically expands when there is value in the particular column. I tried to used columnWidth attribute but its not working. here is the code extract of the tableview.

      <htmlb:tableView id              = "list"                       emptyTableText  = "No result found!"                       selectionMode   = "MULTISELECT"                       sort            = "SERVER"             <%--or APPLICATION --%>                       onHeaderClick   = "myHeaderClick"                       onNavigate      = "onMyNavigate"                       onRowSelection  = "onMyRowSelection"                       <u>columnWidth     = "100%"</u>                        visibleRowCount = "<%= lepp %>"                       visibleFirstRow = "<%= iv_list_nav_index %>"                       width           = "100%"                                              table           = "//model/mt_list"                                              headerVisible   = "<%= IV_HEADER_VISIBLE %>"                       iterator        = "<%= io_iterator %>" />

 


can not log off with bsp example SBSPEXT_HTMLB

$
0
0

Hi,

 

I try to find out how to implement log off in BSP.

 

I have tried SBSPEXT_HTMLB, session_single_frame.htm as they suggested in scn but with no luck.

 

When I called SBSPEXT_HTMLB application, I clicked on logoff button, then I call the same url of SBSPEXT_HTMLB again, the session is still active, and I am still in the application.

 

Any idea?

 

kr

 

Ben.J.

placing the cusrsor based on action by user in BSP

$
0
0

I want to place the cursor based on action triggered bu user . I have 8 input fields let i1 i2 i3 .... and five submit buttoms b1 b2 b3..... I wrote code for each button .It is ok But on once view is executed cursor sets to first input field in view . But I need to set the cursor based on user action. I have written each button code in onprocessing event. Can any body tell me how to achieve this dynamic funtionality ? And in which block I should write the code for dynamic setting the cursor ?

Filter System in BSP Application URL?

$
0
0

Hi Experts,

 

I am creating a sapui5 application which consumes data from a gateway service. From my gateway service I can filter the system in the url perfectly (e.g: ?$filter = sid eq 'EDD'), and I want to do the same thing in my bsp application such as (bc/bsp/myapp/?$filter = sid eq 'EDD') I haven't found anything online so far.

 

What I managed to do is to set all my systems in a dropdown menu then pass the value selected to the gateway like ( new sap.ui.model.Filter("sid", sap.ui.model.FilterOperator.EQ, "EDD") and it works just fine.

 

But I want to do the same thing within the bsp app URL.

 

Any help would be GREATLY appreciated.

 

Thank you in advance,

Jean Max

Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED

$
0
0

Hi,

 

When I am trying to edit the address for accounts in SAP CRM.

I am getting the below error.

 

Category               ABAP Programming Error

Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED

ABAP Program           CL_BP_ADDR_ACCOUNTADDRES1_IMPLCP

Application Component  CRM-MD-BP

 

Short text
    Access via 'NULL' object reference not possible.

 

 

In class CL_BP_ADDR_ACCOUNTADDRES1_IMPLCP inside the method  the address_property value is filled empty. Its a standard code.

 

 

METHOD eh_oncheck_popup_closed.

 

 

lr_address_property = me->typed_context->address->collection_wrapper->get_current( ). is empty.

 

.

 

Please help me to resolve this issue.

 

Thanks,

Anu

Training Module Application (BSP application) Getting the Error

$
0
0

Hi Experts,

 

Please find below the application Training Module open and getting the below error

 

 

The call of URL http://a000/sap/bc/bsp/sap/hcm_learning/traininghome.htm has been terminated due to an error.

error while processing your request!

 

 

What has happened?

The call of URL http://a000/sap/bc/bsp/sap/hcm_learning/traininghome.htm has been terminated due to an error.

Note

The following error occurred in system RD1 : Exception condition "INITIAL_LEARNER" raised.

The error occurred on application server erpdev_RD1_00 and in work process 8 .

The termination type was: RABAX_STATE

The ABAP call hierarchy was:

Function: LSOF_LEARNER_GET_ACTIVITIES of program SAPLLSO_FRONTEND

Method: _ONINITIALIZATION of program CL_O267CI12QAAMONPBLHCNROVQJS5CP

Method: %_ONINITIALIZATION of program CL_O267CI12QAAMONPBLHCNROVQJS5CP

Method: DO_REQUEST of program CL_BSP_PAGE===================CP

Method: ON_REQUEST of program CL_BSP_RUNTIME================CP

Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP

Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP

Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME

Module: %_HTTP_START of program SAPMHTTP

 

What can you do?

In the case of termination type RABAX_STATE, you will find more information on the cause of termination in system RD1 in transaction ST22.

In the case of termination type ABORT_MESSAGE_STATE, you will find more information on the cause of termination on application server erpdev_RD1_00 in transaction SM21.

In the case of termination type ERROR_MESSAGE_STATE, you can search for more information in the trace file for the work process 8 in transaction ST11 on application server erpdev_RD1_00 . An analysis of the trace files for other work processes may be necessary.

If you do not yet have any user ID, contact your system administrator.

 

 

Error Code: ICF-IE-http -c: 200 -u: User -l: E -s: RD1 -i: erpdev_RD1_00 -w: 8 -d: 20140129 -t: 142835 -v: RABAX_STATE -e: RAISE_EXCEPTION -X: -x:

 

 

HTTP 500 - Internal Server Error

Your SAP Internet Communication Framework Team

 

 

Thanks

Srinivas

deep structures in infoset

$
0
0

Hi

 

I have developed a infoset in the standard area of GRC system using the transaction SQ02.

 

In the InfoSet some tables have fields which are deep structures.

 

when i include a field where the data type is string and which is a deep structure i`m getting an error

 

"deep structure(strings and Xstrings) are not allowed in infoset" while generating the infoset.

 

I need those fields in my infoset .

 

How should i go forward and generate the infoset please guide me..

 

 

 

 

 

 

Thanks

 

Kalai

logoff BSP closing application and closing SAP session.

$
0
0

When I'm closing my  BSP appication by closing browser ,SAP session are not ending.I need to implement logoff functionality into my BSP application.

 

Please send me some sample code for logoff from BSP.


SAP CRM, Turn Mail Body read-only to only use the standard responses

$
0
0

Hi all,

 

In SAP CRM, I have a request where the purpose is to ensure that the user can only create emails using the Standard Responses.

 

So I need to turn the email body read-only. But when I do this (turn the email body (text editor) read-only), the Standard responses don’t work; I select the standard responses and click in apply but nothing happens.

 

Component: CRMCMP_CCS_EML

View: MailBody

 

And I'm turning the email body editor read-only/disabled in MailBody.htm, at BSP object BTF

with parameter DISABLED = TRUE

 

<thtmlbx:btf id = "btf1"

document = "<%= s_documentdata-btf_doc %>"

disabled = "TRUE"

(...)

 

Would you be so kind and help with the solution for this problem?

 

Thank You.

 

Best Regards,

André Sousa

Download more files in bsp application

$
0
0

Hi to all,

 

i'm developing a new bsp  and i need to download more files;

 

for download file i use this method:  CALL METHOD cl_bsp_utility=>download

 

1.Convert the text to a text table ie Internal table with a line type char255 or some others.

2.Convert the text table into a string.

3.Convert the string to XSTRING.

4.Download that XSTRING as text file using the method

   CL_BSP_UTILITY=>download.

 

if I download 1 file  its all ok but     if I try to download 2 files on click button the system  always download the latest;

 

why?...how can I download 2 or more files on click button?

 

regard.

swb

How I can insert data in Transparent table through abap coding

$
0
0

How I can insert data in Transparent table through abap coding.

Where is the data in my new added field stored?

$
0
0

Hello,

 

I've added a field to my BSP form in sm_crm. It is called 'Configuration Item' and the technical name is /BTADMINH/EXT./AICRM/CUSTTXT01.(See screenshot)

 

I now want to debug to find out in which table my new field is stored. But I don't know where to start. Can anyone point me in the right direction?

 

Thanks in advance.

 

Cheers,

Tim.

Validation for Purchase order field in BSP

$
0
0

Hi Gurus, I am new to BSP. In my requirement I need to validate PO and display error message on same page.

 

I have a stand alone class where I have done the validations. My question is how can I combine these two and display error message in case of error.

 

Please suggest if any previous discussions are available on this, because I could not able to find any....

 

BR

Siva

HAP_DOCUMENT BSP Error: Business Server page (BSP) error

$
0
0

Hi

We are using BSP Application : HAP_DOCUMENT for HR Appraisal Functionality in ESS/MSS,

When i tried to Test the BSP application via TX:SE80 from ABAP System it is giving an  Error: BSP Error.

It is  working in DEV with the same  application  and it was working in QA until last month, it is giving me an error now..

All the services are active in SICF

please find the below  screen shots of the error message,

Could someone please share  your knowledge  on this.

BSP:HAP_DOCUMENT is not working via TX:SE80.

$
0
0

Hi

I am trying to  open a BSP:HAP_DOCUMENT through TX:SE80,not even one of the BSP page (like about.htm,document.htm,document_created.htm......) is  opening through TX:SE80, The actual issue was on  QAS system, In DEV and Production It is working fine.nothing was Changed on QAS so for , even the  BSP versions are same in DEV  and QAS and PRD.

please find the below

screen shots @1  on comparison between QAS and Production:

Screen shot@2  shows the error  message when i do a   Test on BSP page-document_careated.htm

 

There is no short dump or System log  for this error.

 

Kindly assist me going forward


Problem with tableview (column names)

$
0
0

Last week, our systems were down because of a maintenance. Today, when I've started testing things, one particular thing does not work:

 

In a BSP there is a tableview with some columns. The user changes the values available in some of these columns (through listboxes).

When saving the changes, the values are missing.

 

By debugging, I've seen that class CL_HTMLB_EVENT_TABLEVIEW has an attribute "AllColumnNames" with the different column names. It is supposed to be a table, with a line for each column name. Currently, it has a single line with the names separated by '/': "NAME1/NAME2/NAME3.....".

So, our code does not get properly the column names and so, the column values, and the values are lost.

 

I've continued debugging and I've seen that in IF_HTMLB_DATA~RESTORE_FROM_REQUEST, the code has been changed (by SAP), this is the current code snippet that causes the error:

  CONCATENATE id '_AllColumnNames' INTO name.

  value = request->get_form_field( name ).

  IF value CS ':'.

    SPLIT value AT '/' INTO TABLE me->allcolumnnames.

  ELSE.

    SPLIT value AT '&#x2f;' INTO TABLE me->allcolumnnames.

  ENDIF.

 

In our case, the value does not contain the character ':', so it goes to the "else" part, and does not split anything, as it doesn't find the string '&#x2f;'.

 

I've checked the iterator that defines the columns and they are defined as a TABLEVIEWCONTROLTAB (there is no '/' or ':' there).

I've made a dummy test by adding a final column to my table with ':' as name and then the data is not lost but it doesn't seem as a suitable option for me.

 

Why does the standard code expect to find ':' in the column names? And if it doesn't find it, why should the column names separated by '&#x2f;'?

 

 

Many thanks,

Victor

Perform a simple validation of a custom field in AI_CRM_ORDER_SAVE

$
0
0

Hello,

 

I want to perform a custom validation of a custom field just before saving my order.

 

I found out I should do this in the CHECK_BEFORE_SAVE method of the AI_CRM_ORDER_SAVE Badi, but I cannot figure out how to get the value entered in my custom field.

 

Can anyone point me in the right direction?

 

Thanks in advance!

 

Regards,

Tim.

BSP HTMLB TABLE - BORDERS FOR EMPTY CELLS

$
0
0

Hello Colleagues, I'm new to BSP HTMLB, maybe someone could help me.

I’m taking data from a DB table through select and there are a lot empty cells.

 

The layout looks like:

 

<htmlb:tableViewColumn columnName="PK_Terms"

<%--wrapping="true"--%>

width="50"

horizontalAlignment = "center"

verticalAlignment = "middle"

fixedColumn="true">

</htmlb:tableViewColumn>


THE BORDER does not APPEAR in empty cells (the table looks horrible), how can I make it appear?

BSP - 500 Internal Server Error Access via 'NULL' object reference not possible.

$
0
0

Hello Colleagues, I'm new to BSP maybe someone could help me.

I’m taking data from a DB table through select an put them into htmlb tables. 

 

The layout looks like:

 

&lt;htmlb:tableViewColumn columnName="PK_Terms"

<%--wrapping="true"--%>

width="50"

horizontalAlignment = "center"

verticalAlignment = "middle"

fixedColumn="true">

&lt;/htmlb:tableViewColumn>

 

 

 

After I select the vendor (first table), another table appears with additional Info (see screenshot). I've set the the visible row count to 10 and the data appears without errors, but when I click the next page button or type  page number to see the next 10 rows, following error message appears:

 

 

The ABAP call hierarchy was:
Method: _ONINPUTPROCESSING of program CL_O2DH4AGZFD1H3VPXDQ9541G8559CP
Method: %_ONINPUTPROCESSING of program CL_O2DH4AGZFD1H3VPXDQ9541G8559CP
Method: DO_REQUEST of program CL_BSP_PAGE===================CP
Method: ON_REQUEST of program CL_BSP_RUNTIME================CP
Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_HTTP_EXT_BSP===============CP
Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
Module: %_HTTP_START of program SAPMHTTP



My select statement:

 

if tv_data->row_key is not initial.

select ekko~lifnr ekko~ekorg as po ekpo~netwr as netwr ekko~bukrs as cc

ekpo~ebeln    from ekpo join ekko on ekpo~ebeln eq ekko~ebeln
into corresponding fields of table lt_ek1
where lifnr eq tv_data->row_key
.

 

Whats wrong ?

Date Range valid check on BSP Application

$
0
0

Hallo,

i want to  display brochures with its validity date in BSP application.Can anybody help me. i was rejected because i posted my code here ,i cant post it again.

regards

Viewing all 237 articles
Browse latest View live


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