Sample program to remove standard selection-options & replace user defined.
The standard selection-options are provided for the logical database. i need to supress the standard selection-options and include my own selection-options. I neeed a sample program how to do it.
Is this your custom program where you assigned the LDB in the attributes?
If so, you can do this in your AT SELECTION-SCREEN OUTPUT event.
LOOP AT SCREEN.
IF SCREEN-NAME = <LDB SELECTION-SCREEN FIELDNAME>.
SCREEN-ACTIVE = 0.
ENDIF.
ENDLOOP.
If your LDB selection parameters have a MODIF ID xyz option addition, then instead of the above SCREEN-NAME, you can replace it with SCREEN-GROUP1 and do the same thing.
Srinivas
Similar Messages
-
Select option in user defined screen
Hi friends,
In my program i m in need of using select-options ( input in terms of range ) . i saw some thread . in that they have mentioned FM : COMPLEX_SELECTIONS_DIALOG and some have given call subscreen ***.
but i don't know how to use it. i have never used subscreen in my program..
so u please tell me how to get it.
Thanks and regards,
kani,.Refer:
[http://www.saptechies.com/select-option-in-a-dynpro/]
[Complex_Selections_dialog in Module Pool Programming;
[How to put "selection options without intervals" on screen painter?; -
Select-options in user defined screen
hi all,
I designed a screen numbered 1000 and placed alv on it.
I also put an input box on the screen and i want to display selections like select-options .....
thanks in advance
JoseHi,
SELECTION-SCREEN BEGIN OF BLOCK blk_1 WITH FRAME TITLE text-001.
SELECT-OPTIONS: s_werks FOR marc-werks OBLIGATORY, "Plant
s_erdat FOR aufk-erdat OBLIGATORY, "Order Date
s_aufnr FOR aufk-aufnr, "Order Number
s_qmdat FOR qmel-qmdat, "Job Card Date
s_qmnum FOR qmel-qmnum, "Job Card Number
s_herst FOR equi-herst, "Vehicle Registration Number
s_sernr FOR equi-sernr. "Vehicle Serial Number
PARAMETERS: p_ename LIKE pa0001-ename. "Service Supervisor/Advisor\
SELECTION-SCREEN END OF BLOCK blk_1. -
Changing field label for standard select option
Hi All,
I need to change the label for one of the standard select option for the custom report category.
the field is PNPSTAT1 - original label is - Customer-Specific Status - which i need to change as per customer requirement.
Can anyone tell me the way i can do it so that it can be viewed with correct label not only on the selection screen but in further selections mode as well.
Regards,
RaunakDear Raunak,
If you have standard select option for standard selection screen:
create a implicit enhancement for any standard program and wrote the below code at the end of the program and it is working..
INITIALIZATION.
%_s_PNPSTAT1%_app_%-text = 'ANY LABEL'.
If you have custom report select option, go to above Ravikiran's procedure.
Best of luck.
Regards,
Abbas. -
About Reporter Painter,How to remove a selection option ?
Hi ,Experts
Now , I want to copy form 0SAPRATIO-01 (FSI4) to create my form in which i want to remove the standard selection option <b>G/L account </b> ,So how to do ? Could you give me the step in detail ?Hi,
I failed to find the field crresponding to select-option 'G/L Account No.' in the two level you mentioned .
Take 0SAPRATIO-01 for example , Could you tell me which field should be removed if i want to delete the select-option 'G/L Account No.' in the report screen.
At general data selection of form 0SAPRATIO-01, there are only two fields they are
<b>Fin.Stmt Vers. and Plan./act.</b>
while in the report's select-option ,there are five select-options. Why?
Message was edited by: guixin chen -
How to created Freely Programmed F4 help in Select Options
hi,all
I have a probelm about how to created a Freely Programmed F4 help in Select Options,and put help value into select options field
Thanks and Best RegardsHi Haung,
You need to use FREE_HELP not the component name.
Modify you code as below:
LT_RANGE_TABLE_V = wd_this->m_handler_V->create_range_table( 'ZCYPHDATE' ).
wd_this->M_HANDLER_V->add_selection_field(
i_id = 'ZCYPHDATE'
it_result = LT_RANGE_TABLE_V
i_value_help_type = if_wd_value_help_handler=>CO_PREFIX_APPLDEV
i_value_help_id = 'FREE_HELP'
i_no_intervals = abap_false ).
Hope this helps you.
Regards,
Rama -
Remove ":" from select option label(description)
Hello All
I have a requirement to remove the select option description (which SAP displays by default from the field label maintained in the data element),
I thought the best way to achieve that requirement is by passing "space" to the parameter 'I_DESCRIPTION' to the method IF_WD_SELECT_OPTIONS->ADD_SELECTION_FIELD, however, it turned out that SAP still displays the label from the data element inspite of passing space(blank) to the parameter 'I_DESCRIPTION', to overcome this limitation I have created a data element without maintaining any labels this approach worked expect that SAP still displays ":"(colon) as the label, is there any way to get rid of this ":" too?
As shown above, ":" is still displayed as the label of the date select option. I'm also looking for a way to reduce the distance between the last radio button and the select option, any pointers would be appreciated.
Thanks for looking into this.
-Vikram.You could use the below methods to recursively scan all elements of the view and set the design of all labels to light.
method adjust_view .
* IO_VIEW Importing RefTo IF_WD_VIEW
data lo_container type ref to cl_wd_uielement_container.
check io_view is bound.
lo_container ?= io_view->get_root_element( ).
process_elements( io_container = lo_container ).
endmethod.
method PROCESS_ELEMENTS .
* IO_CONTAINER Importing RefTo CL_WD_UIELEMENT_CONTAINER
data lo_container type ref to cl_wd_uielement_container.
data lt_elements type cl_wd_uielement=>tt_uielement.
data ls_elements type ref to cl_wd_uielement.
data lo_lbl type ref to cl_wd_label.
lt_elements = io_container->get_children( ).
loop at lt_elements into ls_elements.
try.
lo_container ?= ls_elements.
process_elements( io_container = lo_container ).
catch cx_sy_move_cast_error .
if ls_elements->_definition_name eq 'LABEL'.
lo_lbl ?= ls_elements.
lo_lbl->set_design( value = '01' ).
endif.
endtry.
endloop.
endmethod. -
Include the COPY TO Option in User Define form
Hi Experts
How can we include the COPY TO Option in User Define form
Thanks In Advance
A S VAMSI KRISHNAHi,
In SAP B1 i think there is no default functionality for copy to in user defined form. As Parminder said you can use the control button combo and write your own method for populating data.
Regards
Arun -
Integrate Freely Programmed Value Help in Select option WDR_SELECT_OPTION
Hello All,
I have created Freely Programmed Value Help name (ZVALUE_HELP) by using IWD_VALUE_HELP.I have develop an application(ZSELECT_OPTION) which uses the resubale component WDR_SELECT_OPTION for select option.i want search help for one of my select option input field .
i wrote the following code.
*initalise the used component
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_ci_serach_help( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( ).
endif.
* add a new field to the selection
WD_THIS->M_HANDLER->ADD_SELECTION_FIELD(
I_ID = 'ZCI_STATUS'
IT_RESULT = LT_RANGE_TABLE
I_READ_ONLY = READ_ONLY
I_OBLIGATORY = ABAP_FALSE
I_VALUE_HELP_TYPE = IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_APPLDEV
I_VALUE_HELP_ID = 'ZVALUE_HELP'
when i execute the select option application n click on search help button i got error "Component usage ZVALUE_HELP does not exist.
Edited by: Abhilasha Dahare on Aug 3, 2011 11:10 AMhi Abhsilasha,
I think your code is some thing wrong.
you have to assign free value help like below method.
in the attribute( the select option field ) properties, you will find input help mode property, in that select 'freely programmed'.
then you willl get some more fields, there you have to provide ZVALUE_HELP
of follow reema suggestion in below link
How to integrate a Search Help in a dynamically created Select-Option?
Regards
Srinivas
Edited by: sanasrinivas on Aug 3, 2011 12:06 PM
Edited by: sanasrinivas on Aug 3, 2011 12:10 PM -
Copy standard giu status into user defined program
how to copy stanadard gui-status 'STANDARD' into user defined program using se41
Hi,
Open Se41,
Give the standard program's name and the GUI Status Name.
Click on COPY button.
Now enter your ZPROGRAM name and desired GUI STATUS Name in the popup that appears.
Hope its done. -
How to fetch the data from a standard report to a user defined report
Hi,
i m using a standard report RFEBKA00 which uses CHAR300 variable(it is not used in selection screen).
can u help me ,
to collect the data from CHAR300 and to use it in my own report.
Message was edited by:
jaya ramanhi jayaramm..
you have to use SUBMMIT and send the parameters of your selection screen to the standard submmit prorgram...
beliow is the program for you .... just pick the selection parameter and pass corresponding parameter in the Submit which i mention as ...... replace with = and parameter in the selection screen.
report zrsers.
INCLUDE rfebka03.
INCLUDE rfebfr03. " Data France
INCLUDE RFEKAP00. "n927883
TABLES: rfsdo,
sscrfields,
hrdeaoifld.
DATA: lt_statements TYPE STANDARD TABLE OF fieb_kukey,
l_statement TYPE fieb_kukey.
*Daten für die Mahnsperre "mo260105
TYPES: BEGIN OF s_kukey_mansp,
sign(1),
option(2),
low TYPE kukey_eb,
high TYPE kukey_eb,
mansp TYPE mansp,
anztg TYPE anztg,
bukrs TYPE bukrs,
END OF s_kukey_mansp.
DATA: lt_kukey TYPE STANDARD TABLE OF s_kukey_mansp,
l_kukey LIKE LINE OF lt_kukey,
l_gjahr TYPE gjahr,
LT_GJAHR TYPE STANDARD TABLE OF GJAHR,
L_MANSP TYPE MANSP,
l_kunnr TYPE kunnr,
l_lifnr TYPE lifnr.
FIELD-SYMBOLS: <mansp> LIKE LINE OF gt_mansp.
SELECTION-SCREEN BEGIN OF BLOCK 1 WITH FRAME TITLE text-165.
PARAMETERS: einlesen LIKE rfpdo1-febeinles,
format LIKE rfpdo1-febformat DEFAULT 'M' AS
LISTBOX VISIBLE LENGTH 30 USER-COMMAND bai,
AUSZFILE LIKE RFPDO1-FEBAUSZF,
umsfile LIKE rfpdo1-febumsf,
pcupload LIKE rfpdo1-febpcupld DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK 1.
*------- Buchungsparameter ---------------------------------------------
SELECTION-SCREEN BEGIN OF BLOCK 2 WITH FRAME TITLE text-160.
*SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: pa_xcall TYPE febpdo-xcall RADIOBUTTON GROUP 1.
*SELECTION-SCREEN
* COMMENT 03(29) FOR FIELD pa_xcall.
PARAMETERS: pa_xbkbu TYPE febpdo-xbkbu.
*SELECTION-SCREEN
* COMMENT 35(16) text-171 FOR FIELD pa_xbkbu.
PARAMETERS: pa_mode TYPE rfpdo-allgazmd NO-DISPLAY.
*SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: pa_xbdc LIKE febpdo-xbinpt RADIOBUTTON GROUP 1.
SELECTION-SCREEN
COMMENT 03(29) text-163 FOR FIELD pa_xbdc.
SELECTION-SCREEN
COMMENT 35(20) text-164 FOR FIELD mregel.
PARAMETERS: mregel LIKE rfpdo1-febmregel DEFAULT '1'.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE.
PARAMETERS: pa_test LIKE rfpdo1-febtestl RADIOBUTTON GROUP 1.
SELECTION-SCREEN
COMMENT 03(29) text-168 FOR FIELD pa_test.
SELECTION-SCREEN: END OF LINE.
PARAMETERS: valut_on LIKE rfpdo2-febvalut DEFAULT 'X'.
SELECTION-SCREEN END OF BLOCK 2.
*------- Finanzdisposition ---------------------------------------------
SELECTION-SCREEN BEGIN OF BLOCK 5 WITH FRAME TITLE text-172.
SELECTION-SCREEN: BEGIN OF LINE.
PARAMETERS: pa_xdisp LIKE febpdo-xdisp.
SELECTION-SCREEN
COMMENT 03(29) text-170 FOR FIELD pa_xdisp.
PARAMETERS: pa_verd LIKE rfffpdo1-ffdisxverd.
SELECTION-SCREEN
COMMENT 34(15) text-174 FOR FIELD pa_verd.
SELECTION-SCREEN
COMMENT 55(15) text-173 FOR FIELD pa_dsart.
PARAMETERS: pa_dsart LIKE fdes-dsart.
SELECTION-SCREEN: END OF LINE.
PARAMETERS: intraday LIKE rfpdo1_en-akintraday AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK 5.
*C5060356
*------- BAI Preprocessor --------------------------------------
SELECTION-SCREEN BEGIN OF BLOCK 6 WITH FRAME TITLE text-007 .
PARAMETERS: p_baipre TYPE bai_prep AS CHECKBOX MODIF ID mo1,
p_priord LIKE prior_day AS CHECKBOX MODIF ID mo1,
p_stop LIKE stop_flag AS CHECKBOX MODIF ID mo1.
SELECTION-SCREEN END OF BLOCK 6.
*------- Interpretationsparameter --------------------------------------
SELECTION-SCREEN BEGIN OF BLOCK 3 WITH FRAME TITLE text-166.
DATA: num10(10) TYPE n.
DATA: chr16(16) TYPE c.
SELECT-OPTIONS: s_filter FOR febpdo-febfilter1.
SELECT-OPTIONS: t_filter FOR febpdo-febfilter2.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN
COMMENT 01(31) text-176 FOR FIELD pa_bdart.
PARAMETERS: pa_bdart LIKE febpdo-bdart.
SELECTION-SCREEN
COMMENT 36(21) text-177 FOR FIELD pa_bdanz.
PARAMETERS: pa_bdanz LIKE febpdo-bdanz.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN END OF BLOCK 3.
*------- Ausgabeparameter ----------------------------------------------
SELECTION-SCREEN BEGIN OF BLOCK 4 WITH FRAME TITLE text-167.
PARAMETERS: batch LIKE rfpdo2-febbatch,
p_koausz LIKE rfpdo1-febpausz, " Kontoauszug drucken
p_bupro LIKE rfpdo2-febbupro,
p_statik LIKE rfpdo2-febstat,
pa_lsepa LIKE febpdo-lsepa.
SELECTION-SCREEN END OF BLOCK 4.
SUBMIT RFEBKA00
WITH AUSZFILE = AUSZFILE ***like this replace the .... and pass selection parameters
WITH BATCH = BATCH
WITH EINLESEN ...
WITH FORMAT ...
WITH INTRADAY ...
WITH MREGEL ...
WITH PA_BDANZ ...
WITH PA_BDART ...
WITH PA_DSART ...
WITH PA_LSEPA ...
WITH PA_MODE ...
WITH PA_TEST ...
WITH PA_VERD ...
WITH PA_XBDC ...
WITH PA_XBKBU ...
WITH PA_XCALL ...
WITH PA_XDISP ...
WITH PCUPLOAD ...
WITH P_BAIPRE ...
WITH P_BUPRO ...
WITH P_KOAUSZ ...
WITH P_PRIORD ...
WITH P_STATIK ...
WITH P_STOP ...
WITH S_FILTER ...
WITH T_FILTER ...
WITH UMSFILE ...
WITH VALUT_ON = VALUT_ON and return .
reward points if it is usefull
Girish -
DMS :Select Range for User defined fields in Classification Tab in CV04N
Dear All,
We have added User Define Fields Date field in Classification Tab in CV04N Transaction But it has single search (parameter) where we need to have Date range selection (Like Select Option) for the documents.
I request you to suggest me some solution whether it is possible to achieve with any standard configuration as it is very critical to the Business .
I would appreciate for your quick response and support.
Thanks in Advance,
Regards,
Vishal.Dear Ravindra,
Actually My requirement is when we enter the exact date in the input field its giving the documents submitted on that date.But when i give date range its not displaying the any documents where the document submited in between those two dates.
Ex: I have submitted the document ( in CV01N ) for the approval on 10.05.2010(this is the same field in classification).
In the CV04N transaction ,classification tab if I enter date as 10.05.2010 its giving the document submitted on that date.but if I enter the two dates 01.05.2010 and 20.05.2010 where document is been created B/W the input dates.
Please suggest how to fulfill my business requirement ,I also request to check any configuration for the user defined fields can solve this problem instead of selecting single value when it can select the range of values.
Thanks for your earlier reply.
Regards,
Vishal. -
Cannot SELECT into a user-defined type variable
Hi All,
Oracle 11.2 on Linux.
See the steps below. I am not able to insert/select into a TYPE variable. I do not want to do a TABLE declaration in my PL/SQL block, but want to use a user defined type. Is it possible ?
SQL> create or replace type sample_obj_rec as object
2 (
3 object_id number,
4 object_name varchar2(32),
5 object_type varchar2(32)
6 );
7 /
Type created.
SQL> create or replace type sample_obj_tab as table of sample_obj_rec ;
2 /
Type created.
-- ------------ CASE 1 ---------------------
SQL> declare
2 v_tab sample_obj_tab := sample_obj_tab() ;
3 begin
4 select object_id, object_name, object_type
5 bulk collect into v_tab
6 from dba_objects
7 where rownum < 11 ;
8 end ;
9 /
from dba_objects
ERROR at line 6:
ORA-06550: line 6, column 5:
PL/SQL: ORA-00947: not enough values
ORA-06550: line 4, column 5:
PL/SQL: SQL Statement ignored
-- ------------ CASE 2 ---------------------
SQL> declare
2 v_rec sample_obj_rec;
3 begin
4 select object_id, object_name, object_type
5 into v_rec
6 from dba_objects
7 where rownum = 1;
8 end ;
9 /
from dba_objects
ERROR at line 6:
ORA-06550: line 6, column 5:
PL/SQL: ORA-00947: not enough values
ORA-06550: line 4, column 5:
PL/SQL: SQL Statement ignoredWhat is the issue with both the above cases? what am I missing here?
Thanks in advance.One small detail in the SELECT.
SQL> create or replace type sample_obj_rec as object
2 (object_id number,
3 object_name varchar2(32),
4 object_type varchar2(32));
5 /
Type created.
SQL>
SQL> create or replace type sample_obj_tab as table of sample_obj_rec ;
2 /
Type created.
SQL>
SQL> declare
2 v_tab sample_obj_tab := sample_obj_tab() ;
3 begin
4 select sample_obj_rec(object_id, object_name, object_type)
5 bulk collect into v_tab
6 from dba_objects
7 where rownum < 11 ;
8 end ;
9 /
PL/SQL procedure successfully completed.
SQL> -
Selecting Columns with User Defined Types... in PHP
I've looked all over google and this forum and can't find anything about this... here's what I've got:
a User Defined Type:
CREATE TYPE "ADDRESS" AS OBJECT (
ADDRESS VARCHAR2(256),
COUNTRY VARCHAR2(256),
STATE VARCHAR2(256),
SUBURB VARCHAR2(256),
TOWNCITY VARCHAR2(256)
and it is used in a column in one of my tables:
CREATE TABLE "SUPPLIERS" (
"ID" NUMBER,
"USER_ID" NUMBER,
"NAME" VARCHAR2(50),
"ADDRESS" "ADDRESS"
so that column "address" is of type "address". I am then able to insert a row using:
INSERT INTO "SUPPLIERS" VALUES(1,1,'name',ADDRESS('address','country','state','suburb','town city'));
and that all works as expected. I can select the data using iSqlPlus and get the result I expect;
ADDRESS('address', 'country', 'state', 'suburb', 'town city')
So here's the problem. I cannot reterieve the data as expected, using PHP. If I make a select statement on the table that excludes the ADDRESS column I get the results as expected. If the ADDRESS column is included I get an error when fetching the row:
ORA-00932: inconsistent datatypes: expected CHAR got ADT
I'm assuming this is because the the cell cannot be cast to a string. How can I select the row so that the ADDRESS column is returned as an object? Can I even? If I can't, I don't see the use of Object Data Types... :(
I have found that I can select a field of the type using:
SELECT t.ADDRESS.TOWNCITY FROM SUPPLIERS t;
But this is not ideal, because the whole idea was that I could (potentially) change the format for, in my example, an address, and not need to alter my SQL statements.
Any ideas??PHP OCI8 can currently only bind simple types. Here are two possible
solutions.
-- cj
create or replace type mytype as object (myid number, mydata varchar2(20));
show errors
create or replace type mytabletype as table of mytype;
show errors
create or replace procedure mycreatedata1(outdata out mytabletype) as
begin
outdata := mytabletype();
for i in 1..10 loop
outdata.extend;
outdata(i) := mytype(i, 'some name'||i);
end loop;
end;
show errors
-- Turn the data into a ref cursor (but PHP OCI8 doesn't use prefetching for ref cursors)
create or replace procedure mywrapper1(rcemp out sys_refcursor) as
data mytabletype;
begin
mycreatedata1(data);
open rcemp for select * from table(cast(data as mytabletype));
end mywrapper1;
show errors
-- Turn the data into two collections
-- This might be faster than returning a ref cursor because you can
-- use oci_bind_array_by_name() on each parameter.
create or replace procedure mywrapper2(pempno out dbms_sql.NUMBER_table, pename out dbms_sql.VARCHAR2_table) as
data mytabletype;
begin
mycreatedata1(data);
select myid, mydata
bulk collect into pempno, pename
from table(cast(data as mytabletype));
end mywrapper2;
show errorsThen in PHP you could do:
// Use a Ref Cursor
$s = oci_parse($c, "begin mywrapper1(:myid); end;");
$rc = oci_new_cursor($c);
oci_bind_by_name($s, ':myid', $rc, -1, OCI_B_CURSOR);
oci_execute($s);
oci_execute($rc);
oci_fetch_all($rc, $res);
var_dump($res);
// Use Collections
$s = oci_parse($c, "begin mywrapper2(:myid, :mydata); end;");
oci_bind_array_by_name($s, ":myid", $myid, 10, -1, SQLT_INT);
oci_bind_array_by_name($s, ":mydata", $mydata, 10, 20, SQLT_CHR);
oci_execute($s);
var_dump($myid);
var_dump($mydata); -
How to use User Options and User-Defined Fields in DC Group function?
Dears,
As title, when should I use above fields? I did not see the related information in SAPME help library.
Thanks!The user options fields are just information fields you can store at the Data Collection Maintenance activity. You can think of these as extra information fields for storage purposes only. I can't give you a use case except to say 'information fields' only.
With regards to the User-Defined fields in DC Group - you can think of these as extra data fields to be collected. They will appear immediately underneath the data parameter they are defined in in the DC Plug-in for the POD. They do not have limits but are just extra pieces of data you may want to collect about the specific parameter.
Maybe you are looking for
-
Can anyone help me get my iMac to reboot? I get a gray "curtain" over the light gray start up screen with a message that I need to restart my computer and to hold the power button until it powers off and then press the power button again to restart.
-
Hide Buttons for Business Partner - CRM 5.0
Hi, I am trying to implement roles in CRM 5.0. I want some buttons like "Create person" and "Create Group" to be hidden for a certain user. I have used the Object B_BUPA_RLT but still it is not working. Any suggestions ? Regards Raj
-
Minimum Macbook Pro for FCPx and Compressor
I do most of my video work on an 3.4 Ghz i7, 16GB iMac, but I'd like to be able to use a Macbook Pro, when traveling or for handing off tasks to a secondary machine. My current Macbook is looking like it's on its last legs so the time is arriving t
-
How to stop phone from dialing other numbers while I am on the phone
Hello everyone one out there!! I have had the iphone for over a month now and I am very happy with it so far. I was somewhat hesitate from buying after reading all the horror post that users have been leaving, but with anything I must try it out myse
-
HT3775 What is required to play a .wmv file on a MAC OS X 10.6.8?
I have a MAC desktop with an MAC OS X 10.6.8 and have tried everything known to man to be able to play an .wmv file. Any suggestions? Thank you.