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

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


Converting Base64Binary to PDF document in BSP

$
0
0

Hello SDN users,

 

I am trying to get and display a pdf document from a webservice which is provided as a base64binary.

 

The interface of the webservice tells me that the response type (the actual pdf document) is an xsd:base64Binary.

 

The webservice proxy class generates an RAWSTRING for the pdf document as the response from the webservice call.

 

So my first guess was to use following class method to convert the base64binary to a normal string

 

   CALL METHOD cl_http_utility=>if_http_utility~decode_base64      EXPORTING        encoded = lv_out_char " RAWSTRING from webservice      RECEIVING        decoded = lv_out_char_decoded. 

 

 

My second guess was to create an xstring from this converted string via

 CALL FUNCTION 'SCMS_STRING_TO_XSTRING'      EXPORTING        text   = lv_out_char_decoded"        mimetype = 'APPLICATION/PDF'      IMPORTING        buffer = lv_out_charx.

 

 

My next assumption was to create otf-data via function module so that I can send the otf data to the http server cache.

lv_pdf_len = XSTRLEN( lv_out_charx ).

 call function 'CONVERT_OTF'
    EXPORTING      format                = 'PDF'    IMPORTING      bin_filesize          = lv_pdf_len      bin_file              = lv_out_charx    TABLES      OTF                   = LT_OUTPUT_DATA-OTFDATA      LINES                 = LT_LINES    EXCEPTIONS      err_max_linewidth     = 1      err_format            = 2      err_conv_not_possible = 3      err_bad_otf           = 4      others                = 5.

 

My Problem is, that I get back error code 4 which means bad otf.

 

Does anyone has a hint how I need to convert the base64binary from the webservice to a right format?

 

That would be great!

Service cannot be reached-(error code 403 and for the reason Forbidden.)

$
0
0

Hi All,

 

I am working on BSP's.

 

I built a BSP application.  It was working fine.  Now after 1 month when i excuted the same BSP, It is throughing error as

 

below:

 

Service cannot be reached

 

 

What has happened?

URL http://klang.synopsys.com:9004/sap/bc/bsp/sap/zhr_voe/first.htm call was terminated because the corresponding service is not available.

 

   

Note

 

The termination occurred in system DV4 with error code 403 and for the reason Forbidden.

 

The selected virtual host was 0 .

 

 

   

 

What can I do?

Please select a valid URL.

 

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

 

 

 

ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:klang_DV4_04-v:0-s:403-r:Forbidden

 

 

 

HTTP 403 - Forbidden

 

 

Your SAP Internet Communication Framework Team

 

 

 

 

Note : An other BSP application is working fine...

 

Can any boady please help me to sort the iussue.

 

Regards,

Kishan

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

PMS Offline Scenario - Download Issue

$
0
0

Hi,

 

I am facing issue in the PMS offline scenario (Download).

I am executing an standard BSP application (HAP_DOCUMENT) for PMS process.

 

In that i tried PMS offline process, download the appraissal form from he BSP page.

A popup window opens without displaying anything and all of a sudden it get closed.

But as per the standard scenario whenever an appraisal form is downloaded it will be locked automatically, for me also the form get locked but it was not downloaded.

 

I don't know why that popup window getting closed automatically, as that window only shows the option of saving the appraissal form to the local desktop.

 

Kindly help me on this to get solved.........

 

Thanks in Advnace.........

 

Thanks & Regards,

Chandran S

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

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

No switch to HTTPS occurred, so it is not secure to send a password

$
0
0

Hi I just made a webdynpro application. When I click on test application I get a browser with the URL as

http://9.124.47.250:8011/sap/bc/webdynpro/sap/zz_00_sflight_

 

