Calling custom report from seeded spawned program
Hi,
I dont know how to call a custom report(ie.,My own report) when Dunning letter generate is kicked off rather than calling the original programs(ie., Dunning letter print from dunning letter generate etc).
thanks in advance.
Hello vishwam,
as I remember, there is an option to keep the dunning conc request assigned but change to executable to your own.
Keep in mind that this way is not fully supported, but it should work.
Regards
Volker
Similar Messages
-
Calling a report from module pool program
Hi all,
I had a requirement where I need to call a report from the module pool program where in when we click REPORT button, it should display the report output in the another screen.
Can we do by calling screen after pushing REPORT button. If so, where we should write that code ( In pbo or pai). Please give me an idea.
Thanking you,
Regards,
Murali Krishna TUse submit syntax.
Press F1 on submit, Donot use return statement with it.
If so, where we should write that code ( In pbo or pai).
Please understand about these two events before doing the requirement. -
Calling a report from a executable program
Hi All,
i want to call a report which is generated by tcode CO88 from a executable program. I want to pass the values of order from the exe program only. But my requirement is such that i want co88 to process only open orders, so please suggest how can i do that.
thanks in advance.
Pankaj Sharmahi,
chk this sample.
*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.
rgds
anver
if hlped pls mark points -
How to call & pass values to custom page from seeded page table region
Hi All,
can anyone tell me how to call & pass values to custom page from seeded page table region(Attribute is not available in seeded page VO)
it is urgent. plssss
Regards,
purnaHi,
Yes, we do this by extending controller, but you can also try this without extending controller.
1. Create Submit Button on TableRN using personalization.
2. Set "Destination URI" property to like below
OA.jsp?page=/<yourname>/oracle/apps/ak/employee/webui/EmpDetailsPG&employeeNumber={@EmployeeId}&employeeName={@EmployeeName}&retainAM=Y&addBreadCrumb=Y
Give your custom page path instead of EmpDetailsPG.
EmployeeId and EmployeeName are VO attributes(Table Region)
If you dont have desired attribute in VO, then write logic in your custom page controller to get required value using parameters passed from URL path.
In this case, only personalization will do our job. Hope it helps.
Thanks,
Venkat Y. -
Dear all,
I am trying to create a customer from external system through bapi. For this is i have to follow these steps.
1) I am trying to call a report from external system through bapi.
2) I want to pass data from bapi to a bdc program and run it to create a customer.
3) After creating a customer I need to send the ceated customer no again to the bapi from where i passed the data to bdc.
is it possible .
Give me a good idea on this how to work with it.
Regards,
Madhu.Hi Madhu,
SAP has already given standard BAPI to create customer creation "BAPI_CUSTOMER_CREATEFROMDATA". So there is no need for you to create any thing new. Jut test this BAPI first whether this suit your requirement or not. If it satisfy your requirement then call it directly from external system. On how to call this BAPI or other BAPis searc google or SDn you will definetaly find something.
second approach is if nothing works for you( No BAPI satisfy your requirement) then only go for BDC aapproach. To do that, create a RFC function module( BAPi and RFC FM are diff thing, they looks same but they are not ). Inside your RFC FM directly write the BDC code to create customer.
Regards
Anurag -
Calling a report from function module
Hi Friends,
I have requirement for Function Module i.e. we will add the button to the standard T-code and ( Function added in config ) then
Function to be called from Customizing
Program A called from customizing function
CalculationPDFFunction is called from program A.
So can any one help me the logic for "calling a report from function module ".
Thanks in Advance.
Regards,
OSReddy.
Edited by: OSReddy on Sep 23, 2011 7:31 AMHi Jaya,
Yes. It is possible to call ur custom program using SUBMIT statement.
1. If u have data to pass then build table type RSPARAMS and use below statement.
data:
rspar_tab TYPE TABLE OF rsparams,
rspar_line LIKE LINE OF rspar_tab,
SUBMIT report1 WITH SELECTION-TABLE rspar_tab
AND RETURN.
1. If u want to create variant to the program and use that. use the below statement .
SUBMIT report1 USING SELECTION-SET 'VAR1' "variant
AND RETURN.
Regards,
Venkat.O -
Calling a report from Module Pool
While calling a report from the module pool I'm not able to display th alv. The skeleton of the ALV is coming. But the data and headings are also not displayed.
But where as calling the same program from a report it is coming properly. can somebody please guide me where did I go wrong?MODULE user_command_1001 INPUT.
w_ok_code = ok_code.
CLEAR ok_code.
CASE w_ok_code.
WHEN 'BACK'.
LEAVE PROGRAM .
WHEN 'CREATE'.
CALL TRANSACTION 'Z_FIRST_TIME'.
WHEN 'SYNC'.
CALL TRANSACTION 'Z_SYNC'.
WHEN 'APPROVE'.
SUBMIT zds_xx_approval_status WITH po_aname EQ sy-uname AND RETURN.
WHEN 'OVERVIEW'.
PERFORM show_all_reqids.
ENDCASE.
ENDMODULE. -
CALL a report from WDA using SUBMIT to sap-spool
Hi,
I need to call a report from one of the methods of a WDA application.
The out of this report is a sapscript. I want show it in WDA (PDF).
The report is called when a user clicks EXECUTE button.
The piece of the code is:
call function 'GET_PRINT_PARAMETERS'
exporting
immediately = 'X'
new_list_id = 'X'
no_dialog = 'X'
receiver = sy-uname
release = 'X'
sap_cover_page = 'X'
importing
out_archive_parameters = t_arcpar
out_parameters = t_pripar
valid = i_valid
exceptions
archive_info_not_found = 1
invalid_print_params = 2
invalid_archive_params = 3
others = 4.
submit hbrcced0
with pnppernr-low eq i_pernr
with pnpbukrs-low eq t_p0001-bukrs
with pnpbegda eq i_begda
with pnpendda eq i_endda
with p_expot eq ''
with ano eq v_gjahr
with respcc eq v_sachn
to sap-spool
spool parameters t_pripar
archive parameters t_arcpar
without spool dynpro
and return.
if sy-calld eq ''.
message 'err' type 'E'.
else.
If i execute this code in WDA, the sy-calld never is equal 'X'.
But if i execute it in program (SE38) the sy-calld is 'X'.
How i can call the program 'hbrcced0' in WDA ?
Cheers,
Silvio GaleryHi Silvio,
a submit REPORT to spool does work from WDA.
ONLY when "and return" is used.
You have that, so it should work.
Note you had print immediate on, so it will be output on printer,
and not available to read after the call.
(which option was the keep after print?, I would have to check docu)
The sy-calld will be set to X inside the REPORT when it is running.
After the submit has run back inside WDA it is of course reset to space again.
Cheers
Phil. -
Out put file is not genrated when calling xml reports from OAF page
Dear all
i am calling xml reports from OAF page
the out put file is not generated
i am writing this code
public int tradingrequest(String quoid, String costoder,int orgid)
try
OADBTransaction tx = (OADBTransaction)getOADBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName =
"XXCRM"; //Application that contains the concurrent program
String cpName = "XXCRM_COSTSHEET"; //Concurrent program short name
String cpDesc =
"Trading Costsheet Report XXCRM"; // concurrent Program description
Number orgid1=new Number(orgid);
// Pass the Arguments using vector
Vector cpArgs = new Vector();
cpArgs.addElement(quoid);
cpArgs.addElement(costoder);
cpArgs.addElement(orgid1.toString());
// Calling the Concurrent Program
int requestId =
cr.submitRequest(applnName, cpName, cpDesc, null, false, cpArgs);
tx.commit();
System.out.println("Request ID is " + requestId);
return requestId;
} catch (RequestSubmissionException e)
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
in controller i am writing this code
OAMessageStyledTextBean y =
(OAMessageStyledTextBean)webBean.findChildRecursive("quotationid");
OAFormValueBean z =
(OAFormValueBean)webBean.findChildRecursive("costorder");
String quoid = y.getValue(pageContext).toString();
String costorder = z.getValue(pageContext).toString();
System.out.println("The quotation id and costing order are....." + quoid +
" " + costorder);
/*if click on run report button to run the report*/
if ("Viewreport".equals(pageContext.getParameter(EVENT_PARAM)))
if (tsflag.equals("Y"))
int requestid = am.servicerequest(quoid, costorder, orgid);
String url =
"OA.jsp?akRegionCode=FNDCPREQUESTVIEWPAGE&akRegionApplicationId=0&retainAM=Y&addBreadCrumb=Y&REQUESTID=" +
requestid;
pageContext.setForwardURL(url, null,
OAWebBeanConstants.KEEP_MENU_CONTEXT, null,
null, true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES,
OAWebBeanConstants.IGNORE_MESSAGES);
when i call the report from oaf page the request id is coming
when i click on view output i am getting this message
Error
The concurrent request 7335031 did not create an output file.
WHEN I GOTO FIND REQUESTS PAGE QUERY THIS REQUEST ID I AM GETTING THE OUTPUT IN XM FILE
Regards
Sreekanthjava.io.FileNotFoundException: \..\..\..\xdoAqdFFZfuuJ051010_0628487460.fo (The system cannot find the path specified)
MY CO code
if("GenerateReport".equals(event))
// Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
try {
// Hashtable hashtable = new Hashtable(1);
// hashtable.put("TruckBookingRefNum",trucknum);
// System.out.println("test"+trucknum);
ServletOutputStream os = response.getOutputStream();
// Set the Output Report File Name and Content Type
String contentDisposition = "attachment;filename=LF Cargo Summary Report.htm";
response.setHeader("Content-Disposition",contentDisposition);
response.setContentType("application/HTML");
// Get the Data XML File as the XMLNode
XMLNode xmlNode = (XMLNode) am.invokeMethod("getTestDataXML");
ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
xmlNode.print(outputStream);
ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
System.out.println(" ByteArrayInputStream.ByteArrayOutputStream"+pdfFile+inputStream);
//Generate the PDF Report.
TemplateHelper.processTemplate(
((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
"LFCUST",
"XXLFCARSUM_TARGET",
"English",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
"US",//((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
inputStream,
TemplateHelper.OUTPUT_TYPE_HTML,
null,
pdfFile);
// hashtable);
System.out.println(" TemplateHelper");
// Write the PDF Report to the HttpServletResponse object and flush.
byte[] b = pdfFile.toByteArray();
System.out.println(" byte"+b);
response.setContentLength(b.length);
os.write(b, 0, b.length);
os.flush();
os.close();
pdfFile.flush();
pdfFile.close();
catch(Exception e)
System.out.println(" inside catch");
response.setContentType("text/html");
throw new OAException(e.getMessage(), OAException.ERROR);
pageContext.setDocumentRendered(true);
Edited by: user9367919 on May 13, 2010 10:31 AM -
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 -
External reporting tool (Cognos) to produce customized reports from BPM 5.7
Can I use external reporting tool (Cognos) to produce customized reports from BPM 5.7? Is it possible to query BPM DB for historical data (not BAM dashboard)?
Hi Steve,
From memory, I think you can just use ContactCallDetail and Resource. Just look for calls where originatorType = 1 (for agent) and originatorID = resourceID of the agent. So your where clause would look something like:
WHERE
originatorType = 1 AND
originatorID = resourceID of the agent AND
LEN(destinationDN) > 7
Hope that helps.
Cheers,
Nathan -
Calling ABAP report from BEx query
Good day!
I want to call ABAP report from BEx query by right-clicking on the field and using context menu. I know that transaction RSBBS is used (sender-receiver connecting), but I don't know how to transfare data to ABAP program
In ABAP program I want to know at least data from those cell in BEx query, that was right-clicked.Depending on your requirement and environment, you have the following options:
1. Use an info spoke and make selections as you would in a query.
2. USe FM RS_VC_GET_QUERY_VIEW_DATA_FLAT to send the data to a file and your ABAP can read this file.
Ravi Thothadri -
How to Call Crystal Reports from Swing Application
Hi All,
I have a requirement for calling Crystal Report from Swing Application. Please let me know how can I do that, and also provide the Source code for calling the crystal report.
Thanks in advance.
Chandrahi
this is the code that i am using in my application which is similar to urs. but i am working with CR XI so make all the neccessary changes.
import java.awt.*;
import javax.swing.*;
import com.crystaldecisions.ReportViewer.*;
import com.crystaldecisions.reports.sdk.*;
import com.crystaldecisions.sdk.occa.report.reportsource.*;
public class HelloSwing
public static void createAndShowGUI()
try
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame("HelloWorldSwing");
frame.setTitle( "Testing Reports");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
ReportViewerBean viewer = new ReportViewerBean();
viewer.init( new String[0], null, null, null);
ReportClientDocument rpt = new ReportClientDocument();
rpt.open( "report path", 1 );
IReportSource rptSource = rpt.getReportSource();
viewer.setReportSource( rptSource );
frame.getContentPane().add( viewer, BorderLayout.CENTER );
frame.setSize( 700, 500 );
frame.setVisible(true);
viewer.start();
catch ( Exception exception )
System.out.println( exception.toString() );
public static void main(String[] args)
javax.swing.SwingUtilities.invokeLater(new Runnable()
public void run()
createAndShowGUI();
there are 23 jar files that u need to import into ur package. but remember that ReportViewerBean should be the first jar file in the list & it should be followed by jrcerom.jar
specify the key in the CRConfig.xml file (which also has to be imported in the package)
u can find these jar files in the common objects folder in your program files.
hope it helps. best of luck -
Possibility of calling standard actions from a java program
Hi ,
I am working for a project where customer wants to have option of saving orders as draft only and later convert to order if need be. However since we do not want many drafts to reside on server there is a need to delete these at a specified time. For draft orders I am using order templates since they stay in the database without getting converted to orders. Now I do not know how to go about the deletion part.
i need to write a program that would run on the server and which would fetch the templates (drafts) that have been created till a particular time and call the delete action of the template. Now the question is how do i call these actions from a java program where this java program will have to run on the server end (ie will be a backend process).
Please suggest.
Thanks
Roopalihello roopali,
you can create a separate thread that will run your
code that will check for stale drafts and delete them.
it is just like a session management program but here
we will be looking over the drafts and not the session
objects.
now if you want the invocation of the action from another
program, a socket program would suffice but opening ports
will cause you network connections thru firewall.
if you can make use of HTTP servlet as your service
provider e.g., you can then just pass some action params
to invoke it.
regards
jo -
Hi Expert,
I want to call a report from a form.My problem scenario like, a user is login to his account and there is a option called ADMIT CARD(Push Button).Now when he pressed the button a report will generate.I want that when he pressed the button the user id of the user will passed to the report and the report will generate corresponding to his details which was stored in the database.This scenario is like any online admit card.
Suppose I want a details report of employee whose employee_id=100.How could I pass this value(employee id) to report which will generate a report details.
Thanks,
TAPAN
Message was edited by:
user630863Thanks for replying.
Actually I am a beginner.I think that I have to use RUN_REPORT_OBJECT built-in.But I cannot understand the parameterlist.Can u plz give me any example or code then I am very thankful.
Suppose I want a details report of employee whose employee_id=100.How could I pass this value(employee id) to report which will generate a report details.
Thanks,
TAPAN
Maybe you are looking for
-
IPod not recognized by Windows, previously updated once on Mac
I've had this 30gb iPod for about a week, and have only been able to update it once. I updated it on my sister's iBook for convinence, and when I tried to update it on my Compaq Presario, it didn't recognize it and will only charge after I have reset
-
Cannot receive email from Yahoo
I have 2 POP email accounts from Yahoo. Both have worked fine for about a year. All of the sudden on Nov 1st, I can no longer receive email only on one of the accounts with Mac Mail. The second account continues to function fine. I also have no issue
-
Multiple users on a Bridge network. Some of us can see keywords and others cannot.
We have multiple users on Bridge. We set up a cache connected to our server that has tons of photos on it. When we type in a keyword, some of us can see it on our Bridge on our computers but others cannot. How can we all be in sync with our searching
-
Possible to Have Multiple Graphics Card Drivers Installed?
Is it possible to have both the nVidia propritary, nVidia legacy, and ATI open-source drivers installed all at the same time, because I have set up a portable Arch Linux system, and I want to have want to have 3D acceleration on all of them. My compu
-
You have not chosen to trust "USERtrust Legacy Secure Server CA"
Trying to start a Citrix Session from Safari. This has never been a problem before. Now I cannot access - I get error message You have not chosen to trust "USERtrust Legacy Secure Server CA". Downloaded latest Citrixviewer - still problem. It looks l