Quantcast
Channel: SCN : Popular Discussions - Business Server Pages (BSP)
Viewing all 1497 articles
Browse latest View live

EREC-BSP-How to call a bsp application from another bsp application

$
0
0

Hi Experts,

 

In E-Rec one of my bsp application zapp_e_ext calling another standard bsp application hrrcf_searchhlp when user click on search help button.

i made a zcopy (zhrrcf_serchhlp) of std application hrrcf_searchhlp,and did some changes,

now the problem is how to replace the std application with zapplication so that zapplication should be called in place of std application when user click on search button.

 

 

Cheers,

Amod


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

500 Connection timed out Component: ICM

$
0
0

Dear Gurus,

I  am getting the following error when i click some of BSP pages from portal.

Where can i set parameters value to solve this issue.

actually this page called by Portal from SRM4.0 system by using SSO.

 

 

500 Connection timed out

 

Connection timed out (-5)

 

-

-


Error: -5

Version: 6040

Component: ICM

Date/Time: Wed Aug 6 21:01:10 2008 

Module: icxxthr_mt.c

Line: 2563

Server: srmprd_PSR_00

Detail: Connection to partner timed out

 

Any suggestins.

Thanks in advance

 

Blaji

 

 

 

 

© 2001-2003, SAP AG

 

Retrieving value of editable cell of tableview.

$
0
0

Hi All,

I my BSP , i have a tableView with one cell editable.For fetching the value of this cell i am using the following code:

 

DATA:  tv                  TYPE REF TO CL_HTMLB_TABLEVIEW,       tv_event          type ref to cl_htmlb_event_tableview ,       event             TYPE REF TO if_htmlb_data.

event = cl_htmlb_manager=>get_event( request ).
IF event IS NOT INITIAL AND event->event_name = htmlb_events=>tableView.  tv_event ?= event.

CASE event->event_server_name.
when 'MyEventRowSelection'.
tv ?= CL_HTMLB_MANAGER=>GET_DATA(                        request      = runtime->server->request                        name         = 'tableView'                        id           = 'material' ).


tv_event = tv->data.
*IF tv_event->prevSELECTEDROWINDEX IS NOT INITIAL.

value = tv_event->GET_CELL_value( row_index    = tv_event->prevSELECTEDROWINDEX                                  column_index = '4' ).

*endif.
endcase.
endif.

 

here i am facing two issues?

1) value of tv_event->prevselectedrowindex is always zero.

 

2)if i try using selectedrowindex or any other value even hardcode values for parameter row_index of get_cell_value, the variable VALUE is always empty.

Why cant we use any other value for this parameter?

 

Thanks,

Anubhav.

SAPLHTTP_RUNTIME for 12 days????

$
0
0

Hi All -

 

We're in the midst of a major course push on our LSO system at the moment, which runs off BSP Application HCM_LEARNING.  When we took a look at the system monitor in SM50, it looks like SAPLHTTP_RUNTIME has been running for nearly 11 days, and we can't figure out why!  Does anybody have any idea why this would happen?  Thanks for your help!

 

Abby

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 '/' 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 '/'.

 

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 '/'?

 

 

Many thanks,

Victor

Problem: Access-Control-Allow-Origin

$
0
0

Hi,

 

we are using a small BSP application to create a xml file. Now we tried to get this file per AJAX http request and receive following error message:

 

Origin ***** is not allowed by Access-Control-Allow-Origin.

 

I know, that most browsers block cross-domain requests, if the requested page doesn't allow it.

 

We set two header fields within the BSP page:

 

runtime->server->response->set_header_field( name  = 'Access-Control-Allow-Origin'                                             value = '*' ).
runtime->server->response->set_header_field( name  = 'Access-Control-Allow-Methods'                                             value = 'POST, GET' ).

 

Problem seems to be, that field names are converted to lower case (they are case sensitive), so that:

access-control-allow-origin: *

access-control-allow-methods: POST, GET

is send to the browser.

 

We tested this on a Web AS 620 and 700, both show header field names only in lower case.

 

Does anyone has an idea how we can solve this problem?

 

Regards,

Sven Klußmann

 

I am geting Exception type CX_SY_DYN_CALL_ILLEGAL_TYPE

$
0
0

Hi,

 

   when i am trying to creat sales order using bapi 'BAPI_SALESORDER_CREATEFROMDAT2' in BSP program iam geting the following exception.

 

 

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

 

Exception Class: CX_SY_DYN_CALL_ILLEGAL_TYPE

Error Id: 

Program: CL_O2AXZG4R3LD7CRXUAEKYMRHCDL8CP

Include: CL_O2AXZG4R3LD7CRXUAEKYMRHCDL8CM007

Line: 78 

Long Text


IE Browser refresh posting a duplicate GR

$
0
0

