Funtion module to get payroll DT result
Hi Experts,
Please specify function module to get payroll DT table result,
Not RT table result.
Or else if there any adjustment payment of previous month is there,
where that result will go and sit.
Thanls & regards
S Paul
Hi,
You can get the results from FM "PYXX_READ_PAYROLL_RESULT" .
DATA : gs_result type pay99_result,
gs_dft like line of gs_result-inter-dft.
call function 'PYXX_READ_PAYROLL_RESULT'
exporting
clusterid = l_c_relid
employeenumber = pernr-pernr
sequencenumber = rgdir-seqnr
read_only_international = l_c_x
changing
payroll_result = gs_result.
loop at gs_result-inter-dft into gs_dft.
endloop.
Regards,
Srini.
Similar Messages
-
Which Funtion module can get print parameter in the background?
Hi all,
I know the FM"GET_PRINT_PARAMETERS"can get the print parameter, but I find it can't get the print parameter in background. Does anybody know Which Funtion module can get print parameter in the background?
Thanks in advance!
NinaHi Nina,
This is text copied from SAP HELP.
FU GET_PRINT_PARAMETERS
Text
Read, determine, change spool print parameters and archive parameters
Functionality
The function module GET_PRINT_PARAMETERS is used to define, modify and
display the print and archive parameters. Using this function module is
the only correct way to modify a print or archive parameter record. The
print parameters are closely related and contain a check total. This
check total becomes invalid if any of the print parameters are changed
and causes a runtime error when the print parameters are used later.
The module recognizes the following modes (values of parameter MODE):
'PARAM' Normal case. Define the print parameters for the
current program. The values that are not defined
are specified from the user master record or are
assigned default values. The print parameter screen
displays the PRINT key. This mode is used
if the MODE parameter is not specified.
'PARAMSEL' Like PARAMS, except that the print parameter screen
includes an option to activate the selection
screen.
'BATCH' Define the print parameters for a background job.
In this mode, the name of the report to be started
is passed with the REPORT parameter.The REPORT
statement of the specified report is checked for
LINE-SIZE and LINE-COUNT definitions. These
definitions are passed as default specifications.
Furthermore, the SAVE key is offered
instead of the PRINT key in this mode.
Check the BATCH MODE. -
Any Funtion module to get equipment no. (EQUNR) using functional location?
Hi Guys,
Can anyone tell me the function module to get equipment (EQUNR) using functional location (TPLNR) ?
regards
RahulHello Rahul
Perhaps the following function modules are helpful:
- ALM_ME_FUNCLOC_INSTALLED_EQUI
- INSTALLED_EQMTS_ON_LOCATION
- INSTALLED_EQMTS_ON_LOC_READ
Regards
Uwe -
Function Module for getting Payroll start date and end date
Hi Gurus,
If I give one date then is there any function module to find the payroll period start date and enddate for that given date?
Points will be awarded
Thanks
RaviHi,
Try these FMs
HR_PAYROLL_PERIODS_GET
HR_BEN_PAY_GET_PAYROLL_PERIODS
HR_PAYROLL_PERIOD_GET
HR_P06I_GET_PAYROLL_PERIOD
Regards,
PRashant -
Function module to get the sequence numbers based on PERNR & payroll period
Hi,
Right now i am using the function module 'CU_READ_RGDIR' to get the sequence number based on the PERNR. Once i get the data i am filtering based on payroll periods (begin date and end date). Is there any function module to get the sequence number directly based on PERNR and payroll period dates? if so could you let me know.
Thanks
SatyaI think thats the only way
CALL FUNCTION 'CU_READ_RGDIR'
EXPORTING
persnr = p0001-pernr
TABLES
in_rgdir = it_rgdir
EXCEPTIONS
no_record_found = 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.
check whether "Pay date for payroll result" with in Start Date and
End date, and "Reason for Off-Cycle Payroll" is initial
LOOP AT it_rgdir WHERE paydt >= v_begda
AND paydt <= v_endda AND
void IS INITIAL
AND ocrsn IS INITIAL
AND srtza = 'A'.
v_seqnr = it_rgdir-seqnr.
ENDLOOP.
Hope this helps.
Thanks
Kiran -
What are the sequence of function modules executed in payroll result
Dear all,
what are the sequence of function modules executed while retrivieng pryroll result.or
functionmodule sequence in payroll programming.
By
boseHi Bose,
The sequence of FM executed in payroll result are
1. cu_read_rgdir ---> from this u will get the country key.
2. cd_read_last -
> from this fm u will identify the seqnr for the latest record and finally for the payroll result
3. pyxx_read_payroll_result. -
Function module for reading payroll results
HI,
I need a function module for reading payroll results RT table.
Import parameters are personal number, payroll area, and payroll period.
Export should be RT table.
Regards,
Wasim AhmedHai Wasim
Check the following Code
data: payroll_cluster like t500l-relid.
call function 'PYXX_READ_PAYROLL_RESULT'
exporting
clusterid = payroll_cluster
employeenumber = pernr-pernr
sequencenumber = payroll-evp-seqnr
READ_ONLY_BUFFER = ' '
READ_ONLY_INTERNATIONAL = ' '
CHECK_READ_AUTHORITY = 'X'
IMPORTING
VERSION_NUMBER_PAYVN =
VERSION_NUMBER_PCL2 =
changing
payroll_result = payroll_us
exceptions
illegal_isocode_or_clusterid = 1
error_generating_import = 2
import_mismatch_error = 3
subpool_dir_full = 4
no_read_authority = 5
no_record_found = 6
versions_do_not_match = 7
others = 8
if sy-subrc <> 0.
if sy-subrc <> 0.
write: / 'Fehler beim Laden des US Abrechnungsergebnisses'(003).
write: /'zu Personalnummer'(008), pernr-pernr,
'bei Sequence-Number'(012),
payroll-evp-seqnr.
write: / 'Fehlercode ='(004), sy-subrc.
endif.
endif.
Thanks & regards
Sreenivasulu P -
Why I cannot get payroll result value ?
Expert,
In EBS Payroll R12, I define two elements A and B. A has priority 1500, B has priority 3500. So A will be processed ahead of B. I write a pl/sql package to calculate B, and attach the package to B through formula result. In the package, I will use "Pay value" of A, the logic can be abstracted as " A-Pay value * 0.05". However, the result of B is not my expected. I track my package and find the program doesn't get the Pay Value. I am sure my sql statement is right. So my conclusion is for one assignment calculation, these elements payroll result will be written back to DB together rather than one by one, right?
For my case, it I want to use the pay value of elements which have been calculated, how to do? Please give me some advice.
Thanks in advance.Dear thierry,
Thanks for your kindly help. I follow your hints to modify my fast formula of B as below:
Cal_B:
dummy=A_BALANCE_ASG_RUN /* A_Balance will contain element A*/ /* a new line added here */
v_rtvl=CAL_B_external_F /* It is formula function, which will contain external PLSQL call. The plsql will use the Pay value of A */
return v_rtvl
Per my understanding, after calling statement "dummy=A_BALANCE_ASG_RUN", the relevant pay result of A should be flushed to DB.
unfortunately, when I process my payroll, the result still remains unchange. It seems that CAL_B_external_F cannot get the "Pay value" of A
If I modify fast formula as below:
Cal_B:
v_rtvl=A_BALANCE_ASG_RUN
return v_rtvl
I can get v_rtvl whose value is equal to A_BALANCE_ASG_RUN. It seems the value of A_BALANCE_ASG_RUN can be captured in the fast formula.
So, How do I understand your hints as below:
"A element_A_asg_run in your second fast formula, before calling the plsql, can do the trick, eventually."
I am eager to your help.
Regards,
Michael
Edited by: Gang2 on Mar 22, 2009 10:45 PM -
How to get Documentation on Funtion Module
hi Experts,
I want to know where can we find the documentation of a FM like for a badi... you can get it from spro..srm...Business add in... where u can click on documentatio....
But how to get documentation fo Funtion module , for example if want to get docs related to FM "BBP_PD_SC_GETDETAIL" how to get it....
Thanks
sameerHi. If you go to SE37 and enter the FM name, then press display, there is a button top right called "Function Module Documentation".
It is not maintained for every function though, if the button is greyed out there is nothing. If there is nothing there I do not know if there is anywhere else to look, apart from SDN of course....
Regards,
Dave. -
Reading result table using LDB and event get payroll
Hi Technical experts,
I need help regarding reading cluster RT using logical database pnp and event get payroll.
Please help me out.
Best Regards.
PriyaranjanSuresh, I also have one more question.
If I use GET pernr or GET payroll inside a subroutine after start of selection, it gives error saying "Before the statement "GET" , the structure introduced by FORm shuld be ended by END FORM, which is already ended correctly.
When I move the Get events outside the subroutines, i dont get this error.
Does that mean, these events cannot be used in the subroutines? -
How to Update crmd_customer_h TABLE Using CRMV_EVENT Through Funtion Module
Hi
How we can update customer_h table using the CRMV_EVENT Where i implemented logic below in the Funtion Module.
data: lt_doc_flow TYPE crmt_doc_flow_wrkt,
lw_cust_h_com TYPE crmt_customer_h_com,
lw_input_field_names TYPE crmt_input_field_names,
lt_input_field_names TYPE crmt_input_field_names_tab,
lt_objects_to_save TYPE crmt_object_guid_tab,
lw_guid TYPE CRMT_OBJECT_GUID.
DATA : lv_process_type TYPE crmt_process_type.
data: wa_doc_flow type CRMT_DOC_FLOW_WRK.
data: wa_customer_h type crmd_customer_h.
* Function module for retriving the Process type.
CALL FUNCTION 'CRM_ORDERADM_H_READ_OW'
EXPORTING
iv_orderadm_h_guid = iv_header_guid
IMPORTING
ev_process_type = lv_process_type
EXCEPTIONS
admin_header_not_found = 1
OTHERS = 2.
if lv_process_type eq 'ZG01'.
CALL FUNCTION 'CRM_DOC_FLOW_READ_OB'
EXPORTING
IV_HEADER_GUID = iv_header_guid
IMPORTING
ET_DOC_FLOW_WRK = lt_doc_flow.
read table lt_doc_flow with key objtype_a = 'BUS2000116' INTO wa_doc_flow. "gc_object_type-service.
if sy-subrc eq 0. "set flag for service order
lw_cust_h_com-ref_guid = wa_doc_flow-objkey_a.
lw_cust_h_com-ZZTRAIL_FLAG = 'X'.
lw_cust_h_com-mode = 'A'.
lw_cust_h_com-ref_handle = '0000000001'.
lw_guid = wa_doc_flow-objkey_a.
INSERT lw_guid INTO TABLE lt_objects_to_save.
endif.
lw_input_field_names-fieldname = 'REF_GUID'.
lw_input_field_names-fieldname = 'ZZTRAIL_FLAG'.
lw_input_field_names-changeable = ' '.
INSERT lw_input_field_names INTO TABLE lt_input_field_names.
Maintain Customer H
CALL FUNCTION 'CRM_CUSTOMER_H_MAINTAIN_OW'
EXPORTING
is_customer_h_com = lw_cust_h_com
CHANGING
ct_input_field_names = lt_input_field_names
EXCEPTIONS
header_change_error = 1
header_create_error = 2
error_occurred = 3.
ENDIF.
*endif.
*Clearing local variables
clear: lv_process_type,
lw_cust_h_com,
lw_input_field_names.
*Free internal tables
free: lt_doc_flow,
lt_input_field_names.Hi Faisal
I think your not clear with what i am saying anyhow i will again explain you my requirement
As per my requirement
1)in the service order search report i need to add a field called "Has trail order with No Follow up" with values "Yes" & "Blank"
For above Field i added using the structure CRMST_QUERY_SRVO_BTIL and through configuration i am able to display the field in webui as per (Attachement Pic 1)
2)When i search with search criteria as "Has trail order with No Follow up" with "Yes"
Then in result list i need to show the service order those having follow up as trail orders(sales order) only.if for next document trail order having any follow up then those service orders dont want to show in result list.
For above requirement i implemented F.M using CRMV_EVENT & I configured for BUS2000115 And BEFORE_SAVE The Order
The FM Will get trigger when i save the service order and for that service order if create any follow up and try to save the trail order then This FM Will trigger and in this i am doing validations.
3)Add one AET Trail Flag field is added under CUSTOMER_H Table.
4)in the FM I am validating for if the trail order having the preceding document as service order then i need to make flag as "X" For that service order in customer_h
if suppose when i delete trail order from the service order then that flag must need to be "unset" from the CUSTOMER_H.
Why bcoz we are doing above process is do show records in result list based on Flag values
these flag checks are validating in the BADI Which we implemented for search logic.
Please refer below Login for my requirement:-
Proposal to have a custom “flag” field (background at table level,
crmd_customer_h) linked to service order which gets flagged whenever at
least one Trial order is created and saved from the Service Order.
The flag value should be cleared when all the trial orders created and
saved as follow up transactions are deleted from the system.
Similarly for Trial Orders will use the same custom “flag” field
which gets activated when at least one follow up is created and saved from Trial Order.
The flag value should be cleared when all the follow up transactions from
the Trial Order are deleted from the system.
When the above search criteria “Has Trial order with no follow up”
“is” “Yes” is applied then the logic derives all the service
orders which satisfy additional search criteria applied in the search and
for these Service orders checks if the custom flag field is checked to
derive all Service orders which have Trial order. The custom flag values
values are derived from crmd_customer_h table in CRM.
4 )Further for all the Trial Orders determined in Step 3
check if the Trial Order has a follow up by checking if the custom flag field
is checked. The custom flag values are derived from crmd_customer_h table in
CRM.
5) If step 4 is not met populate the preceding Service
Orders in the Result list -
GET Payroll in logical data should be used or not?
Hi All,
Should we be using the GET payroll to fetch the payroll results using the logical database PNP?
As the GET PAYROLL is not supported by the logical data base PNPCE.
I know 2 ways of fetching the payroll data.
1) using the function modules
2) using the GET payroll.
Please suggest the best possible way along with the reasons.
Regards,
Umesh Chaudhari.Hi All,
any suggestions?
Regards,
Umesh Chaudhari. -
Function module to get pernt by passinf objid and otype
Hi,
Help me to find any function module to get pernr by using objid and otype.or table name from which we can get pernr by passing objid and otype.
thanks,
satish.You are talking about on the OM side and obtain the perner via object P?
You can through a few method. One is using evaluation path. There is a function module called HR_STRUC_GET which allow you to pass evaluation path to get the result.
Using that, you could create a simple evaluation path from position (object s) to person (object p). The object ID of object P is your pernr.
Unless you have central person functionality, that might no longer be the case. -
Function Module to get a work center's capacity requirements (load) within a given period
Hi all experts,
Currently I’m doing a capacity summary report similar to CM01, but with a summarized capacity availability and loading for a period.
Selection Parameters: Work center range from and to, Period from and to
List Format: Work Center, Avail Capacity, Loaded Capacity, Free Capacity, Load %
I have found a standard function module (FM) to get work center's available capacity for a period, but still facing the challenge to find a FM to get a work center’s capacity requirements (load) in a period.
I have read through all the related threads from the web, and tested the recommended FMs, but still cannot get a right result.
Please help to provide some leads for a FM or the logic.
Best Regards
PhilipHello Philip
The following function modules should be useful:
- CY_PRIMARY_SELECTION - Function module for selection of orders for the work center
- CY_SECONDARY_SELECTION - Check for additional criteria
- CR_CAPACITY_AVAILABLE_PERIODS - Reads the available capacity from work center
- HR_PERSON_READ_TIME_INFO - Reads the available capacity from person (modification)
- CY_GET_PART_CAPACITY - used only for the first period to read backlog
- CY_LOAD_DISTRIBUTION - Distribution key
Please observe that these are simple function modules, not BAPIs, That means, they were developed to be used on the SAP internal programs and they are not supported by SAP when used in custom programs.
BR
Caetano -
Function Module to get the TIMESTAMP
Hi,
Is there any function module to get the TIMESTAMP as Outout , if i give input Time and Date.
Or,
If I go for the concatenate statement.. Do I need to concate the commas in to the target field?
Because,
I am not getting the proper result with this concatenate statement where I concatenated the YYYYMMDDHHMMSS in to the DECIMAL 15 Variable.
Thanks,
Naveen Inuganti.Hi use
IB_CONVERT_INTO_TIMESTAMP' or IB_CONVERT_FROM_TIMESTAMP'
Example:
* Declaring the work variables.......................
DATA :
timestamp like TZONREF-TSTAMPS,
time like sy-uzeit,
date like sy-datum.
* The following function module is used to convert the
* time and date into GMT timestamp
CALL FUNCTION 'IB_CONVERT_INTO_TIMESTAMP'
EXPORTING
i_datlo = sy-datum
i_timlo = sy-uzeit
I_TZONE = 'INDIA'
IMPORTING
E_TIMESTAMP = timestamp.
* The following function module is used to convert the
* above obtained timestamp to PST time zone date and time.
CALL FUNCTION 'IB_CONVERT_FROM_TIMESTAMP'
EXPORTING
i_timestamp = timestamp
I_TZONE = 'PST'
IMPORTING
E_DATLO = date
E_TIMLO = time.
write :/ 'Date and Time at PST zone is ',date, time.
Maybe you are looking for
-
7344 servo motion switching between open and closed loop operation
I have a custom end-of-line test system presently using a 4-axis 7344 servo controller to perform various functional tests on small, brushed DC motors. The system is programmed in C/C++ and uses flex motion functions to control the motor during testi
-
I just sent an email to to 50 people and would like to save those email addresses as a list in Thunderbird. How do I do that? And how do I save an address List in Thunderbird in an Excel spreadsheet? (I can do the reverse -- copy a column from Excel
-
Hello, I have a problem that i wonder if its possible to solve using xalan xpath. I have a XML structure that looks like this: <ReferenceCoded> <type>AgreementType</type> <value>AgreementType1111</value> </ReferenceCoded> <ReferenceCoded> <type>Proje
-
New to Solution Manager...Need Assistance
Hi All, I am new to Solution Manager.Can anybody plz guide me how to proceed to get knowledge of Solution Manager.. If anybody has some documents useful for the beginner plz send the same.My email is [email protected] Thanks in advance... Regards, Am
-
SAP NetWeaver 7.0 ABAP Trial Version; extending the evalution period
Hi, Is it possible to extend the NetWeaver 7.0 ABAP Trial Version past the initial 90 days. The old WAS 6.2 minibasis trial version was easily extendible. Thank you, Phil