Calling one abap report from another
1.There are two abap reports Report A and Report B.
2.Report A is already developed and I am working on Report B.
3.Report B has two radio buttons.
4.The logic for the first radio button is written in the Report B itself.
5.While for the second radio button i want to call the Report A.
6.The selection-screen fields required for executing the report A are already present in the report B.i.e Report B's selection-screen contains all the selection-screen fields of Report A plus some additional fields.
Now my requirement is that when I select radio button 2 in the report B and fill up the selection screen data in the report B and execute the report I want that the selection-screen of Report A should not be displayed but the logic of the report A should be used and should return back to Report B. (Report A just downloads some data on into excel file). How can I achieve this?
Hi ,
Use submit z_reportA with selection-table p_rspar_tab and return. Here you need to populate the selection screen fields in table p_rspar_tab of type rsparams.
rspar_line-selname = 'P_TAB'.
rspar_line-kind = 'P'.
rspar_line-sign = 'I'.
rspar_line-option = 'EQ'.
rspar_line-low = value.
append rspar_line to rspar_tab.
clear rspar_line.
Thanks
Subhankar
Similar Messages
-
Calling one WAD Report from another WAD Report
Hi All,
I want to Call one WAD report from another WAD Report and I want to show that Report in a Container of the Calling Report Itself. Kindly give the Solution. Thanks for your support in advance.
Thanks & Regards
ShivaHi Shiva,
There is Command called "SET_TEMPLATE" Set Web Template.
Here you can select any of your existing web template and choose to open it in current page of in a new window.
Hope it helps.
Regards,
Pratap Sone -
How sholud we call one jframe class from another jframe class
Hi
In my application i am calling one jframe class from another jframe clas.
how sholud we make previous jframe inactve when another jframe is invoked?(user sholud not able to make any changes on on parent jframe window when another jframe is invoked)
Pls reply.Sorry for me it is not possible to change existing code,
pls suggest me any other solution so that i can inactive parent jframe when child jframe execution is going on. -
How to call an alv report from another program and return back
Hello ,
I am calling one abap program (Prgm B) from another program (Prgrm A).
Here, Prgm B is an ALV report. I have fetch some data from Prgem B that gets stored in an internal table.
Now, I am using below code in Prgrm A,
SUBMIT Prgrm B VIA SELECTION-SCREEN
WITH SELECTION-TABLE rspar
EXPORTING LIST TO MEMORY
AND RETURN.
When Prgrm A executed, it lead me to selection screen of Prgrm B and when I click F8, it shows me the report output, In short, it doesnt return back to Prgrm A. It ends up showing me the alv report if Prgrm B even afetr using RETURN statement.
I want to get back to Prgrm A by fetching some data from Prgrm B.
Please let me know, if i am missing something.
Regards,
SeemaHi Seema,
Refer below code.
DATA: v_matnr LIKE mara-matnr.
DATA: t_listobject TYPE abaplist OCCURS 0 WITH HEADER LINE.
DATA: t_mara TYPE mara OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF t_ascilist OCCURS 0,
line(200).
DATA: END OF t_ascilist.
data var(3) type c.
SELECT-OPTIONS: s_matnr FOR v_matnr.
var = ' 3'.
START-OF-SELECTION.
SUBMIT ztestaks1 WITH s_matnr IN s_matnr EXPORTING LIST TO MEMORY
AND RETURN.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = t_listobject
EXCEPTIONS
not_found = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
CALL FUNCTION 'LIST_TO_ASCI'
* EXPORTING
* LIST_INDEX = -1
* WITH_LINE_BREAK = ' '
TABLES
listasci = t_ascilist
listobject = t_listobject
EXCEPTIONS
empty_list = 1
list_index_invalid = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
WRITE:/ 'Below are the lines from the submitted program.'.
LOOP AT t_ascilist.
WRITE:/ t_ascilist-line.
ENDLOOP.
SKIP 2.
ENDIF.
ENDIF.
IMPORT t_mara FROM MEMORY ID 'T_MARA'.
WRITE:/
'Here is the output from the table exported from the submitted program.'
LOOP AT t_mara.
WRITE:/ t_mara-matnr.
ENDLOOP.
Submitted program
REPORT ZTESTAKS1.
DATA: v_matnr LIKE mara-matnr,
v_maktx LIKE makt-maktx.
DATA: t_mara TYPE mara OCCURS 0 WITH HEADER LINE.
DATA: BEGIN OF t_makt OCCURS 0,
matnr LIKE makt-matnr.
DATA: END OF t_makt.
SELECT-OPTIONS: s_matnr FOR v_matnr,
s_maktx FOR v_maktx.
START-OF-SELECTION.
SELECT matnr INTO TABLE t_makt
FROM makt
WHERE matnr IN s_matnr
AND maktx IN s_maktx.
if not t_makt[] is initial.
SELECT * FROM mara
INTO TABLE t_mara FOR ALL ENTRIES IN t_makt
WHERE matnr = t_makt-matnr.
endif.
EXPORT t_mara TO MEMORY ID 'T_MARA'.
WRITE:/ 'This list is from the submitted program'.
SKIP 1.
LOOP AT t_mara.
WRITE:/ t_mara-mtart.
ENDLOOP.
Hopes this helps you.
Thanks,
Ashok. -
Calling an ABAP report from a web-dynpro view
Hi,
I have a web dynpro view that i would like to call an ABAP program from. Any ideas how i can do this? Thanks,
Samir
Edited by: Samir Vora on Feb 18, 2008 11:12 AMHello Samir,
that would mean mixing two different ui technologies and hence it not possible. You can start the report in background though. Please refer to [this list of restrictions and limitations|http://help.sap.com/saphelp_nw70/helpdata/en/46/82091e304559dbe10000000a1553f6/content.htm] regarding the usage of certain ABAP statements.
Best regards,
Thomas -
Calling an ABAP Report from ITS
Hi,
I am new to ITS and we have requirement, where i have to call an ABAP Report with selection screen.
Now my question is where to put the code to execute the report and what is the syntax?
Any suggestions/documentation would be of a great help.
Regards,
LalithHi Lalith,
Just pass the Tcode after the webgate followed by ! mark.
http://hostname:portno/scripts/wgate/<b>ztest!</b>
Rgds,
Jothi.P -
Calling an ABAP Report from the Web
Hello all,
Is there a way in WAD to have a web link call an ABAP report? I am trying to provide a link in my web template to allow users to launch the BEx Analyzer. When I look at transaction RRMX in the GUI, it appears to be calling the ABAP report RRMX_START_EXCEL. Can I use BSP to accomplish this?
Thanks in advance for any help you can provide,
ChrisOK, here is the code for my BSP page:
<%@page language="abap"%>
<%@extension name="htmlb" prefix="htmlb"%>
<html>
<% submit RRMX_START_EXCEL and return. %>
</html>
When I attempt to test it, however, I am receiving the following error:
The following error text was processed in the system BWS : Screen output without connection to user.
The error occurred on the application server sapbwsci_BWS_35 and in the work process 5 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Module: SEND_TAB of program SAPLGRAP
Function: GRAPH_RECEIVE of program SAPLGRAP
Function: REGISTRY_GET of program SAPLGRAP
Form: PREPARE_LAUNCHER of program SAPLRSAH
Function: RSAH_LAUNCH_EXCEL of program SAPLRSAH
Form: START_EXCEL of program RRMX_START_EXCEL
START-OF-SELECTION of program RRMX_START_EXCEL
Any ideas??
Thanks again!! -
Calling an ABAP Report from GRC Portal
Hello...
we want to know how an ABAP report will be called from GRC Portal ? How will be the linkage between these two and can u please explain the same .
Thanks in advance.
Regards,
KY.I suppose you want to add additional portal content to GRC PC/RM 3.0 portal, then follow the steps bellow:
In backend ABAP box,
- Create an transation code for the ABAP report
In the front end Portal box,
- Create an iView using the template "SAP Transaction iView"
- Add this iView to your protal role, either directly added to portal role or via workset
Done. -
Is it possible to call one mathscript function from another?
HI iam bahrath..i need call the operation takin place in one mathscript in another..is it possible?pls help..
Thanks for your concern..let me explain my project.Iam actually developing a system which provides the stress strain relationship of a material..For calculating strain which is nonlinear in this case we are using image processing techniques.We take a picture of the system initially with light markers and we find the centroid of all the markers(i use four of them).After the force is applied on the particle the centroid of the markers change as the marker positions change.I use this change in the centroid and calculate the strain.Now, 90% of the code is ready in matlab(jus capturing image and usin is needed).But i have been asked to implement it in labview.so iam tryin to put the code in mathscript and try.But the problem i face is incompatibility of many functions like imshow,input etc.so im implementin parts of the code inlabview mwthod and rest in mathscript.In matlab code i have two files and call the function in in another file from one file..thus i thought i might use two mathscripts and call one from the other..pls help.
-
Calling one java program from another
Hello,
How can I start another java program from one? Lets
say I want Second.java to start by calling it from
First.java. How do I do it? The two programs are given
below. Any help is appreciated.
Thanks,
Amanda
First.java
import java.io.*;
import java.lang.reflect.*;
public class First
public static void main(String[] args)
Process theProcess=null;
System.out.println("Hello World from First.java!");
String second=new String("Second.java");
//System.load(second);
//Runtime.getRuntime().load(second);
try
theProcess=Runtime.getRuntime().exec( "Second.java"
System.out.println("after exec");
catch (IOException ioe)
System.out.println(">>IOException thrown in
First.java while calling
Second.java."+ioe.getMessage());
Second.java
public class Second
public static void main(String[] args)
System.out.println("Hello World from Second.java!");
}Thanks, warnerja
What if Second.java is on a remote machine i.e.
First.java and second.java are on different machines?
Will I have to use RMI?Well, you'd have to do some kind of remote invocation. Depends on what kinds of apps house the classes. There are all kinds of ways - web services, servlets, RMI, (maybe others...)
That's a totally different question than what you originally posted, and would have been very relevant to say so in the first place. -
Calling one WTC service from another WTC service
Hi,
We have a service called COLLECT defined in our WTC server.
Recently we've added a second service called SUM in the same WTC server.
We were wondering if it's possible to call SUM from COLLECT, and if it is, what configuration changes should be made in order to do it?
Currently both services are exported by the WTC server (and imported by our Tuxedo).
Thanks,
ShyHi Shy,
Although I haven't tried it, I'm fairly certain you cannot call a Tuxedo EJB using tpcall() within a WTC based application. What I normally advise customers to do when writing a Tuxedo EJB is to implement two separate interfaces. One is obviously the TuxedoService interface that all Tuxedo EJBs must implement. In particular you must implement the service() method that accepts a TPServiceInformation instance that provides access to the typed buffer passed to the EJB. Normally one then extracts the necessary fields or information from the typed buffer, performs whatever necessary business logic needs to be performed, and then constructs a reply typed buffer.
What I recommend is that you separate out the business logic into a separate interface and have your class implement both interfaces. The service() method would only deal with the marshalling/unmarshalling of the information contained in the typed buffers, and leave all business processing to methods on the second interface. Then if you need to access another "service", you would use the second interface, thus saving you from all the typed buffer manipulation.
So in your case, the business logic in the second interface of the COLLECT implementation would simply call the SUM implementations second interface (the EJB's business logic) instead of trying to call a Tuxedo service. While this helps in reuse of the business logic, it doesn't address the issue of trying to transparently move a service implementation from say Tuxedo to WLS. If that's what you are trying to do, you might try exporting the SUM service from WTC to the Tuxedo domain gateway, and then importing the SUM service from that gateway. This would likely cause a network round trip if it works, but it's something to consider.
Another alternative is to use something like the Apache Tuscany/Java project and build your Java applications using SCA. Tuxedo SALT includes a Tuscany/Java binding extension that allows Tuscany/Java applications to transparently call Tuxedo services. The choice of whether to actually call a Tuxedo service or call a Tuscany/Java based SCA service is determine by the binding selection and not changes in your code. Just a thought...
Regards,
Todd Little
Oracle Tuxedo Chief Architect -
How to call one Main MXML from another main MXML file and pass values between them?
Hi,
I am trying to populate a datagrid from a XML file ,which I have done successful
I am able to get data out of the datagrid on clicking on any element
Now when I click on any element in datagrid I want call a new mxml file which is also have Aplication tag and I want to pass that value of clicked element to it
This is the code I am using for getting data from XML into data grid in 1st MXML file and the XML file used.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" initialize="exp.send()">
<fx:Declarations>
<s:HTTPService id="exp" url="expLab1.xml" result="
resultHandlerQuestionBar(event)"/>
</fx:Declarations>
<s:Panel x="74" y="218" width="485" height="333" title="Work On Configured Experiments" id="p1" fontSize="14" chromeColor="#9BFDAB" dropShadowVisible="false" contentBackgroundColor="#E4EEE6" contentBackgroundAlpha="1.0" backgroundColor="#67B6AC" textAlign="left">
<mx:DataGrid x="35" y="33" width="338" height="88" dataProvider="{experimentdetails}" chromeColor="#FCFCFC" contentBackgroundColor="#FFFFFF" selectionColor="#FAFBFD" rollOverColor="#FCFDFF" focusColor="#FCFDFD" itemClick="onItemClick( event );">
<mx:columns>
<mx:DataGridColumn id="j1" dataField="experimentName" headerText="" itemRenderer="jaya">
</mx:DataGridColumn>
</mx:columns>
</mx:DataGrid>
</s:Panel>
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.events.FlexEvent;
import mx.events.ListEvent;
import mx.rpc.events.ResultEvent;
[Bindable]
private var workbenchname:ArrayCollection;
//private var a:String;
private function resultHandlerQuestionBar(event:ResultEvent):void
experimentdetails=event.result.List.experimentList.experiment;
[Bindable]
private var experimentdetails:ArrayCollection;
private var alert:Alert;
private var data:String;
private function onItemClick( e:ListEvent ):void {
data= experimentdetails.getItemAt(e.rowIndex).experimentName.toString();
alert=Alert.show(experimentdetails.getItemAt(e.rowIndex).experimentName.toString());
]]>
</fx:Script>
</s:Application>
and the xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<List>
<workbench>Basic Movement</workbench>
<experimentList>
<experiment>
<experimentName>Distance with varying time</experimentName>
<Rating>2</Rating>
<expNO>1</expNO>
</experiment>
<experiment>
<experimentName>Distance with Constant time</experimentName>
<Rating>1</Rating>
<expNO>2</expNO>
</experiment>
<experiment>
<experimentName>Time taken while decelerating</experimentName>
<Rating>3</Rating>
<expNO>3</expNO>
</experiment>
</experimentList>
</List>
Now the code for 2nd MXML is as follows
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<s:Label text="lable1" >
</s:Label>
</s:Application>Check out ExternalInterface class:
http://livedocs.adobe.com/flex/3/html/help.html?content=passingarguments_2.html
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex Training and Support Services -
Calling one business role from another business role on CRM web client
Hi,
I have a requirement where, one business role can be launched just by click a navigation link on another.,
For eg. in a UTIL_IC role frame work , I add a link by clicking on it, I go to UITIL_SALES role.
This is required so that person need to launch crm_ui_frame again if he wants to login for another business role assigned to him..
Please suggest the solution if possible for this one.
Regards,
Pratyasha ShishodiaHi Kavita,
We are facing the same problem. Did you manage to solve this and if yes how?
Kind regards
Lars -
Not able to execute one Java program from another one via. exec()
Hi,
I am new to this forum, so I might be asking a very trivial quetion.
My program Ap1 is :
class Ap1
public static void main(String a[]) throws Exception
Runtime rt=Runtime.getRuntime();
Process p=null;
p=rt.exec("javac,Pr.java");
Runtime.getRuntime().exec("javac,Pr.java");
When I run the above program, I get below error at the line 7(bold one):
D:\batchwe>javac Ap1.java
D:\batchwe>java Ap1
Exception in thread "main" java.io.IOException: CreateProcess: javac,Pr.java err
or=2
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
at java.lang.Runtime.exec(Runtime.java:591)
at java.lang.Runtime.exec(Runtime.java:429)
at java.lang.Runtime.exec(Runtime.java:326)
at Ap1.main(Ap1.java:7)
Path is set as below(which seems correct):
D:\batchwe>path
PATH=C:\Program Files\Java\jdk1.5.0_05\bin
I am just wondering how to call one Java program from another one?!
Please help.
thanks
RashmiHi diptaPB,
Thanks for your suggestion.
Here is how I tried it again, but not getting the desired output:
Class Pr looks like below -->
class Pr
public static void main(String a[])
System.out.println("hi from process");
When I run 'Pr' from command prompt, i get the desired output:
D:\batchwe>java Pr
hi from process
However, when I call 'Pr' from another program Ap2.java, it seems that it does not call 'Pr':
class Ap2
public static void main(String a[]) throws Exception
Runtime rt=Runtime.getRuntime();
Process p=null;
String[] cmd=new String[2];
cmd[0]="javac";
cmd[1]="Pr.java";
p=rt.exec("cmd");
D:\batchwe>javac Ap2.java
D:\batchwe>java Ap2
************* no output appears here***********************
Looking forward for your help.
regards
Rashmi -
Regarding calling 1 report from another
Hello Friends,
Can u plz tell me how to call one report from another report.
Regards,
Drashanahi,
Use SUBMIT program statement
SUBMIT ZFIR001
chk this.
*Code used to populate 'select-options' & execute report
DATA: seltab type table of rsparams,
seltab_wa like line of seltab.
seltab_wa-selname = 'PNPPERNR'.
seltab_wa-sign = 'I'.
seltab_wa-option = 'EQ'.
load each personnel number accessed from the structure into
parameters to be used in the report
loop at pnppernr.
seltab_wa-low = pnppernr-low.
append seltab_wa to seltab.
endloop.
SUBMIT zreport with selection-table seltab
via selection-screen.
*Code used to populate 'parameters' & execute report
SUBMIT zreport with p_param1 = 'value'
with p_param2 = 'value'.
Other additions for SUBMIT
*Submit report and return to current program afterwards
SUBMIT zreport AND RETURN.
*Submit report via its own selection screen
SUBMIT zreport VIA SELECTION-SCREEN.
*Submit report using selection screen variant
SUBMIT zreport USING SELECTION-SET 'VARIANT1'.
*Submit report but export resultant list to memory, rather than
*it being displayed on screen
SUBMIT zreport EXPORTING LIST TO MEMORY.
Once report has finished and control has returned to calling
program, use function modules LIST_FROM_MEMORY, WRITE_LIST and
DISPLAY_LIST to retrieve and display report.
\[removed by moderator\]
rEGARDS
Edited by: Jan Stallkamp on Jul 29, 2008 5:25 PM
Maybe you are looking for
-
Is anyone able to help me with how I have each ipad set up with only what that person wants on it. Currently we all get each other's apps etc and this is becoming a pain.
-
Very odd and very large file found in system library: maremoted
Hello, Using a single 1.25 G4 with 10.3.9. It's been acting up and running out of space. We located a file called maremoted, (which we're guessing is some kind of Remote Daemon), fil, which is upwards of 30 GB. It's run by the root user and trying to
-
Problems with document merge?
Hi, I have installed JDeveloper 9i rc2 and the following code (it runs correctly on JDeveloper 3.2.3) Document d = new XMLDocument(); d.appendChild(d.createElement("d")); Document d2 = new XMLDocument(); d2.appendChild(d2.createElement("d2")); Docume
-
i cant run the programme as my c++ is having the error where all the source files cannot be opened. How can i fixed it?
-
Long List Of CFLOGIN Roles and Performance
I have a very long list of Roles for the "roles" attribute of cflogin (around 60). Is this going to be a severe performance problem? Boybles