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

BSP Parameters from URL

$
0
0

Hi

 

I have a simple BSP Page , which is calling a function module, which requires four parameters.

I want to send those parameters from URL.

 

My question is how to send those parameters and set them to the input variables for the function module.

 

I am newbie to BSP and any help is greatly appreciated.

 

Thanks

Rajesh


Download BSP Application Source Code for Backup

$
0
0

Dear All,

    Is there any way, I can download the whole BSP Application as a Text or HTML or DOC file, for backup purpose?

 

Thank you.

 

Regards

 

Gladson

Newbie: problem with submitting data with MVC

$
0
0

I am a newbie with the MVC concept. I used the SAP help but don't understand the hole tutorial. Following example:

 

I have to traditional BSP-pages: page1.htm and page2.htm

 

In the layout there is a submit button and an input field. After pressing the submit button, I use the OnInputProcessing handler to submit the data to page2.htm.

 

CASE EVENT_ID.   WHEN 'seite2'.   NAVIGATION->SET_PARAMETER( 'persnr' ).     NAVIGATION->GOTO_PAGE('page2.htm'). 

ENDCASE.

 

Page2.htm selects some data of a database table (using the submitted data), put them in an internal table and showing them in the layout.

 

types:
begin of TY_INTAB,
kdata type zmgdamtable
persnr type zmgdamtable
pdata type zmgdamtable
end of TY_INTAB.

types: ty_intab2
type standard table of ty_intab.

 

TRANSLATE PERSNR TO UPPER CASE.

SELECT zmgdamtable~persnr zmgdamtable~kdata zmgdamtable~pdata


INTO TABLE intab4
FROM zmgdamtable
WHERE zmgdamtable~CTRNR = persnr .

 

 

 

And now my problem: How can I handle this with MVC-patterns? And maybe it would be better if I put page1.htm and page2.htm in one view.

 

I know how to create views, models an controllers. But the examples I found were to difficult for me to understand, because they build on another big example. Maybe here is someone who can tell me which code I have to write put in which controller and so on.

 

 

 

Message was edited by: Michael Gaidies

 

Login rejected for BSP iview

$
0
0

Hello all,

 

I have a BSP iview. The connection test for the system used by this iview was successful. SSO is also configured. When I run this iview, a small "Logon Data" window appears on the content area. This is not a popup, but is embedded to the portal. ( It also has the links "Change logon & password" and "Password via e-mail" on it )

 

Now, the problem is, I dont know to which system the logon info is asked for. <b>Because, if I give the user id and password of the backend R/3 system, it is getting rejected although I am able to successfully login dirctly to the R/3 system with the same user id and password.</b>

 

 

Could some one tell me

1) How I can avoid this login window

 

or

 

2) Even if the login window appears its ok, but can anyone give me some pointers regarding the system it is asking the password for?

 

Thanks in advance,

Reena

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

BSP and BDS

$
0
0

Did someone have any experience with the upload, download and display document from BDS (Business Document Service BC-SRV_BDS) using the BSP?

 

Thanks,

Sergio

Question on how to access the Business Logic from a Class

$
0
0

Hi,

 

I am facing issues while accessing Business Logic in my class. I am using the same types in all the cases(in the class & also in my BSP).

 

the issue is only coming when I use Business Logic(Select statement) inside a class and if I remove the same, I am getting the things.

 

My issue is that I am not able to get the value into my BSP from the select statment in the Class.

 

My BL in the class is as under:

 

select single zname1

              from

              zcust_vis

              into

              eid where zcid = attr1.

 

attr1 ,zname1 ,zcid and eid are of the same data type.

 

attr1 is an attribute defined for the class....

 

 

BSP looks like this:

 

call method application->GET_CUSTOMER exporting cid = cust_id

                                      importing eid = c_id.

 

here above, I was trying to export a value(say 1000) and executing the BL in the class and importing the value of "zname1" into my BSP using but, I could not get any value into the "c_id" parameter....and instead the value is a Blank, and in the table it has got some value and it is not a Blank for the field "zname1".

 

 

I hope the problem seems to be clear now... Please let me know what needs to be done to overcome this issue.

 

Thanks & Regards,

Vishnu.

How to display error messages in bsp page

$
0
0

hi

 

  I have a requirement to display error message in bsp page. iam typing a wrong value in the input field and for that input field a check is performed in oninputprocessing event handler. based on that check i need an error message to be displayed on the same page alerting the user to enter correct value.

 

Thanks and regards

Vineetha


how to use "document.getElementById()" using MVC and

$
0
0

I follow the tutorial from saptechnical .com about F4 in BSP and it works.

 

But my problem, is that is not working in my BSP I get javascript error "document.getElementById() is null" the popup appear I select the value but when I press the button to close the popup and pass the value nothing appears.

 

I think that is because im Using MVC and Views that call a controller (like view inside views).

 

I have in my main.htm this:

    

<htmlb:form id     = "search"               method = "get" >        <bsp:call url     = "search.do"                  comp_id = "search" >        </bsp:call></htmlb:form>

 

       