Hi, I have developed a stateless page with flow logic. All the functionality is working fine. But when user clicks on browser refresh, browser sending back the last stored information back to the server ( which is standard browser functionality ) and this resulting in posting of duplicate GR.

 

I have used server side cookies to compare last entry and current entry, if they both are same I am triggering an error. I am holding the cookie for 1 minute. This takes care of refresh.

 

But the problem is, when user want to post a new entry which has same details like same PO number, same qty and same delivery, then also I end up triggering the same error as in the case of refresh.

 

Can anybody suggest me a way to identify browser refresh at the server level.

 

Best regards,

Siva

SICF and 554 Transaction failed

$
0
0

Hi,

 

The email in one of our SAP clients stopped working after a recent reboot (although I can't say for sure this is the reason/related).

 

Sending an external email to the DEVSERVER gives the following error in the icm connection log.

 

ErrorCode: ICF-NF-http-c:000-u:SAPSYS-1:E-i:DEVSERVER-v:0-s:404-r:Notfound HTTP 404 - Not found

 

This error occurs before the email arrives in the SOIN, at first I was thinking the system couldn't find the email address and was returning not found.

 

An extract of the icm log below:

 

[Thr 4404] ------------------------------------------------------------------------

[Thr 4404] 0000000007985598  000000  51004f3c 34343738 32353739 35333839 |Q.O<447825795389|

[Thr 4404] 00000000079855A8  000016  40736d73 2e6d6573 73616765 2d706c61 |@

[Thr 4404] 00000000079855B8  000032  74666f72 6d2e636f 6d3e0052 3c736170 |tform.com>.R<sap|

[Thr 4404] 00000000079855C8  000048  64657640 73617064 65762e65 73736578 |dev@sapdev.essex|

[Thr 4404] 00000000079855D8  000064  2d666972 652e676f 762e756b 3e005672 |-fire.gov.uk>.Vr|

[Thr 4404] 00000000079855E8  000080  6663                                |fc              |

[Thr 4404] ------------------------------------------------------------------------

[Thr 4404] SMTP PlugInHandleServData entry

[Thr 4404] SMTP PlugInHandleServData: buffer read o.k., status = 6

[Thr 4404] SMTP SmtpActivity: state = -8, reply = -1

[Thr 4404] SMTP SmtpServerAcknowledge: mail processed by app server

[Thr 4404] MPI<ef6>6#16 FreeInbuf#1 0 2054e0  0 -> MPI_OK

[Thr 4404] SMTP SmtpServerAcknowledge: send '554 Transaction failed'

[Thr 4404] IcmNetBufWrapBuf: allocated netbuf: 0000000001CE5DA0, blocks used: 1

[Thr 4404] IcmNetBufWrapBuf: allocated netbuf: 0000000001CE5DA0

[Thr 4404] SMTP SmtpServerInit: flush buffers

[Thr 4404] IcmPlCheckRetVal: Next status: READ_REQUEST(1)

[Thr 4404] IcmHandleNetWrite(id=2/7612): HandleServData returned: 1

[Thr 4404] Address    Offset  IcmWriteToConn:

[Thr 4404] ------------------------------------------------------------------------

[Thr 4404] 0000000002CF1A50  000000  35353420 5472616e 73616374 696f6e20 |554 Transaction |

[Thr 4404] 0000000002CF1A60  000016  6661696c 65640d0a                   |failed..        |

[Thr 4404] ------------------------------------------------------------------------

 

I can access the url using :http://DEVERSERVER.DOMAIN:PORT/sap/public/icf_info/logon_groups?sap-client=999 and that works fine, can anyone give me some pointers on what to look at next?

 

Thanks,

 

Malcolm

"IT_SPFLI" is not an internal table "OCCURS n" specification is missing.

CX_SY_RANGE_OUT_OF_BOUNDS dump in BSP F4 help

$
0
0

Hi ,

 

I am following a blog for creating a standard F4 help for MATNR in

my BSP application.

 

The standard search help has a custom elementary search help

for which the following dump is coming :

 

The following error text was processed in the system:

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

Exception Class CX_SY_RANGE_OUT_OF_BOUNDS

Error Name DATA_OFFSET_LENGTH_TOO_LARGE

Program ZCL_M_INPUT_HELP==============CP

Include ZCL_M_INPUT_HELP==============CM002

ABAP Class ZCL_M_INPUT_HELP

Method GET_HELPVALUES_BAPI

Line 221 

Long text The sub area access (Offset = 248, Länge = &LEN GTH&) on a data object of size 255, lies outwith the valid boundaries.

 

I have the following code in my model class zcl_m_input_help in method

get_helpvalues_bapi where dump is coming:

 

****For each component (field) in the table -Output the data

    LOOP AT struct ASSIGNING  LEFT DELETING LEADING '0'.

      ENDIF.

    ENDLOOP.

  ENDLOOP.

 

I would be really thankful if someone could help.

 

I am geting Exception type CX_SY_DYN_CALL_ILLEGAL_TYPE

$
0
0

Hi,

 

   when i am trying to creat sales order using bapi 'BAPI_SALESORDER_CREATEFROMDAT2' in BSP program iam geting the following exception.

 

 

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

 

Exception Class: CX_SY_DYN_CALL_ILLEGAL_TYPE

Error Id: 

Program: CL_O2AXZG4R3LD7CRXUAEKYMRHCDL8CP

Include: CL_O2AXZG4R3LD7CRXUAEKYMRHCDL8CM007

Line: 78 

Long Text

IGS in BSP using Chart Designer

$
0
0

Hello Gurus,

 

I am trying to incorporate some graphs into BSP pages. While I can get the graph type and data correct, I am unable to change the colors of series. I have created a minimal BSP to illustrate issue.

 

Chart Designer with XML data loaded.

Chart.GIF

 

Image from BSP

bsp.GIF

 

I have been using the methods GET_DATA_XML and GET_CUSTOM_XML for some time with success but have never had requirement to change colors of the charts. My sample BSP is below with the native XML I am using to try and sort the colors before applying to the actual program.

IE Browser refresh posting a duplicate GR

$
0
0

Hi, I have developed a stateless page with flow logic. All the functionality is working fine. But when user clicks on browser refresh, browser sending back the last stored information back to the server ( which is standard browser functionality ) and this resulting in posting of duplicate GR.

 

I have used server side cookies to compare last entry and current entry, if they both are same I am triggering an error. I am holding the cookie for 1 minute. This takes care of refresh.

 

But the problem is, when user want to post a new entry which has same details like same PO number, same qty and same delivery, then also I end up triggering the same error as in the case of refresh.

 

Can anybody suggest me a way to identify browser refresh at the server level.

 

Best regards,

Siva


Bsp Model Instance

$
0
0

Hi All

 

I have a problem with my model class in my bsp application.

 

I have created a bsp mvc application.

 

I do not have an application class and all my controllers are stateful.

 

I create and instanciate a model class in my start page and I am trying to use it in my other views but when i use get_model command in the do_int method of my controller it can't find the model from my start page and creates it again and therefore I loose all my data.

 

Anyone got any ideas as to what I am doing wrong ?

 

Here is the code I use

  • Get a pointer to the Model Object.

  me->model ?= get_model( 'MOD' ).

 

  IF me->model IS INITIAL.

  •   Create the Model to hold data for the Document Search Controller

    model ?= create_model( model_id = 'MOD'

                          class_name = 'ZCL_WFORMS_MODEL' ).

 

  ENDIF.

 

 

Thanks

BSP call : type of termination: RABAX_STATE

$
0
0

Hi friends;

        I am learning BSP (kindly excuse my ignorance);

while trying to execute a BSP page from SAP R3  , I get the below error message in IE browser window.

====================================================

<b>500 SAP Internal Server Error</b>

Error message: An exception that could not be caught occurred.

( type of termination: RABAX_STATE )

 

====================================================

 

Your Help is really appreciated,

Aby Jacob

-


 

Problem with link of BSP application

$
0
0

hi there,

 

i want to implement bsp application hcm_learning @my customer. My customer includes the starting page of hcm_learning in there

internal intranet portal.

 

The administrator of the intranet portal has a problem with 'my' bsp-application, the start page is:

 

http://ppXX.xxxxx.local:8003/sap/bc/bsp/sap/hcm_learning/catalog.htm

The second call of the page is:

 

http://ppXX.xxxxx.local:8003/sap(bD1kZSZjPTEwMCZkPW1pbg==)/bc/bsp/sap/hcm_learning/catalog.htm

 

There has to be a 'fix' route-string, but SAP includes the (bD1kZSZjPTEwMCZkPW1pbg==) in the address. What is this, and

can we avoid this ?

 

br, Martin

 

 

SAPLHTTP_RUNTIME for 12 days????

$
0
0

Hi All -

 

We're in the midst of a major course push on our LSO system at the moment, which runs off BSP Application HCM_LEARNING.  When we took a look at the system monitor in SM50, it looks like SAPLHTTP_RUNTIME has been running for nearly 11 days, and we can't figure out why!  Does anybody have any idea why this would happen?  Thanks for your help!

 

Abby

IGS in BSP using Chart Designer

$
0
0

Hello Gurus,

 

I am trying to incorporate some graphs into BSP pages. While I can get the graph type and data correct, I am unable to change the colors of series. I have created a minimal BSP to illustrate issue.

 

Chart Designer with XML data loaded.

Chart.GIF

 

Image from BSP

bsp.GIF

 

I have been using the methods GET_DATA_XML and GET_CUSTOM_XML for some time with success but have never had requirement to change colors of the charts. My sample BSP is below with the native XML I am using to try and sort the colors before applying to the actual program.

Viewing all 1497 articles
Browse latest View live


Latest Images

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