Function Module that will retrieve the parameters for a given function Modu
Hi
We have a requirement where we will be calling Function Module that will be maintained in a table entry. How we will determine what is the parameters that is required by this function module. Is there a FM that will suffice the requirement.
Thanks in advance
arghadip
Hi,
You have to write a custom code for that. Use the table FUPARAREF to retrieve the parameters for a function module. Give function module name as input.
Pls reward points if solved your issue.
Regards,
Renjith Michael.
Similar Messages
-
Function Module that will retrieve the Field Catalogs of a Display Variant
Hello Experts,
Are there any function modules that I can use to retrieve the field catalogs (fields to be displayed in ALV report) by passing the display variant name?
An RFC needs to apply this to determine which field(data) to be passed to XI (calling system) depending on user login.
Thanks in advance!These are the various FM available for Variants (field Layout)
REUSE_ALV_VARIANT_ALL_MAINTAIN Maintain all display variants for one object
REUSE_ALV_VARIANT_DEFAULT_GET Read default display variant (description only, w/o field catalog)
REUSE_ALV_VARIANT_EXISTENCE Checks whether a display variant exists
REUSE_ALV_VARIANT_F4 Display variant selection dialog box
REUSE_ALV_VARIANT_MAINTAIN Definition of a display variant outside the list context
REUSE_ALV_VARIANT_SAVE Save a display variant
REUSE_ALV_VARIANT_SELECT Read a display variant
Regards,
Amit -
Function module that can give the last value or the highest value of a key
hi,
Is there any function module that can give the last value or the highest value of a key feild in a z table.
regards,
johnsonHi ,
We have aggregate functions in SQL. Some of the functions are as follows.
MAX(col ) Determines the maximum value of the value in the column col in the resulting set or in the current group.
MIN( col ) Determines the minimum value of the content of the column col in the resulting set or in the current group.
AVG( col ) Determines the average value of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
SUM( col ) Determines the sum of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
COUNT( col ) Determines the number of different values in the column col in the resulting set or in the current group.
For further details , type the function name name and press F1 for further help.
Eg: select count(mantr) from mara into workarea where condition.
Reward points if helpful.
Thanks and Regards. -
Function Module To read all the Files in a Given UNIX directory.
Can anyone provide me with a FUNCTION MODULE which reads all the files available in a UNIX directory?
I have the UNIX directory given. I need to find all the files available in that particular Directory so that I can choose and process accordingly. Probably I can store all files in an Internal Table.
Thanks in advance.
SunilHi Nick,
Thankyou very much for the response.
The Function Module /SAPDMC/LSM_F4_SERVER_FILE is interactive wherein we can select only one file.
But my requirement is I need to collect (probably in an internal table) all the files exixting in the given UNIX directory.
Can you please find in that direction. I would be very grateful.
Thanks.
Sunil -
Function module that will return week details
Anyone know Sap FM that will return Week details(as below)for a given start and end dates (similar to the function module HR_99S_INTERVAL_BETWEEN_DATES which returns details for a month) independent of factory calendar
I am expecting
Inputs
Start Date - 01/01/2005
End Date - 05/05/2006
outputs
WK YEAR BEGDA ENDDA
02 2005 01/03/2005 01/09/2005
03 2005 01/10/2005 01/16/2005
04 2005 01/01/2005 01/23/2005
Thank, BillHi Bill,
FM is <b>GET_WEEK_INFO_BASED_ON_DATE</b>
Here's a test-program for your requirement:
REPORT zforum09 LINE-SIZE 255.
PARAMETERS:fdate LIKE sy-datum DEFAULT '20050103',
tdate LIKE sy-datum DEFAULT '20060505'.
DATA : BEGIN OF itab OCCURS 0,
week LIKE scal-week,
from LIKE sy-datum,
to LIKE sy-datum,
END OF itab,
next LIKE sy-datum.
next = fdate.
WHILE tdate > itab-to.
CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
EXPORTING
date = next
IMPORTING
week = itab-week
monday = itab-from
sunday = itab-to.
next = itab-from + 7.
APPEND itab.
ENDWHILE.
LOOP AT itab.
WRITE:/ itab-week+4(2),
itab-week(4),
itab-from,
itab-to.
ENDLOOP.
Regards Andreas -
Name of function module that will remove sign ( + or - ) of any quantty
Dear Sir,
Can Any Body help On this matter .
My requirement is that in my quantity field some amount will come like
9812636-
758934-
436478
46378564-
i want to remove the minus sign if it is in negative if it ia in possitive then it's ok.
but to multilpy with -1 is not solution bcz it is debit and credit calculation so i want a function module for further processing .Sample Program:
DATA :
v_num type i,
v_no1 type i,
v_no2 type i.
v_no1 = -1.
v_no2 = 2.
v_num = v_no1 * v_no2.
v_num = ABS( v_num ).
write : v_num. -
Function Module/Table to retrieve check table for standard fields
Hi,
Is there any function module or database table that holds the check table for standard field? Ex. BUKRS = T001.Hi MArc,
Goto DD03L table
Enter fieldname and tablename, you will get check table in CHECKTABLE field.
e.g. fname - MATNR, tbname MARD then CHECKTABLE - MARA
Reg,
Sachin -
Function that will return fee description for a given folderrsn
Could someone help me make this function work. I am not sure how to add the else clause and when it is done how to call it. I know to call it I will need to input a folderrsn e.g 158744 and then that should show the fee description for that folder.
Reson for the function is to be used by other users instead of a select statement everytime. I will save it in a package.
FUNCTION F_GETFEEDESC (folderrsn_in IN NUMBER)
RETURN varchar2
IS
v_feedesc varchar2(2000);
cursor c1
is
SELECT vaf.feedesc
INTO v_feedesc
FROM folder f, accountbillfee abf, validaccountfee vaf
WHERE f.folderrsn = abf.folderrsn
AND vaf.feecode = abf.feecode
and f.folderrsn = folderrsn_in;
begin
open c1;
fetch c1 into v_feedesc;
if c1%notfound then
v_feedesc := 'Not found';
else
end if;
close c1;
return v_feedesc;
END;
this function when called using a folderrsn like 158744, it should return the fee description for that folder.In the event that your table may have more than one record for any given value of folderrsn_in the open, fetch, close method will not suffer any difficulties, however using the select into method without adding a rownum = 1 clause to your where statement is setting the function up for sporatic failures.
Try this code instead:
FUNCTION F_GETFEEDESC (folderrsn_in IN NUMBER)
RETURN varchar2
IS
begin
SELECT vaf.feedesc
INTO v_feedesc
FROM folder f, accountbillfee abf, validaccountfee vaf
WHERE f.folderrsn = abf.folderrsn
AND vaf.feecode = abf.feecode
and f.folderrsn = folderrsn_in
and rownum = 1;
return v_feedesc;
EXCEPTION
WHEN NO_DATA_FOUND THEN
RETURN 'Not found';
END; -
Is there any function module which will upload storage locations for a mat
Hi gurus,
Is there any function module or BAPI to extend the storage locations of material which is done through <b>MMSC</b> transaction. I need to write a program to upload new storage locations for some materials.Please advise.
Thanks ,
Sam.You can do this using the BAPI_MATERIAL_SAVEDATA
Regards,
Rich Heilman -
What is function module that popups when the find button is clicked
hi,
I need to get a popup screen that usually popup when the find(ctrl+F) is clicked.Hi
Try using the following fnction modules:
POPUP_WITH_TABLE_DISPLAY.
F4_FILENAME.
Reward points if helpful answer.
Ashvender -
Function Module required to convert the date coming from external system
Hi Friends,
I need a Function Module that would convert the incoming date from external sytem in format YYYYMMDD to the SAP system in DDMMYYYY. The External system data type for the date is Numberic. Please suggest any FM if you know.I found out many in SAP but didn't find for this requirementWait a minute. I am definetely missing something here. You want to convert from an external format YYYYMMDD to SAP's internal format? SAP's internal format is YYYYMMDD.
All you should have to do is move you external date directly to your internal date.
data: date1(8) type c value '20051225'. "Format YYYYMMDD
data: date2 type sy-datum. "Format (YYYYMMDD)
write: / date2.
When you write out date2 it will be in whatever format your user profile has.
If you want to force the date format independent of your user profile settings during the write statement:
write: / date2 DDMMYY.
Message was edited by: Thomas Jung -
Any Function Module which will give user id or position
Hello Friends,
is there any standard function module which will give the attribute position id or user name if i pass the 'attribute id as CNT' with value of the CNT. i know there is a standard function module 'BBP_READ_ATTRIBUTES'. but this FM will give the value of the attribute id if i pass the user id and attribute id but i want user id or position when i pass attribute id and value.
john.Hi,
See this related thread:
Re: Get all users given a specific product category
You cna use the similar approach to find for the attribte cost centre.
BR,
Disha. -
The Function Modules that can assign a Package & transport request no...
Dear All,
I am creating a Program that will automatically create Data Elements & Domains in SAP & assign the same to a Package & Transport request No...Well I have been able to create & activate the data elements & domains using Standard SAP Function Modules, but I am looking for the Function Modules that can assign a Package & transport request no. to these data elements & domains....Can anyone tell how to achieve this requirement...Hi,
may be you have to use a classified task, we used
FORM tr_request_choice CHANGING pv_trkorr TYPE trkorr.
TYPE-POOLS:
trwbo.
DATA:
ls_request TYPE trwbo_request_header.
CALL FUNCTION 'TR_REQUEST_CHOICE'
EXPORTING
* IV_SUPPRESS_DIALOG = ' '
* IV_REQUEST_TYPES =
* IV_CLI_DEP = ' '
* IV_REQUEST = ' '
* IT_E071 =
* IT_E071K =
* IV_LOCK_OBJECTS = ' '
iv_title = 'Choose request, Task will be found'
* IV_START_COLUMN = 3
* IV_START_ROW = 7
* IV_WITH_ERROR_LOG = 'X'
* IV_NO_OWNER_CHECK = ' '
IMPORTING
es_request = ls_request
EXCEPTIONS
invalid_request = 1
invalid_request_type = 2
user_not_owner = 3
no_objects_appended = 4
enqueue_error = 5
cancelled_by_user = 6
recursive_call = 7
OTHERS = 8
IF sy-subrc = 0.
SELECT trkorr
INTO pv_trkorr UP TO 1 ROWS
FROM e070
WHERE trfunction = 'S'
AND trstatus = 'D'
AND as4user = sy-uname
AND strkorr = ls_request-trkorr.
EXIT.
ENDSELECT."rkorr into pv_trkorr
ENDIF.
ENDFORM. " TR_REQUEST_CHOICE
Regards,
Clemens
Edited by: Clemens Li on Dec 15, 2010 2:36 PM -
Reg: Function Module thats used to check the status of JOBS and mail it
Hi Experts,
Is there any Standard Function module thats going to find the status of the jobs and mail this status to specied email ID in .xls format. While checking status function module should give whether job is - Aborted, Successful, Running, Waiting, Locked, Error, Warning, Starting Date, Ending Date of the Job.
Please help me,Hello Nagaraj,
You can find out the status of a job with the SHOW_JOBSTATE function module. You provide this function module with a job name and job number. It returns one of the six possible statuses of the job:
ABORTED TYPE C,
FINISHED TYPE C,
PRELIMINARY TYPE C,
READY TYPE C,
RUNNING TYPE C,
SCHEDULED TYPE C.
Following is the link for the same:
http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e10543b11d1898e0000e8322d00/content.htm
Warm Regards,
Riki Dash -
Is there standard functionality in ECC 6 that will handle the quotation of scale pricing?
Inquiry and quotation functionality assumes that the quote to the customer will be for a specific material and quantity. Is there standard functionality in ECC 6 that will handle the quotation of scale pricing?
Thank you for the question. In our scenario, we are not quoting a specific quantity. We are quoting the scales. Below is a theoretical example:
Customer: 12345
Validity period: 21.03.2014 - 30.06.2014
Material: 123456 Widget with order UoM of EA
Price:
Up to 10,000 EA: $2.25/1EA
10,001 EA to 50,000 EA: $2.00/1EA
50,0001 +: $1.75/1EA
I am very familiar with inquires and quotations, and I understand that we can maintain scale price condition records and the price routine will determine the price based on the quantity of the inquiry, quotation, or order. Unfortunately, I do not have a quantity to enter in the quotation. I only have the scales. I do hope this clarifies the question.
Best regards,
Mark
Maybe you are looking for
-
TopLink 9.04 status block updates....
Hi, We are using Toplink 9.04. Each class in the domain model has an status block containing UpdatedProcessId, lastUpdatedBy, Date etc. It would be really useful to be able to update this stuff automatically rather than having to do it by hand when a
-
How to install drivers in xi server.
hi, how to install drivers in xi server while using different jdbc adapters. i mean to connect with jdbc adapters we need to install drivers in xi server. how to do that . if u reply with steps then its good for me. thanks in advance. jpk
-
can someone tell me about the third party apps that may harm my phone and cause bugs?
-
How do I edit 1080/50p from my TM700
I have a Panasonic TM700 and am not sure if Premiere Pro CS5 can edit my footage and if it can, what preset should I use. (my computer handles the raw footage perfectly, I just don't know how to edit it)
-
Firefox 3.0b4-1 does not load
Sorry, missed the correct section please see http://bbs.archlinux.org/viewtopic.php? - 37#p340737 and delete this post thanks Last edited by Cilyan (2008-03-11 12:33:59)