How to use parameter in Reports
Guys
I am new to Oracle Reports. I have generated SQL Report. How can i use a parameter in the generated report. Lets assume I want to use Oraganization_ID(its a column name) in the parameter. How can i use it?
Regards
Deepak
Try ....
select ...
from ...
where Oraganization_ID = :p_Oraganization_ID
or
select ...
from ...
where Oraganization_ID in &p_Oraganization_IDs
Similar Messages
-
In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
1. The report has the following group settings:
Parent Group: SalesTerritoryGroup
Child Group: SalesTerritoryCountry
Child Group: CalendarYear
Details: SalesAmount
2. Add three parameters in the report:
GroupExpand:
Available Values: “Specify values”
Label: Yes Value: Yes
Label: No Value: No
Default Values: “Specify values”
Value: Yes
CountryExpand:
Available Values: “Specify values”
Label: Yes Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
Label: No Value: No
Default Values: “Specify values”
Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
YearExpand:
Available Values: “Specify values”
Label: Yes
Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
Label: No Value: No
Default Values: “Specify values”
Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
=IIF(Parameters!GroupExpand.Value="Yes", False, True)
Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
=IIF(Parameters!CountryExpand.Value="Yes", False, True)
=IIF(Parameters!YearExpand.Value="Yes", False, True)
6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
=IIF(Parameters!GroupExpand.Value="Yes", True, False)
7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
=IIF(Parameters!CountryExpand.Value="Yes", True, False)
=IIF(Parameters!YearExpand.Value="Yes", True, False)
After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
Note:
In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
Applies to
Reporting Services 2008
Reporting Services 2008 R2
Reporting Services 2012In SQL Server Reporting Services (SSRS), drill-down is an action we can apply to any report item to hide and show other report items. They all are ways that we can organize and display data to help our users understand our report better. In this article,
we are talking about how to use parameter to control the Expand/Collapse drill-down options in SSRS report.
Consider that the report has a dataset (dsSales) with following fields: SalesTerritoryGroup, SalesTerritoryCountry, CalendarYear, SalesAmount.
1. The report has the following group settings:
Parent Group: SalesTerritoryGroup
Child Group: SalesTerritoryCountry
Child Group: CalendarYear
Details: SalesAmount
2. Add three parameters in the report:
GroupExpand:
Available Values: “Specify values”
Label: Yes Value: Yes
Label: No Value: No
Default Values: “Specify values”
Value: Yes
CountryExpand:
Available Values: “Specify values”
Label: Yes Value: =IIF(Parameters!GroupExpand.Value="No",Nothing,"Yes")
Label: No Value: No
Default Values: “Specify values”
Value: =IIF(Parameters!GroupExpand.Value="No","No","Yes")
YearExpand:
Available Values: “Specify values”
Label: Yes
Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No",Nothing,"Yes")
Label: No Value: No
Default Values: “Specify values”
Value: =IIF(Parameters!GroupExpand.Value="No" or Parameters!CountryExpand.Value="No","No","Yes")
3. Right click SalesTerritoryCountry icon in the Row Groups dialog box, select Group Properties.
4. Click Visibility in the left pane. Select “Show or hide based on an expression” and type with following expression:
=IIF(Parameters!GroupExpand.Value="Yes", False, True)
Select “Display can be toggled by this report item” option, and select “SalesTerritoryGroup” in the drop down list.
5. Use the same method setting CalendarYear, (Details) drill-down with following expression:
=IIF(Parameters!CountryExpand.Value="Yes", False, True)
=IIF(Parameters!YearExpand.Value="Yes", False, True)
6. Click SalesTerritoryGroup text box in the tablix. Select InitialToggleState property in the Properties dialog box, and type following expression:
=IIF(Parameters!GroupExpand.Value="Yes", True, False)
7. Use the same method setting SalesTerritoryCountry, CalendarYear text box with following expression:
=IIF(Parameters!CountryExpand.Value="Yes", True, False)
=IIF(Parameters!YearExpand.Value="Yes", True, False)
After that, when we preview the report, we can use these three parameters to expand/collapse drill-down.
Note:
In our test, we may meet following issue. We can check the expression of InitialToggleState property to troubleshooting the issue.
Applies to
Reporting Services 2008
Reporting Services 2008 R2
Reporting Services 2012 -
JNI - How to use the error reporting mechanism?
I've developed a C++ DLL which is loaded from a commercial Win32 application (not written by me) as a plug-in for external calculations. On its initialization the C++ DLL launches the Java VM via the JNI invocation interface. When the DLL functions are called by the application, they forward the calls to Java objects inside the Java VM, again via JNI invocation interface.
This works well, but I have encountered a weird error.
From Java I open a JFrame containing a JTextArea as small console for debug output messages. If I turn output to this debug console off (my printToConsole routine checks whether a boolean flag is set), the string concatenation operator may lead to a crash of the Java VM.
For example, if in one of the Java functions called from the
DLL via JNI invocation interface the following is the first statement,
it leads to a crash of the Java VM and the application that loaded the C++ proxy DLL.
String test=""+Math.random(); // String test not used later
Interestingly, if I comment this statement out, the Java code works fine WITHOUT any crash. I've already thought about potential races and synchronization issues in my code, but I don't see where this is the case. And the string concatenation error fails as well, if I insert sleep() statements in front of it and at other places in the code. However, if I turn on log messages printed to my JFrame debug console (containing a JTextArea), the String concatenation works without problems.
So maybe the JNI interface has a bug and affects the Java VM; I don't see where my JNI code is wrong.
One problem is that I do not get any stdout output, as the C++ proxy DLL is loaded by the Windows application, even if I start the Windows application from the DOS command line (under Windows).
Does anyone know how to use the error reporting mechanism?
http://java.sun.com/j2se/1.4.2/docs/guide/vm/error-handling.html
Is it possible that the JVM, when it crashes, writes debug information about the crash into a file instead of stdout/stderr?
My C++ proxy DLL was compiled in debug mode, but the commercial application (which loaded the DLL) is very likely not.
I do not know hot to find the reason why the String concatenation fails inside the Java function called from the C++ DLL via JNI.Yes, I've initially thought about errors in the C++ code too. But the C++ code is actually very simple and short. It doesn't allocate anything on the C++ side. It allocates a couple of ByteBuffers inside the Java VM however via JNI invocation interface calls of env->NewDirectByteBuffer(). The native memory regions accessed via the ByteBuffers are allocated not by my own C++ code, but by the program that calls my DLL (the program is Metastock).
The interesting thing is that everything works fine if output to my debug console is enabled, which means that in the Java print routine getConsoleLoggingState() returns true and text is appended to the jTextArea.
static synchronized void print(String str)
{ MetaStockMonitor mMon=getInstance();
if ( mMon.getFileLoggingState() && mMon.logFileWriter!=null) {
mMon.logFileWriter.print(str);
mMon.logFileWriter.flush();
if ( mMon.getConsoleLoggingState() ) {
mMon.jTextArea1.append(str);
Only if output to the JTextArea is turned off (ie. getConsoleLoggingState()==false), the crash happens when the FIRST statement in the Java routine called via JNI invocation interface is a (useless) String concatenation operation, as described above.
String test=""+Math.random(); // String test not used later
Moreover, the crash happens BEFORE the allocated ByteBuffer objects are accessed in the Java code. But again, if console output is turned on, it works stable. If console output is turned off, it works when the (useless) String concatenation operation is removed in the Java routine called from C++.
I've already thought about potential races (regarding multiple threads), but this can be ruled out in my case. It almost appears as if the JVM can have problems when called by the invocation interface (I tested it with Java 1.4.2 b28).
All the calls between C++ and Java go ALWAYS in the direction from C++ code to Java. Unfortunately, there is no special JRE version with extensive logging capabilities to facilitate debugging. And the problem is not easily reproducible either.
JNIEnv* JNI_GetEnv()
JNIEnv *env;
cached_jvm->AttachCurrentThread((void**)&env,NULL);
fprintf(logfile,"env=%i\n",env);
fflush(logfile);
return env;
// function called by Metastock's MSX plug-in interface
BOOL __stdcall createIndEngine (const MSXDataRec *a_psDataRec,
const MSXDataInfoRecArgsArray *a_psDataInfoArgs,
const MSXNumericArgsArray *a_psNumericArgs,
const MSXStringArgsArray *a_psStringArgs,
const MSXCustomArgsArray *a_psCustomArgs,
MSXResultRec *a_psResultRec)
a_psResultRec->psResultArray->iFirstValid=0;
a_psResultRec->psResultArray->iLastValid=-1;
jthrowable ex;
jmethodID mid;
JNIEnv* env=JNI_GetEnv();
jobject chart=getChart(env, a_psDataRec);
if ( chart==NULL) {
return MSX_ERROR;
jobject getChart (JNIEnv* env, const MSXDataRec *a_psDataRec)
jthrowable ex;
jmethodID mid;
int closeFirstValid, closeLastValid;
closeFirstValid=a_psDataRec->sClose.iFirstValid;
closeLastValid=a_psDataRec->sClose.iLastValid;
long firstDate, firstTime;
if (closeFirstValid>=1 && closeFirstValid<=closeLastValid) {
firstDate = a_psDataRec->psDate[closeFirstValid].lDate;
firstTime = a_psDataRec->psDate[closeFirstValid].lTime;
} else {
firstDate=0;
firstTime=0;
jclass chartFactoryClass = env->FindClass("wschwendt/metastock/msx/ChartFactory");
if (ex= env->ExceptionOccurred() ) {
env->ExceptionDescribe();
env->ExceptionClear();
sprintf(sbuf, "DLL: Cannot find class ChartFactory\n");
printSBufViaJava(sbuf);
return NULL;
mid = env->GetStaticMethodID(chartFactoryClass, "getInstance", "()Lwschwendt/metastock/msx/ChartFactory;");
if (ex= env->ExceptionOccurred() ) {
env->ExceptionDescribe();
env->ExceptionClear();
sprintf(sbuf, "DLL: Cannot find method ID for ChartFactory.getInstance()\n");
printSBufViaJava(sbuf);
return NULL;
jobject chartFactory=env->CallStaticObjectMethod(chartFactoryClass, mid);
if (ex= env->ExceptionOccurred() ) {
env->ExceptionDescribe();
env->ExceptionClear();
sprintf(sbuf, "DLL: Exception while calling ChartFactory.getInstance()");
printSBufViaJava(sbuf);
return NULL;
mid = env->GetMethodID(chartFactoryClass, "getChartID", "(Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;Ljava/nio/ByteBuffer;IIIIIII)F");
if (ex= env->ExceptionOccurred() ) {
env->ExceptionDescribe();
env->ExceptionClear();
sprintf(sbuf, "DLL: Cannot find method ID for ChartFactory.getChartID()\n");
printSBufViaJava(sbuf);
return NULL;
jobject symbolBuf=env->NewDirectByteBuffer(a_psDataRec->pszSymbol, strlen(a_psDataRec->pszSymbol) );
if (ex= env->ExceptionOccurred() ) {
env->ExceptionDescribe();
env->ExceptionClear();
sprintf(sbuf, "DLL: Cannot allocate symbolBuf\n");
printSBufViaJava(sbuf);
return NULL;
jobject securityNameBuf=env->NewDirectByteBuffer(a_psDataRec->pszSecurityName, strlen(a_psDataRec->pszSecurityName) );
if (ex= env->ExceptionOccurred() ) {
env->ExceptionDescribe();
env->ExceptionClear();
sprintf(sbuf, "DLL: Cannot allocate securityNameBuf\n");
printSBufViaJava(sbuf);
return NULL;
jobject securityPathBuf=env->NewDirectByteBuffer(a_psDataRec->pszSecurityPath, strlen(a_psDataRec->pszSecurityPath) );
if (ex= env->ExceptionOccurred() ) {
env->ExceptionDescribe();
env->ExceptionClear();
sprintf(sbuf, "DLL: Cannot allocate securityPathBuf\n");
printSBufViaJava(sbuf);
return NULL;
jobject securityOnlineSourceBuf=env->NewDirectByteBuffer(a_psDataRec->pszOnlineSource, strlen(a_psDataRec->pszOnlineSource) );
if (ex= env->ExceptionOccurred() ) {
env->ExceptionDescribe();
env->ExceptionClear();
sprintf(sbuf, "DLL: Cannot allocate onlineSourceBuf\n");
printSBufViaJava(sbuf);
return NULL;
// Java Function call leads to crash, if console output is turned off and
// the first statement in the Java routine is a (useless) string concatenation.
// Otherwise it works stable.
jfloat chartID=env->CallFloatMethod(chartFactory, mid, securityNameBuf, symbolBuf,
securityPathBuf, securityOnlineSourceBuf, (jint)(a_psDataRec->iPeriod),
(jint)(a_psDataRec->iInterval), (jint)(a_psDataRec->iStartTime),
(jint)(a_psDataRec->iEndTime), (jint)(a_psDataRec->iSymbolType),
(jint)firstDate, (jint)firstTime );
if (ex= env->ExceptionOccurred() ) {
env->ExceptionDescribe();
env->ExceptionClear();
sprintf(sbuf, "DLL: Exception while calling ChartFactory.getChartID()");
printSBufViaJava(sbuf);
return NULL; -
How to enable RFC and how to use it in Report..please tell its very urgent
Dear Techie's,
Please tell its very urgent..
How to enable RFC and how to use it in Report. ??
Virendrahi,
pls chk any of these links.
http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
rgds
Anver -
How to use parameter id in report
dear all
please solve this problem
i use parameter id in alv report and i call another report i m unable to pass parameter to another report
regards
abhilashHi,
Here is the example
TABLES: ekko.
type-pools: slis. "ALV Declarations
*Data Declaration
TYPES: BEGIN OF t_ekko,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
statu TYPE ekpo-statu,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
menge TYPE ekpo-menge,
meins TYPE ekpo-meins,
netpr TYPE ekpo-netpr,
peinh TYPE ekpo-peinh,
END OF t_ekko.
DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
wa_ekko TYPE t_ekko.
*ALV data declarations
data: fieldcatalog type slis_t_fieldcat_alv with header line,
gd_tab_group type slis_t_sp_group_alv,
gd_layout type slis_layout_alv,
gd_repid like sy-repid,
gt_events type slis_t_event,
gd_prntparams type slis_print_alv.
*Start-of-selection.
START-OF-SELECTION.
perform data_retrieval.
perform build_fieldcatalog.
perform build_layout.
perform build_events.
perform build_print_params.
perform display_alv_report.
*& Form BUILD_FIELDCATALOG
Build Fieldcatalog for ALV Report
form build_fieldcatalog.
There are a number of ways to create a fieldcat.
For the purpose of this example i will build the fieldcatalog manualy
by populating the internal table fields individually and then
appending the rows. This method can be the most time consuming but can
also allow you more control of the final product.
Beware though, you need to ensure that all fields required are
populated. When using some of functionality available via ALV, such as
total. You may need to provide more information than if you were
simply displaying the result
I.e. Field type may be required in-order for
the 'TOTAL' function to work.
fieldcatalog-fieldname = 'EBELN'.
fieldcatalog-seltext_m = 'Purchase Order'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
fieldcatalog-emphasize = 'X'.
fieldcatalog-key = 'X'.
fieldcatalog-do_sum = 'X'.
fieldcatalog-no_zero = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'EBELP'.
fieldcatalog-seltext_m = 'PO Item'.
fieldcatalog-col_pos = 1.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'STATU'.
fieldcatalog-seltext_m = 'Status'.
fieldcatalog-col_pos = 2.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'AEDAT'.
fieldcatalog-seltext_m = 'Item change date'.
fieldcatalog-col_pos = 3.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MATNR'.
fieldcatalog-seltext_m = 'Material Number'.
fieldcatalog-col_pos = 4.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MENGE'.
fieldcatalog-seltext_m = 'PO quantity'.
fieldcatalog-col_pos = 5.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'MEINS'.
fieldcatalog-seltext_m = 'Order Unit'.
fieldcatalog-col_pos = 6.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'NETPR'.
fieldcatalog-seltext_m = 'Net Price'.
fieldcatalog-col_pos = 7.
fieldcatalog-outputlen = 15.
fieldcatalog-datatype = 'CURR'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'PEINH'.
fieldcatalog-seltext_m = 'Price Unit'.
fieldcatalog-col_pos = 8.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
endform. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
Build layout for ALV grid report
form build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
gd_layout-totals_only = 'X'.
gd_layout-f2code = 'DISP'. "Sets fcode for when double
"click(press f2)
gd_layout-zebra = 'X'.
gd_layout-group_change_edit = 'X'.
gd_layout-header_text = 'helllllo'.
endform. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
Display report using ALV grid
form display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_user_command = 'USER_COMMAND'
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
it_events = gt_events
is_print = gd_prntparams
i_save = 'X'
is_variant = z_template
tables
t_outtab = it_ekko
exceptions
program_error = 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.
endif.
endform. " DISPLAY_ALV_REPORT
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
form data_retrieval.
select ebeln ebelp statu aedat matnr menge meins netpr peinh
up to 10 rows
from ekpo
into table it_ekko.
endform. " DATA_RETRIEVAL
Form TOP-OF-PAGE *
ALV Report Header *
Form top-of-page.
*ALV Header declarations
data: t_header type slis_t_listheader,
wa_header type slis_listheader,
t_line like wa_header-info,
ld_lines type i,
ld_linesc(10) type c.
Title
wa_header-typ = 'H'.
wa_header-info = 'EKKO Table Report'.
append wa_header to t_header.
clear wa_header.
Date
wa_header-typ = 'S'.
wa_header-key = 'Date: '.
CONCATENATE sy-datum+6(2) '.'
sy-datum+4(2) '.'
sy-datum(4) INTO wa_header-info. "todays date
append wa_header to t_header.
clear: wa_header.
Total No. of Records Selected
describe table it_ekko lines ld_lines.
ld_linesc = ld_lines.
concatenate 'Total No. of Records Selected: ' ld_linesc
into t_line separated by space.
wa_header-typ = 'A'.
wa_header-info = t_line.
append wa_header to t_header.
clear: wa_header, t_line.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
it_list_commentary = t_header.
i_logo = 'Z_LOGO'.
endform.
FORM USER_COMMAND *
--> R_UCOMM *
--> RS_SELFIELD *
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Check function code
CASE r_ucomm.
WHEN '&IC1'.
Check field clicked on within ALVgrid report
IF rs_selfield-fieldname = 'EBELN'.
Read data table, using index of row user clicked on
READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
Set parameter ID for transaction screen field
SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
Sxecute transaction ME23N, and skip initial data entry screen
CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
ENDFORM.
*& Form BUILD_EVENTS
Build events table
form build_events.
data: ls_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = gt_events[].
read table gt_events with key name = slis_ev_end_of_page
into ls_event.
if sy-subrc = 0.
move 'END_OF_PAGE' to ls_event-form.
append ls_event to gt_events.
endif.
read table gt_events with key name = slis_ev_end_of_list
into ls_event.
if sy-subrc = 0.
move 'END_OF_LIST' to ls_event-form.
append ls_event to gt_events.
endif.
endform. " BUILD_EVENTS
*& Form BUILD_PRINT_PARAMS
Setup print parameters
form build_print_params.
gd_prntparams-reserve_lines = '3'. "Lines reserved for footer
gd_prntparams-no_coverpage = 'X'.
endform. " BUILD_PRINT_PARAMS
*& Form END_OF_PAGE
form END_OF_PAGE.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
endform.
*& Form END_OF_LIST
form END_OF_LIST.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
skip.
write:/40 'Page:', sy-pagno .
endform.
Regards
Mudit -
How to Use Parameter ID to default the Bank details in Vendor master
HI,
Client wants to default the Bank details for his vendor master records which will be created in future.Kindly advice me how to create parameter ID for defaulting the Bank details in vendor master.
Kindly advice me
Thanks
SunithaHello,
You have misunderstood the concept of Parameter ID.
A field can be filled with proposed values from SAP memory using a parameter ID for that particular user. Normally in Finance, you can keep Company Code, Controlling Area etc. can ke kept as default. You find the Parameter tab in User Master Record in SU01.
I am afraid that you want to populate the bank details in vendor master record. These fields are very critical for all types of payment. You should double make sure that you are entering the correct bank details in the vendor master record. If you do not fill any of these details, your BACS and CHAPS (DME) payments would get failed.
If your client do not have details of bank information, the same can be filled later by writing a LSMW.
Thanks,
Ravi -
How to use Parameter in inline view
I want to deploye following sql in discoveror. Problem is that how to use the P_TO_DATE in disco.
select papf.employee_number, papf.effective_start_date, papf.effective_end_date, paaf.effective_start_date, paaf.effective_end_date,
(select peev.screen_entry_value
from pay_element_types_f pet,
pay_element_classifications pec,
pay_input_values_f piv,
pay_element_entries_f pee,
pay_element_entry_values_f peev
where pet.classification_id = pec.classification_id
and pet.processing_type = 'R'
and pec.classification_name = 'Earnings'
and piv.name in ('Monthly Amount')
and pet.ELEMENT_TYPE_ID = piv.ELEMENT_TYPE_ID
and pet.element_type_id = pee.element_type_id
and piv.INPUT_VALUE_ID = peev.INPUT_VALUE_ID
and pet.ELEMENT_NAME = 'Basic Salary'
and pee.ELEMENT_ENTRY_ID = peev.ELEMENT_ENTRY_ID
and pee.assignment_id = paaf.assignment_id
and pee.effective_start_date <= :P_TO_DATE and pee.effective_end_date >= :P_TO_DATE
and peev.effective_start_date <= :P_TO_DATE and peev.effective_end_date >= :P_TO_DATE ) Basic_Salary
from per_assignments_f paaf, per_people_f papf
where papf.person_id = paaf.person_id
and papf.employee_number = '101111'Hi,
What you can do is to change the query so that the parameters will be in the where clause and then you can define the condition with the parameter in the dicoverer worksheet.
Use the following code instead of your own:
select papf.employee_number,
papf.effective_start_date,
papf.effective_end_date,
paaf.effective_start_date,
paaf.effective_end_date,
Basic_Salary.p_start_date1, ---> create the conditions on those fields
Basic_Salary.p_start_date2,
Basic_Salary.p_end_date1,
Basic_Salary.p_end_date2
from per_assignments_f paaf,
per_people_f papf,
(select peev.screen_entry_value,
pee.assignment_id,
pee.effective_start_date p_start_date1, --parameter
pee.effective_end_date p_end_date1, --parameter
peev.effective_start_date p_start_date2,--parameter
peev.effective_end_date p_end_date2
from pay_element_types_f pet,
pay_element_classifications pec,
pay_input_values_f piv,
pay_element_entries_f pee,
pay_element_entry_values_f peev
where pet.classification_id = pec.classification_id
and pet.processing_type = 'R'
and pec.classification_name = 'Earnings'
and piv.name in ('Monthly Amount')
and pet.ELEMENT_TYPE_ID = piv.ELEMENT_TYPE_ID
and pet.element_type_id = pee.element_type_id
and piv.INPUT_VALUE_ID = peev.INPUT_VALUE_ID
and pet.ELEMENT_NAME = 'Basic Salary'
and pee.ELEMENT_ENTRY_ID = peev.ELEMENT_ENTRY_ID
) Basic_Salary
where papf.person_id = paaf.person_id
and Basic_Salary.assignment_id = paaf.assignment_id
--and Basic_Salary.p_start_date1 <= :P_TO_DATE
--and Basic_Salary.p_start_date2 <= :P_TO_DATE
--and Basic_Salary.p_end_date1 >= :P_TO_DATE
--and Basic_Salary.p_end_date2 >= :P_TO_DATE
--and papf.employee_number = '101111' -
How to use seeded discoverer reports
Hi,
i want to use seeded discoverer reports from Human Resources Intelligence - End User (responsibility)
if i run this reports in apps i am not getting any output(no result).
so i want to see the workbook creation(i mean contents in the workbook) . how its developed .
how do i identify the workbook and busineess area respect to the report...how do i open this in discoverer tool(admin/desktop)...
pl help me out
regards,
kumarNormally I open the discoverer report in Discoverer Desktop using my Application user id which has the grants on certain responsibility. This responsibility should have access to the disco workbooks and also the business area and folders. If for instance you open with another login which does not have the access, it will pop up this error message like 'Substitute Item', it means it could not find the item in that particular folder - Business area.
For example in Employee Business Area you have Employee Data Folder with First Name Item and Last Name item. If your login does not have access to it, it will pop up error message that said it could not find "First Name" and looking for substitute item to make the disco work. -
How to use parameter passed from standard page in VO query of custom page
Hi everyone,
I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
How do I catch those parameters i my custom page .
And how to use those parameters in the VO query of my custom page.
Edited by: Bunny on Nov 11, 2010 9:16 AMHi,
Bunny wrote:
I have a custom page which needs to be called from a standard page. Now this custom page is based on some parameters passed from standard page.
How do I catch those parameters i my custom page .---If standard page the button style is :Button,Then u can set Destination URL in personalization.
Destination UR:"OA.jsp?page=/xxx/oracle/apps/po/msg/webui/CustomUpdatePG&Flag=" +Value ---Like u can pass params
---IF the button style is :Submitbutton ,Then u need to customization of the co.
---In co processFormReq call a cutom page like below.
pageContext.setForwardURL("OA.jsp?page=/xxx/oracle/apps/po/msg/webui/customUpdatePG&Flag=" +Value, null, (byte)0, null, null, true, "N", (byte)0);
---In custom page co in processRequest u can get these value :String value=pageContext.getParameter("Flag");
And how to use those parameters in the VO query of my custom page.---Get the vo and set where clause
String where="valueAttr="+value;
vo.setWhereClauseParams(null);
vo.setWhereClause(where);
vo.executeQuery();
Regards
Meher Irk
Edited by: Meher Irk on Nov 11, 2010 11:53 PM -
How to use a Crystal Reports Query as datasourc in an other Cristal Report
Hi
I would like to read a File in a CR Report, change some data and use the output as datasource in an other Criystal Reports Report.
Is ist possible to use a Crystal Reports Report as datasource for an other Crystal Reports Report?
Thomas
Edited by: Thomas Martin on Jul 18, 2011 12:44 PMHi Thomas,
Are you having Xcelsius also in your kitty??(for dynamically doing this activity)
Xcelsius has very good writing & reading functionality and you can incorporate your crystal report data into it using live office.
Let say you have a report in crystal , you connect that repot to live office .Let say this is REPORT named as SOURCE CR REPORT.
IN Xcelsius import the this SOURCE CR REPORT report using live office connection and using GRID selector there to show tabular data.
Xcelsius has buttons & controls for updating and exporting the data inform of XML SOURCE FILE.
Now you can either make xcelsius Dashboard for TARGET CR REPORT or you can make crystal Report on ADO.NET(XML) for second crystal Report.
Search on SDN for cross usage of Crystal & Xcelsius
regards,
RK -
How to use interactive internal report in alv
hey expert i want to know who i will used interactive internal report in alv report by various tables in my one assingment.
They have told us to do the various steps which i was giving down:
1) In first step they have told me to use of call transaction 'XD03' in the report .I have got that problem solved.
2) In second they have told in this assingment to use of interactive internal report you have to prepare in alv format.
a)I want to know about this .They have told in assingment that in the customer details we have to click to the net value field record and go to the details of sales order detail in which it show the detail of all the details related net values .
b) I want to know about this lines also from you:
Qty field refers to the Target Qty field in the table VBAP.
To get Price in the unit divide the price by Condition Pricing Unit.
If SHKZG field is set, then multiply the amount by -1, making it negative. (understand why?).
3) In the third step they have told to used of drill down which it is in the at line selection ,when i click to the list order of sales it go to the next report and show me the detail of all the list order details.
But i have to use the '2.b' condition there .
cna u please send me reply for all this step.
Edited by: AjaySAPmumbai on Nov 28, 2011 8:55 AM
Moderator message : Spec / requirements dumping is not allowed, search for available information, read forum rules before posting. Thread locked.
Edited by: Vinod Kumar on Nov 28, 2011 1:26 PMhey expert i want to know who i will used interactive internal report in alv report by various tables in my one assingment.
They have told us to do the various steps which i was giving down:
1) In first step they have told me to use of call transaction 'XD03' in the report .I have got that problem solved.
2) In second they have told in this assingment to use of interactive internal report you have to prepare in alv format.
a)I want to know about this .They have told in assingment that in the customer details we have to click to the net value field record and go to the details of sales order detail in which it show the detail of all the details related net values .
b) I want to know about this lines also from you:
Qty field refers to the Target Qty field in the table VBAP.
To get Price in the unit divide the price by Condition Pricing Unit.
If SHKZG field is set, then multiply the amount by -1, making it negative. (understand why?).
3) In the third step they have told to used of drill down which it is in the at line selection ,when i click to the list order of sales it go to the next report and show me the detail of all the list order details.
But i have to use the '2.b' condition there .
cna u please send me reply for all this step.
Edited by: AjaySAPmumbai on Nov 28, 2011 8:55 AM
Moderator message : Spec / requirements dumping is not allowed, search for available information, read forum rules before posting. Thread locked.
Edited by: Vinod Kumar on Nov 28, 2011 1:26 PM -
How to Use Webutil in Reports (in After Report Trigger)
Hi,
I am downloading from FORMS using Webutil is working fine and exporting data into excel.
I have placed the same RPT2XLS package into the reports which i have used in FORMS but it is not working and "ORA-06508: PL/SQL: could not find program unit being called" error is coming.
The reason using RPT2XLS in reports to convert complex Matrix reports into Ms. Excel.
Oracle Application Server, Reports & Forms Version is 10g.
I guess, the reason is webutil configuration in reports (as its working for forms) but i don't know exactly where to configure for reports.
Any idea?
ThanksYou use webutil in Forms, not in Reports:
"WebUtil is a pre-packaged set of components which provide client-server type functionality in Web-deployed Oracle Forms applications." There is no client-server type functionality in Reports. -
How to used parameter in example program with visaul basic
i have some proplem about away to used parameter in visual basic example program for ex. As Status ,As ViSession because it can't complier
Jone –
Greetings from National Instruments! I hope you are finding your use of the Developer Exchange discussion forum advantageous. We really believe that this is a great resource for programmers to gather and work with each other, sharing tips and working together to answer questions.
I am not 100% sure about which specific Visual Basic you are inquiring. However, the NI-VISA User Manual contains many specific Visual Basic examples that I think would greatly help you in these programming pursuits. I would suggest that you take a look at this link (http://digital.ni.com/manuals.nsf/websearch/266526277DFF74F786256ADC0065C50C?OpenDocument&node=132100_US), specifically Appendix A. There you will find many examples, including specific declarations,
which I think is the point of your entry here.
I hope that this helps you out! Thanks again for your support of National Instruments and your use of the Developer Exchange!!
Best Regards,
Greg Wempe
Applications Engineer -
How to use parameter forms with run_report_object from Forms?
Hi,
I would like to run a rep report from Forms 9i. I have 9iAS R2 with a rep_<maschine_name> report server.
Untill now I run reports with run_report_object and then used web_show_doc to display the PDF output. Now I have to display a parameter form first and only then can I run the report. Currently I am a bit lost and do not know how to do this? Could some one please point me to some examples or docs?
Thanks in advance.[ Forms Reports Integration whitepaper 9i/10g ]
see links below
[ All Docs for all versions ]
http://otn.oracle.com/documentation/reports.html
[ Publishing reports to web - 10G ]
http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
[ Building reports - 10G ]
http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
[ Forms Reports Integration whitepaper 9i/10g ]
9i - http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
10g - http://www.oracle.com/technology/products/forms/pdf/10g/frm10gsrw10g.pdf
http://www.oracle.com/technology/products/forms/techlisting10g.html
--------------------------------------------------------------------------------- -
How to use parameter range for subreports?
On the main report, I have two parameters for starting customer order number and ending customer order number. I created the same parameters on the sub-report. When I run the report, I use the 2 parameters with the starting customer order
as 139818 and the ending customer order 139824. The main report which is the customer order information prints correctly. However, instead of getting one sub-report based on the first order which is 139818, I get
a sub report for every order in the range. Then, the main report prints order 139819, and then repeats the sub-report loop for every order. So, each time the main report prints, I get 7 sub-reports. How do I link the
main report to the sub-report so there is a one to one match so only one sub-report is generated per customer order?
The design requirement is for the user to be able to enter a range of customer orders and then there is one main report and one sub-report per customer order.
I appreciate your response for answering this question.
JeffSounds like you are passing the same two parameter values that the main report uses to the subreport and the subreport is set to display a range of results, just like the main report.
The subreport needs only one parameter... customer order. Assuming that the main report displays its information in a tablix that is grouped on customer order and the subreport is embedded in that group, you would simply set the subreport parameter (@CustomerOrder)
to the value for customer order from the dataset (Fields!CustomerOrderNum.Value). That will pass a single order number to the subreport.
Using the current setup, whatever it is, you should be able to achieve the same results by passing Fields!CustomerOrderNum.Value (or whatever you dataset column name is) for both parameters. That way the range of customer order numbers is the single order
you wish to display.
Performance should be better if you fix the subreport so it takes and displays a single order number. You should be able to simplify the underlying dataset query and thereby gain efficiency.
"You will find a fortune, though it will not be the one you seek." -
Blind Seer, O Brother Where Art Thou
Please Mark posts as answers or helpful so that others may find the fortune they seek.
Maybe you are looking for
-
I need to disable Match Services - but my iTunes crashes when I try to load it. How do I get Apple Support to disable it on my behalf?
-
Badis for Central Contract Replication from SRM to ECC
hi experts i am working on a scenario of replicating the central contract from SRM 0.7 to ECC via XI/PI let me know what are the Badis to be implemented in ECC for the Same looking forward for your reply
-
Can't find Lightroom after installation.
I just bought Lightroom and installed it via a disc onto my Mac OSX 10.8.4. It said that it was installed successfully, but I can't find it anywhere. I was never asked for my serial number. I tried clicking on an old trial version that I had and i
-
Can Numbers handle time series?
I have a time series and i want to display the data in a diagram. The intervals of the points in time vary. I found no option to display the values in a digram so that values that are close in time are displayed close to each other and greater gaps a
-
Can you convert Authorware lessons to Flash?
Does anyone have any knowledge of how one can convert a lesson designed in Authorware into a Flash file without having to reprogram the whole lesson?