How to modify a select option without range and mutiple selection??
hi all,
i need to modify a select option by removing the range and option for multiple entry. i other words i need to make select option as parameter.( because i cannot use parameter in my program due to some constraints.)
is it possible to change the select option as per my requirement if yes please let me know how is it possible.
Thanks in advance.
Sreekanth.
hi,
Yes u can use code like following way..
select-options : s_matnr for mara-matnr no-extension no intervals.
Reward if helpful.
Regards
Gagan
Similar Messages
-
How to use select options whitout ranges ie like parameter
how to use select options whitout ranges ie like parameter and pls send me the code on that
thanks
raja.hi,
SELECT-OPTIONS : s_kunnr for kna1-kunnr <b>no intervels.</b>
eg: code
<b>SELECT-OPTIONS : s_kunnr for kna1-kunnr <b>no intervels.</b></b>
data: itab type table of kna1 with header line.
select * from kna1 into table itab where kunnr IN s_kunnr.
rgds
Anver -
How to modify JSP on Weblogic without restarting a server
Hello,
Could someone explain how to modify JSP on Weblogic without restarting a server?
We use WL 10.2.
I search and modify required jsp on a server, but nothing happens on a Web Browser. I run in Development mode.
Please advice,
Thanks,
YuriHi Yuri,
As you are in Development mode you have one options to use the Auto Deploy folder which can be found in the following path (domain_name/autodeploy).
More information on Auto Deployment check the below link:
http://download.oracle.com/docs/cd/E11035_01/wls100/deployment/autodeploy.html#wp1021626
Other option is to use the following parameter "*page-check-seconds*" in your weblogic.xml file
For more information check out the below link
Topic: jsp-descriptor
http://download.oracle.com/docs/cd/E13222_01/wls/docs103/webapp/weblogic_xml.html#wp1038491
Hope this helps you.
Regards,
Ravish Mody
http://middlewaremagic.com/weblogic/
Middleware Magic | Come, Join Us and Experience The Magic… -
I own PS Elements 11 on CDs but recently purchased an new computer without a CD drive. Can I transfer PS Elements to my new computer and, if so, how? Is my only option to purchase and download PS Elements 13?
You can download and install PSE11 from the link below. Validate with the serial number from your CD packaging. It has 24 digits commencing 1057
http://helpx.adobe.com/photoshop-elements/kb/photoshop-elements-10-11-downloads.html -
Select-Options in Tabstrip and Subscreen for MIGO
Hi,
I have to enhance MIGO tansaction using screen exit.
I have to create a tab called Serial Number Ranges and inside the tab create a sub screen.
Inside the subscreen i have to create a range (select option for Serial Number.)
I have create a module pool program and created one screen with the tab and subscreen.
In the main program i have create a selection screen as subscreen and declared select options.
then i have called the screen in PBO and PAI..
it doesnt seem to work...
can u suggest a solution different from this?Hi,
Check out these links:
[http://sample-code-abap.blogspot.com/2008/06/select-option-in-module-pool-screen.html]
[http://abap-explorer.blogspot.com/2008/08/create-select-options-in-module-pool.html] -
Hiding of Select Options in screen based on selection in selection list box
Hi People,
I have a screen where i have put a selection list box, it is pre-filled with values, Now based on the value which user selects, I want to show/hide some select-options fields. I have declared the select options in the top include of my program,
SELECT-OPTIONS: so_user FOR ls_rsp_user-user_id MODIF ID 222,
so_userg FOR ls_rsp_usergrp-user_grp_id MODIF ID 333,
so_ccode FOR ls_vdmp-bukrs MODIF ID 444,
then in the PBO of my screen, I have written a module, set screen in which I loop over screen & check the group id's
LOOP AT SCREEN.
IF screen-group1 = '111'.
IF gv_hier_resp_fields_flag IS NOT INITIAL.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ELSEIF screen-group1 = '222'.
IF gv_user_fields_flag IS NOT INITIAL.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ELSEIF screen-group1 = '333'.
IF gv_user_group_fields_flag IS NOT INITIAL.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
I am setting some flags based on the value which user selects in the selection list box, When I debugged I found that the flags were being set correctly, but the screen group value never set to '222' or '333', these are id's i have used for select options. Hence I am unable to hide/show the select options fields. Kindly suggest some solutions for this.
Thanks & Regards,
Deepakthen in the PBO of my screen
Your SELECT-OPTIONS are defined in a SELECTION-SCREEN so the PBO actions must be maintained in a AT SELECTION-SCREEN OUTPUT block.
I suppose the selection-screen is a subscreen, if you dont want to get unwanted interactions with a main selection-screen of the report, check sy-dynnr
AT SELECTION-SCREEN OUTPUT.
CASE sy-dynnr.
WHEN '1000'. " main screen of report
WHEN '0100'. " selection-screen defined as subscreen
LOOP AT SCREEN.
CASE SCREEN-GROUP1.
WHEN '111'.
ENDCASE.
ENDLOOP.
ENDCASE.
Regards,
Raymond -
Disable the select-options dynamically based on value selected in listbox
Hi friends,
I have a peculiar problem in my program.
I have a list box with two values.
1) With Ref to Reservation No.
2) Production order.
I am doing the object for Transfer Posting ( Similar to MIGO).
The contents of the listbox here are acting as the label to my select-options.
I have two select-options in my program.
1) Reservation No (s_rsnum for rsnum)
2) Production Order (s_porder for aufnr)
In runtime, based on the label selected in the listbox, the corresponding select-option should be in visible mode.
for eg: if i select "With ref to Reservation No" S_rsnum should be enabled and vice-versa.Hi,
here an example with listbox:
TABLES: MARA.
PARAMETERS: P0 DEFAULT 'KAUF' LIKE MARA-MTART AS LISTBOX VISIBLE LENGTH 8 USER-COMMAND DUMMY.
SELECTION-SCREEN: SKIP 3.
SELECT-OPTIONS: S_MATNR FOR MARA-MATNR MODIF ID DI1.
SELECTION-SCREEN: SKIP 3.
SELECT-OPTIONS: S_MATKL FOR MARA-MATKL MODIF ID DI2.
AT SELECTION-SCREEN OUTPUT.
IF P0 = 'KAUF'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 EQ 'DI1'.
SCREEN-ACTIVE = '1'.
SCREEN-INPUT = '1'.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 EQ 'DI2'.
SCREEN-ACTIVE = '0'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
IF P0 <> 'KAUF'.
LOOP AT SCREEN.
IF SCREEN-GROUP1 EQ 'DI1'.
SCREEN-ACTIVE = '0'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
IF SCREEN-GROUP1 EQ 'DI2'.
SCREEN-ACTIVE = '1'.
SCREEN-INPUT = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
use your own listbox in If-Clauses.
Regards, Dieter -
I want to bulk purchase single tracks for my ipod, how do i go about this without buying and paying each time, can i not amass a number of tracks and then go to checkout. It seems to want to charge me each time. Help!
Put them in your wishlist
-
How to put "selection options without intervals" on screen painter?
Hello all,
I need to put a field for pernr(personal number) on screen painter (module program) and user should be able to enter a list of pernr's to process. I know in report program I can do this by:
SELECT-OPTIONS: s_lpernr FOR pa001-pernr NO INTERVALS.
How can I get this work on sccreen painter in module programming? How can I add a field on screen painter with a range without intervals? Please let me know.
Thanks.
Mithun.You can also do this using the function module COMPLEX_SELECTIONS_DIALOG.
REPORT ZTEST_SCREEN .
DATA : BEGIN OF IT_DYNPFIELDS OCCURS 3.
INCLUDE STRUCTURE DYNPREAD.
DATA : END OF IT_DYNPFIELDS.
DATA: TEST(10) TYPE C.
RANGES: R_UNAME FOR SY-UNAME.
DATA: V_USERNAME LIKE SY-UNAME.
DATA : V_PROG LIKE D020S-PROG VALUE 'ZTEST_SCREEN',
V_DNUM LIKE D020S-DNUM VALUE '0100'.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
* text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'TEST'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module GET_CURSOR_USERNAME INPUT
* text
MODULE GET_CURSOR_USERNAME INPUT.
REFRESH IT_DYNPFIELDS.
CLEAR IT_DYNPFIELDS.
MOVE 'V_USERNAME' TO IT_DYNPFIELDS-FIELDNAME.
APPEND IT_DYNPFIELDS.
CLEAR IT_DYNPFIELDS.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = V_PROG
DYNUMB = V_DNUM
TRANSLATE_TO_UPPER = 'X'
TABLES
DYNPFIELDS = IT_DYNPFIELDS
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11.
IF SY-SUBRC EQ 0.
READ TABLE IT_DYNPFIELDS WITH KEY FIELDNAME = 'V_USERNAME'.
IF SY-SUBRC = 0.
V_USERNAME = IT_DYNPFIELDS-FIELDVALUE.
ENDIF.
ENDIF.
PERFORM GET_MULTIPLE.
ENDMODULE. " GET_CURSOR_USERNAME INPUT
*& Form GET_MULTIPLE
* text
* --> p1 text
* <-- p2 text
FORM GET_MULTIPLE .
* Dynamically holding Field name
FIELD-SYMBOLS: <FST> TYPE STANDARD TABLE.
IF R_UNAME[] IS INITIAL.
IF NOT V_USERNAME IS INITIAL.
R_UNAME-SIGN = 'I'.
R_UNAME-OPTION = 'EQ'.
R_UNAME-LOW = V_USERNAME.
APPEND R_UNAME.
CLEAR R_UNAME.
ENDIF.
ENDIF.
ASSIGN R_UNAME[] TO <FST>.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
TITLE = 'Select Multiple Value'(059)
TEXT = 'Finish Group'(058)
SIGNED = 'X'
LOWER_CASE = ' '
NO_INTERVAL_CHECK = 'X'
JUST_DISPLAY = ' '
JUST_INCL = 'X'
TABLES
RANGE = <FST>
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
OTHERS = 4.
IF SY-SUBRC EQ 0.
READ TABLE R_UNAME INDEX 1.
IF SY-SUBRC = 0.
V_USERNAME = R_UNAME-LOW.
ENDIF.
ENDIF.
ENDFORM. " GET_MULTIPLE -
Select options- (negavtive range)
Hi,
My doubt is ...Is it possible to add a condition in the code to fetch data if we enter a range of valuesin the RED column of the selection screen .To be precise I want to restrict dates in my selection screen,if i enter certain dates in the selection screen I dont want the details of that date to be printed.By default itself if i enter it in the Red column ,it will restrict but my requirement is to do some more changes if I have given it in the RED columns,so I want to knw if i can add code in the program ,if so how to do it.Please advice.Hi,
Please try something like this.
select-options: so_date for sy-datum.
initialization.
*exclude the dates between August 01, 2007 and August 10, 2007
so_date-sign = 'E'.
so_date-option = 'BT'.
so_date-low = '20070801'.
so_date-high = '20070810'.
append so_date.
Regards,
Ferry Lianto -
Limitation of using select-options or ranges
Hi
I have the following code to fill the select-option AUFNR with the orders from SEL_TAB table, which I have to submit to another report to get a result set.
LOOP AT SEL_TAB.
MOVE: 'I' TO AUFNR-SIGN,
'EQ' TO AUFNR-OPTION,
SEL_TAB-AUFNR TO AUFNR-LOW.
APPEND AUFNR.
ENDLOOP.
I know that we can use the RANGES option also for the above scenario since I don't display the select-option AUFNR in my selection screen.
My question is, is there any limitation to how many number of values the RANGES or SELECT-OPTIONS can hold? Is it 200 or 256? I am not sure of this figure, can anyone give the exact number?
Thanks,
Bala.Hi Bala,
there's not SAP limitations for range dimension but there is a limitation about native SQL statement size.
In fact an open SQL statement (in ABAP language) will be translated in native SQL .
For example:
select * from mara where matnr in r_mara
will be translated in
SELECT ... FROM MARA WHERE MATNR = value1 OR MATNR = value2 etc...
So if your range is too large, the native SQL will exceed the maximum length (and short dump will occur).
with the following simple trick you can bypass the problem:
describe table rng_ebeln_marc lines i.
if i > 0.
if i <= max_rng_rows. "MAX NUMBER OF RANGE LINES
select *
from ekbe
into table tekbe
where ebeln in rng_ebeln_marc.
else.
from_i = 1.
to_i = max_rng_rows.
clear new_ebeln_marc.
do.
if i < from_i.
exit.
endif.
append lines of rng_matnr_mara from from_i to to_i to new_ebeln_marc.
select *
from ekbe
appending table tekbe
where ebeln in new_ebeln_marc.
clear: new_ebeln_marc, new_ebeln_marc[].
from_i = from_i + max_rng_rows.
to_i = to_i + max_rng_rows.
enddo.
endif.
sort tekbe by ebeln ebelp zekkn vgabe gjahr belnr buzei.
endif.
This will split the sql statement into more (and shorter) statements. The result will be joined.
Let me know if you need further infos.
Kind Regards, Manuel -
I am trying to sync my iPod with my iTunes library and I recently added more music to my library than there is space on my iPod. Normally, I know iTunes is supposed to give you the option of creating an iPod selection playlist, so you can choose which songs you want to put from your library onto your iPod. However, iTunes won't currently give me that option. It simply gives me an error message saying there is not enough free space to sync my iPod. How can I get it to create the iPod selection playlist?
Start deleting stuff from your iPod to make room.
-
Validation for the select option value range of selection screen
Hi All.
if i wish to validate the selection screen parameter for a value range(select options),is it possible?
what should i write in code.Also,m using FM DD_DOMVALUES_GET to get the values for a specific domain name.
Please reply.Hiii,
Yes it is possible.... Can you give me the piece of code ... about the select option
and also the value range against which you want to validate the select option.
So that i can help you with the coding tips...
Thanks in advance.. -
How to get the data into select options if we have 10 select options
Hi Experts,
I facing problem to get the data from diffrent tables and different select options.
I have to pass different parameter ranges.
SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: rb1 RADIOBUTTON GROUP g1. "Existing Key Accounts
PARAMETERS: rb2 RADIOBUTTON GROUP g1. "Potential Key Accounts
SELECT-OPTIONS: s_part FOR but000-partner."Business Partner Number
PARAMETERS: p_bpkind LIKE but000-bpkind. "Business Partner Type
PARAMETERS: p_but000 LIKE but000-partner. "Key Account Manager
SELECT-OPTIONS : s_vkont FOR fkkvkp-vkont. "Contract Account
SELECT-OPTIONS : s_ktokl FOR fkkvkp-ktokl. "Debtor Type
SELECT-OPTIONS : s_sparte FOR ever-sparte. "Division
SELECT-OPTIONS : s_vertra FOR ever-vertrag. "Contract
SELECT-OPTIONS : s_budat FOR erdk-budat. "Invoice Date
SELECT-OPTIONS : s_netto FOR dberchv-nettobtr."Billing Amount
SELECT-OPTIONS : s_abrm FOR abc. "Consumption Value
SELECTION-SCREEN: END OF BLOCK b1.
need response asap.
Thanking you.
Regards Surya RamireddyHI,
You can use as many Select-options in the select statment,
Select XXXX yyyy from TABLE where FIELD In S_FIELD1 and
FIELD2 In S_FIELD2.
Regards
Sudheer -
How to run the variable exit without calling the variable selection screen?
Hi all
I have a query with 2 variables 0P_PRQUA (Previous Calendar Quarter (SAP Exit)) and ZCCDAT02.
ZCCDAT02 is a Key Date variable that is derived based on the last day of the quarter that is entered in 0P_PRQUA. The exit code works correctly when calling up the variable screen and ZCCDAT02 is derived properly.
The problem is that 0P_PRQUA is set to "Can be changed in query navigation". So if the user changes the value of the quarter the exit is not triggered and the value of ZCCDAT02 does not change.
Is it possible to trigger the exit or is there another way to do it? Ideas would be appreciated. I am trying to create a Web Template with a Dropbox box for the Quarter.
Query is written in BW 3.X.
Regards
ChamiHi guys
Just to restate the requirement. I want the user to be able to change the value of the variable, WITHOUT calling the variable selection screen.
I want the user to be able to change the value of the quarter by using a dropdown box from within the web template. Once that is selected I want the value of ZCCDAT02 to be derived from the new value of the quarter.
Regards
Chami
Maybe you are looking for
-
QTpro no longer working with WMV3 video
Has anything changed with QT that would prevent me from working with video that is WMV3 video and WMA2 stereo? I worked with several files of this format in October of 2008 and saved them to my MacBook only to find today that QTpro (v.7.6) tells me t
-
Embedded Attachments in BI Publisher Report
Is it possible to embed attachments (like other Word docs, etc.) into a BI Publisher Report? When viewing the report as PDF for example, the user would be able to double-click the attachment and open it up in the native client. If it is possible, h
-
I'm trying to use the contains access to make a query but JDO, here is my code : ( ignores the variables ) extent = pm.getExtent( Permission.class, false ); query = pm.newQuery( Permission.class, extent, "permissionGroupMap.contains(pgMap) & pgMap.us
-
Regular problem with video playback & audio video sync
So, I am regularly having two problems (I wonder whether they are connected) that I cannot solve and am hoping someone can tell me if I am out of luck or if I need to do something or add something. For example, because it happened again today. These
-
My computer has stopped recieving charge. The charger is in great condition, but it will not register, nor charge my computer. I do not know if its my mac or the charger. Is there any way to fix this?