DropDown List Problem for Dynamic Store Proc Parameter in SAP B1 8.8
I am working with the crystal report 2008 in SAP B1 8.8 and the report is used the Store Proc for retrieving data. As i need to show a list of Documnet No (DOCNUM) from Sales Order (ORDR) and Purchase Order (OPOR) for the users to select, i use the Dynamic Parameter as for the Store Proc parameter (@Contno), However, the drop down list can be shown fine in Crystal Report, but cant be shown in "Report Selection Criteria" while opening the Crystal Report through SAP B1.
Therefore, can anyone tell me how to add the dynamic drop down list (cause the documnet no list will be changed very frequently) in the SAP B1 8.8 "Report Selection Criteria" screen.
Thanks!!
Classic Crystal Reports and Classic SAP connectivity questions
Classic Crystal Reports and Classic SAP connectivity questions
Similar Messages
-
Table Control Dropdown List Problem
Hi,
I have this problem with my table control.
I now have an input field (with input help) called: Reference Table, as well as a table control.
What i need is to select the table names (select from the Reference table input help) and the field names will be populated inside the table control (according to the field names inside the respective tables) as a dropdown list.
Refer to this diagram if unclear: http://img166.imageshack.us/img166/1066/tablecontrolwt4.png
Please give me sample codes as i really need help.
Will reward marks if useful.
thanks a lot.
Below is my codes:
*& Report ZHERA_TABLE3
REPORT ZHERA_TABLE3_EVONNE.
DATA: P_HERA TYPE DNTAB-TABNAME VALUE 'Z07P4_REF',
ITAB_HERA TYPE TABLE OF Z07P4_REF,
FIELD_COUNT TYPE I,
WA_HERA LIKE LINE OF ITAB_HERA.
SELECT * INTO TABLE ITAB_HERA FROM Z07P4_REF.
START-OF-SELECTION.
CALL SCREEN 3000.
MODULE STATUS_3000 OUTPUT.
SET PF-STATUS 'UI'.
SET TITLEBAR 'TITLE'.
ENDMODULE. "STATUS_8000 OUTPUT
MODULE USER_COMMAND_8000 INPUT
MODULE USER_COMMAND_3000 INPUT.
CASE SY-UCOMM.
WHEN 'BACK' OR 'EXIT'.
LEAVE PROGRAM.
WHEN 'SAVE'.
PERFORM UPDATE_TABLE.
ENDCASE.
ENDMODULE. "USER_COMMAND_8000 INPUT
*&SPWIZARD: DECLARATION OF TABLECONTROL 'ZTABLE' ITSELF
CONTROLS: ZTABLE TYPE TABLEVIEW USING SCREEN 3000.
*&SPWIZARD: LINES OF TABLECONTROL 'ZTABLE'
DATA: G_ZTABLE_LINES LIKE SY-LOOPC.
DATA: OK_CODE LIKE SY-UCOMM.
*&SPWIZARD: OUTPUT MODULE FOR TC 'ZTABLE'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: UPDATE LINES FOR EQUIVALENT SCROLLBAR
MODULE ZTABLE_CHANGE_TC_ATTR OUTPUT.
DESCRIBE TABLE ITAB_HERA LINES ZTABLE-lines.
ENDMODULE.
*&SPWIZARD: OUTPUT MODULE FOR TC 'ZTABLE'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: GET LINES OF TABLECONTROL
MODULE ZTABLE_GET_LINES OUTPUT.
G_ZTABLE_LINES = SY-LOOPC.
ENDMODULE.
*&SPWIZARD: INPUT MODULE FOR TC 'ZTABLE'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: MODIFY TABLE
MODULE ZTABLE_MODIFY INPUT.
MODIFY ITAB_HERA
FROM WA_HERA
INDEX ZTABLE-CURRENT_LINE.
ENDMODULE.
*&SPWIZARD: INPUT MODULE FOR TC 'ZTABLE'. DO NOT CHANGE THIS LINE!
*&SPWIZARD: PROCESS USER COMMAND
MODULE ZTABLE_USER_COMMAND INPUT.
OK_CODE = SY-UCOMM.
PERFORM USER_OK_TC USING 'ZTABLE'
'ITAB_HERA'
CHANGING OK_CODE.
SY-UCOMM = OK_CODE.
ENDMODULE.
INCLUDE TABLECONTROL_FORMS *
*& Form USER_OK_TC *
FORM USER_OK_TC USING P_TC_NAME TYPE DYNFNAM
P_TABLE_NAME
P_MARK_NAME
CHANGING P_OK LIKE SY-UCOMM.
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA: L_OK TYPE SY-UCOMM,
L_OFFSET TYPE I.
&SPWIZARD: END OF LOCAL DATA----
*&SPWIZARD: Table control specific operations *
*&SPWIZARD: evaluate TC name and operations *
SEARCH P_OK FOR P_TC_NAME.
IF SY-SUBRC <> 0.
EXIT.
ENDIF.
L_OFFSET = STRLEN( P_TC_NAME ) + 1.
L_OK = P_OK+L_OFFSET.
*&SPWIZARD: execute general and TC specific operations *
CASE L_OK.
WHEN 'INSR'. "insert row
PERFORM FCODE_INSERT_ROW USING P_TC_NAME
P_TABLE_NAME.
CLEAR P_OK.
WHEN 'DELE'. "delete row
PERFORM FCODE_DELETE_ROW USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME.
CLEAR P_OK.
WHEN 'P--' OR "top of list
'P-' OR "previous page
'P+' OR "next page
'P++'. "bottom of list
PERFORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME
L_OK.
CLEAR P_OK.
WHEN 'L--'. "total left
PERFORM FCODE_TOTAL_LEFT USING P_TC_NAME.
WHEN 'L-'. "column left
PERFORM FCODE_COLUMN_LEFT USING P_TC_NAME.
WHEN 'R+'. "column right
PERFORM FCODE_COLUMN_RIGHT USING P_TC_NAME.
WHEN 'R++'. "total right
PERFORM FCODE_TOTAL_RIGHT USING P_TC_NAME.
WHEN 'MARK'. "mark all filled lines
PERFORM FCODE_TC_MARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME .
CLEAR P_OK.
WHEN 'DMRK'. "demark all filled lines
PERFORM FCODE_TC_DEMARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME .
CLEAR P_OK.
WHEN 'SASCEND' OR
'SDESCEND'. "sort column
PERFORM FCODE_SORT_TC USING P_TC_NAME
l_ok.
ENDCASE.
ENDFORM. " USER_OK_TC
*& Form FCODE_INSERT_ROW *
FORM fcode_insert_row
USING P_TC_NAME TYPE DYNFNAM
P_TABLE_NAME .
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_LINES_NAME LIKE FELD-NAME.
DATA L_SELLINE LIKE SY-STEPL.
DATA L_LASTLINE TYPE I.
DATA L_LINE TYPE I.
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE CXTAB_CONTROL.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <LINES> TYPE I.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: get looplines of TableControl *
CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_LINES_NAME.
ASSIGN (L_LINES_NAME) TO <LINES>.
*&SPWIZARD: get current line *
GET CURSOR LINE L_SELLINE.
IF SY-SUBRC <> 0. " append line to table
L_SELLINE = <TC>-LINES + 1.
*&SPWIZARD: set top line *
IF L_SELLINE > <LINES>.
<TC>-TOP_LINE = L_SELLINE - <LINES> + 1 .
ELSE.
<TC>-TOP_LINE = 1.
ENDIF.
ELSE. " insert line into table
L_SELLINE = <TC>-TOP_LINE + L_SELLINE - 1.
L_LASTLINE = <TC>-TOP_LINE + <LINES> - 1.
ENDIF.
*&SPWIZARD: set new cursor line *
L_LINE = L_SELLINE - <TC>-TOP_LINE + 1.
*&SPWIZARD: insert initial line *
INSERT INITIAL LINE INTO <TABLE> INDEX L_SELLINE.
<TC>-LINES = <TC>-LINES + 1.
*&SPWIZARD: set cursor *
SET CURSOR LINE L_LINE.
ENDFORM. " FCODE_INSERT_ROW
*& Form FCODE_DELETE_ROW *
FORM fcode_delete_row
USING P_TC_NAME TYPE DYNFNAM
P_TABLE_NAME
P_MARK_NAME .
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <WA>.
FIELD-SYMBOLS <MARK_FIELD>.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: delete marked lines *
DESCRIBE TABLE <TABLE> LINES <TC>-LINES.
LOOP AT <TABLE> ASSIGNING <WA>.
*&SPWIZARD: access to the component 'FLAG' of the table header *
ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
IF <MARK_FIELD> = 'X'.
DELETE <TABLE> INDEX SYST-TABIX.
IF SY-SUBRC = 0.
<TC>-LINES = <TC>-LINES - 1.
ENDIF.
ENDIF.
ENDLOOP.
ENDFORM. " FCODE_DELETE_ROW
*& Form COMPUTE_SCROLLING_IN_TC
text
-->P_TC_NAME name of tablecontrol
-->P_OK ok code
FORM COMPUTE_SCROLLING_IN_TC USING P_TC_NAME
P_OK.
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_TC_NEW_TOP_LINE TYPE I.
DATA L_TC_NAME LIKE FELD-NAME.
DATA L_TC_LINES_NAME LIKE FELD-NAME.
DATA L_TC_FIELD_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <LINES> TYPE I.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get looplines of TableControl *
CONCATENATE 'G_' P_TC_NAME '_LINES' INTO L_TC_LINES_NAME.
ASSIGN (L_TC_LINES_NAME) TO <LINES>.
*&SPWIZARD: is no line filled? *
IF <TC>-LINES = 0.
*&SPWIZARD: yes, ... *
L_TC_NEW_TOP_LINE = 1.
ELSE.
*&SPWIZARD: no, ... *
CALL FUNCTION 'SCROLLING_IN_TABLE'
EXPORTING
ENTRY_ACT = <TC>-TOP_LINE
ENTRY_FROM = 1
ENTRY_TO = <TC>-LINES
LAST_PAGE_FULL = 'X'
LOOPS = <LINES>
OK_CODE = P_OK
OVERLAPPING = 'X'
IMPORTING
ENTRY_NEW = L_TC_NEW_TOP_LINE
EXCEPTIONS
NO_ENTRY_OR_PAGE_ACT = 01
NO_ENTRY_TO = 02
NO_OK_CODE_OR_PAGE_GO = 03
OTHERS = 0.
ENDIF.
*&SPWIZARD: get actual tc and column *
GET CURSOR FIELD L_TC_FIELD_NAME
AREA L_TC_NAME.
IF SYST-SUBRC = 0.
IF L_TC_NAME = P_TC_NAME.
*&SPWIZARD: et actual column *
SET CURSOR FIELD L_TC_FIELD_NAME LINE 1.
ENDIF.
ENDIF.
*&SPWIZARD: set the new top line *
<TC>-TOP_LINE = L_TC_NEW_TOP_LINE.
ENDFORM. " COMPUTE_SCROLLING_IN_TC
*& Form FCODE_TC_MARK_LINES
marks all TableControl lines
-->P_TC_NAME name of tablecontrol
FORM FCODE_TC_MARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME.
&SPWIZARD: EGIN OF LOCAL DATA----
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <WA>.
FIELD-SYMBOLS <MARK_FIELD>.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: mark all filled lines *
LOOP AT <TABLE> ASSIGNING <WA>.
*&SPWIZARD: access to the component 'FLAG' of the table header *
ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
<MARK_FIELD> = 'X'.
ENDLOOP.
ENDFORM. "fcode_tc_mark_lines
*& Form FCODE_TC_DEMARK_LINES
demarks all TableControl lines
-->P_TC_NAME name of tablecontrol
FORM FCODE_TC_DEMARK_LINES USING P_TC_NAME
P_TABLE_NAME
P_MARK_NAME .
&SPWIZARD: BEGIN OF LOCAL DATA----
DATA L_TABLE_NAME LIKE FELD-NAME.
FIELD-SYMBOLS <TC> TYPE cxtab_control.
FIELD-SYMBOLS <TABLE> TYPE STANDARD TABLE.
FIELD-SYMBOLS <WA>.
FIELD-SYMBOLS <MARK_FIELD>.
&SPWIZARD: END OF LOCAL DATA----
ASSIGN (P_TC_NAME) TO <TC>.
*&SPWIZARD: get the table, which belongs to the tc *
CONCATENATE P_TABLE_NAME '[]' INTO L_TABLE_NAME. "table body
ASSIGN (L_TABLE_NAME) TO <TABLE>. "not headerline
*&SPWIZARD: demark all filled lines *
LOOP AT <TABLE> ASSIGNING <WA>.
*&SPWIZARD: access to the component 'FLAG' of the table header *
ASSIGN COMPONENT P_MARK_NAME OF STRUCTURE <WA> TO <MARK_FIELD>.
<MARK_FIELD> = SPACE.
ENDLOOP.
ENDFORM. "fcode_tc_mark_lines
FORM UPDATE_TABLE.
"Update physical database table
UPDATE Z07P4_REF FROM TABLE ITAB_HERA.
ENDFORM. "UPDATE_TABLE
Edited by: Evonne Gow on Jan 4, 2008 2:52 AMhey gary help me lei...
Edited by: Evonne Gow on Jan 4, 2008 2:55 AM -
ALV: Dropdown list individual for each line of the table
Hi
Question.. I would like to make a dropdown list for a field in the ALV list. The dropdown list is not the difficult point. But this dropdown list should be based on the line item.
Example:
Material 100.100 has plants (10, 20, 30)
Material 100.800 has plants (60, 70)
so the ALV list should show in the dropdown menu only the plants that this material has.
As I'm not sure, that my explanations are any good, here a example:
<u>
ALV-List</u>
Material Description Plants
100.100 Screwdriver (Dropdown list shows only 10,20,30)
100.800 Hammer (Dropdown list shows only 60,70).
Can anyone tell me if this is feasable? And if so how? Is it do-able with this method?
call method grid->set_drop_down_table
exporting
it_drop_down = lt_dropdown.
The program BCALV_EDIT_07 has sort of two different dropdown lists.. but I have more then two materials, there would be many lists to create.. (many drop_down_handle's)
Any other idea?
I know, this is a tricky one...
Thanks
Petra
Message was edited by:
Petrahi
i have a code for drop down list use this
this code is for selection-screen deop-down list yu can add this same code in ALV
REPORT ZCHETANA_PRAC10 .
Type-pools: VRM.
data: name type vrm_id,
list_month type vrm_values,
list_year type vrm_values,
value type vrm_value.
selection-screen: begin of block b with frame.
parameter: p_year(10) type c as listbox visible length 10,
p_month(10) type c as listbox visible length 10.
selection-screen: end of block b.
at selection-screen output.
value-key = 'JAN'.
value-text = 'JAN'.
append value to list_month.
value-key = 'FEB'.
value-text = 'FEB'.
append value to list_month.
value-key = 'MAR'.
value-text = 'MAR'.
append value to list_month.
value-key = 'APR'.
value-text = 'APR'.
append value to list_month.
value-key = '1998'.
value-text = '1998'.
append value to list_year.
value-key = '1999'.
value-text = '1999'.
append value to list_year.
value-key = '2000'.
value-text = '2000'.
append value to list_year.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'P_MONTH'
VALUES = list_month
EXCEPTIONS
ID_ILLEGAL_NAME = 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.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'P_YEAR'
VALUES = list_year
EXCEPTIONS
ID_ILLEGAL_NAME = 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.
start-of-selection.
write:/ p_year,
p_month. -
New insight into my dropdown list problems: loss of session info
I tried again, this time with NetBeans 5.5.1 (with Tomcat 5.5.17) and stepped through my code; code executed as a result of selecting an item in the second, misbehaving dropdown box.
I have this function:
public void prerender() {
SessionBean1 sb = this.getSessionBean1();
sb.setPortfolio_id(0);
this.getDropDown2().setSelected(ddsi);
}This uses a private data member:
Object ddsi = null;
And here is my value changed event handler for this combobox:
public void dropDown2_processValueChange(ValueChangeEvent event) {
SessionBean1 sb = this.getSessionBean1();
String sp_id = (String) this.getDropDown2().getValue();
ddsi = event.getNewValue();
String desc = (String) ddsi;
Long Ldesc = new Long(desc);
long p_id = Ldesc.longValue();
sb.setPortfolio_id(p_id);
this.getFacesContext().getCurrentInstance().renderResponse();
}As you can see, I am trying to ensure that the value selected is preserved and used the next time the item is rendered.
sb.setPortfolio_id(p_id); is a trivial setter function (taking a long argument) for the property portfolio_id.
When I step through this code, at every step along the way, I see the correct value for p_id! The correct value is passed to the session bean! And I even see the correct value in ddsi when the function "prerender" is executed. However, it seems that this information is lost when the page is actually rendered.
And, when the servlet that produces the image that is to be displayed on the page checks the session bean, the session bean has the default value (0) for the portfolio_id property rather than the the value (30) that had been passed to the session bean.
It is as if the session information has been lost, or a new session bean is provided each time the page is rendered.
The only additional clue is this (found in Tomcat's output);
com.sun.rave.web.ui.component.DropDown::The current value of component form1:dropDown2 does not match any of the selections.
Did you forget to reset the value after changing the options?
Why is this happening? I know full well that at the time the value in dropdown2 is changed, the value in dropdown1 has not, and therefore the value passed to dropDown2 IS in the list of selections. But, when the value in dropDown1 is changed, the list of options in dropDown2 is changed. I wonder if the valueChanged event handler for dropdown1 is being executed every time the page is rendered, forcing dropDown2 to "forget" what was selected, and somehow losing the session info at the same time?????????
Any ideas?
Thanks
TedUpgrading to itunes 7.0 just cost me 2 days of messing around and in the end I had to revert back to v6.0 and resore my lib.
Apple CS was good but did not belly up the fact that 7.0 is defective in some cases and in the end told me I had a hardware problem!
The main issue is that I could not get itunes 7.0 to see my ipod (very infrequently after a hard boot I would see it but would not be able to upload anything). Worked(s) 100% with v 6.0.
This is very defintey 1/2 baked following in the steps of the other well known producers of sw that is not always functional/buggy the first time around.
My computer is a x40 IBM laptop with xp sp2. Will have to wait a few more weeks to see how this pans out.
IBM X40 Windows XP -
How to give color of particular cell in alv list display for dynamic table
Dear Experts,
i want to give color of a particular cell in alv list display (reuse_alv_list_display). Here i am passing data through dynamic table?Hi,
Se this:
DATA: lt_color TYPE lvc_t_scol WITH HEADER LINE.
DATA: BEGIN OF data_tab OCCURS 0.
tabcolor TYPE lvc_t_scol,
END OF data_tab.
* Befone ALV call
alv_layout-coltab_fieldname = 'TABCOLOR'.
* For each row in data_tab
REFRESH: lt_color.
CLEAR: lt_color.
lt_color-color-col = 6.
lt_color-color-int = 1.
lt_color-fname = FIELD1'.
APPEND lt_color.
lt_color-color-col = 2.
lt_color-color-int = 0.
lt_color-fname = 'FIELD2'.
APPEND lt_color.
data_tab-tabcolor[] = lt_color[].
append data_tab.
Best regards,
Leandro Mengue -
Concatenate problem for Dynamic SQL statements
Hi Experts ,
I am building Dynamic SQL statements depending on the values which the user enters into the select option parameters .This dynamic query is passed to cl_sql_connection object for querying from another databasse
So i wrote dynamic values for one select option spointof for the database field ppointofdelivery.
loop at spointof.
CONCATENATE ' pointofdelivery between ''' spointof-low''''
' AND ''' spointof-high''''
INTO where_clause .
endloop.
The whereclause has value pointofdelivery between '123' and '124'.(if the user has entered 123 and 124 as values)
This works fine . But my problem is I have to pass the fieldnames and operator dynamically into where_clause depending on User input.
when i am writing code like the below
field_name = ' pointofdelivery '.
operator = '='.
CONCATENATE field_name operator '''spointof-low''' INTO where_clause .
the where_clause contains value
pointofdelivery = ' spointof-low '
and not pointofdelivery = ' 123 ' as expected .
Do you know why this is haapening as it is not taking the value.
Thanks
ArshadHi,
there are lot of function modules..available...to build a where clause based on the select-options..
check the FM FREE_SELECTIONS_RANGE_2_WHERE
Thanks
Naren -
How to assign store proc parameter to other parameter memebers?
i really do not want to decalare t_param2 and check if default value is null of param2 then assign param1 to it. Any way i can achieve the following without declaring temp variables.?????
create or replace procedure Proc1( param1 varchar2, param2 varchar2 := param1)
IS
BEGIN
null;
END;
show errors
1/54 PLS-00227: subprogram 'in' formal PARAM1 is not yet denotable
0/0 PL/SQL: Compilation unit analysis terminatedI think this is one of the solution...
CREATE OR REPLACE PROCEDURE proc1 (param1 VARCHAR2, param2 VARCHAR2)
IS
---p2 VARCHAR2(100);
procedure p1(param1 varchar2, param2 varchar2)
IS
BEGIN
DBMS_OUTPUT.PUT_LINE('param1-->'||param1||' param2 -->'||param2);
END;
BEGIN
p1(param1,nvl(param2,param1));
dbms_output.put_line(param1||':'||param2);
END proc1;
show errors;
set serveroutput on
exec proc1('A', 'B');
set serveroutput on
exec proc1('A', null); -
Font Size for Dropdown List Box
Hi All,
We are in ECC 6.0 with Integrated ITS. We have a 'Z' EWT transaction with a corresponding service maintained in SICF being executed via ITS and/or Portals.
The problem is that the font sizes for the dropdown list values for all these input fields are very small. The same transaction when run in ECC has no such font issues.
Does anyone have any idea of why that is happening and if the font sizes for these dropdown list fields can be changed or not?
Thanks in Advance
ShounakHello Shounak,
If this is in Portals then you may be able to change the size of the font through the Portal Theme Generator.
Edgar -
How to send sortorder info to Store Proc
Hi
I have a Store Proc in SQL Server
Now i want to give the Sort Order dynamically for this Store
Proc.
When i am trying to send the SortOrder, in the query it is
saying that i cant give the parameter.
It is forcing me to give field names directly.
i cant able to give the Order by dynamically.
how can i do this.?
i need to change the Order By dynamically in Store Proc.
i can send the paramter to Store Proc, but its not accespting
in the query.Try this stored procedure.
CREATE PROCEDURE [dbo].[myProcedure]
@OrderParam VARCHAR(20)
AS
Declare @sQuery as VARCHAR(100)
SET @sQuery = 'select * from myTable order by ' +
CAST(@OrderParam AS VARCHAR(15))
EXEC(@sQuery)
GO
Thanks
Sankalan
(www.mindfiresolutions.com) -
JHeadstart 10.1.3: selection required error on mandatory dropdown list
Situation:
- JHeadstart 10.1.3 build 059
- One JHeadstart Group containing three item regions
- All items are in the item regions and the regions are stacked (generated as tabs)
- In the first region (tab) a mandatory item generated as a dropdown list, using a dynamic domain
When the page starts, the dropdown list displays the meaning value correctly and the list is populated with the correct values. There is no blank option in the list, which is also correct.
If no changes are made to the list and we navigate to the second tab, an error occurs, displayed at the top of the page: status (which is the field name) - selection required.
Under the status field a red message reads: A value must be entered. Even when we change the field's value to another list entry and navigate to the next tab, the error reappears. The error does not appear when we change the field back to a simple textImput item.
Why does this error occur although the field has a correct value?
Jean-Paul van der Meer and Toine van BeckhovenSteven,
I do also have this problem. It occurs when the VO contains lookup attributes from another enitity.
In the form I have an table with two stacked tabs as overflow. In the context part I do have 4 dropdownlist. Now when I change one of the lookup items (using a LOV group) and press the save button, the first two dropdownlists become empty and the message 'Selection required' is shown. After entering the values and saving again the other two dropdownlists become empty (no message is shown because those are optional). When I'm only changing other items (non lookup items) the form works fine. At first startup the mandatory dropdownlist do have a NULL-value.
As temporary solution I moved all the dropdownlists to the stacked tabs and that also works fine. When three are moved and one remains in the context part, the problem still occurs.
With kind regards,
Martin Schaap -
Dropdown List in report program
Hi
Anybody send me the Dropdown list coding for a parameter in s selection-screen of a normal report program without using a module-program
regards
paulHI paul
try this
TYPE-POOLS: VRM.
TABLES SPFLI.
TABLES SSCRFIELDS.
DATA flag.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS PS_PARM LIKE SPFLI-CARRID AS LISTBOX VISIBLE LENGTH 10
USER-COMMAND
fcodex.
data: i_spfli type spfli occurs 0 with header line.
PARAMETERS PQ_PARAM LIKE SPFLI-connid AS LISTBOX VISIBLE LENGTH 15
USER-COMMAND
fcodey.
*DS AS CHECKBOX USER-COMMAND FLAG.
INITIALIZATION.
NAME = 'PS_PARM'.
DATA T TYPE I VALUE 0.
SELECT DISTINCT carrid into corresponding fields of table i_spfli FROM
SPFLI.
loop at i_spfli.
VALUE-KEY = i_spfli-CARRID.
VALUE-TEXT = i_spfli-CARRID.
APPEND VALUE TO LIST.
endloop.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
AT SELECTION-SCREEN.
if sy-ucomm eq 'FCODEX'.
REFRESH LIST.
CLEAR LIST.
PQ_PARAM = ' '.
NAME = 'PQ_PARAM'.
SELECT * FROM SPFLI WHERE CARRID = PS_PARM.
VALUE-KEY = SPFLI-connid.
VALUE-TEXT = SPFLI-connid.
APPEND VALUE TO LIST.
ENDSELECT.
endif.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SY-UCOMM NE 'FCODEX' OR SY-UCOMM NE 'FCODEY'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
START-OF-SELECTION.
clear i_spfli.
refresh i_spfli.
select * into table i_spfli from spfli where carrid = ps_parm and connid
= pq_param.
loop at i_spfli.
WRITE: / 'CITY FROM:', I_SPFLI-CITYFROM, 'CITY TO :',I_SPFLI-CITYTO,
'DEPARTURE TIME :', I_SPFLI-DEPTIME.
regards
kishore
Message was edited by: Harikishore Sreenivasulu -
Dropdown List in table - multicolumn foreign key
Hello,
Steve Muench has a nice screencast how to create a dropdown list in an editable adf table.
Is there a way how to update this example to work with multicolumn foreign key between edited table and lookup table?
Let's say lookup table has Code, Line attributes as primary key and edited table has foreign key attributes MasterCode and MasterLine. How populate the FK attributes by dropdown list?
For editable table it's probably not possible directly from dropdown list. I tried to find a solution but I had problem to identify which lookup row was selected.
Radook i have checked that for the past few days but its not what i want.
i am using wizard to do this and i need to populate the database table records (individual field names) and display in the table control dropdown list.
what the demo shows is only how to display a dropdown list with reference to the table names. -
Dropdown list error - in table
Hi,
I�m trying to make a table with different fields, with one database. For example:
Name product Number of products
So i want to put in the number of products�s a dropdown list. For example, if the product chocolate has 6 units, in the dropdowlist may appear 1-2-...6 and i will select what i want. The database has a field withs these fields.
So, what i have done is this:
private void vinos(){
int noofDBRows = vinosDataProvider.getRowCount();
listOptionsVinos = new Option[noofDBRows + 1];
int rowcount = 0;
if (noofDBRows > 0) {
// Build the Options Array with the data
// from DataProvider plus Dummy Value
vinosDataProvider.cursorFirst();
do{
String linea=vinosDataProvider.getCursorRow().getRowId();
int aux=Integer.parseInt(vinosDataProvider.getValue("nUds").toString());
for (int i=0;i<aux;i++){
String i2=String.valueOf(i);
listOptionsVinos=new Option(i2);
} while (vinosDataProvider.cursorNext());
// Add Dummy Value to Array at the end,
// Use Dummy Value ("999") as Value for the Dummy!!
// Note : - You could add the Dummy value at
// any position of your choice
listOptionsVinos[rowcount] = new Option("999", "-------");
} else {
listOptionsVinos[rowcount] = new Option("999", "No Rows from DB");
} public void init() {
vinos();
}I have based in this page:
http://www.netbeans.org/kb/55/dropdowncomp.html
I know that it is erroneous because the listOptionVinos is common for all the rows, so if anyone could help me i will be pleased.
Thanks you very much!
*if anyone understand spanish please say to me because i�ll explain better.
*si alguien entiende espa�ol que me diga y le intentare explicarselo mejor.Hi, again!
The two columns are from the same table, yes. Here is an example of the database:
Name number
chocolate 3
In the db only appear the number 3, so what i want is that in the dropdown appear numbers from 0 to N, in this case 3. So i will choose the number what i want. To do this, i have done a function in mysql which functionalitty is to return numbers from 0 to N. So if i send the number 3, it must send numbers from 0 to 3.
After that, to prove it, I have created a new one dropdown sending a random value to the procedure. But when i run it, the dropdown doesn`t show anything. This is the code that i have done:
public SessionBean1() {
public void init() {
a3();
public void a3(){
try{
String num="3";
cantidadRowSet.setCommand("CALL sp_NumberList(?)");
cantidadRowSet.setObject(0,num);
cantidadDataProvider.refresh();
int noofDBRows = cantidadDataProvider.getRowCount();
opcionesprueba2 = new Option[noofDBRows+1];
int rowcount = 0;
if (noofDBRows > 0) {
cantidadDataProvider.cursorFirst();
do {
opcionesprueba2[rowcount] = new Option(cantidadDataProvider.getValue("1").toString());
rowcount++;
while (cantidadDataProvider.cursorNext());
opcionesprueba2[rowcount] = new Option("999", "---------");
}else{
opcionesprueba2[rowcount] = new Option("999", "No Rows from DB");
}catch(SQLException e){}
}Thank you very much -
Anyone know how to copy an auto-complete dropdown list?
I'm on a website where a dropdown list exists for items I've typed in the past. I want to keep the list in a text file but I have no way of copying it. Anyone know how to copy such a list?
You can also use the SQLite Manager extension to create a CSV list of names.
* SQLite Manager: https://addons.mozilla.org/firefox/addon/sqlite-manager/
# Open Profile Directory -> formhistory.sqlite -> Go
# Open Tables > moz_formhistory
# Hit the Execute SQL tab
# Use a Select like this: (moz_formhistory.firstUsed and moz_formhistory.lastUsed are available)
<pre><nowiki>SELECT moz_formhistory.id,datetime(moz_formhistory.firstUsed/1000000,'unixepoch'),fieldname,value
FROM moz_formhistory
WHERE moz_formhistory.id</nowiki></pre>
* Click Run SQL to generate a results list
* Click the Action button to Save the results to a CSV file -
Problem with dynamically loading the dropdown list from database
Please help me,
i am having a jsp page which contains a form
with a textfield ,two dropdown list
and a submit button
when i select a list from first drop down, second drop down has to
be loaded from the database dynamically according to the
selected one in the first drop down.
i gave onselect event for the first drop down and
gave this one
temp=first dropdown selected value
self.location='currentfile+query='+temp;
after this current page is reloading, but the already existing
values in textfield and first selected value in drop down list is
missing.
how to solve this problem? and the rest of the problem. i mean
loading the data into second drop down list.
plz help me......in first <selcet> tag write Onchange and submit to the jsp then the values will return in second select box.
Maybe you are looking for
-
Unit of measure for calculation type C must be completed
Hi All When releasing some contracts in SRM , we are getting the error message as above. The error message doesn't specify any particular part and the contract has more than 3000 parts. There are no conditions at header or item level. There is no Tar
-
Exceptions passing internal tables to memory...!
code in program 1 DATA :IT_FINAL2 LIKE WA_FINAL OCCURS 10 WITH HEADER LINE. DATA : I_SORT TYPE SLIS_T_SORTINFO_ALV WITH HEADER LINE. DATA : I_FCAT TYPE TABLE OF SLIS_FIELDCAT_ALV WITH NON-UNIQUE DEFAULT KEY WITH HEADER LINE INITIAL
-
Unread Message when all messages have been read
My 8830 has an unread message icon but all messages have been read. I have even searched for an unread message. Any ideas? It is driving me crazy. Solved! Go to Solution.
-
HI! I read book Oracle JDeveloper 10g handbook. And there is "class tab" to open class editor! That is in Hands-on practice: Build a Simple Toplink Application. I use Jdeveloper 10.1.3.3.0, but there no class tab what I need to do??? Best regards Mes
-
Initial keystroke not registering - Deja Vu anyone?
I'm sure a lot of people out there are quite familiar with the *ELP keystroke problem*, as it was quite a hot topic back in the 10.5.1 / 10.5.2 days. Well, it appears that I've got it again after updating to 10.5.6. Other than this, which has been go