F4 functionality in select option.
Hi,
I am not able to get list of values of f4 help for the fields of select option table fields.Even though there are records available in the base table ,whose field is used as reference to the selection option field.
Kindly let me know, is there any prerequisite i need to do for this problem.
With Rgds,
Anil
Here is example code for the on value request:
data: gd_name like USR02-BNAME.
select-options so_fpath for rlgrap-filename.
*at selection-screen
AT selection-screen on value-request for so_fpath-low.
then within here call the function module or execute
the code you want to happen when the user press f4.
i.e. call FM F4_user which provides a search help for
SAP users:
CALL FUNCTION 'F4_USER'
EXPORTING
OBJECT = '*'
IMPORTING
RESULT = gd_name.
But personnelly if the other way works fine by referencing the correct field i would go down that route.
Hope this helps
Mart
P.s.
There are also a few examples of using 'on value-request' on the http://www.sapdevelopment.co.uk website, one being http://www.sapdevelopment.co.uk/file/file_fmfile.htm or just do a search for 'on value-request' from the main site.
Similar Messages
-
Is possible in a dialog screen attach a field functional like select-option
hi,
Is it possible - in a dialog screen - to attach a field that has functionality like Select-options fields?
And if so - how?
and information about complex_selections_dialogHi,
Look at the below links
module pool programming " to add selection-option on screen"
module pool programming " to add selection-option on screen"
Regards
Sudheer -
Clipboard functionality in Select-options in a WD4A application
Hi,
Currently in the select - options in a normal ABAP program we can paste multiple values from clipboard
Does anyone have an idea on whether this functionality will be extended to WD4A too.
Is there any workaround such that multiple values in a Select-option can be populated with values in the clipboard/spreadsheet
regards
SchunderHi Thomas,
Thanks for the update,
what I was thinking of is to open an OSS on this to find out if this functionality will be extended in future,
since existing SAP users are really missing this on the web front end
Thanks
Schunder -
Call function with select options problem
Hi there dear SDN community members.
I have got an strange ABAP problem wich function call.
Code1
CLEAR ls_selec .
ls_selec-iobjnm = '9AMATNR' .
ls_selec-sign = 'I' .
ls_selec-option = 'EQ' .
ls_selec-low = '0000000000000000000000000000000000017714' .
APPEND ls_selec TO lt_selec .
CLEAR ls_selec .
ls_selec-iobjnm = '9AMATNR' .
ls_selec-sign = 'I' .
ls_selec-option = 'EQ' .
ls_selec-low = '0000000000000000000000000000000010079409' .
APPEND ls_selec TO lt_selec .
CALL FUNCTION '/SAPAPO/TS_PLOB_LIST_GET'
EXPORTING
iv_bas_plobid = 'Z_DP_POS'
it_selection = lt_selec
it_group_by = lt_group
IMPORTING
et_plob_values = lt_plobs .
Function returns data in lt_plobs itab only for the last product which was appended to the selection table lt_selec.
Whilst
Code2
CLEAR ls_selec .
ls_selec-iobjnm = '9AMATNR' .
ls_selec-sign = 'I' .
ls_selec-option = 'BT' .
ls_selec-low = '0000000000000000000000000000000000017714' .
ls_selec-high = '0000000000000000000000000000000010079409' .
APPEND ls_selec TO lt_selec .
Returns data in lt_plobs for all products included in selection tab lt_selec.
What am I doing wrong in case of Code1? Why function does not return data for both products included in selection tab lt_selec?
Will be thankful for help. Regards. P.I am very sorry to take your time unnecessarily.
The problem was caused by data inconsistency in our sandbox system I was developing in.
Be understanding, please.
Kind regards. P.
Ps.
Vinod Nair
The 'Loop' solution has slowed the performance down very much. -
Total funcnality of select options in function module
Dear ABAPers
i am using structure and ranges to meet the functionality of select-options in function module3
but unlike reports if i leave it blank rather than selecting all the data it comes blank.
how can i do that
coz my select query uses 8 selection criteria and user may enter one two or three as per his need.
in that case the output comes out to be blank.
how this can be resolved
Thanks and Regards
Luthra, Deep.You have to maintain conditions for all your possibilities.
Something like this.
IF ( post_dt_from IS INITIAL AND post_dt_to IS INITIAL AND
doc_dt_from IS INITIAL AND doc_dt_to IS INITIAL ) OR
( post_dt_from IS INITIAL AND post_dt_to IS NOT INITIAL AND
doc_dt_from IS NOT INITIAL AND doc_dt_to IS NOT INITIAL ) OR
( post_dt_from IS NOT INITIAL AND post_dt_to IS INITIAL AND
doc_dt_from IS NOT INITIAL AND doc_dt_to IS NOT INITIAL ) OR
( post_dt_from IS NOT INITIAL AND post_dt_to IS NOT INITIAL AND
doc_dt_from IS INITIAL AND doc_dt_to IS NOT INITIAL ) OR
( post_dt_from IS NOT INITIAL AND post_dt_to IS NOT INITIAL AND
doc_dt_from IS NOT INITIAL AND doc_dt_to IS INITIAL ) OR
( post_dt_from IS NOT INITIAL AND post_dt_to IS INITIAL AND
doc_dt_from IS INITIAL AND doc_dt_to IS INITIAL ) OR
( post_dt_from IS INITIAL AND post_dt_to IS NOT INITIAL AND
doc_dt_from IS INITIAL AND doc_dt_to IS INITIAL ) OR
( post_dt_from IS INITIAL AND post_dt_to IS INITIAL AND
doc_dt_from IS NOT INITIAL AND doc_dt_to IS INITIAL ) OR
( post_dt_from IS INITIAL AND post_dt_to IS INITIAL AND
doc_dt_from IS INITIAL AND doc_dt_to IS NOT INITIAL ) OR
( ( post_dt_from IS NOT INITIAL AND post_dt_to IS NOT INITIAL ) AND
( doc_dt_from IS NOT INITIAL AND doc_dt_to IS NOT INITIAL ) ). -
Hi expert,
I maked a modul pool ( se80 ) and i maked a dynpro. In this dynpro i putted a Input/Output field.
It's run ok, but I would change it in select-options and not a simply I/O field.
It's possible ? How ?
Tks a lot,
bye.
<LOCKED BY MODERATOR - DUPLICATED THREAD>
Edited by: Alvaro Tejada Galindo on Jan 7, 2009 4:01 PMLet 1000 be the module pool screen on which you want to put Range button.
Make a subscreen area on it. Let it be named as sub_area.
Now make a selection screen in your program.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
SELECT-OPTIONS R_PERNR FOR PERNR-PERNR.
SELECTION-SCREEN END OF SCREEN.
Now in screen 1000 flow logic, we can call the selection screen in the sub screen area defined.
In PBO of 1000
CALL SUBSCREEN SUB_AREA INCLUDING SY-REPID '0100'.
Now, code in AT SELECTION-SCREEN OUTPUT event will be exe.
In PAI of 1000
CALL SUBSCREEN SA_SS. as the first line after PAI
Now, AT SELECTION-SCREEN event will be exe.
Using above method u will get the functionality of Select-Options of Selection Screen on a Module Pool Screen. -
Regarding select option in a module pool prog .
hello .. i need some help regarding select options in a module pool program .. i hav tried putting a select options in a module pool prog but i am not able 2 ... can any one tel me why select options r not aloowed in a module pool prog ?? and i read that we hav 2 use ranges 2 fulfil the needs of the select options . is there any way i cal get all the functionality of select options ( eg including , excludig , equal to , not equal to , .... .) using a range ??
Hi
Select-options won't work if you declare the program as Module POOL.
if you wants to use select-options like utility in module pool programming
use ranges
declare and develop ranges and use that in select statement where condition.
ranges: r_vbeln for vbak-vbeln.
r_vbeln-low = '0018900678'.
r_vbeln-sign = 'I'.
r_vbeln-option = 'EQ'.
append r_vbeln.
r_vbeln-low = '0018900456'.
r_vbeln-sign = 'I'.
r_vbeln-option = 'EQ'.
append r_vbeln.
reward if useful
regards
Anji -
BAPi, Select-options,?????
Hi Experts,
I hv declared( to get the functionality like select-options),
<i> s_cust LIKE RSPARAMS</i>
as IMPORT parameter in my_bapi.
So, now, I wanna to add like(like single values in select-options),
<u>SIGN::::::::::::::::OPTION:::::::::::::::LOW::::::::::::::::HIGH</u>
I..............................EQ....................10
I..............................EQ....................20
similarly, I wanna to add like(like Ranges in select-options),
<u>SIGN::::::::::::::::OPTION:::::::::::::::LOW::::::::::::::::HIGH</u>
I..............................BT....................10.........................20
But, in se37, after pressing F8, in s_cust, I am unble to enter the values, as I said above?
Pls, clarify.
ThanQ.ThanQ.
Yes, I did it. Fine. I mean, I defines s_cust as TABLE in Bapi:
So, pls. let me know, How to pass these s_cust to report prog. with SUBMIT statemnt? Actually, I am opened another thread(title is <b>How to pass the Tables from BAPi to Report Prog. with SUBMIT?</b>) for this issue.
thanq.
Message was edited by:
Srikhar -
Select options in function module
hi friends, pls help me reg my query.
I have wERKS select-options
on the selection screen.
(This same thing, i want to pass in FM)
2. So in FM, I have used the
TABLES parameter (Not import, nor export)
3. And the type given is
WERKS_RANG
i defined it like
plant type WERKS_RANG
(This WERKS_RANG has 4 fields,
just like a select option
SIGN
OPTION
LOW
HIGH
4. Then inside fm,
i used SELECT Query,
and use IN WERKS.
below is my code in FM.
select lgort labst
from mard
into table imard1
where PLANT in werks
and material1 = matnr.
but i am getting an error "field plant is unknown". i have defined it under tables parameter..pls help
how shud i get the values i enter in select option for main program in se38 to function module field 'plant'...Hi
You can define your TABLE parameter WERK without reference and define a range in your fm:
FUNCTION Z_PROVA_PROVA.
""Interfaccia locale:
*" IMPORTING
*" REFERENCE(MATNR) TYPE MATNR
*" TABLES
*" SEL_WERKS
RANGES R_WERKS FOR MARD-WERKS.
R_WERKS[] = SEL_WERKS[].
DATA: BEGIN OF IMARD1 OCCURS 0,
LGORT LIKE MARD-LGORT,
LABST LIKE MARD-LABST,
END OF IMARD1.
SELECT LGORT LABST FROM MARD INTO TABLE IMARD1
WHERE WERKS IN R_WERKS
AND MATNR = MATNR.
Max -
Hello,
I need to use a select options in a Function module and then i have to send the values to a Report program.
How can I do it?
Thanks.This is how I have done in past...
In a type-group define types like this
TYPES : zmb52_tr_matnr TYPE RANGE OF mara-matnr ,
zmb52_tr_werks TYPE RANGE OF marc-werks ,
zmb52_tr_lgort TYPE RANGE OF mard-lgort ,
zmb52_tr_charg TYPE RANGE OF mchb-charg ,
zmb52_tr_mtart TYPE RANGE OF mara-mtart ,
zmb52_tr_matkl TYPE RANGE OF mara-matkl ,
zmb52_tr_ekgrp TYPE RANGE OF marc-ekgrp ,
zmb52_tr_sobkz TYPE RANGE OF mkol-sobkz ,
and use it in FM like this
FUNCTION zgetstock.
*"*"Local Interface:
*" IMPORTING
*" REFERENCE(I_SPMON) TYPE SPMON
*" VALUE(I_MATNR) TYPE ZMB52_TR_MATNR OPTIONAL
*" VALUE(I_WERKS) TYPE ZMB52_TR_WERKS OPTIONAL
*" VALUE(I_LGORT) TYPE ZMB52_TR_LGORT OPTIONAL
*" VALUE(I_CHARG) TYPE ZMB52_TR_CHARG OPTIONAL
*" VALUE(I_MTART) TYPE ZMB52_TR_MTART OPTIONAL
*" VALUE(I_MATKL) TYPE ZMB52_TR_MATKL OPTIONAL
*" VALUE(I_EKGRP) TYPE ZMB52_TR_CHARG OPTIONAL -
How to use select-options in the function module of import parameter ?
Hi ...
I have created a BAPI and tested in SWO1 tcode , by giving the single value for an company code ( BUKRS ) , it executed properly .
Same thing is working after implementing in a program .
so now it is working for fetching a single company code details .
My requirement is : I want to use select-options in program as well as in function module IN IMPORT PARAMETER.
Program :
REPORT ZTEST.
TABLES : T001 , ZBAPI_STR .
TYPES : BEGIN OF TY_ITEM .
INCLUDE STRUCTURE ZBAPI_STR .
TYPES : END OF TY_ITEM .
DATA :WA_ITEM TYPE TY_ITEM ,
ITEM LIKE STANDARD TABLE OF WA_ITEM INITIAL SIZE 0 .
PARAMETER : BUKRS TYPE ZBAPI_STR-BUKRS.
call function 'ZBAPI_FMT001'
exporting
bukrs = BUKRS
IMPORTING
RETURN =
tables
itemtab = ITEM
IF ITEM IS NOT INITIAL .
LOOP AT ITEM INTO WA_ITEM .
WRITE : / WA_ITEM-BUKRS , WA_ITEM-BUTXT , WA_ITEM-ORT01 , WA_ITEM-LAND1 .
ENDLOOP.
ENDIF.
FUNCTION MODULE :
FUNCTION ZBAPI_FMT001.
""Local Interface:
*" IMPORTING
*" VALUE(BUKRS) TYPE EFG_TAB_RANGES
*" EXPORTING
*" VALUE(RETURN) TYPE BAPIRET2
*" TABLES
*" ITEMTAB STRUCTURE ZBAPI_STR
SELECT BUKRS BUTXT ORT01 LAND1 FROM T001 INTO TABLE ITEMTAB WHERE BUKRS = BUKRS .
ENDFUNCTION.
Regards
Deepa.I have given a similiar example which i did
Declare a
Table type:Z_TT_PONUM
Short text : Select options PO Number
in SE11 tcode with row type eg: Z_ST_PONUM
create a structure (this will be the row type)
Structure Z_ST_PONUM
Short text Select Options Field PO number
Compenent Compent type
SIGN BAPISIGN Inclusion/exclusion criterion SIGN for range tables
OPTION BAPIOPTION Selection operator OPTION for range tables
LOW EBELN Purchasing Document Number
HIGH EBELN Purchasing Document Number
In the function module import
give as
I_PO_NUM TYPE Z_TT_PONUM opt pass value Select options PO Number
Hope this is exactly what you want to know.
So you create a structure simliar to mine but the low an high whould be your component
then a table type and then include that in the BAPI.
Then pass your select-option value to this BAPI when you call this BAPI in the program -
How to define select option in function module
Hi expert,
Actually in my program i am using two select options plant and project definition. i have to pass those two select options to my function module. What i did is i declared that two select options in tables tab using RSDSSELOPT structure. My function module is working correctly when i am testing in se37 but if i am calling my function module from my program its showing dump error 'TYPE CONFLICT WHEN CALLING A FUNCTION MODULE(field length)'. please tell me how to solve this problem.
Regards,
RathishProblem solved
-
Select option in function module
I have:
select-options: s_date for oijne-astdtt. in my screen.
I want to put my code in a function module, but as known that the s_date structure is
s_date-low
s_date-high
also in select statment,
select nomtk into table int_fnomtk from oijne where astdtf in s_date.
I want to pass the s_date value to the where condition in the select statment.
how i can u solve this problem.Hi Ali,
You can use ranges,
Kindly go through the sample code below:
RANGES : r_afaber FOR anlp-afaber, " for depreciation area
r_peraf FOR anlp-peraf. " for depreciation period
INITIALIZATION
TO INITIALIZE ALL THE VARIABLES TO BE USED
IN THE PROGRAM
INITIALIZATION.
r_afaber-sign = 'I'. " for inclusive
r_afaber-option = 'EQ'. " for equal operator
r_afaber-low = c_afaber_01. " depreciation area(low value)
APPEND r_afaber. " append values for depreciation area
r_afaber-sign = 'I'. " for inclusive
r_afaber-option = 'EQ'. " for equal operator
r_afaber-low = c_afaber_07. " depreciation area(low value)
APPEND r_afaber. " append values for depreciation area
r_peraf-sign = 'I'. " for inclusive
r_peraf-option = 'BT'. " for between operator
r_peraf-low = c_peraf_001. " depreciation period(low value)
r_peraf-high = c_peraf_012. " depreciation period(high value)
APPEND r_peraf. " append values for depreciation period
Hope it helps you
Regrds
Mansi -
Using selection options in functions..
Hi,
I have written abap program in which there are 3 selection options.. I want to pass these selection options to a function. so I want to know how to define or refer selection options in functions which is called by some other abap program ?
Regards,
SantoshThe select options are basically just tables with a specific structure. One option would be to specify them as TABLES parameters, e.g. check out function module BAPI_MATERIAL_GETLIST and you can see for example a call via function IAC_SHMA_MATERIALS_SELECT (or check dictionary table type SHP_MATNR_RANGE_T in SE11).
Cheers, harald -
Passing Select-options as parameter to function module
I need to pass a select-option as a parameter to a function module. Is this possible?
There is an option of passing all the values of the select-option to an internal table, passing that internal table as parameter to the function module, and then adding it manually again to a select-option in the function module.
But is there any direct way to do this?Hi,
I have a similar problem: I have RFC function module to which I want to pass select options. Therefore I defined table parameters as follows:
IT_RUNID TYPE EFG_TAB_RANGES
IT_PERNR TYPE EFG_TAB_RANGES
IT_REINR TYPE EFG_TAB_RANGES
I can successfully pass my values to the module, but if I try to check these parameters
using
CHECK IT_TRIPS-RUNID IN IT_RUNID.
CHECK IT_TRIPS-PERNR IN IT_PERNR.
CHECK IT_TRIPS-REINR IN IT_REINR.
the check always fails, I guess because there are leading zeros in the ranges. Is there a way to solve this problem?
Thanks and regards,
Martin
Maybe you are looking for
-
Absence Quota Carried Forward to Next Year
Hi All hope you are doing well. I was looping around for carry forward remaining absence quota from one year to next year Requirement: Absence Quota for 20 days generated from 01.01.2012 to 31,12.2012, deducted 4 days on december 2012 but absence qu
-
How can I know what page I'm on in a document?
One of the worst features in AppleWorks was that it would only display the total number of pages but not the page you were looking at/working on. It's very disturbing to me that this archaic feature was brought back for the new Pages. I want to be ab
-
Enterprise manager 11g - win 2003 - sys/passwd error
We have windows 2003 server and we are running 2 oracle databases in version 11g. We were successfully configured EM for one database and when we tried for the other database we encountered configuration errors and the log file doesnt carry that much
-
ITunes won't play song, even though pause button appears
Recently my iTunes has stopped playing songs. If I click the play button, the pause button appears but the progress bar does not move and no sound is made. The volume on my computer is fine as I can still watch videos on youtube and such. I've recent
-
Second Patch for Oracle Dev. 6.0
Where is the second Patch for Oracle Developer 6.0. It was announced for the end of the last week. Gnter null