I enter my user is and password on the web pop up ( that is the screen on the browser which says :- SAP WEBAPPLICATION SERVER.

 

I get the error as below:- 

 

No switch to HTTPS occurred, so it is not secure to send a password

 

 

No switch to HTTPS occurred, so it is not secure to send a password

   

 

My application is ready but due to the error above not able to run it in the browse. Please help.

 

Rgds,

Anupma.


Want to debug BSP Application

$
0
0

hi..

m new to ABAP.I have created a BSP Application.now i want to debug it i have set the breakpoints.now can anybody tell me the steps to debug as m not getting expected outcome as i proceed to debug.

 

Thanks in advance.

Bhavna

Easy way to copy MIME folders?

$
0
0

System: WebAS 6.20 - SP-Level 43

I want to copy the files in the MIME repository for the HTMLB, XHTMLB and UR libraries/folders.

(as described <a href="http://help.sap.com/saphelp_webas620/helpdata/en/8b/25183a3bef2669e10000000a114084/frameset.htm">here</a>)

 

I can copy multiple files at once by selecting them and then use drag'n'drop - but this doesn't work for folders?

(although it should work according to <a href="http://help.sap.com/saphelp_webas620/helpdata/en/46/bb1844ab4811d4968100a0c94260a5/frameset.htm">this part</a> of the online help).

 

Is this just me not knowing some small clue or doing something wrong?

Or how do/did you copy all necessary files?

 

Another question - why does the design2003 not show up in the MIME repository? When I use design2003, the .css-file referenced is /sap/public/bc/ur/Design2002/themes/sap_tradeshow/ur/ur_ie6.css ...

Anyone to throw light on this for me?

How to get SAP Session Management accepting session token?

$
0
0

We have an issue trying to use SAP Security Session Management instead of SSO cookies.

 

We have Netweaver 7.02 SP11 and we are trying to allow the external HTTP callers to access system using SAP Session Management and session access token. However we are getting response "Session doesn't exist".

 

Details:

 

We have activated Security Session Management in our system and we deactivated SSO completely. Here are the relevant system parameters:

 

login/create_sso2_ticket = 0 

login/accept_sso2_ticket = 0 

login/ticketcache_entries_max = 1000 

login/ticketcache_off = 0 

login/ticket_only_by_https = 0 

icf/set_HTTPonly_flag_on_cookies = 0 

icf/user_recheck = 0 

http/security_session_timeout = 1800

http/security_context_cache_size = 2500 

rdisp/plugin_auto_logout = 1800 

rdisp/autothtime = 60 

 

(list comes from SICF_SESSIONS).

Also, in SICF_SESSIONS we have activated Security Session Management for our current client.

 

Then we have developed BSP application with controller. This BSP application authenticates user (employing standard authentication mechanisms of Netweaver) and then it prepares the URL to be called by external HTTP caller. Here is the code of DO_REQUEST method of the controller:

 

method DO_REQUEST.

 

data: lf_cntntype type string,

lf_mimetype type string.

 

lf_cntntype = skwhc_c_http_content_type.

lf_mimetype = 'text/plain'.

response->set_header_field( name = lf_cntntype value = lf_mimetype ).

 

data: lf_error type string.

lf_error = space.

 

data: lf_url_path type string.

lf_url_path  = request->get_form_field( 'URL' ).          "#EC NOTEXT

if lf_url_path is initial.

   lf_error = 'URL is missing'.

else.

 

data: lf_stateful_path type string.

lf_stateful_path = lf_url_path.

CALL METHOD server->set_session_stateful_via_url

   EXPORTING

     stateful    = server->co_enabled

   CHANGING

     rewrite_url = lf_stateful_path.

 

data: lf_token type string.

CALL METHOD server->enable_foreign_session_access

   EXPORTING

     url_path = lf_url_path

     one_time_access_token     = abap_false

   IMPORTING

     session_access_token      = lf_token

   EXCEPTIONS

     url_path_is_not_supported = 1

     session_is_not_stateful   = 2

     user_unknown = 3

     internal_error = 4

     others = 5.

  if sy-subrc ne 0.

    case sy-subrc.

      when 1.

        lf_error = 'Register failed with exception url_path_is_not_supported'.

      when 2.

        lf_error = 'Register failed with exception session_is_not_stateful'.

      when 3.

        lf_error = 'Register failed with exception user_unknown'.

      when others.

        lf_error = 'Register failed with exception internal_error'.

    endcase.

  endif.

 

endif.

 

if lf_error is not initial.

  response->set_status( code = 501  reason = lf_error ).

  write( 'Error processing the URL into token' ).

  write( cl_abap_char_utilities=>cr_lf ).

  write( lf_error ).

else.

  write( lf_stateful_path ).

  write( cl_abap_char_utilities=>cr_lf ).

  write( lf_token ).

endif.

 

endmethod.

 

Method takes the parameter URL and adds the session context to the URL (changing the path from .../sap/bc... into .../sap(session-context-id)/bc...) and it also generates the access token for the URL. Both values are then returned with plain text mime type.

 

In SM05, we can see the session properly created.

 

When we use the URL with parameter SAP-SESSION_ACCESS_TOKEN, we get the response "400 Session timed out - please log in again".

 

When we check the HTTP trace (transaction SMICM), it says that the session "no longer exists". Here is the part of the trace file:

 

HttpSAPR3Handler: Call SAP AppServer for URI: /, java: 0

DpFindWebContext: check context T24/U6677/M0, 1,1

stat:1, use:1, len:40

DpFindWebContext: no context found, id=>8E0kZhnTPDBIF7G9rS7h8G3BC2ds1won9jev1MAg<

DTRACE(8/16774/2): {root-id=000C29D761591EE1B2B6BDFA0C1C0EEF}_{conn-id=000C29D761591EE1B2B6BDFA0C1C2EEF}_1

IcmFlushBuf: Flushing 847 Bytes, buf_status: 6

flush buffer with mpi buffer id 6

MPI<26b3>2b#12 FlushOutbuf 6 1 0 225560 919 6 -> 00000000079A55B0 MPI_OK

IcmCreateDpRequest: Send request to AppServer

IcmSendRq called with session key: SID:ANON:XXXXXX0090_YYY_00:8E0kZhnTPDBIF7G9rS7h8G3BC2ds1won9jev1MAg-ATT

DpFindWebContext: check context T24/U6677/M0, 1,1

stat:1, use:1, len:40

DpFindWebContext: no context found, id=>8E0kZhnTPDBIF7G9rS7h8G3BC2ds1won9jev1MAg<

IcmSendRq: Session not found for context id: SID:ANON:DEHDSV0090_D65_00:8E0kZhnTPDBIF7G9rS7h8G3BC2ds1won9jev1MA

MPI<26b3>2b#13 Cancel 7 -> MPI_OK

MPI<26b4>2c#14 Cancel 7 -> MPI_OK

HttpSrvHdlRequest: Error return: 701

IcmPlCheckRetVal: Plugin retval: PLUGIN_RET_ERROR (701)

IcmHandleNetRead(id=8/16774): read_len: 847, HandleNetData returned: 701

IcmHandleNetRead(id=8/16774): PlugInHandleNetData failed (rc=701)

MPI<26b3>2b#14 Cancel 7 -> MPI_OK

MPI<26b4>2c#15 Cancel 7 -> MPI_OK

PlugInStopConn: role: Server(1), error: -11, write_err: 1

PlugInStopConn: write error response

HttpPlugInWriteErrorText: return static error for "Session no longer exists" (-11)

HttpPlugInWriteErrorText: templ_path: D:\usr\sap\YYY\DVEBMGS00\data\icmandir/error_templ, err_idx: -1

ICT: IctIHttpOpenMessage: 0000000002E2E220 typ=2

 

 

Example of the calls:

 

- first we call

 

http://<host>:<port>/sap/bc/bsp/ztest/token.do?url=/sap/bc/bsp/ztest/token.do

 

The response is

 

sap(cz1TSUQlM2FBTk9OJTNhREVIRFNWMDA5MF9ENjVfMDAlM2E4RTBrWmhuVFBEQklGN0c5clM3aDhHM0JDMmRzMXdvbjlqZXYxTUFnLUFUVA==)/bc/bsp/ehr/ztest/token.do

c3N0PTIzQjE1NkVBQzlBNTU5NDY4RjhBREI3MERDMjRBMEYzMDAwQzI5RDc2MTU5MUVFMUIyQjZCOEEwMDhEQTBFRUY=

 

So we close browser, open it again and call

 

http://<host>:<port>/sap(cz1TSUQlM2FBTk9OJTNhREVIRFNWMDA5MF9ENjVfMDAlM2E4RTBrWmhuVFBEQklGN0c5clM3aDhHM0JDMmRzMXdvbjlqZXYxTUFnLUFUVA==)/bc/bsp/ztest/token.do?sap-session_access_token=c3N0PTIzQjE1NkVBQzlBNTU5NDY4RjhBREI3MERDMjRBMEYzMDAwQzI5RDc2MTU5MUVFMUIyQjZCOEEwMDhEQTBFRUY=

 

And the result is error page "400 Session timed out - please log in again"

 

The solution is described in OSS note 1420203 and we did all what's described there, but it still doesn't work.

 

Do you have any idea what's missing?

BSP File Download - .TIF problems

$
0
0

Dear all!

 

I haven't been able to fix this problem,

 

please see my post for further information. I am using SAP.help coding to display files in BSPs (6.20, "BSP with flow logic" pages used). See the coding below.

Somehow .tif files can not be displayed. Every other mime type works fine.

 

Thanks,

Chris

 

 

 

 

Dear all!

 

In a quite complex file upload and download scenario which works fine we use the following coding to display files received from the backend in our page.

 

OnInitialization: receives file backend data such as filesize, content(xstring) and mimetype.

This works all fine. Mimetype is delivered correctly.

 

OnInputProcessing:

 

This has been taken from the help.sap.com documentation -

 

    runtime->server->response->set_data( mycontent ).

      runtime->server->response->set_header_field(

        name   = 'Content-Disposition'

        value = lv_downname ).

    runtime->server->response->set_header_field( name  = 'Content-Type' value = mymimetype ).

    runtime->server->response->set_header_field( name  = 'Content-Length' value = myfilesize ).

    runtime->server->response->delete_header_field( name = 'Cache-Control' ).

    runtime->server->response->delete_header_field( name = 'Expires' ).

 

    navigation->response_complete( ).

 

 

RESULT:

the file is displayed fine. When trying to save the displayed file locally on the hard disc, the mimetype is not available. The system (Windows XP) provides only .bmp as file type. Also the context menu entry "Properties" of the displayed file shows NOT AVAILABLE as mimetype.

 

Is this a common problem? How can I achieve to have the mimetype information available for a save?

 

 

Thankx,

Christoph

 

 

Message was edited by: Christoph Aschauer

 

 

Message was edited by: Christoph Aschauer

 

 

Message was edited by: Christoph Aschauer

 

 

Message was edited by: Christoph Aschauer

 

Avoid double-click in BSP session

$
0
0

Hi
When we push the submit button in our BSP application, we call the FM BAPI_GOODSMVT_CREATE.

It is okay, and the goodsmovement is done.


The problem is when the user is impatient and push the submit button 2 - 3- or 4 times, the BAPI_GOODSMVT_CREATE is called several times.

 

How can avoid that the user press the sumbit more than once, or that the BAPI can't be called "by mistake"?

 

Thanks

Aikon

Custom SICF handler read URL parameters

$
0
0

Hello,

I have written a custom SICF handler.In the SICF handler method of handle request,how do i read URL parameters.

regards

Kaushik

htmlb:submitOnEnter at inputField

$
0
0

Hi there!

 

I have a nice little question about programming with htmlb. I created a BSP-Application using the MVC. Starting the Controller will call a view with one htmlb:inputField and a htmlb:button. A click with the mouse at the button fires the onClick-Event. Using the submitOnEnter-property of the htmlb:inputField raises a new request, but the method DO_HANDLE_EVENT is not called.

What have I do to raise an event like the click at the button does?

 

PD


tableViewColumn: $fieldname$ expressions are no longer supported DESIGN2003

$
0
0

Hi,

 

I am getting the following error when i execute the BSP. Can anyone tell me why this error is coming. This is working fine in another server the same code copied to developement system and i got the following message when i execute that BSP.

 

 

<htmlb:tableViewColumn>: $fieldname$ expressions are no longer supported in DESIGN2003.

 

 

Thanks

Krishna

GENERATE_SUBPOOL_DIR_FULL issue - also in 6.40?

$
0
0

Hi fellows,

after implementing some dynamic table creation in my MVC application I came across this GENERATE_SUBPOOL_DIR_FULL error, and found this topic in ABAP forum:

Resetting the counter for Generate Subroutine Pool I read that for the WebAS 6.40 approach removes some of theses issues, this might be one of them.

Does anybody know of similar problems that occur or occur not when using 6.40?

 

*) As the 6.40 kernel can also be used for 6.20 installations ... will upgrading the kernel affect or even solve this problem in any way? (or make the 6.40 approach possible?)

 

