Replacement for a Function module
Hi all,
There is a function module '<b>HELP_VALUES_GET_NO_DD_NAME'</b> to display possible values for a database field. This FM is getting obsolete in near future.
Does anyone know any replacement provided by SAP for this FM?
Hi,
<b>replaced with the FM F4IF_INT_TABLE_VALUE_REQUEST.</b>
check this thread
Re: F4IF_INT_TABLE_VALUE_REQUEST
sample code.
tables: mara, makt.
data: begin of itab occurs 0,
matnr like mara-matnr,
end of itab.
data : begin of btab occurs 0,
maktx like makt-maktx,
end of btab.
data mak like makt-maktx.
DATA : return like ddshretval occurs 0 with header line.
data: begin of dynpfields occurs 0.
include structure dynpread.
data: end of dynpfields.
parameters: p_matnr like mara-matnr,
p_maktx like makt-maktx.
Initialization.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
REFRESH ITAB.
SELECT matnr FROM mara INTO TABLE ITAB.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'MATNR '
dynprofield = 'P_MATNR '
dynpprog = sy-REPID
dynpnr = sy-dynnr
value_org = 'S'
TABLES
value_tab = ITAB
return_tab = return.
p_matnr = return-fieldval.
rgds
anver
<i>if hlped pls mark points</i>
Message was edited by: Anversha s
Similar Messages
-
Replacement for a function module in 6.0
Hi
I am in the process of upgrading from 4.7 to 6.0 . The function module SAPWL_STATREC_READ_FILE is flagged as obsolete . Am unable to find a documentation for this function module . So which is the replacement for this function module . ?
Please help . .hi,
the replacement is SAPWL_STATREC_DIRECT_READ
next time check the source code of the FM, probably you'll find the answer...
hope this helps
ec -
Replacements for obsolete function modules
Hi,
What is the best way to find out the replacement for the obsolete function modules? We are starting an upgrade project and are required to replace the obsolete function modules used in that. So before starting that I want to keep a list of obsolete function modules and their replacements ready.
SSHi,
RODIR table gives not only FM, all obsoletes types.
if you dont find, best way is when we check EPC for the program,
in call function interface warnings shows, obsolete function modules.
or do UCCHECK it will both obsolete and suggested replacements.
Thanks
Vinod -
How to replace obsolete download function module in ECC6.0?
Hi Experts,
How to replace obsolete download function module in ECC6.0?
Thanks,
Adi.Hi,
DOWNLOAD is obsolete FM in ECC 6. To get the same functionality , we need to use
CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG method (It provides the File selection feature)
and
GUI_DOWNLOAD function module.(It downloads the internal table from program to presentation server)
Please see the example below:
Example:
*CALL FUNCTION 'DOWNLOAD'
EXPORTING
FILENAME = p_filename
FILETYPE = DAT
TABLES
DATA_TAB = T_DOWNL
EXCEPTIONS
INVALID_FILESIZE = 1
INVALID_TABLE_WIDTH = 2
INVALID_TYPE = 3
NO_BATCH = 4
UNKNOWN_ERROR = 5
OTHERS = 6.
*End of deletion CH01-
Replacement Method for above code:
DATA: l_filename TYPE string,
l_filen TYPE string,
l_path TYPE string,
l_fullpath TYPE string,
l_usr_act TYPE I.
l_filename = P_filename.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
EXPORTING
DEFAULT_FILE_NAME = l_filename
CHANGING
FILENAME = l_filen
PATH = l_path
FULLPATH = l_fullpath
USER_ACTION = l_usr_act
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
others = 4.
IF sy-subrc = 0
AND l_usr_act <>
CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = l_fullpath
FILETYPE = 'DAT'
TABLES
DATA_TAB = T_DOWNL
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22. -
Replaced version of Function Module PFL_COPY_OS_FILE in ECC 6.0
Hi everybody,
Can anybody tell me what is the replaced name of function module PFL_COPY_OS_FILE in ECC 6.0. This function module was used in 4.6C version and become obsolete in ECC 6.0. It is basically used for copying OS files.check CL_GUI_FRONTEND_SERVICES=>FILE_COPY
new_file = P_FILE.
app_full_name = R_FILE.
CALL METHOD cl_gui_frontend_services=>file_copy
EXPORTING
SOURCE = new_file
DESTINATION = app_full_name
overwrite = 'X'
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
wrong_parameter = 3
disk_full = 4
file_not_found = 5
destination_exists = 6
unknown_error = 7
path_not_found = 8
disk_write_protect = 9.
IF sy-subrc NE 0.
EXIT.
ENDIF. -
Hi Friends
I am having performance issue for this function-module(HR_TIM_REPORT_ABSENCE_DATA) and one my client got over 8 thousend employees . This function-module taking forever to read the data. is there any other function-module to read the absences data IT2001 .
I did use like this .if i take out this F.M 'HR_TIM_REPORT_ABSENCE_DATA_INI' its not working other Function-module.please Suggest me .
call function 'HR_TIM_REPORT_ABSENCE_DATA_INI'
exporting "Publishing to global memory
option_string = option_s "string of sel org fields
trig_string = trig_s "string of req data
alemp_flag = sw_alemp "all employee req
infot_flag = space "split per IT neccessary
sel_modus = sw_apa
importing
org_num = fdpos_lines "number of sel org fields
tables
fieldtab = fdtab "all org fields
field_sel = fieldnametab_m. "sel org fields
To Read all infotypes from Absences type.
RP_READ_ALL_TIME_ITY PN-BEGDA PN-ENDDA.
central function unit to provide internal tables: abse orgs empl
call function 'HR_TIM_REPORT_ABSENCE_DATA'
exporting
pernr = pernr-pernr
begda = pn-begda
endda = pn-endda
IMPORTING
SUBRC = SUBRC_RTA
tables
absences = absences_01
org_fields = orgs
emp_fields = empl
REFTAB =
APLTAB =
awart_sel_p = awart_s[]
awart_sel_a = awart_s[]
abstp_sel = abstp_s[]
i0000 = p0000
i0001 = p0001
i0002 = p0002
i0007 = p0007
i2001 = p2001
i2002 = p2002
i2003 = p2003.
Thanks & Regards
Reddyguessing will not help you much, check with SE30 to get a better insight
SE30
The ABAP Runtime Trace (SE30) - Quick and Easy
what is the total time, what are the Top 10 in the hitlist.
Siegfried -
How to check for a function module with its description and functionality
Hi all,
How to check for a function module,with its description and its functionality,in detail how can I know the purpose of a particular function module,how to search for a function module which suits my requirement .Hi,
You can search a FM of your requirement by putting in the Key words and searching for a FM. Like * KEYWORD * and then pressing F4.
Say for example you need to search something regarding converstion.
Search for * CONVERT * and press F4.
If there is something specfic like converting date to something you can give
DATE * CONVERT *
OR
CONVERT * DATE * and press F4.
Once you narrow down your search you will have a Function module documentation inside the Function module. Please note that all the FMs willl not have documentation.
Regards,
Pramod -
Test web service for a function module
Hello,
I have created web service for a functiona module. I can see the same service in SE80 in Enterprise Services.
How do I test this service?
I can see the URL in WSDL tab but when I try to execute it give me following error,
What has happened?
URL http://emhbssap15.domain.local:8027/sap/bc/srt/wsdl/sdef_service_name/wsdl11/ws_policy/document call was terminated because the corresponding service is not available.
Note
The termination occurred in system BDV with error code 403 and for the reason Forbidden.
The selected virtual host was 0 .
What can I do?
Please select a valid URL.
If you do not yet have a user ID, contact your system administrator.
ErrorCode:ICF-NF-http-c:000-u:SAPSYS-l:E-i:EMHBSSAP15_BDV_27-v:0-s:403-r:Forbidden
HTTP 403 - Forbidden
Your SAP Internet Communication Framework Team
The URL I am trying is
http://emhbssap15.domainname:8027/sap/bc/srt/wsdl/sdef_servicename/wsdl11/ws_policy/document?sap-client=400
Can anyone help me?
Regards,,,
Sunil Joyous
Edited by: Sunil Joyous on Dec 2, 2009 1:52 PMThanks Venu for your input.
Unfortunetly we do not have Java stack on our development system. You said we can test it by SOAP UI tool. Where do I see the WSDL file for the service?
I used WSDL from SE80 --> Service --> WSDL tab, but SOAP UI does not accept this format ?
What are the other ways I can test this web service? I think about SAP PI, importing RFC & creating web service or creating ABAP proxies... Which is the best way to go forward in case you do not have Java stck.
Regards,,,
Sunil Joyous -
How to use Exceptions for a function module
Hi folks,
I have created a new function module.Its working fine, but i am not aware of using exceptions for a function module. I hav just declared an exception in the 'exception' tab. Could any body explain me how to use that in my FM source code....Thanks...Hi Shyam,
Have a look at this,
START-OF-SELECTION.
gd_file = p_infile.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = gd_file
has_field_separator = 'X' "file is TAB delimited
TABLES
data_tab = it_record
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc NE 0.
write: 'Error ', sy-subrc, 'returned from GUI_UPLOAD FM'.
skip.
endif.
Regards,
Sai -
Search for a function module for deleting document originals (DMS)
Hi,
I'm searching for a function module to delete originals in documents (like manually with transaction cv02n). I'm only able to set an delete mark with the module 'BAPI_DOCUMENT_DELETE'.
The module 'BAPI_DOCUMENT_CHANGE2' can only add new originals to an existing document. I need a possibility to delete all originals in an document without deleting the document itself.
Has anyone an idea?
Thanks.
Jan-Christian TreuschMany thanks!
That's especially the method I've searched for so long....
best regards.
Jan-Christian Treusch -
Need help for the Function Module 'PFL_GET_PARAMETER_INFO'
Hi Experts,
The FM 'PFL_GET_PARAMETER_INFO' returns the value for Profile Parameters for a system .
The inputs required for this FM are :
1. Parameter name : ( eg . login/min_password_lng etc. )
2 . Parameter Type
I am not sure about what the value of Parameter Type should be .
Its a mandatory field.
I have tried to search but could not find anything.
Can you please help me on this?
Thanks in Advance,
Harshit Rungta
Edited by: harshit rungta on May 27, 2011 8:15 AMWhat exactly is the use-case for this?
Many developers "c-call" the params and neglect this feature of the type - also whether it is static or dynamic. Some params are even dynamic as system profiles in one direction but static as instance parameters in the other direction when changing the value.
As you cannot create your own system profile parameters, I do not see the use-case for why you are wanting to check it in advance, because the application APIs should do this.
What you are possibly looking for is function module SUSR_GENERATE_PASSWORD in this case. It will respect "the rules" in the params.
Do not use the legacy function RSEC_GENERATE_PASSWORD directly.
Cheers,
Julius -
Alternative for STRING_CENTER function module
Hi,
Can any one give me the Alternative for STRING_CENTER function module.
it is there in 4.7 when i am using the same in ecc 6.0 it is giving as absolute statement .
Please give the solution for this.Hi,
C147_STRING_SPLIT_AT_POSITION
STRING_SPLIT
STRING_SPLIT_AT_POSITION
check this sample code
DATA: text(10) TYPE c VALUE '0123456789',
text1(6) TYPE c,
text2(6) TYPE c.
PARAMETERS position TYPE i.
CALL FUNCTION 'STRING_SPLIT_AT_POSITION'
EXPORTING
string = text
pos = position
IMPORTING
string1 = text1
string2 = text2
EXCEPTIONS
string1_too_small = 1
string2_too_small = 2
pos_not_valid = 3
OTHERS = 4.
Regards -
Creating a Structure for BAPI Function Module
Hi,
I need to create an RFC for a BAPI call. For that I have to create a structure for the function module. Now, do I need to specify both import and export parameters in the same structure or do I need to create two different structures for Import as well as export parameters? If the import and export parameters are specified aleady, Do I need to supply this structures again under "TABLES"?
Thanks,
John.if u have/get more one records , then u have to use tables ?
Regards
Prabhu -
How to find suitable( existing) function group for a Function Module ?
How to find suitable( existing) function group for a Function Module to be created?
This is FM for converting amounts to text.Hi,
If you are not sure into which Function group your FM should go in then its advised to create a Function group of your own. Its not advised to create a function module in any other function group unless its owned by you since your FM can get deleted by others or it can get changed.
Create your own Function group. But if you want to create in an existing FG then best way is to find out the Function Group by searching for suitable existing Function module then see their function group
Regards,
Sesh -
How to schedule a background jobs for a function module
HI all,
I have created a function module (zrfc_test). Now I need to schedule it daily around 8am . the 2 tcodes used is sm36 & sm37. But I need a detail description for a function module.
Points will be rewarded
thanks in advanceAs there is no direct way of scheduling a function module, you may write a online program (program type 1) and call this function module in side it and schedule the program using SM36. Or you may record a CATT procedure for the function module and schedule it using SCAT transaction.Hope this helps
Krishna
Maybe you are looking for
-
The shared librery is not working after the update!!!!
I use to have the music on my mini shared with my other computer. This configuration is working well at least for a year. After the recent upgrade instead the shared library is not seen anymore. There are no firewall in my lan, the sharing option is
-
Can't delete podcasts from Ipod Touch
I have an Ipod Nano and an Itouch, and I manually manage the podcasts on both of them. The Nano works fine. On the Itouch, I can connect my Itouch, go into podcasts under my device, and delete them, but they aren't deleted from my Itouch. However, th
-
French characters are not correctly stored in database with SQLPlus
Hello everyone, I would like to do the following: Run an SQL script that inserts/deletes/updates data. The data itself may be French or non-English characters .Currently, we do this by just running a script that invokes SQLPlus and runs the various S
-
CO-PA characteristic - country of ship-to party
Hi guys, beside the country of the customer, which I created (LAND1), I also need the country of the ship-.to party. Ship-to party is also created as characteristic (KUNWE). Now I see another characteristic: KMLAND Country Country CHAR
-
Hi, I am trying to want to embed BARCODE into the PDF Generated XML Publisher Report. I have Used the IDAUTOMATION Utility for this purpose and also refered to xml Publisher blob http://blogs.oracle.com/xmlpublisher/2007/05/09 If I try to compile Jav