The code with the help values is in the search.htm(this the page associated with controller search.do)

 

So Im thinking that my problem is because the form isnt in the SAME page than my inputField  and that is why im getting that error.  Can be this true ?

 

And if it is,  how can I solve it?, I have several pieces of page with controllers and If I try to put the form tag in each "piece" I get an error that a button was left without a parent form tag, and I there isnt any button tag without form tag. So I think that another element tray, tabstrip or something require form tag also.

 

I hope that I could explain my problem and someone can give me a hand.

 

Can It be that this js statement

 

document.getElementById("i_VKORG_low").value = fval;

 

only works only if the form tag is in the same htm page, and cause I have teh form tag declared in the main.htm and the fieldtext i_VKORH_low in search.htm it doesnt works ?

 

Thx

 

EDIT: I cant post my javascript source code...dont know why I get an error from the forum that the post is not supported

Collect Error Message from SAP program to BSP Page

$
0
0

Hi Experts,

 

I am displaying an error message in the form of pop-up Message  in a Screen based on a condition using BADI on R/3 screen , but when i am calling the screen from Portal (BSP PAge) I am unable to see the Error Message which is being displayed as a pop-up in r/3..

 

How to catch the error and display in BSP Page.....

I have searched the forum but didnt find any suitable replies....

Plz help

 

Regards,

Srikar

Spell checker class CL_SOTR_SPELLCHECKER

$
0
0

Hi,

 

  I tried using spellchecker class in the report but i am getting short dump . Has anyone tried using this class.

if so, whats the procedure to get it working ?  I am on 640 SP16.

 

Regards,

Raghu

Navigation in MVC

$
0
0

Hello all,

 

   In MVC how to navigate to another view when a button is clicked when there are no subcontrollers.

    

Thanx in advance

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

-


 

upload excel sheet into BSP application

$
0
0

Hi Experts

 

i want to upload a excel file into bsp application

i tried using ALSM_EXCEL_TO_INTERNAL_TABLE function module

im getting error in

CALL METHOD cl_gui_frontend_services=>clipboard_export

displaying  "cannot processed to plugin http"

 

please help me to sort out this issue

 

Thanks and Regards

Arun

Excel to Internal table in BSP

$
0
0

Dear All,

 

Im having excel sheet with values. I need to read that excel sheet values and that has to be placed in an internal table which is in BSP application.

 

Could anyone throw a light on this.

 

Thanks in Advance.

Anita Vizhi Arasi B.


Windows user name in webdynpro ABAP/BSP

$
0
0

Dear Gurus

"Note : Do not treat this a Duplicate Post

 

I need to display windows user in my webdynpro application,

i have tried method cl_gui_frontend_services=>get_user_name, But since we are using this in browser this is not giving NULL

 

I been through many posts kindly guide in resolving this Issue

 

I have been through the following threads

function like get_user_name in BSP ?

Get Windows User in ABAP - Webservice

(In the above link Adam suggested some code but i dont know how to implement it as it is giving error)

 

Re: windows user name in webdynpro abap

Re: cl_gui_frontend_services is return null

/people/koen.labie2/blog/2006/11/29/eating-cookies-with-webdynpro-and-bsp

 

Kindly Guide me to resolve this Issue either through BSP or through Webdynpro for ABAP

 

Thanks and Warm Regards

Ramchander Rao.K

Convert bsp page html content to image/PDF

$
0
0

Hi,

   I have a bsp screen where user may want to save that page as image or pdf file.

Is there any way that bsp page's html content (including images/css3 styles)  can be converted to either image / pdf.

 

I have been searching for this in internet for a couple of days. I could find that there is a solution in all major languages:C#,java,python and php too....

But I couldn't find a solution in SAP BSP. Is a solution existed in BSP too? If so, Can somebody tell me the way to work it out...

 

Thanks and Regards,

Rama Rao M.

 

 

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

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.

Extracting query string from the URL of a BSP

$
0
0

Hello all, I'm trying to use the URL to a page as the query string for information retrieval from say a database. Essentially, I want to be able to click on a link like http://xyz30.samson.com:8000/sap/bc/bsp/sap/zzusw_test01/page.htm?name= Jack+Summers and then have page.htm display information relating to my name only.

 

Ultimately, I don't want to submit information through a form as I want information that would be submitted through a form to be contained in the URL.

 

I used the code segement below in my BSP:

DATA: test type string value 'Pal'.

DATA: REF_IF_HTTP_REQUEST TYPE REF to IF_HTTP_REQUEST,

      server type ref to CL_HTTP_SERVER.

 

create object server.

 

REF_IF_HTTP_REQUEST = server->IF_HTTP_SERVER~REQUEST.

 

REF_IF_HTTP_REQUEST->IF_HTTP_ENTITYGET_HEADER_FIELD( exporting name = 'query_string' RECEIVING VALUE = test ).

 

The string variable test is being returned empty. Is there something I'm doing wrong?

 

Thanks in advance.

Viewing all 1497 articles
Browse latest View live


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