Thanks for reading (and answering),

Max

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.

Can't run bsp applications

$
0
0

Hi everyone I run all steps in this nice guide (only problems with 9 step, more detail below)

/people/durairaj.athavanraja/blog/2005/08/21/running-your-first-bsp-application-in-sap-netweaver-04-abap-edition--nsp

 

additionally I run this report "SIAC_PUBLISH_ALL_INTERNAL"

 

I can't no problems with FQDN,  e.g. I can access to  http://mao08.mao.com:8000/sap/bc/gui/sap/its/webgui

or to an a webdynpro as http://mao08.mao.com:8000/sap/bc/webdynpro/sap/othello without any problem.

 

Now in context the problem  appear when I run a bsp application as http://mao08.mao.com:8000/sap/bc/bsp/sap/it00/ 

the following error appears after prompt by user and password.

 

500 Connection timed out

 

Error:     -5

Version:     7000

Component:     ICM

Date/Time:     Thu Jul 09 02:16:49 2009

Module:     icxxthr.c

Line:     2698

Server:     MAO08_SM2_00

Error Tag:     {-}

Detail:     Connection to partner timed out after 60s

 

for that error I tried.  1.  increment rdisp/max_wprun_time,  2. Increment  the service max procesing time and keep alive with no results.

 

Ok now, I try activate this bsp before  in SE80, when I click to activate it00 or only one default.htm page of this it00, the session of abap get lock. in another session i can see the timeout increments until it reaches its maximum value.  just in this moment the SE80 trow a log error (ST22) 

 

it says.  TIME_OUT  "The program SAPLSEOP has exceeded the maximum permitted runtime without an interruption and has therefore been terminated"

 

How can I solve this?

 

thanks in advance

Call BSP Popup from BADI

$
0
0

Hello everyone!

 

I'm having a hard time trying to call a BSP from the ABAP code that's within a BADI.

 

I have the BSP already done, but my problems are I don't know how to call the BSP and don't know how to call it in Popup mode.

 

The BADI i'm working on is called when a button in a standard BSP is pressed. When that button is pressed I want my popup BSP to be shown and the user has to fill some info, based on that info I'm going to call one of two standard BSP's. Anyone knows the best way to implement this requirement?

 

Best regards,

Mário Espinheira

 

Viewing all 1497 articles
Browse latest View live


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