Function module to avoid duplicates in seacrch help through search helpexit
Hi all,
I have created composite seacrh help using 2 search helps( i have craeated search helps through se11).
now after i execute my program and press f4 , it is giving duplicate values( repeated values in my list if i press f4 )
I came to know that i can avoid duplicates if i call cooreesponding function module in seacrh help exit ( we can find this tab in se11 screens )
Can you please help me in knowing the standard function module to avoid duplicates in seacrh help through seacrh help exit ?
Thank u vry much in advance...
Hi,
check this thread
[Thread|http://www.sapfans.com/forums/viewtopic.php?f=13&t=313139]
Also check this FM C140_DELETE_DUPLICATES
Rhea.
Edited by: rhea on Dec 2, 2008 9:31 AM
Similar Messages
-
Avoid duplicate results after a Catalog search
Hello,
I tried implementing note Note 811194 - Avoid duplicate results after a Catalog search - but unfortunately, the code in my version of WebCatItemList is quite different. Is there another note for newer versions of eCommerce? Or is code modification necessary at all?
Many thanks!Hi
When a product is listed in multiple catalog categories, the product appears multiple times in the search results.
This is standard
Please be aware that the note mentioned is a consulting note, as this behavior is standard.
The suggested changes in the note for ISA 5.0
Alternatively the relevant .jsp could be modified to also display the product's area information next to the product, so that the customer can see that the product originates from different catalog areas.
Kind regards.
Peter -
Hi all!
I want to know the function module to create your own F1 help.
Please Help me OutU can use FMs 'DSYS_SHOW_FOR_F1HELP'/1. HELP_OBJECT_SHOW_FOR_FIELD /HELP_OBJECT_SHOW
Example:
REPORT ZGB_TEST_SEARCH_HELP .
INTERNAL TABLE FOR STORING NAMES IN SELECTION LIST
data: begin of t_itab occurs 0,
name(10) type c,
end of t_itab.
*FIELDNAME AND TAB NAME FOR THE SELECTION
DATA :field_tab LIKE dfies OCCURS 0 WITH HEADER LINE.
*THE TABLE FOR RETURNING THE NAME OF THE SELECTED ITEM
DATA : return_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.
*START THE SELECTION SCREEN BLOCK
selection-screen begin of block ss1 with frame.
parameters: p_name1(10) type c.
selection-screen end of block ss1.
*& F4 Help for p_name1 *
at selection-screen on value-request for p_name1.
*CLEAR ALL EXISTING DATA
*TO BE DONE EVERYTIME F4 HELP IS REQUESTED
REFRESH t_itab.
REFRESH field_tab.
field_tab-fieldname = 'ERNAM'.
field_tab-tabname = 'VBAK'.
APPEND field_tab.
t_itab-name = 'Andrews'.
append t_itab.
t_itab-name = 'Jennie'.
append t_itab.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = field_tab-fieldname
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE = 'Select name'
VALUE = ' '
VALUE_ORG = 'C'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = t_itab
FIELD_TAB = field_tab
RETURN_TAB = return_tab
DYNPFLD_MAPPING =
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.
p_name1 = return_tab-fieldval.
ENDIF.
*& F1 Help for p_name1 *
at selection-screen on help-request for p_name1.
CALL FUNCTION 'DSYS_SHOW_FOR_F1HELP'
EXPORTING
APPLICATION = 'SO70'
dokclass = 'TX'
DOKLANGU = SY-LANGU
dokname = 'Z_GAURAB_DEMO'
DOKTITLE = 'This appears as bold title'
HOMETEXT = ' '
OUTLINE = ' '
VIEWNAME = 'STANDARD'
Z_ORIGINAL_OUTLINE = ' '
CALLED_FROM_SO70 = ' '
SHORT_TEXT = ' '
APPENDIX = ' '
IMPORTING
APPL =
PF03 =
PF15 =
PF12 =
EXCEPTIONS
CLASS_UNKNOWN = 1
OBJECT_NOT_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.
ENDIF.
Regards,
Joy. -
Function Module SWK_LOCAL_INBOX_GET does not exists
Hi,
I configured UWL in the Portal.
When i am trying to acess UWL, throwing an exception.
it says "Exception type:com.sap.netweaver.bc.uwl.connect.ConnectorException Message:Thu Apr 12 15:58:26 GMT+05:30 2007 :Function Module SWK_LOCAL_INBOX_GET not found"
Can anyone help me what could be the problem.
Rgds,
Kiran JoshuaHello Kiran,
at least the user needs to have the Role SAP_BC_SRV_GBT_USER in backend.
My only other idea is to check the existance of the plugin (WP-PI) in R/3.
But, in a similar situation (missing plugin in R/3) i got the ConnectorException "Failed getting the following function metadata from repository: URL_SERVER_TYPE_DATA_GET".
Perhaps a trace in R/3 could assist you?
Sorry, no more ideas, regards -
Function module for automating creation of organizational unit
Experts,
I am using SRM 4.0. In my system R/3 is acting as backend.
For creation of new organisational unit in SRM, which is not present in SRM but present in R/3 side i have to do the manual activity every time.
Is there any function module? Which can automate this process. If there is any function module which i can use please let me know. and how can i use that also please let me know.
By this automation every time through the program the new organization unit should created in SRM side.
Please let me know..
Thanks in advance. I will appriciate through rewards points.Hi,
Thanks for your input. But i am planning to send one file for HR records and then from that file through program i will upload the file. IF for some user the orgaisation unit will not be found then there itself it would create the OU through Function module(If Any)... I am doing like this as the HR system is some legacy system not the R/3 system.
So Please help me to find out function module.
i will appeciate for you help.
Thanks -
Function module(first name and last name as a parameter with table)
hi,
i just want to know how i match input value in function module with the self created ztable first name and last name as a parameter in function module(import).
regards
Ankurthanks for your help actually i am concatename first_name last_name into full_name
import parameter
FIRST_NAME like ZANKUR-FNAME first name
LAST_NAME like ZANKUR-LNAME last name
export parameter
full_name like zankur full name
excaption
error if name not matched
source code
concatename first_name last_name into full_name -
Save_text function module for multiple entries
HI friends,
Iam facing a following senario.
Iam using save text function module ie: save_text to save the sales text for the line items in va01 transaction.
Iam able save the text for single entry but iam not able to save the text for muliple entries.
EXAMPLE ;
posnr matnr
10 4000
20 3000
30 5000
40 8000
when iam saving the text iam able to save the text for only line item 40 ie: last line item.
i need to save the text for all the 4 line items.
how can i do that.
Iam writing the code in USEREXIT_SAVE_DOCUMENT.
Regards
Priyanka.Hi
please use commit after the function module call .
Hope it is helpful.
Check this link also:
Re: Changing sales item texts in userexit_save_document
Regards
Neha
Edited by: Neha Shukla on Nov 30, 2008 9:01 PM -
How to Use ECC function Module
Hi Experts - We need to execute the function module in ECC and need to write data in Oracle table.
We are using BODS 4.0.
How to use function module in data flow ? how it can work as a source ?
I just need some basic steps how to use function module as a source and do the transformation to target.
Thanks
RHi Ashwani,
It is still not possible to use a FM as a source in DS.
You can use a FM in a transformation but you have to start from a file or table as a source and load into a target (a FM can not be an end point of a dataflow - as it is used in the transformation and each transformation requires a source and a target.
The scenario I described above was based on a situation where you have a source (flat file or table) and want to use a Function Module to transform your data and/or load the data in a transparant table in SAP.
Your scenario is different, as your source is not a table/ff but a FM.
In your case, I can see two scerio's:
- Use an ABAP dataflow. Although I haven't got any experience with this I do believe this would be an option for your scenario. Please referer to the Data Services documentation on ABAP dataflows for further guidance.
- As suggested earlier, you can create a bespoke (BW) Datasource based on a Function Module. Please refer to SAP help for creating a generic datasource:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
Depending on your scenario there might be a third option:
- Use a SAP transparant table as a source. Create a transformation into the designated Oracle table. In the transformation call a FM which executes whatever logic you require. This solution will work if you have a table which produces the same number of records as your FM. If your function module produces more or less records (than there are in the transparant table), then this might become a bit tricky. It might work, but I have never tried it.
Instead of a transparant table you can also use a table join, obviously. Perhaps part of the complexity of your FM could be resolved by using a join and you can create a new simpler FM for the remaining logic?
Good luck,
Jan. -
please help me to
create a function module as follows-
i) Have the following import parameters
empnm TYPE zb19rv2_table-empnm ,
empdj TYPE zb19rv2_table-empdj ,
empad TYPE zb19rv2_table-empad ,
empph TYPE zb19rv2_table-empph ,
depid TYPE zb19rv2_table-depid.
ii) Have the following export parameter
empid TYPE zb19rv2_table-empid ,
iii) Have the following exceptions
Raise exception if the Name field is blank
iv) Source code-
Check if the import parameter has name given, if not raise exception, else
Select the latest empid from table zb19rv2_table
Increment this id by one
Use the import parameters and the new generated empid to insert record in to the table zb19rv2_table
If the record is inserted, then move the new generated empid to the export parameter of the function moduleHi Ravinder ,,
check this link for step by step procedure to create function module ,
http://abaplovers.blogspot.com/2008/02/creating-function-module-in-sap-abap.html
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
Reward if useful,,
Thanks & regards ,
Sreekar.Kadiri. -
Error in calling the Remote Function Module
Hi all,
I am trying to call the Remote function Module which is in CRM from ECC .
But we are not able to detect the function module as it is showing the error as Function Module not found.
Can anybody help us in calling the Remote Function Module .
Regards,
MadhaviPlease check the foll 2 things :
RFC radio button clicked in se37 for that FM
RFC connection established with the remote server in SM59
Thanks -
Attribute value to exit function module
Hello group,
I'm working in a sem-bps project and I have a problem with an exit function, because
I need the function module to read the value of a characteristic's attribute.
I read the standard function module UPF_VARIABLE_USER_EXIT_ATTR: it retrieves the attribute value through the import parameters ITO_ATTR TYPE UPC_YTO_ATTR.
I put this attribute on my exit function but when I check the content of the attribute its always empty. Do you know how I can transmit the parameter from the exit planning function to the function module?
Any input is appreciated, thanks AndreaAndrea, if you want to fill a variable with the characteristic's attribute of another variable look at the document "HowTo_BPS_VarOfTypeExit.pdf" (i send at your e-mail if you want). It Follows an extract in which it's filled the second variable with the characteristic's attribute of another variable:
Source code: Attribute values
SELECT * FROM /bi0/mbps_produ INTO TABLE lt_chavl
WHERE bps_prodl = ls_varsel-low.
if sy-subrc <> 0.
MESSAGE e026(upc) WITH ls_varsel-low '0BPS_PRODL'.
attribute value not found
exit.
endif.
ls_varsel-seqno = '0000'.
ls_varsel-chanm = '0BPS_PRODU'.
LOOP AT lt_chavl INTO ls_chavl.
ls_varsel-seqno = ls_varsel-seqno + 1.
ls_varsel-low = ls_chavl-bps_produ.
APPEND ls_varsel TO eto_charsel.
ENDLOOP.
In the example above ls_varsel contains the attribute value to provide to eto_charsel (the output table in which you have the result).
I suggest you to debug your application to see how ito_attr is passed to the FM.
Hope it helps.
Fabio -
Function module was assigned to 4tmp package
Hello all,
I have created XML-DataSource with SOAP Connection in our BW development system.
In this regard the system created a function module to receive data via XI. This function modul was assigned to the package $tmp and it is not possible to transport this FM into production system.
When I try to re-assign the package to our designated develop package an error message appears, which says I have to use a package which starts with /BI0/.
Any idea how can I transport this function module. That would be great.
Thanks upfront and Best regards,
Stefanos from Munich/Germanyhi Stefanos,
try to transport the datasource/infosource to target system and check if the function module is generated there.
hope this helps. -
Is there any EDI function module which can Update Shipment Cost Document through Idoc.....
Hi Vijendra,
Welcome to SDN.
You can use FM IDOC_INPUT_SHPMNT with message SHPMNT and IDoc type SHPMNT01/02/03/04/05 to update shipment document.
Hope this will help.
Regards,
Ferry Lianto
Please reward points if very helpful. -
How to find Function Module & Program Name Used by IDOC
hii Experts,
i want to find program name & function modules used in IDOC. I have Idoc type, Message type & extension type.
Help meHi Vinod,
Go to transaction WE64, click on the <b>search for message type</b> or press <b>shift+F6</b>. A popup will be displayed and here enter the message type for example 'QUOTES', u will be taken to the process codes available for the message type u have entered. click on the process code and data related to that process code will be displayed in the right hand side. Now double click on the process code, a pop up with function module name will be displayed. copy that and search for where used list in SE37.
Hope it helps.
Regards,
Phani. -
FBD1 posting - Recurring GL entries: Function module or BAPI for posting
All,
I am trying to do posting of recurring GL entries through an excel upload program. For this I would require a BAPI or function module that does this in the background.
Has anybody used such a function module in your past experience.
Help is very much appreciated.
Regards,
HariHi Sumit,
Before posing the document we need to add one perform which will check for all valid data.
We need to add the validation manually and using BAPI.
Validation will include :
Mandatory field validation - similar to present in FBD1
start run < end run validation
date validation
Valid month check
Valid account check use table skb1
WBS validation
Document which are being posted should be validated using BAPI_ACC_DOCUMENT_CHECK
pass the header item and currency information to this bapi.
Regards,
Sonal
Maybe you are looking for
-
Agent filter issue with IBM Web Sphere portal 6 , polic Agent 2.2 , AM7
HI We are protecting the user console for websphere portal 6.0. We have added the agent filter in the web.xml as per http://docs.sun.com/app/docs/doc/820-3921/gatak?a=view <filter id="Filter_PolicyAgent"> <filter-name>Policy Agent</filter-name> <filt
-
Hello. I have been attempting to remove a blank page from a document that I have created in the Pages v 4.3. I have turned on invisibles, thumbnail view, etc and other fixes that have been offered to other individuals with this same conundrum. Nothin
-
Time Machine / capsule Error.... help!
Hi all, I have had a time capsule for a while now and had no problems (apart from filling it up and needing to delete the contents - which I have done a good few weeks ago). Anyway all of a sudden this morning I am getting 2 error messages. _The Firs
-
Adobe Reader installation issue
The below image is the issue that I am having when trying to download Adobe Reader. I have internet connection. I have tried disabling all of my computer security in attempts to download Adobe Reader. I am running Windows 8.1 on a HP Pavilion. What c
-
SAPJ2EE Hangs at "Loading Cluster Manager"
We applied patch4 for EP 6.0 SP2, coming from 6.0.2.3.7 . The patch 4 install completed successfully as noted in sapinst_dev.log . When starting up the portal via the dispatchers go script, the portal hangs at "Loading Cluster Manager". The TRACE.log