Table or report Used T-codes
Hi,
I want to find out the T-codes being used in our ECC prd system in the time frame-
So, is there any table or report available where used t-codes being stored?
Like we can find out the used t-codes from st03n tcode's transaction profile.
If anybody knows where the used transactions are stored then please let me know.
Thanks,
Sudip
I am not sure if this could help . Though it does not give the complete info , it does store some info. Check out the table
CDHDR and CDPOS. I saw a client using this table and a combination of other tables to find out which transactions in a role were used and which were not used. see if you can pitch this to any of ur friends and can give more info.
Edited by: venkatesh koukuntla on Jan 10, 2011 5:15 PM
Similar Messages
-
Opening XIR2 webi reports using C# code
Hi all,
Is it possible to open Xir2 webi reports using C# code.If so can u throw light on the same.Thanks in advanceCheck out the Dev Library:
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
You will find a scheduling Webi sample under the BusinessObjects Enterprise|Tutorials section.
You will the viewing code under the Report Engine .NEt Developers guide section under Application Essentials.
Jason -
Form on a table with report using DB Link
Hey Guys
How do i create a "Form on a table with report"?? using a database link. Under the "Table/View name" category when i provide the table name with the database link (like EMP@test), it compalins and says table or view does not exist and it only allows me to select from local tables. When i run "select 1 from emp@test" in sql commands window, it does return records so database link is working..
Any suggestions??yes, I know i can do that, but when i tried it, its not displaying the records that are in the table, so how can i delete an existing record. Its doesnt allow me to browse through the records. Atleast, in the other way, it creates an edit button on the left and clicking it will take you to a form when you can edit it, add/delete.....this is all really simply, only issue is how to incorporate database links in this.
-
How to get the filters of Webi document/Report using Java code in XI SDK.
Hi All,
I have a requirement where i have to extrcat filters from the Webi Document.using java SDK.
I am trying to find the class called "filterable"but not able to use in my java code and will get always
"java.lang.ClassCastException com.businessobjects.wp.om.OMDocument cannot be cast to com.businessobjects.rebean.wi.Filterable"
I am using the below java code like
ReportElement re=document.getStructure()
FilterContainer flt=((Filterable) re).getFilter()
I am stuck and need this in uregent.
Please help.Hi Rajeev,
To retrieve a FilterContainer you will need to traverse the report structure:
ReportStructure boReportStructure = boDocumentInstance.getStructure();
ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
FilterContainer boFilterContainer = null;
if (boReportContainer.hasFilter()) {
boFilterContainer = boReportContainer.getFilter();
} else {
boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
Hope this helps.
Regards,
Dan -
How do i display jasper reports using jsp
Can anyone help me to display jasper reports in jsp pages
Thanx in advancehi
Thank you for such a great answer.
I have a problem here,
When i generate report using this code all other report formats are generated very good, but the html report is not generated properly. i get nullpx in the img src e.g
<td><img alt="" src="nullpx" style="width: 20px; height: 1px;"/></td>
Please help me
and
Thanks in advance
snkr
Following is the html code of the generated report.
start--------------------------------------
=======================================================
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
a {text-decoration: none}
</style>
</head>
<body text="#000000" link="#000000" alink="#000000" vlink="#000000">
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td width="50%"> </td><td align="center">
<a name="JR_PAGE_ANCHOR_0_1"/>
<table style="width: 620px" cellpadding="0" cellspacing="0" border="0" bgcolor="white">
<tr>
<td><img alt="" src="nullpx" style="width: 200px; height: 1px;"/></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 1px;"/></td>
<td><img alt="" src="nullpx" style="width: 200px; height: 1px;"/></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 1px;"/></td>
<td><img alt="" src="nullpx" style="width: 135px; height: 1px;"/></td>
<td><img alt="" src="nullpx" style="width: 45px; height: 1px;"/></td>
<td><img alt="" src="nullpx" style="width: 20px; height: 1px;"/></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 30px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 60px;"/></td>
<td colspan="5" valign="middle" style="text-align: center;"><span style="font-family: sansserif; font-size: 20.0px; font-weight: bold;">
Report Background Demo
</span></td>
<td colspan="2"><img alt="" src="nullpx" style="width: 65px; height: 60px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 13.0px; font-weight: bold;">Parent_ID</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 13.0px; font-weight: bold;">Product_ID:</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 13.0px; font-weight: bold;">Name:</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">0</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Colour Cosmetcis</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-001</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Lipsticks</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-321</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Eye Shadow</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Shankar</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322-001</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">test</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-322-002</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Parikchya</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-323</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">test</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-324</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">first</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-324</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">001-324-001</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">first</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">0</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">hair Cleaner</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002-001</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Kumar</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002-002</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">Magilla Gorilla</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">002-003</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">astrigent</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 6px;"/></td>
</tr>
<tr valign="top">
<td><img alt="" src="nullpx" style="width: 20px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">0</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">003</span></td>
<td><img alt="" src="nullpx" style="width: 10px; height: 24px;"/></td>
<td colspan="3"><span style="font-family: Times; font-size: 15.0px; font-weight: bold;">test1</span></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 96px;"/></td>
</tr>
<tr valign="top">
<td colspan="8"><img alt="" src="nullpx" style="width: 640px; height: 170px;"/></td>
</tr>
</table>
</td><td width="50%"> </td></tr>
</table>
</body>
</html>
end------------------------------
======================================================== -
Form on Table with Report works in one environment but not in another.
Here's a short description of the problem:
Created a form on a table with report (using the wizard) in an ApEx application. The form and report work perfect in development environment. Once the application is moved to the Test environment, the insert feature of the form does not work. We have verified that the underlying table the form is based on is there with all the fields, primary key, sequence and trigger.
Any ideas?
MarcBen,
I assume that apex_public_user has all the approporiate privilegesapex_public_user requires no privileges other than those it is created with during installation and the execute privileges on procedures it may acquire as URL-invokable procedures are developed and registered.
Marc - What are the symptoms of the problem (insert does not work) ? What does the debug output show when you run the page in debug mode? Does the "request" value of the button (create button?) match one of the request values recognized by the DML process?
Scott -
How to create report using Procedure.
Hi All,
I want to create report in apex.But i do not have sql code.I have one procedure.Is it possible to create report using this procedure in apex.
CREATE OR REPLACE PROCEDURE headcsv_prc2
AS
CURSOR cr_header
IS
SELECT ood.organization_code, fm.formula_no AS "FORMULA_NAME",
fm.formula_vers AS "FORMULA_VERSION",
fm.formula_desc1 AS "FORMULA_DESC",
DECODE (fm.formula_status,
100, 'New',
400, 'Approve for Laboratory Use',
700, 'Approve for General',
800, 'On Hold',
900, 'Frozen',
1000, 'Obsolete/Archived'
) AS "FORMULA_STATUS",
DECODE (fd.line_type, '1', msib.segment1) product,
DECODE (fd.line_type, '-1', msib.segment1) ingrediant,
DECODE (fd.line_type, '2', msib.segment1) AS "BY_PRODUCT",
DECODE (by_product_type,
'W', 'Waste',
'R', 'Rework',
'Y', 'Yield',
'S', 'Sample',
NULL
) AS "BY_PRODUCT_TYPE"
FROM org_organization_definitions ood,
fm_form_mst fm,
fm_matl_dtl fd,
mtl_system_items_b msib
WHERE ood.organization_id = fm.owner_organization_id
AND fm.owner_organization_id = msib.organization_id
AND msib.organization_id = fd.organization_id
AND fd.organization_id = ood.organization_id
AND fm.formula_id = fd.formula_id
AND msib.inventory_item_id = fd.inventory_item_id
-- and fm.FORMULA_NO like'%TEA%'
AND fd.line_type IN ('1', '2', '-1')
GROUP BY ood.organization_code,
fm.formula_no,
fm.formula_vers,
fm.formula_desc1,
fm.formula_status,
fd.line_type,
msib.segment1,
by_product_type
ORDER BY fm.formula_no, fm.formula_vers;
BEGIN
DBMS_OUTPUT.put_line ( INITCAP ('ORGANIZATION CODE')
|| ','
|| INITCAP ('FORMULA NAME')
|| ','
|| INITCAP ('FORMULA VERSION')
|| ','
|| INITCAP ('FORMULA DESC')
|| ','
|| INITCAP ('FORMULA STATUS')
|| ','
|| INITCAP ('PRODUCT')
|| ','
|| INITCAP ('INGREDIANT')
|| ','
|| INITCAP ('BY PRODUCT')
|| ','
|| INITCAP ('BY PRODUCT TYPE')
FOR ch IN cr_header
LOOP
DBMS_OUTPUT.put_line ( ch.organization_code
|| ','
|| ch.formula_name
|| ','
|| ch.formula_version
|| ','
|| '"'
|| ch.formula_desc
|| '"'
|| ','
|| ch.formula_status
|| ','
|| ch.product
|| ','
|| ch.ingrediant
|| ','
|| ch.by_product
|| ','
|| ch.by_product_type
END LOOP;
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line ('Error No: ' || SQLCODE || 'Error Msg: '
|| SQLERRM
END;
EXEC HeadCSV_Prc2
Thanks,
RaghuRaghuVarma wrote:
I created one report using sql code.(Ex: select * from emp).
But my higher authorities want that for security purpose They will change the code into java.
What "higher authorities"? What "security purpose"?
In this process they changed my code as a procedure.Finally they give that java code.they tell to me please fix in apex.
Do these "higher authorities" know anything about APEX? What does the Java code actually do? Have you asked them how their approach is to be integrated into APEX?
There is no reason why a properly written Java stored program cannot be used in APEX, provided that whatever it is doing makes sense in an APEX/web context, and isn't some nonsense like using DBMS_OUTPUT to generate a CSV.
I tried so many ways.But it is not fixed.Different Different errors will occurs.
Tried what? Demonstrate what you have tried, preferably using examples on apex.oracle.com.
How to solve this.
How to solve what? No clearly defined problem or requirement has been identified.
Describe the the problem/requirement (not your attempted solutions) in detail.
How to ask questions
Re: 2. How do I ask a question on the forums?
Include as much relevant information with your question as possible, starting with:
APEX version
DB version, edition and host OS
Web server architecture (EPG, OHS or APEX listener), platform, and host OS
Browser(s)/version(s) used
Theme
Templates
Region type(s) -
Regarding sales report using MC+E
Hi all,
We are viewing sales report using T-Code MC+E. In the main screen there is a variant for the selection of period. The period we are giving there is pulling up calender year. We want it to pick Fiscal Year instead of Calender Year.
Is there any where in the configuration that we can make that setting on.
Can any one suggest me to resolve this issue. Let me know if I am not clear with anything.
Thanks in advance
Ravi BoppanaHi,
I was trying to enter my fiscal period in the same field you instructed me to. When i went to OM01 there are no entries there. So should I create a new entry there. Can you pls assist me.
Thanks in advance,
Ravi Boppana -
Tracking of changes made using T,codes CJ32, CJ37
Hello experts,
I would like to know the changes made(report) using T.Codes CJ32, CJ37, is there any report or T.code which shows the details of changes made by usiong these T.Codes.
Thanks in advance
Regards,
ChannaHi,
Check CJ3B or CJI8 transactions to see the changes like intial budget, supplement, return, transfers etc.
Regards,
Sandeep -
BUG: Apex 4.0.1 form on table with report. Not passing ID correctly
I'm trying to create a form on a table with report using the wizard. I opted for a classic report page.
The edit link on the report page does not work. The link looks like this:
http://ngdwpc3:7777/pls/apex/f?p=101:15:1800428764039812::::P15_ID:#ID#
This is clearly wrong because one would expect a value to be passed and not a column name.
Looking at the generated report page I get 60 columns. This seems to be a result of the setting:
no-checked :Use Query-Specific Column Names and Validate Query
checked :Use Generic Column Names (parse query at runtime only)
The ID column in the table is mapped to COL01.
Changing the value being passed in the link columns to #COL01# results in the correct behaviour.
My guess is that the option "Use Query-Specific Column Names and Validate Query" is the correct setting for the generated report.
ReneYes, I guess this is a Bug.
1. When you speciify a WHERE clause in the Wozard it adds extra quotes when appending the WHERE into the Report SELECT.
I think thats the root cause, all others just follow as a consequence.
a. Because the query cannot be parse ( two single quotes) the Use Generic Column Names (parse query at runtime only) is automtacillay set
b. This leads to COL01 to COL60
c. Which is turn leads to the link not working.
I could easily recreate the scenario.
To fix it I did the following
1. Removed the extra quotes from the query
2. Selected Use Query-Specific Column Names and Validate Query and Saved
It started working correct.
I suggest you edit your Thred name add BUG at the begining so that it gets spotted by Oracle folks on the forum.
Regards -
Error in Printing Crystal Report Directly to Printer using SDK Code
Hello ,
I am trying to print a crystal report created in SAP Crystal Reports 2008 through SDk Code using one parameter
as (Document Number).But While running the Code the Report is not getting printed and also the system is
not able to fetch the correct data in the report using the supplied parameter .
I am using Visual Studio 2005 Crystal Report dll s in my code :-
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.CrystalReports
Imports System
Imports System.Data.SqlClient
Imports System.IO
For Clarification i am pasting my code below :-
Dim oRpt As ReportDocument
oRpt = New ReportDocument
oRpt.Load(Path)
With crConnectionInfo
.ServerName = Server
.DatabaseName = Database
.UserID = User
.Password = Password
End With
CrTables = oRpt.Database.Tables
For Each CrTable In CrTables
crtableLogoninfo = CrTable.LogOnInfo
crtableLogoninfo.ConnectionInfo = crConnectionInfo
CrTable.ApplyLogOnInfo(crtableLogoninfo)
Next
oRpt.ParameterFields("Document Number").CurrentValues.AddValue(Parameter)
If Printer <> "" Then
oRpt.PrintOptions.PrinterName = Printer
End If
oRpt.PrintToPrinter(Copies, False, 0, 1)
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
Please suggest me what i have to do in my code to print the report with correct data in report.
Thanks & Regards,
Amitk
-
Well i m makin a report on material consumption which gets the opening stock, purchase, consumption & closing stock of all the materials in a particular month.
i m getting mblnr from mkpf table & then go to mseg table. but it is taking a lot of time. can i make it faster. how??hi,
can u paste ur code here to know the exact pblm. if u r using read table statement then use binary search option with it.
is u r using select in loop then avoid it and use for all entries to amke it faster.
it would be nice if u paste ur code to know the pblm clearly.
check tips in the run time analysis.
hope this helps u.
reward points if helpful. -
How to execute a report using a transaction code?
Hi team,
I am new in ABAP and I want to do a very simple report and then call this report using a transaction code.
Steps:
1) create the report (SE38)
the report is: Z_DEMO
2) generate a transaction code for this report (SE93)
note: the transaction code is ZDEMO
3) call the transaction generated on step 2
When I execute the report using SE38, everythig is ok and the records are inserted in my table zdemo2.
But when I call my transaction ZDEMO there is no insertion. Why?
The report ask for parameters and then fowards me to SAP's main menu.
Thanks,
Walter.
The report is:
REPORT Z_DEMO.
tables: zdemo2.
parameters:
nombre like zdemo2-nombre,
edad like zdemo2-edad.
data:
begin of tabla occurs 0,
nombre like zdemo2-nombre,
edad like zdemo2-edad,
end of tabla.
zdemo2-nombre = nombre.
zdemo2-edad = edad.
insert zdemo2.Hi,
While creating the transaction for your program
1>Make sure u give the program name and screen number
2>Important thing is a option "GUI SUPPORT"
Check all the checkboxes or atleast SAPGUI for Windows to ensure that the Code runs in SAP GUI.
Thank you. -
How to transfer data in change log table of dso to z-table using abap code
Hi can you please explain me how to transfer data in change log table of dso to z-table using abap code ,with out using Function module concept
PROGRAM NAME: ZBW_DELTA_TO_GSTAR **
report ZBW_DELTA_TO_GSTAR no standard page heading
line-size 120
line-count 75
message-id ZBW_MSG_CLS.
tables: ZGIV_DLTA_EBV_BB,
ZGIV_DLTA_EM2_BL,
ZGIV_DLTA_EM2_BK.
Selection Screen Definitions
SELECTION-SCREEN: BEGIN OF BLOCK INNER WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN: SKIP 1.
PARAMETERS: EBVBB RADIOBUTTON GROUP ROLL,
EM2BL RADIOBUTTON GROUP ROLL,
EM2BK RADIOBUTTON GROUP ROLL.
SELECTION-SCREEN: END OF BLOCK INNER.
Data: WS_UPDATE_FLAG Type C,
UCounter(9) Type N,
ICounter(9) Type N.
DATA: T_ZGIV_DLTA_EBV_BB Type Standard Table of ZGIV_DLTA_EBV_BB,
s_ZGIV_DLTA_EBV_BB LIKE line of T_ZGIV_DLTA_EBV_BB.
DATA: T_ZGIV_DLTA_EM2_BK Type Standard Table of ZGIV_DLTA_EM2_BK,
s_ZGIV_DLTA_EM2_BK LIKE line of T_ZGIV_DLTA_EM2_BK.
DATA: T_ZGIV_DLTA_EM2_BL Type Standard Table of ZGIV_DLTA_EM2_BL,
s_ZGIV_DLTA_EM2_BL LIKE line of T_ZGIV_DLTA_EM2_BL.
Standard Internal Tables - Describe usage.
data: begin of i_AEPSD_O0140 occurs 0.
include structure /BIC/AEPSD_O0140.
data: end of i_AEPSD_O0140.
data: begin of i_AEPSD_O0240 occurs 0.
include structure /BIC/AEPSD_O0240.
data: end of i_AEPSD_O0240.
data: begin of i_AEPSD_O0340 occurs 0.
include structure /BIC/AEPSD_O0340.
data: end of i_AEPSD_O0340.
data: begin of i_GIV_DLTA_EBV_BB occurs 0.
include structure ZGIV_DLTA_EBV_BB.
data: end of i_GIV_DLTA_EBV_BB.
data: begin of i_GIV_DLTA_EM2_BK occurs 0.
include structure ZGIV_DLTA_EM2_BK.
data: end of i_GIV_DLTA_EM2_BK.
data: begin of i_GIV_DLTA_EM2_BL occurs 0.
include structure ZGIV_DLTA_EM2_BL.
data: end of i_GIV_DLTA_EM2_BL.
Miscellaneous Program Variables and Constants.
TOP-OF-PAGE
top-of-page.
START-OF-SELECTION
start-of-selection.
Clear: i_GIV_DLTA_EBV_BB,
i_GIV_DLTA_EM2_BK,
i_GIV_DLTA_EM2_BL,
UCounter, ICounter.
IF EBVBB = 'X'.
PERFORM 100_EXTRACT_EBV_BB_DELTA_RECS.
ELSEIF EM2BK = 'X'.
PERFORM 100_EXTRACT_EM2_BK_DELTA_RECS.
ELSE.
PERFORM 100_EXTRACT_EM2_BL_DELTA_RECS.
ENDIF.
FORM 100_EXTRACT_EBV_BB_DELTA_RECS
FORM 100_EXTRACT_EBV_BB_DELTA_RECS.
Refresh: i_AEPSD_O0140,
i_GIV_DLTA_EBV_BB.
Clear: UCounter, ICounter, s_ZGIV_DLTA_EBV_BB .
Select * From /BIC/AEPSD_O0140
Into TABLE i_AEPSD_O0140.
IF SY-Subrc = 0.
LOOP AT i_AEPSD_O0140.
MOVE-CORRESPONDING i_AEPSD_O0140 TO s_ZGIV_DLTA_EBV_BB.
MOVE SY-DATUM to s_ZGIV_DLTA_EBV_BB-create_dt.
INSERT ZGIV_DLTA_EBV_BB FROM s_ZGIV_DLTA_EBV_BB.
IF SY-Subrc = 0.
ICounter = ICounter + 1.
ELSE.
UPDATE ZGIV_DLTA_EBV_BB FROM s_ZGIV_DLTA_EBV_BB.
IF SY-Subrc = 0.
UCounter = UCounter + 1.
ELSE.
Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. "100_EXTRACT_EBV_BB_DELTA_RECS
FORM 100_EXTRACT_EM2_BK_DELTA_RECS
FORM 100_EXTRACT_EM2_BK_DELTA_RECS.
Refresh: i_AEPSD_O0240,
i_GIV_DLTA_EM2_BK.
Clear: UCounter, ICounter, s_ZGIV_DLTA_EM2_BK .
Select * From /BIC/AEPSD_O0240
Into TABLE i_AEPSD_O0240.
IF SY-Subrc = 0.
LOOP AT i_AEPSD_O0240.
MOVE-CORRESPONDING i_AEPSD_O0240 TO s_ZGIV_DLTA_EM2_BK.
MOVE SY-DATUM to s_ZGIV_DLTA_EM2_BK-create_dt.
INSERT ZGIV_DLTA_EM2_BK FROM s_ZGIV_DLTA_EM2_BK.
IF SY-Subrc = 0.
ICounter = ICounter + 1.
ELSE.
UPDATE ZGIV_DLTA_EM2_BK FROM s_ZGIV_DLTA_EM2_BK.
IF SY-Subrc = 0.
UCounter = UCounter + 1.
ELSE.
Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. "100_EXTRACT_EM2_BK_DELTA_RECS
FORM 100_EXTRACT_EM2_BL_DELTA_RECS
FORM 100_EXTRACT_EM2_BL_DELTA_RECS.
Refresh: i_AEPSD_O0340,
i_GIV_DLTA_EM2_BL.
Clear: UCounter, ICounter, s_ZGIV_DLTA_EM2_BL .
Select * From /BIC/AEPSD_O0340
Into TABLE i_AEPSD_O0340.
IF SY-Subrc = 0.
LOOP AT i_AEPSD_O0340.
MOVE-CORRESPONDING i_AEPSD_O0340 TO s_ZGIV_DLTA_EM2_BL.
MOVE SY-DATUM to s_ZGIV_DLTA_EM2_BL-create_dt.
INSERT ZGIV_DLTA_EM2_BL FROM s_ZGIV_DLTA_EM2_BL.
IF SY-Subrc = 0.
ICounter = ICounter + 1.
ELSE.
UPDATE ZGIV_DLTA_EM2_BL FROM s_ZGIV_DLTA_EM2_BL.
IF SY-Subrc = 0.
UCounter = UCounter + 1.
ELSE.
Message E067 with SY-DATUM ' ' SY-UZEIT ' '.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDFORM. "100_EXTRACT_EM2_BL_DELTA_RECS
END-OF-SELECTION
end-of-selection.
perform D1000_REPORT_DATA.
D1000_REPORT_DATA
form D1000_REPORT_DATA.
*Display the title of the program
write: /25 SY-TITLE.
skip.
Diaplay the details of the user and time
write: /1 'Executed by', 15 SY-UNAME, 30 'Date',
38 SY-DATUM, 53 'Time', 60 SY-UZEIT.
skip 2.
write: / 'Delta Records have been extracted ',
/ 'Updates : ', UCounter,
/ 'Inserts : ', ICounter.
skip.
skip 3.
write: /20 'End of the report'.
endform. "D1000_REPORT_DATA
chgeck it out this also may hep you -
CSV output (export to excel) don't use right code table
CSV output (export to excel) don't use right code table. We use code table
8859-2 (reports and forms are OK). Why export to excel don't use this code table.
Thanks for answersYou could also take the example from my blob that Denes mentioned and instrument it to output in either CSV or HTML. This way, you could have a single procedure that worked for both formats.
All you would need to do is handle each field differently - pad a TD and /TD (with proper brackets, of course) if its HTML or just append a comma if it's CSV.
Thanks,
– Scott –
http://spendolini.blogspot.com/
http://sumnertech.com/
Maybe you are looking for
-
Getting this error: Problem signature: Problem Event Name: BlueScreen OS Version: 6.1.7601.2.1.0.256.4 Locale ID: 1033 Additional information about the problem: BCCode: 3b BCP1: 00000000C0000005 BCP2: FFFFF880
-
Could you give me an example use of the NationalInstruments.Analysis.Dsp.SignalProcessing.Integrate method? I want to integrate a signal but I am not sure what to use for the boundary conditions (initialCondition and finalCondition).
-
N8 022.014 UPDATE PROBLEM
Hi, i m trying to update my N8 via PC.....every thing goes right but when the file (RM-596_022.014_79.92_prd.core.fpsx) reaches the 125,452 KB updating process stops a moment and the said file starts downloading from 0KB again....what is wrong ? any
-
Populate check number and lockbox number.
Dear Friends. I need to populate the following: 1. BKPF-BKTXT should be populated with the Customer Check Number 2. BKPF-XBLNR should be populated with the Lockbox No. Please tell where we orginally enter data for check number and locbox number. In w
-
My restore from backup is frozen halfway into my photos. How do I get it to resume?
Does anyone have any suggestion as to how to resume a frozen restore? I don't want to lose my iCloud backup. I'vegot all my apps back, but only about 20% of my photos and it's just stuck. What do I do next?