F4 like search help + cprojects
hi folks,
is anybody out there who actually is using cprojects.
we found there a nice feature where we can call searchhelp-functionality by passing r/3 search-help.
does anybody know if this feature will become available as an standard bsp extension?
are there any plans from bsp side to have such features like r/3 abap select-options????
kind regards,
oliver
hi ,
u can have the searchhelp functionality very easily without creating ur own bsp extension.
This will involve some tricky javascript code.
We have done the same in our project
Check out the following link.
Re: Display search results in popup window
I hope that this will definitely help you.
Regards,
Ankur
Similar Messages
-
Date selection and search help component in jsp
Hi all:
In sap portal jsp development enviorment, is it possible to easily program the date selection and search help ( just look like search help in webdynpro ) ?Hello Jianhong,
the easiest way to set a value help is using HTMLB component in your JSP.
To do it, use next code:
<hbj:inputField
id="DateInputField"
type="date"
showHelp="TRUE"
... other attributes
/>
Before using HTMLB components in your JSP, don't forget to add this line to your page:
<%@ taglib uri= "tagLib" prefix="hbj" %>
regards.
mz -
Normally you relate a search help to a input box and let SAP to handle the F4. So after selecting a value, this value will be returned to the input box.
But i want to react on the value and don't put it automatically in the box, but process it first.
So my question is : is there a function module or class-method that simulates the search help for a given input and returns the chosen value ?
regards
Hans
[email protected]Hi
As Sergei told, it needs some further coding. I do not know a way to interfere standart search help functions even there is something like "Search help exit", I think it is just an exit for the search help designer about adjusting column widths etc... interfering standart action.
So it seems you should code your own POV in this case. There has been two long threads in this forum. You can search it. It is about coding POV and deals with "F4IF_FIELD_VALUE_REQUEST"/"F4IF_INTTAB_VALUE_REQUEST". Here are the URLs:
1. Re: POV : TableControl Multi-line User selection
2. Re: POV : SAP User Input F4 Value Help
Hope this helps...
*--Serdar -
Search help like tree structure.
Hi All,
I have a requirement to display the F4 search help like a tree structure , with different
Node(category fields ), under each node(category fields ) different work centers will exist.
Please suggest how I can achieve the tree format categories in search help.
Thanks for your cooperation.
Thanks,
Sri.Hi Sri,
U can have a look at the search help PRCTH in se11, which has an search help exit K_F4IF_SHLP_STANDARD_HIERARCHY
just execute this and try to debugg it...
Hope this solves your problem...
please ack if helpful .
Best of luck !
Thanks,
Ravi Aswani
Edited by: Ravi Aswani on Mar 15, 2010 8:45 AM -
Search Help for Document No. Like in CV02N
Dear Experts,
I'm currently making selection screen for a print program for DMS documents, where the selection parameters are exactly the same like CV02N (Change DMS Documents).
Problem is, we need the parameter to behave like CV02N too, with single search help that will fill in all parameter. I tried to find the match code object by debugging CV02N but to no avail.
Anyone has experience with this?
Thanks before,
SamTurned out that it's automatic. No need to use any match code object.
-
Dropdown help on textbox just like Google textbox search help dropdown
Hi,
I am on a requirement to show dropdown help while typing a text in textbox in ABAP webdynpro
For ex: If I type "P" in textbox, dropdown help show all related coustomers name whose names starts with "P" . Similarly, If I type " Bang" then dropdown help shows all words whose name starts with Bang.
Is this dropdown possible? or what else you think might be best suitable for such kind of search help just like in Google TextBox (Where you type and it shows all related words in tghe dropdown)
Please help if anyone worked/aware in such reqmt?
Thanks
PraveenHi,
Try with OVS (ObjectValueSelector)in web dynpro ,in this we search with employee name like P* , it gives all employee names started with P.
>>Remove reference to external website
Excuse if it is not related to your requirement.
Edited by: Lavanya YH1504 on Aug 19, 2010 3:39 PM
Edited by: Thomas Jung on Aug 19, 2010 10:11 AM -
I can delete my Internet history but I can't delete my words searched in different web sites. Would you like to help me?
Hi Niel,
There may be a problem with the definition of the rule to delete the characteristic. If you go to transaction RSMRT
and use the 'check' option to check the rule you created are there any errors for the check?
If not when you get the error message that you mention is there any additional error messages created in sm21
or dumps in ST22?
If not there may be a problem with the consistency of the cube if you goto RSRV>All Elementary tests>Transaction data
and run these tests for the cubes are there any error messages? If yes please try to use the repair function in RSRV
to correct any errors.
If none of the above helps you should delete the run you created, make a dummy change to the cube (e.g add a '.'
to the description of the cube, save the change and then activate the cube, please then try and create the
remodelling rule again.
Best Regards,
Des. -
Hi
I need to give search help for document number for a program exactly as it is there in the transaction CV04. Now in the transcation, doing F4 produces a subscreen where we may put additional fields like BOM too. After that the values are shown.
It's a module pool program where I need to do the changes. Decalring the doc number (doknr) as draw-doknr, as it is in the stadndard transaction, doesn't help.
Any ideas?
PushprajHi,
You can use Matchcode object CV01
fr ex:
Select-optiions: SO_DOCNO for draw-doknr matchcode object CV01.
Hope it helps. -
Help required for doing LIKE search in SQL
Hello All,
I have situation like below
DECLARE @TempTable TABLE (Name1 VarCHar(100), Name2 VarChar(100))
INSERT INTO @TempTable(Name1, Name2)
VALUES('_HASKAR','BHASK_R')
SELECT *
FROM @TempTable
WHERE Name1 LIKE Name2
Both the columns are having WildCard (underscores). How can I do like search so that the where condition will be TRUE?
Regards,
Amar Ankatha
amar ankathaHi,
If I understand correctly, the position of H, A, S, K, R is fixed in the strings and you can use
SUBSTRING function.
DECLARE @TempTable TABLE (Name1 VarCHar(100), Name2 VarChar(100))
INSERT INTO @TempTable(Name1, Name2)
VALUES('_HASKAR','BHASK_R')
SELECT *
FROM @TempTable
WHERE substring(Name1,2,4) = substring (name2,2,4) and right(Name1, 1) = right(Name2, 1)
Thanks.
Tracy Cai
TechNet Community Support -
Enhancing standard (single select)search help for Multiple value selection
Hi,
Standard search help for Business Partner (in cProjects) allows only single value selection for input fields. I want to make this multiple selection.
Is there a way to do it.
I used an OVS and built a similar search but its difficult to get the standard options like saving to personal value list etc in it.
It would be good if there is a way to modify the standard search help to allow multiple selection. Any ideas??
Appreciate your help,
Thanks,
Sri
Edited by: Sri on Sep 9, 2010 8:50 PM
Edited by: Sri on Sep 9, 2010 8:52 PMAs far as I know you can't make a standard ABAP dictionary search help return multiple entries - where you get this sort of functionality the searches don't use the standard Elementary search help framework (e.g. organisational structure searches)
Given that the WDA search help relies on these dictionary based searches, I'd think very much that you couldn't enhance it to return multiple. how you could even return multiple entries into a single UI element input field is also confusing to me.
I'd suggest creating a freely programmed value help, it would certainly take quite some effort to recreate those personal value lists etc, but it could be done - I don't like OVS, but that just me. -
Issue in custom search help for Suggest Value
Hi,
I have a requirement to have the suggest values pick up the records form any par of the string. Basically, using pattern. I have written the code in search help exit and it work in some cases and doesnt work for others.Eg. The result shows up for 123 but doesnt show for 1234, even though 1234 exists and it had showed up when i keyed in 123.
My select quest works fine and i can see the values in record tab but on the screen. What could be going wrong.
Thanks in advance for your help.
Pris.
PS: the code:
IF callcontrol-step = 'SELECT'.
DATA:lwa_selopt TYPE ddshselopt,
lit_selopt_id TYPE RANGE OF yselxyz-builder_id,
lwa_selopt_id LIKE LINE OF lit_selopt_id ,
lit_selopt_desc TYPE RANGE OF yselxyz-builder_name,
lwa_selopt_desc LIKE LINE OF lit_selopt_desc,
lwa_header TYPE yselabc,
lit_header TYPE STANDARD TABLE OF yselabc,
lv_sel_val TYPE ddshselopt-low.
READ TABLE shlp-selopt INTO lwa_selopt WITH KEY shlpfield = 'BUILDER_ID'."'DKEY'.
IF sy-subrc EQ 0.
lwa_selopt-option = 'CP'.
CONCATENATE '*' lwa_selopt-low INTO lwa_selopt-low.
MOVE-CORRESPONDING lwa_selopt TO lwa_selopt_id.
APPEND lwa_selopt_id TO lit_selopt_id.
MOVE-CORRESPONDING lwa_selopt TO lwa_selopt_desc.
APPEND lwa_selopt_desc TO lit_selopt_desc.
CLEAR:lit_header[],record_tab[].
SELECT builder_id builder_name FROM yselxyz INTO TABLE lit_header
WHERE ( builder_id IN lit_selopt_id )
OR ( builder_name IN lit_selopt_desc ).
SORT lit_header BY builder_id.
DELETE ADJACENT DUPLICATES FROM lit_header COMPARING builder_id.
CALL FUNCTION 'F4UT_RESULTS_MAP'
EXPORTING
source_structure = 'YSELABC'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = lit_header
CHANGING
shlp = shlp
callcontrol = callcontrol
EXCEPTIONS
illegal_structure = 1
OTHERS = 2.
callcontrol-step = 'DISP'.
EXIT.
ENDIF.
ENDIF.Issue Resolved. For less than 50 records, client side filtering takes over. In that case the search help exit will not come into picture. Issue resolved by avoiding client side rendering.
callcontrol-maxexceed = 'X'.
Thanks,
Pris. -
Search Help Not show/display the data
Dear All,
I have created a search help whith mannual itab of 4 entries. Itab is filled correctly, but when i see in the screen field it show the search help and display no record with the message 4 entries found; but I can't see the data.
pls. guide me what can be the problem
Thanks and Regards,
SohailHi,
If you want to Show the Search help for Particular Field in Screen painter , You must give the Code In PROCESS ON VALUE REQUEST(POV).
ie.
process on value-request.
field P9611-REQ_STATUS module GET_REQ_STATUS.
and in Program Give the internal table Fieldname in Capital Letter while Passing in Fuctional Module.
like.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'REQ_STATUS2' "internal table field
dynpprog = sy-dynnr
dynpnr = sy-dynnr
dynprofield = 'P9611-REQ_STATUS' "screen field name
value_org = 'S'
TABLES
value_tab = req_status_tab "internal table
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
With Regards
Kesavaperumal -
Hi All,
when am trying to search some ids using search help it is showing all ids.
For Ex: i want to search which ids starts with 'A', am give 'A*' but it is showing all ids.
Thanks in Advance{FUNCTION /VIRSA/ZVIRFFOWNER.
""Local interface:
*" TABLES
*" SHLP_TAB TYPE SHLP_DESCR_TAB_T
*" RECORD_TAB STRUCTURE SEAHLPRES
*" CHANGING
*" REFERENCE(SHLP) TYPE SHLP_DESCR_T
*" REFERENCE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
EXIT immediately, if you do not want to handle this step
IF CALLCONTROL-STEP <> 'SELONE' AND
CALLCONTROL-STEP <> 'SELECT' AND
" AND SO ON
CALLCONTROL-STEP <> 'DISP'.
EXIT.
ENDIF.
STEP SELONE (Select one of the elementary searchhelps)
This step is only called for collective searchhelps. It may be used
to reduce the amount of elementary searchhelps given in SHLP_TAB.
The compound searchhelp is given in SHLP.
If you do not change CALLCONTROL-STEP, the next step is the
dialog, to select one of the elementary searchhelps.
If you want to skip this dialog, you have to return the selected
elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
either to 'PRESEL' or to 'SELECT'.
IF CALLCONTROL-STEP = 'SELONE'.
PERFORM SELONE .........
EXIT.
ENDIF.
STEP PRESEL (Enter selection conditions)
This step allows you, to influence the selection conditions either
before they are displayed or in order to skip the dialog completely.
If you want to skip the dialog, you should change CALLCONTROL-STEP
to 'SELECT'.
Normaly only SHLP-SELOPT should be changed in this step.
IF CALLCONTROL-STEP = 'PRESEL'.
PERFORM PRESEL ..........
EXIT.
ENDIF.
STEP SELECT (Select values)
This step may be used to overtake the data selection completely.
To skip the standard seletion, you should return 'DISP' as following
step in CALLCONTROL-STEP.
Normally RECORD_TAB should be filled after this step.
Standard function module F4UT_RESULTS_MAP may be very helpfull in this
step.
IF CALLCONTROL-STEP = 'SELECT'.
EXIT. "Don't process STEP DISP additionally in this call.
ENDIF.
STEP DISP (Display values)
This step is called, before the selected data is displayed.
You can e.g. modify or reduce the data in RECORD_TAB
according to the users authority.
If you want to get the standard display dialog afterwards, you
should not change CALLCONTROL-STEP.
If you want to overtake the dialog on you own, you must return
the following values in CALLCONTROL-STEP:
- "RETURN" if one line was selected. The selected line must be
the only record left in RECORD_TAB. The corresponding fields of
this line are entered into the screen.
- "EXIT" if the values request should be aborted
- "PRESEL" if you want to return to the selection dialog
Standard function modules F4UT_PARAMETER_VALUE_GET and
F4UT_PARAMETER_RESULTS_PUT may be very helpfull in this step.
IF CALLCONTROL-STEP = 'DISP'.
PERFORM AUTHORITY_CHECK TABLES RECORD_TAB SHLP_TAB
CHANGING SHLP CALLCONTROL.
data: begin of i_idowner,
zvirffid like /virsa/zvirffids-zvirffid,
zvirffowner like /VIRSA/zvirffids-zvirffowner,
end of i_idowner.
data: wa_shlp TYPE SHLP_DESCR_T,
iface like DDSHIFACE occurs 0 with header line.
authority-check object 'GRCFF_0002' id 'YACTVT' field 'OWNR'.
if sy-subrc = 0.
select distinct zvirffowner into i_idowner from
/VIRSA/ZVIRFFIDS.
record_tab = i_idowner.
append record_tab.
clear: record_tab, i_idowner.
endselect.
else.
select distinct zvirffrole into i_rolemonapvr from
/VIRSA/ZFFROLES.
where zvirffowner = sy-uname.
record_tab = i_rolemonapvr.
append record_tab.
clear: record_tab, i_rolemonapvr.
endselect.
endif.
EXIT.
ENDIF.
ENDFUNCTION.} -
Hi,
I need to enhanse search help and add F4 functionality to display list of company codes when cursor is in PBUKR field. I put F4IF_INT_TABLE_VALUE_REQUEST
into the user exit but nothing works.
I get error that PROCESS is not defined. If I remove that line there is no error but nothing works.
Can someone tell me what is wrong in the code below.
Thank you.
FUNCTION z_hr_shlp_wbs_element.
""Local interface:
*" TABLES
*" SHLP_TAB TYPE SHLP_DESCR_TAB_T
*" RECORD_TAB STRUCTURE SEAHLPRES
*" CHANGING
*" VALUE(SHLP) TYPE SHLP_DESCR_T
*" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
TABLES: prps.
DATA: it_prps LIKE prps OCCURS 0 WITH HEADER LINE.
DATA: status_tab LIKE jstat OCCURS 0 WITH HEADER LINE.
DATA: l_posid LIKE prps-posid.
DATA: l_subrc LIKE sy-subrc.
DATA: l_pbukr LIKE prps-pbukr, " Added by vr
value TYPE DDSHIFACE-VALUE.
EXIT immediately, if you do not want to handle this step
IF callcontrol-step <> 'SELONE' AND
callcontrol-step <> 'SELECT' AND
" AND SO ON
callcontrol-step <> 'DISP'.
EXIT.
ENDIF.
------------------------------------------------------ added by vr
PROCESS ON VALUE-REQUEST.
FIELD PRPS-PBUKR MODULE PBUKR.
DATA: BEGIN OF VALUE_TAB OCCURS 0,
LPBUKR LIKE PRPS-PBUKR,
LPOSID LIKE PRPS-POSID,
END OF VALUE_TAB.
DATA: BEGIN OF RETURN_TAB OCCURS 0.
INCLUDE STRUCTURE DDSHRETVAL.
DATA END OF RETURN_TAB.
SELECT PBUKR POSID FROM PRPS UP TO 20 ROWS
INTO TABLE VALUE_TAB WHERE SLWID = 'QLT UDF'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'PBUKR'
WINDOW_TITLE = 'Statusselektion'
VALUE_ORG = 'S' "hierdurch kann die Struktur genommen werden
TABLES
VALUE_TAB = VALUE_TAB
RETURN_TAB = RETURN_TAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
end of additions
STEP SELONE (Select one of the elementary searchhelps)
This step is only called for collective searchhelps. It may be used
to reduce the amount of elementary searchhelps given in SHLP_TAB.
The compound searchhelp is given in SHLP.
If you do not change CALLCONTROL-STEP, the next step is the
dialog, to select one of the elementary searchhelps.
If you want to skip this dialog, you have to return the selected
elementary searchhelp in SHLP and to change CALLCONTROL-STEP to
either to 'PRESEL' or to 'SELECT'.
IF callcontrol-step = 'SELONE'.
PERFORM SELONE .........
EXIT.
ENDIF.
STEP PRESEL (Enter selection conditions)
This step allows you, to influence the selection conditions either
before they are displayed or in order to skip the dialog completely.
If you want to skip the dialog, you should change CALLCONTROL-STEP
to 'SELECT'.
Normaly only SHLP-SELOPT should be changed in this step.
IF callcontrol-step = 'PRESEL'.
PERFORM PRESEL ..........
EXIT.
ENDIF.
STEP SELECT (Select values)
This step may be used to overtake the data selection completely.
To skip the standard seletion, you should return 'DISP' as following
step in CALLCONTROL-STEP.
Normally RECORD_TAB should be filled after this step.
Standard function module F4UT_RESULTS_MAP may be very helpfull in this
step.
IF callcontrol-step = 'SELECT'.
Maximum records are set to 0 because the counter for Max records keeps
running, even if you filter out certain records. This is a similar
problem as described in OSS Note 148525.
Feb 3, 2004 LS: devk907353
(maxrecords = 0 defaults to maxrecords 500)
As of release 4.7, it appears that maxrecords is
being considered on the read of the view, rather
than prior to presenting the selection list.
When only 500 records are passed into this exit,
the subsequent evaluation yields very few records
in the selection list. By setting maxrecords to
8000, the entire contents of the view are passed
to this user exit, and therefor the search help
yields a reasonable selection list to the user
(as was the case in release 4.6b).
callcontrol-maxrecords = 0. " devk907353
callcontrol-maxrecords = 8000. " devk907353
PERFORM STEP_SELECT TABLES RECORD_TAB SHLP_TAB
CHANGING SHLP CALLCONTROL RC.
IF RC = 0.
CALLCONTROL-STEP = 'DISP'.
ELSE.
CALLCONTROL-STEP = 'EXIT'.
ENDIF.
EXIT. "Don't process STEP DISP additionally in this call.
ENDIF.
Added by vr, Nov. 2007 ---------------------------
CALL FUNCTION 'F4UT_PARAMETER_VALUE_GET'
EXPORTING
PARAMETER = 'PBUKR' " Reference to search help parameter
IMPORTING
VALUE = value
TABLES
SHLP_TAB = shlp_tab
RECORD_TAB = record_tab
CHANGING
SHLP = shlp
CALLCONTROL = callcontrol.
l_pbukr = value.
End of additions by vr ---------------------------
STEP DISP (Display values)
This step is called, before the selected data is displayed.
You can e.g. modify or reduce the data in RECORD_TAB
according to the users authority.
If you want to get the standard display dialog afterwards, you
should not change CALLCONTROL-STEP.
If you want to overtake the dialog on you own, you must return
the following values in CALLCONTROL-STEP:
- "RETURN" if one line was selected. The selected line must be
the only record left in RECORD_TAB. The corresponding fields of
this line are entered into the screen.
- "EXIT" if the values request should be aborted
- "PRESEL" if you want to return to the selection dialog
Standard function modules F4UT_PARAMETER_VALUE_GET and
F4UT_PARAMETER_RESULTS_PUT may be very helpfull in this step.
IF callcontrol-step = 'DISP'.
DEVK909420 Begin
SELECT * FROM prps INTO TABLE it_prps
WHERE belkz = 'X'.
Changed by vr, Nov. 2007
IF l_pbukr <> ''.
SELECT * FROM prps INTO TABLE it_prps
WHERE belkz = 'X'
AND fkstl <> ''
AND pbukr = l_pbukr.
ELSE.
SELECT * FROM prps INTO TABLE it_prps
WHERE belkz = 'X'
AND fkstl <> ''.
ENDIF.
End of changes
DEVK909420 End
SORT it_prps BY posid.
LOOP AT record_tab.
l_posid = record_tab+96(24).
READ TABLE it_prps WITH KEY posid = l_posid.
IF sy-subrc = 0.
CALL FUNCTION 'STATUS_READ'
EXPORTING
objnr = it_prps-objnr
only_active = 'X'
TABLES
status = status_tab.
DEVK909329 Begin
read table status_tab with key inact = ''
stat = 'E0001'.
if sy-subrc is initial.
read table status_tab with key inact = '' "DEVK909345
stat = 'I0002'. "DEVK909345
endif.
DEVK909329 End
ENDIF.
IF sy-subrc NE 0.
DELETE record_tab.
ELSE.
IF record_tab+114(1) EQ '.' AND
record_tab+115(1) EQ '9'.
DELETE record_tab.
ELSE.
DEVK909420 Begin
IF record_tab+102(1) EQ '9'.
DELETE record_tab.
ELSEIF record_tab+104(1) EQ '9'.
DELETE record_tab.
ENDIF.
DEVK909420 End
ENDIF.
ENDIF.
ENDLOOP.
EXIT.
ENDIF.
ENDFUNCTION.Hi Vitaly,
Process on Value Request and search help exit is entirely two idea to display the f4 values.please remove the PROCESS ON VALUE REQUEST from the function module.write the required select statements after CHECK callcontrol-step EQ 'SELECT' . and pass the value to the function module
CALL FUNCTION 'F4UT_RESULTS_MAP'
TABLES
shlp_tab = shlp_tab
record_tab = record_tab
source_tab = l_record
CHANGING
shlp = shlp
callcontrol = callcontrol
EXCEPTIONS
illegal_structure = 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.
IF ( sy-subrc = 0 AND l_record IS INITIAL ).
MESSAGE 'No values found' TYPE 'S'.
ENDIF.
callcontrol-step = 'DISP'.
Find the documentaion for this function module for further help
message edited by
shibu -
How Can I get multi column values from dynamic search help?
Hi Gurus;
I'm using dynamic search help in my program.
I want to get multi column values from search help. But I dont know solution for this issue.
I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
How Can I get multi column values from dynamic search help?
Thanks.Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
There are like 3 steps.
You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined (just to keep it straight, i will be putting here) data: It_return type standard table of ddshretval.
Next step is to call the function module. Make sure you have values in IT_VALTAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'FLD2'
value_org = 'S'
tables
value_tab = It_VALTAB
return_tab = It_return
dynpfld_mapping = It_dynpfld
exceptions
parameter_error = 1
no_values_found = 2
others = 3.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
else.
perform get_selected_fields tables It_return.
endif.
The code within the perform GET_SELECTED_FIELDS - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
I need a internal table as well as a work area here. like,
data: lt_fields type table of dynpread,
la_fields type dynpread.
field-symbols: <fs_return> type ddshretval.
so fill out LT_FIELDS from the IT_RETURN table
loop at lt_return assigning <fs_return>.
la_fields-fieldname = <fs_return>-retfield.
la_fields-fieldvalue = <fs_return>-fieldval.
append la_fields to lt_fields.
clear: la_fields.
endloop.
Call the FM to update the dynpro
call function 'DYNP_VALUES_UPDATE'
exporting
dyname = sy-repid
dynumb = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
tables
dynpfields = lt_fields
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
others = 8.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
good luck
Maybe you are looking for
-
How to make netbeans compile files as javac cmd??
hi all... I have a problem running my java code from netbeans, I use netbeans 6.7 with jdk 1.6.0_16 on windows XP when i compile the java file in netbeans and then run it, i get an exception but if i compile the same java file using the javac from cm
-
Trying to load photos off a SD Card and I get an error message "Unreadable files: 185.
Question-- Trying to load photos off a SD card and I get an error message "Unreadable files: 185" Also an error message previously "Your start up disk is almost full . Where do I go to delete some files?
-
MacBook Pro with Cinema Display - No Picture
I have a 2.16 Core Duo Macbook Pro 17". Today I purchased a 30" Cinema Display at the Apple store. Because of issues I had heard about I had the Apple employees help me open the box and plug in the monitor to a Macbook Pro on the floor to check for d
-
Restrictions on the transaction GR55
Hi gurus can you help? need to implement restrictions on the transaction GR55, the group reports that the user will access, to put a report a group of authorization and put in the role in all fields BRGRU, but does not work, the user has access to al
-
HT2513 Problem with iCal subscriptions
I'm trying to subscribe to my google calendar. I can't find where it says CALENDAR > SUBSCRIBE. Is there another workaround? I'm following the instructions here: http://support.wireload.net/entries/455852-can-i-use-blotter-with-my-google-cale ndar an