cancel
Showing results for 
Search instead for 
Did you mean: 

How know if an report is run from the portal or ecc.

Former Member
0 Kudos

We have that create a report using ABAP, which is run for some user in the system ECC and other employee through ESS.

The reporte must display some fields of selection when is run from the portal ESS and display all the fields of selection when is run in the backend.

How can know if a report developed in ABAP is run from the portal or from the system ECC?

Kind Regards

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

AN ABAP report will open the SAP GUI, So not sure whether you differentiate between the frontend and backend

Former Member
0 Kudos

I have that create two report, for that the system display some field in the portal and other in the backend?

Kind regards

Former Member
0 Kudos

Hi,

Assign the trasation to the report you hvae created in the SAP Back ENd. once that done

Create the trasaction I-View on the Portal and there assign this Trasaction over there it will work fine....

Former Member
0 Kudos

From Portal transaction iView, use parameter values (in iview properties) to pass it on to the backend while executing it. capture the same in ABAP report to diferentiate portal session.

Former Member
0 Kudos

Hi Karthik, i am new in this,Can you help me with more details, please.

Kind Regards

Former Member
0 Kudos

Hi, I differentiate between the frontend and backend, but What instructution i have that put in the code for that system through of the logic can display a fields in the portal and other in the backend???

Note: The report is created in ABAP and we did create a transaction for this report in the SAP Back ENd.

Once that done Create the trasaction I-View on the Portal and there assign this Trasaction.

Kind Regards

Former Member
0 Kudos

Well like others i failed to udnerstood what you meant by Portal and Backend report.

There are no reports running on Portal as such.. As you know Portal is just hosting those transaction(linked to report in R/3). So you have JUST one report which you run in R/3 and also create a transactino iview of same report on Portal. (This is more of referencing it).

So you don't need two reports. If you want reports to behave differently when started from Portal then you might have to create a variant or seperate report though.

Cheers.

Former Member
0 Kudos

Hi,

The scenario for we is:When I click on the link

When the employee click on the link in the servicel this call the report and the system have that put automatically the following filed personnel number, company code, personnel area and Payroll area of the employee that is login in the portal. And this field must be disabled.

When the human resource manager run this report in the backend the system not have propouse no value for the fileds personnel number, company code, personnel area and Payroll area. This fields must be enabled fot that the administrator cand run this report for any employee.

The name of the report is: ZHR_PAY_EMPLOYEE.

Kind Regards

Former Member
0 Kudos

can someone help me???'

kind regards

Former Member
0 Kudos

Good Morning,

Can someone help me. I need suggestions for solve this issue.

Kind Regards

Former Member
0 Kudos

Hey hi,

Have you checked it that .............

The trasaction code is GUI thre is one setting need to be done in se93 ....

The it should work

Former Member
0 Kudos

What is tha instruction in ABAP for do the code, In what variable is this?

Kind Regards

Former Member
0 Kudos

Check this variable value at runtime SY-CPROG, the value will be different when the report is called from portal and back end. If CPROG is not working, try to check other SY variables. I have done a similar check....

Former Member
0 Kudos

Hello.

I checked all the variables SY.

I run the report in the R/3 and checked the value of the variable SY and I compared this varible when I run the report in the portal and the values for this variable are the same.

Regards

Former Member
0 Kudos

Hi Karthik.

I created in the Portal a transaction iView.

I used parameter values (in iview properties) to pass it on to the backend while executing it. I capture the value iin ABAP report and this work fine.

The problem that I have is that the user final can display Command field, and other botons that the user not should can display when the report is run in the portal.

I can created a service for this transaction using the T.Code SICF. But the problem is that with this not work fine the pass parameter to the t.code.

If i create a in the Portal a transaction iView this work fine, but no can call the service, only can call the T.code.

If i create a in the Portal a IAC iView this not work fine, can call the service and can hide the button of Command field, and other botons, but no can pass the parameter to the T.code.

Anyone can give suggestions?

Thank in advance.

Regards

Answers (2)

Answers (2)

Former Member
0 Kudos

I don't found form of know if a report ABAP is executed in the portal or r/3

Former Member
0 Kudos

Hello,

I think I have understood your requirement. What I have done in this scenario is as follows:

1. I have created an ABAP report which has to be used thru ECC directly (in your words Backend).

2. I have copied the same report for the MSS version with the required output parameters.

The one which has to be used at the backend is assigned a transaction code and is attached to therequired security role.

Hope this answers your query.

Thanks

Apoorv