cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP and BSP

Former Member
0 Kudos

Hi,

I have an ABAP report and I want to diplay the output on BSP...

but from time to time I have to refresh the BSP data (for refreshing I don't have problem) refreshing is meaning that I have to bring the data from reprot to the BSP.

Basically, there is an interaction between ABAP report and BSP to exchange the data.

please, I need a help... this is an Urgent development....

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks, all.

former_member689397
Active Participant
0 Kudos

Hi,

Call a report in your BSP application in Event handler ( i.e. OnInilization if Pagewith flow logic or use DO_REQUEST in MVC )

Go to Template in menu bar --> Ins. Statement open ...there you have to select Othere Patterns then select REPORT

Here, you can call report and to display purpose use table view (internal table)

Thnx

Suriya

Former Member
0 Kudos

thank you for your fast response..

maybe i didn't give the correct description ....

the flow like this...

1- from the ABAP report i do my selection and my calculation into an internal table.

2- this data in the internal table i want to display it on BSP.

3- after some time i want to refresh the page this mean i have to go back to the report and get the refreshed data and display it on the BSP.

this is the that meet my requirments .... please advise,

former_member689397
Active Participant
0 Kudos

Hi,

Please refer the below links

Thnx

Suriya

athavanraja
Active Contributor
0 Kudos

1. use the same logic (code) for your calculation in the bsp itself (write the abap code in oninitialization event.

2. use javascript settimeout funtion to refresh your page which will trigger oninitialization and your code will re-execute again and fetch new values.

you dont need another abap report for calculation purpose

Former Member
0 Kudos

I really appreciate your helps...

last question...

how i can call an ABAP report from BSP page?

thanks.

athavanraja
Active Contributor
0 Kudos

call an ABAP from BSP to do what?

Show the abap program results in BSP page?

open the abap program in a new sap gui?

or call the abap program and get the results?

what sort of abap program is that? a report program?

Former Member
0 Kudos

thanks Raja...

call the abap report and get the results back to BSP page.

to make things clear...

1- i must run the BSP page from the ABAP report (i don't have any problem)

2- pass internal table from the report to BSP page (how i can pass)

3- recieve the internal table in the BSP page to Display it (how i can rcieve interanl table)

4- display data on BSP page ( i don't have any problem)

5- once i refresh the page i want bring the latest data from the abap report to the page and to bring the latest data it is mean i have to run the report each time i refresh the page (How).

note: i can't apply the report logic in the page for functional reason.

thanks.

athavanraja
Active Contributor
0 Kudos

1. to open it(BSP) in new browser window from sapgui?

Former Member
0 Kudos

thanks,

basiclly, I want to refresh my BSP page from an ABAP report...

from BSP page i will create a selection screen that meet the ABAP selection screen then submit it and return the result back to the BSP and display on the page,

how to pass parameters and select option to ABAP report and return the result back to my BSP...

please, i need it ASAP.

really i appreciate it.. (:

athavanraja
Active Contributor
0 Kudos

So what you are saying is that the user will only run the BSP page and inturn BSP page will run the abap program and get the results and show it in bsp page?

if yes, just use submit <abapprogram> exporting to list to memory and the import the list from memory and show it in bsp page .

for refreshing the content, you can use javascript settimeout function which will refresh your bsp page and inturn the bsp page will rerun your abap to get new set of data.

Raja

Former Member
0 Kudos

many thanks for you... this is the one Exporting / Importing.

now almost my my first BSP is finished, the remaining problem is:

(1) how i can color the row based on the values in BSP page. for example,

int_employee-salary "is salary fields of employee record"

if int_employee-salary > 5000

colore the record with red

elseif int_employee-salary > 10000

colore the record with green

......... etc.

i found this link but i didn't understand...

http://help.sap.com/saphelp_nw70/helpdata/en/28/4bae407e69bc4ee10000000a1550b0/frameset.htm

Message was edited by:

Lezarazo Thoram

Former Member
0 Kudos

could you please give a help on this subject....

thanks.

athavanraja
Active Contributor
0 Kudos

you got the right link. you have to use iterator. for help on this search the BSP weblog area there are few weblogs explaining that.