Regarding functions in pe04
Dears ,
Please i need quick reply in this :
i 've created new function using pe04 === p9999
1- first i want to ask is it true to call it P9003 or it supposed to be %9999 ??
2- this function is country specific and when i add it to the schema , and after checking it gives function P9999 doesn't exist although it's activated .
Please Help .
>
Kathy_Adam wrote:
> i 've created new function using pe04 === p9999
> 1- first i want to ask is it true to call it P9003 or it supposed to be %9999 ??
> 2- this function is country specific and when i add it to the schema , and after checking it gives function P9999 doesn't exist although it's activated .
1. If you have function P9999, then call it as P9999; if %9999, then %9999.
2. Make sure it is activated for your country. Check in PE04.
Similar Messages
-
Steps to create a custom function in pe04 and to create the code include
I am new to HR time management.i require to create a custom quota
function in pe04 .
I believe it requires me to first include the source code under
the include RPTMOZ00..Its not editable and throws mesage that
its lckd by some other 'client'..Do i need some access key
there? moreover without this i do not know how to proceed in
pe04.I dont evn have any idea what all should be put in the
paramaters in the pe04 attributes.Just have been told about the
countries to specify there. please suggest what all inputs
should i ask my functional people to provide on this and what
all can i handle technically and how..any help would be
appreciated.ThanksHi,
Step by Step creation of SAP Payroll Funcitons:
1) Follow the menu path
Human Resources>>Time Management>>Administration>>Tools>>Funtions/Operations
or transaction PE04. Enter a four digit name for e.g ZIABC, and press the create
button, enter the description. On creation the system proposes the name of
the routine use it, or enter a name of your choice by selecting the option 'Self-defined'.
2) During the execution of payroll some tables are filled with wage types and there amounts
to make these tables available to your routine enter the name of the table for e.g (RT or
CRT) in the input parameters, and to make the changes done to the data in the tables
avaiable to the payroll enter the name of the table in the Output parameters as well.
Input Parameters
Ctry Num Object Name
99 1 RT
99 2 CRT
and same shall be done in the Output Paramters if required.
3) Create an include in the program PCBURZ990 (using Transaction:
SE38), in which create a subroutine with the name supplied by SAP or the
name selected by you during Funtion creation,
in our case, it is FUZIABC.
Note: The program PCBURZ990 is in SAP Namespace, so an Access Key
will be required before you can proceed. But it will not be overwritten during any upgrade.
*Example of the subroutine
FORM FUZIABC.
*enter the code
ENDFORM.
4) After this activate the program the Funtion and add it in the schema used for payroll processing.
Reward points if helpful.
Regards,
Manoj. -
Dilemma regarding function based indexes
Hello,
I have a dilemma regarding function based indexes.
I have read Note:66277.1 on the Metalink discussing thoroughly the subject of “Concepts and Usage of Function Based Indexes”.
This doc was revised on 30-May-2006 so I was sure it referred to 9i and 10g.
This doc as well as other docs on the web claim that in order to use FBI (function based indexes) one must set the following parameters (can be done also at session level)
QUERY_REWRITE_ENABLED = TRUE
QUERY_REWRITE_INTEGRITY = TRUSTED
Also the schema that is owner of the FBI should be granted with QUERY REWRITE sys priv and statistics should be collected since FBI is usable only by CBO (cost based optimizer).
I have tested it and it works, my problem was that it worked
(1) Without granting the QUERY REWRITE to the owning schema.
(2) QUERY_REWRITE_ENABLED was set to false.
(3) QUERY_REWRITE_INTEGRITY was set to enforced.
I have conducted my tests on 9.2.0.6 and found no evidence in the docs (10g) saying the above is required or not.
I found at http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:1197786003246 the following:
“Oracle9iR2 relaxed this so that the FBI on the builtin function may be used.”
so I have tested it with my own function:
create or replace function upper2( p_str in varchar2 ) return
varchar2 DETERMINISTIC
as
begin
return upper(p_str);
end;
=>
Also (yes you guessed right), without any privilege granted nor parameter setting the optimizer picked my FBI.
Can anyone refer me to a place documenting this behavior as a correct one?
Other comments?
Regards,
Tal Olier ([email protected])Got an answer from Oracle support:
19-DEC-06 18:04:31 GMT
(Update for record id(s): 101017780,101017796)
QUESTION
========
Questions about the options required in 10g related to Function Based Indexes, and the correct
behaviors associated with them.
ANSWER
======
For 10g:
These requirements are no longer true in 10g. This has already clarified by
development in the Bug 3999326 which is available on metalink.
For 9I:
For the creation of a function-based index in your own schema, you must be
granted the QUERY REWRITE system privileges. To create the index in another
schema or on another schema's tables, you must have the CREATE ANY INDEX
and GLOBAL QUERY REWRITE privileges.
You must have the following initialization parameters defined to create a
function-based index:
QUERY_REWRITE_INTEGRITY set to TRUSTED
QUERY_REWRITE_ENABLED set to TRUE
COMPATIBLE set to 8.1.0.0.0 or a greater value
Additionally, to use a function-based index:
The table must be analyzed after the index is created.
The query must be guaranteed not to need any NULL values from the indexed
expression, since NULL values are not stored in indexes.
However, in 9.2.0.4 patchset, these prerequisites do not apply and one can
create function-based indexes without any of the above to be true. This is not
the case in 9.2.0.3, not in 8.1.7.
Reference: Oracle 9i R2 Administrators Guide
So as mentioned above that is why you didnt have any errors
Please back to us if any further information is need, and we will be pleased to
assist you further.
Thank You,
Best Regards,
Mina Anes -
query regarding function module SPOOL_RQ_READ_BAPI_EXPORTS (EBP-SRM Module)
shopping cart
Hi in FM SPOOL_RQ_READ_BAPI_EXPORTS
i want to relate the internal tables requisition_items and requisition_services.
but in am not getting the key on which they should be joined
here i have to take the quantity and other fields from requisition_services
right now i am using the joining condition as
requisition_items-pckg_no = requisition_services-pckg_no.
any help in this regard is welcome.
Thanks and regards,
VithalprasadHi Kathirvel,
Thank you for reply. I am making changes for standard code only.
" Call FM SPOOL_DPO_READ_BAPI_EXPORTS to read PO data exported to backend.
Use this data to call FM B46B_DPO_TRANSFER and copy errors tab from
' lt_bapi_return ' to ' et_messages' retrun tab in 'doc_check' badi. "
Thank you.
Regards, Sunu -
hi all,
as per my knowledge is concern,functions accept only IN parameters but not out parameters.b'se there is return clause in header and return statement inthe executable section to return the value to the calling envirement.
inthat case,how can we use the following syntax for creating functions,here we are using OUT parameters. even though function is creating without compilation errors.
create or replace functin(p1 OUT number,p2 OUT number)
return number
is
begin
return 0;
end;
iam getting confusion.pl clarify anyone.
thanks
pavani.hi
Dont create duplicate thread ..
Re: regarding function
Khurram -
Create a Time Management Custom Function in PE04
Hi Experts
Pls give the steps to create a custom function in Time Management using PE04,
whta is purpose of using infotype in PE04 , what are the input parametr and output paramaete . What are the intrnal table available in custom function . How we can test the custom function .
Thansk and regards
Renjith MPNo idea on how to set.
But in our case, we have a requirement for calculation of GOSI for our Bahrani Employees. Hence did the same using by creating a FUNCTION ZGOSI.
We have not given any input or output parameters.
Used a Z program for payroll driver RPCALCX0 -- ZSH_GOSI_CALC and the calculations are taken from this program and output is displayed in the RT table- Wage types.
For more information, check with functions of infotype like P0014, P0015, you will get some idea on the same.
Before giving the above, need to mention the parameter list for control.
Mostly the input parameters are given as Objects like in our Payroll Process, there is WPBP table and output parameters the results to be displayed using object RT.
Analyze more on the same and you will come to know.
Good luck.
Regards
Team Member. -
Question regarding Function F4IF_INT_TABLE_VALUE_REQUEST
Hi Experts,
I am using the function F4IF_INT_TABLE_VALUE_REQUEST in my code as follows :
*& Report ZTESTER
REPORT ZTESTER.
DATA : begin of VALUE_TAB occurs 0,
matnr like marc-matnr,
werks like marc-werks,
pstat like marc-pstat,
end of value_tab.
data: Lt_fields type table of dfies,
lt_return LIKE ddshretval OCCURS 0 WITH HEADER LINE.
PARAMETERS : P_WERKS LIKE MARC-WERKS.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_WERKS.
SELECT matnr werks pstat INTO CORRESPONDING FIELDS OF TABLE
VALUE_TAB
FROM MARC WHERE MATNR LIKE 'SH%'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = 'MARC'
retfield = 'WERKS'
PVALKEY = ' '
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_WERKS'
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = 'X'
DISPLAY = 'X'
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = VALUE_TAB
FIELD_TAB = LT_FIELDS
RETURN_TAB = LT_RETURN
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.
ENDIF.
LOOP AT LT_RETURN.
P_WERKS = LT_RETURN-fieldval.
ENDLOOP.
The code is working fine and when we execute the report and press F4 on the Field, there is an option for User Input also in the search help. The F4 Help shows the values for Material, Plant and Maintenance Status. Also, the user-input options contain the same fields.
My question is Can we give user an additional field say, MARC-MMSTA to enter the value in but dont display it in the value-list.
Please help. Points will be rewarded to useful answers.
Thanks.This is not possible.... when ever you give an additional field as user input, these values are definitely reflected when you call for F4 help... So its not possible to avoid the additional field to be displayed...
Regards,
Pavan P. -
Regarding function changes in sap backend system
Hi Team,
I would like to check if we can alter functions and its actions/permissions in SAP back end and transport it across landscape.
This is needed as we customize the rule set and its difficult to validate the risk analysis changes directly in production when its made via nwbc.
Thanks in advance.
Regards,
AnilHi Anil
If you maintain a Function definition then you are updating those tables (Function to Action (transactions) and Function to Permission (Authorisations) tables). So the answer is YES
If you are asking if you should maintain directly in Production Vs Transport then the answer would be DEPENDS - what is your company process
If you are asking if you can maintain the SAP delivered rule set (activate via BC SETS) then the answer is DEPENDS. Again, it comes back to your company business process. You would then need to consider how you manage any future recommendations from SAP if they update their rule sets
But again, those tables is where you store function definitions so of course you can maintain them.
Regards
Colleen -
hi all,
When i am trying to copy function group j1i4 to j1i4z( This i need to copy from j1i4 , i have acess key also).It is showing this error.
SAP names file for RAMI locked by another process
Message no. PU815
Diagnosis
An operating system file (the SAPNAMES file of user RAMI) could not be accessed from the program that is running, since it is locked by another transaction.
The name of the lock file is "/usr/sap/trans/tmp/RAMI.LOS".
Procedure
Execute the function again after a few seconds.
If the message occurs regularly, contact your SAP administrator.
what will be the problem.
please suggest.
Regards
ReddyTry to copy to zj1i4 instead of j1i4z and you may not need access key to do this. The custom objects shoul start with Z or Y. Otherwise you will have namespace conflict.
-
Regarding Function Module 'SO_NEW_DOCUMENT_SEND_API1'
Hi All,
I am having a issue in using Function Module 'SO_NEW_DOCUMENT_SEND_API1'.
<b>I am presently sending the E-mail as follow:</b>
From: [email protected]
To: [email protected]
Subject: You have Missing Time
Please Do Not Respond To This E-mail ***
BOHAN JAMES P. S25751
07/01/2005 4.00 HRS
07/07/2005 4.00 HRS
07/27/2005 1.50 HRS
For any missing time greater than 30 calendar days, please complete a Salary Request for Labor Hours Transfer Form (SA8250). If you have any questions, please contact Salary Timekeeping on extension 6-5571 or 6-5500.
<b>But the user wants it to be in following way:</b>
From: [email protected] [mailto:[email protected]]
Sent: Monday, August 15, 2005 10:44 AM
To: [email protected]
Subject: You have Missing Time
Please Do Not Respond To This E-mail ***
BOHAN JAMES P. S25751
07/01/2005 4.00 HRS
07/07/2005 4.00 HRS
07/27/2005 1.50 HRS
For any missing time greater than 30 calendar days, please complete a Salary Request for Labor Hours Transfer Form (SA8250). If you have any questions, please contact Salary Timekeeping on extension 6-5571 or 6-5500.
<i>I want following Extra row to be added in when i send Emails to recipients.They should receive Date & Time when i sent that E-mail in following way.</i>
<b>Sent: Monday, August 15, 2005 10:44 AM</b>
Can any body help how can i solve this issue.
Thanks in advance.
Thanks & Regards,
Rayeezuddin.Hi,
check this link:
http://www.sapdevelopment.co.uk/reporting/email/email_sapmail.htm
It has options for date and time while sending a mail.
Best Regards,
Anjali -
Regarding function module in update task
Hi,
I have a function module(Zxxx) which is update type. i have called the fun.module in my program (Zyyy) using the syntax CALL FUNCTION ZXXX IN UPDATE TASK. As I suppose to debug the function module, I activated the update debugging in the debugging screen. But the controll still not goen into the function module. Please let me know solution.
Thanks & regards,
Suresh>
sureshkumar vaniyasekar wrote:
> I activated the update debugging in the debugging screen. But the controll still not goen into the function module.
Hello Suresh,
What do you mean by not going?
If you are trying to do an F5 at the function call, the debugger is not "enter" into the FM. This is because at this point the function call is registered but the FM is not executed.
Update FM calls registered in a particular LUW are executed(in a special "UPD" workprocess) when there is a COMMIT encountered(may be explicit or implicit).
Did you read the online help on [Update Debugging|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/c6/617d0ce68c11d2b2ab080009b43351/content.htm] & [Breakpoint behaviour during Update Debugging|http://help.sap.com/saphelp_NW70EHP1core/helpdata/en/c6/617cbee68c11d2b2ab080009b43351/content.htm]?
BR,
Suhas -
Dought regarding Function module
Hi ,
I have small dought regarding fm....
since Read_text is a function module can it be changed to RFC , since i need to retrive data from sap to informatica .
since some of the long text are also need to retrived to a non sap system .
if i creat a zread _text as a RFC .
will this work .am i in the right path ,need ur advice on the same .
if its right what are the steps needs to be followed .to create a zread_text
Thanks ,
VInay .Create a new function module in SE37, e.g. Z_RFC_READ_TEXT and tick that it is RFC enabled. The Import, Export, and Tables parameters should mirror those in READ_TEXT, but you might like to add another table so you can return any exception messages to the caller (e.g. "OT_RETURN" with a structure like BAPIRET2)... you might also have local standard for naming parameters in custom code which you may need to follow. Inside your "Z" function module you just call 'READ_TEXT' using the parameters of the "Z" function. Any exceptions from 'READ_TEXT' should be added into OT_RETURN so that the external caller can be advised of the problem.
-
Regarding Function module HR_MAINTAIN_MASTERDATA.
hi experts,
i have a requirement where in i need to inseert data in to infotype:0000,0001,0105,9010,0041 and update the infotypes:0015,0014,0008,0009 by using function module HR_MAINTAIN_MASTERDATA . i have used ACTIO as 'INS' and 'MOD' (since T589A table doesn't contain the 'UPD' operation).
but using this "MOD' i am unable to update all the infotypes, instead it is throwing the error as entry doesn't exist in T589A for P.
i need to know whether the following code is correct or not and also to overcome the error.. Please let me know the changes needed.
DATA: BEGIN OF IT_INFTY,
INFTY TYPE PPROP-INFTY,
END OF IT_INFTY .
DATA: LV_PERNR TYPE PSPAR-PERNR.
LV_PERNR = '430102'.
if ( IT_INFTY-infty = '0000' or IT_INFTY-infty = '0001'
or IT_INFTY-infty = '9010'
or IT_INFTY-infty = '0105' OR IT_INFTY-infty = '0041' ).
LV_OPERATION = 'INS'.
elseif ( IT_INFTY-infty = '0007' or IT_INFTY-infty = '0008'
or IT_INFTY-infty = '0014' or IT_INFTY-infty = '0015').
LV_OPERATION = 'MOD'.
endif.
CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = LV_PERNR "WA_SOURCE_DATA-pernr
IMPORTING
RETURN =
LOCKING_USER = sy-uname
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
PERNR = LV_PERNR
MASSN =
ACTIO = LV_OPERATION "'INS'
TCLAS = 'A'
BEGDA = SY-DATUM
ENDDA = '99991231'
OBJPS =
SEQNR =
SPRPS =
SUBTY = lv_subty
WERKS =
PERSG =
PERSK =
PLANS =
DIALOG_MODE = '2'
LUW_MODE = '1'
NO_EXISTENCE_CHECK = ' '
NO_ENQUEUE = ' '
IMPORTING
RETURN = RC
RETURN1 = RC1
HR_RETURN =
TABLES
PROPOSED_VALUES = PROPOSED_VALUES
MODIFIED_KEYS =
write : / rc-message.
CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = LV_PERNR "WA_SOURCE_DATA-pernr
IMPORTING
RETURN =
kindly suggest.
regards,
joy.hi,
i have a similar situation wherein i need to use the two operations insert and modifications for the infotypes.
the problem i am facing is ,i need to put the logic in a method and it doesnt allow the usage of with header line. so how can we refer to the fields if the following logic is used.
TYPES : begin of ty_infty,
infty TYPE pprop-infty,
END OF ty_infty.
DATA: it_INFTY TYPE STANDARD TABLE OF TY_INFTY,
proposed_values TYPE pprop occurs 0 with header line,
wa_INFTY TYPE TY_INFTY.
*************************updation of 0000***********************
lv_fval = '01'.
wa_proposed_values-infty = '0000'.
wa_proposed_values-fname = 'P0000-MASSG'.
wa_proposed_values-fval = LV_FVAL.
wa_proposed_values-fname = '00'.
append wa_proposed_values to proposed_values.
it_infty-infty = wa_proposed_values-infty.
clear wa_proposed_values.
***similarly we update the values for other infotypes
if ( it_infty-infty = '0000' or it_infty-infty = '0001'
or it_INFTY-infty = '0041' or it_INFTY-infty = '9010'
or it_INFTY-infty = '0105').
lv_operation = 'INS'.
elseif ( it_INFTY-infty = '0007' or it_INFTY-infty = '0014' ).
"or IT_INFTY-infty = '0014' or IT_INFTY-infty = '0015').
lv_operation = 'MOD'.
endif.
CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
EXPORTING
NUMBER = lv_pernr
IMPORTING
RETURN =
LOCKING_USER = sy-uname
CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
EXPORTING
PERNR = lv_pernr
MASSN =
ACTIO = lv_operation
TCLAS = 'A'
BEGDA = SY-DATUM
ENDDA = '99991231'
OBJPS =
DIALOG_MODE = '2'
LUW_MODE = '1'
NO_EXISTENCE_CHECK = ' '
NO_ENQUEUE = ' '
IMPORTING
RETURN = rc
RETURN1 = rc1
HR_RETURN =
TABLES
PROPOSED_VALUES = proposed_values
MODIFIED_KEYS =
write : / rc-message.
CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
EXPORTING
NUMBER = lv_pernr
IMPORTING
RETURN =
here its giving an error that it_infty is a table without headerline and has no field as infty.
how to over come this, please guide me in this regard. if this is not the correct logic please tell me the appropraite one..
thanks in advance,
Durga. -
Regarding Function module call
Hi Guru s
Can any body explain how many Function modules are stored in One function group.
And What happen when I call 1 function module in a F.Group.
Thanks in advance,
Kumar.Hi,
Function group can be defined it as collection of Function
modules. This Function groups are presents in the Packages
where we can create in the SE38. So,that all packages are
consists in the Function Groups.All function groups are
consists Function Modules.This function modules are created
at enhancements/Exists.
A function group can hav any no. of FM's.
there is no restriction.
reward if useful
thanks and regards
suma sailaja -
Regarding function module to convert hours to minutes and seconds to minute
hi all,
is there any function module to convert hours to minutes and seconds to minutes....if so please guided me....i hav req like this...want to convert all those to minutes[seconds and hours]....Hi,
Use FM
SD_CALC_DURATION_FROM_DATETIME
Pass paramters like
I_DATE1 16.09.2008
I_TIME1 10:33:00
I_DATE2 16.09.2008
I_TIME2 19:00:00
and you will get the result as below..
E_TDIFF 8:27
8 hours and 27 minutes...
Now u can use this values of hours and minutes to get the exact wage type values... get the details from HR module and multiply it with the hours and minute and calculate it...
Use Offsets and get the hour and minute value from E_TDIFF
Hope it will solve your problem..
Thanks & Regards,
Naresh
Maybe you are looking for
-
Disapointed with itunes support hope someone has a answer
I should first say that the purpose in this post is not to slam itunes support but to find someone with a helpful answer. About two weeks ago my computer started telling me that 100 of my songs could not sync because they were not authorized with thi
-
Searching and opening folder not possible ?
I sometimes search not just file name but also folder name, but I see no such option in the search function I also often need to quickly open a folder to see all images in it. For ex if I search an image named AA the search result shows only the imag
-
HT1338 How can I get a copy of iWeb or a web building software like Iweb
How can I get a copy of iWeb or a web building software like Iweb
-
How can I use the camera with yahoo chat?
I can't use Yahoo Chat client with the built in camera on my Macbook Pro. Anybody have any suggestions? Much thanks, Skitbraiking
-
I cannot set FF to the default page
I cannot set the default home page in FF 3.6. When I try I get an error messagge, "GOOGLE ERROR".When I try to set the home page "GOOGLE.CN" appears as opposed to either the GOOGLE home page, or the FF default home page. I un and reinstalled FF to no