Function Module to find Reference Employee Number (PERNR)
Hi All,
Is there a FM to get employee's reference PERNR (employee number) in case employee was assigned a new employee number due to inter-company transfer or anyother reason.
Thanks
Class :CL_HRCCE_PERSON_READER
You can also see the method ...
METHOD get_other_pernr.
DATA l_personid TYPE personid.
CALL METHOD me->get_personid
EXPORTING
p_pernr = p_pernr
RECEIVING
p_personid = l_personid.
CALL METHOD me->get_pernr
EXPORTING
p_personid = l_personid
IMPORTING
p_pernr = p_rpernr.
ENDMETHOD.
Similar Messages
-
Std. function module to find reporting employees.
Hi all,
i would like to find a std. function module by which i can find the employees who reports to respected manager.
For e.g,
i have to pass manager's userid and i will get the list of employee no.s who reports to that manager.
Pls help me.
any help will be appriciated.
Regards,
Purvesh.hi,
use this function module.
HRWPC_PNP_MANAGED_EMPLOYEES. -
Function Module for fnding all employees under an Org Unit
Hi,
Is there any Function module to find the employees of an ORG Unit .
I need to specify the Org unit Name and get the employees out of it .
I looked at the FM
HRCM_ORGUNIT_EMPLOYEE_LIST_GET .
It has import parameters as
OTYP
OBJID
PATH_ID
What values do i need to pass.hi,
chk this.
call function 'HRCM_ORGUNIT_EMPLOYEE_LIST_GET'
exporting
plvar = p_plvar
otype = 'O '
objid = s_orgeh-low
begda = p_effdt
endda = p_effdt
* PATH_ID = 'O-S-P'
tables
pernr_table = i_pernr
exceptions
path_error = 1
root_error = 2
no_employees_found = 3
others = 4
Thanks,
Anver -
Function module for finding number of records in table
Do we have any function module to find number of records in a table?
Thanks,
Shwetause the EM_GET_NUMBER_OF_ENTRIES. You just have to write your table name into the input table IT_TABLES in the TABNAME field
-
Function module to find the attachment list for an accounting document?
Is there a function module to find the attachment list for an accounting document? Or which table stores such references?
I know I can find this info from the transaction FB03, but is there a function module to find the attachments for an accounting document? So far I only found the attachments are stored in the table SOOD, and archived documents in table TOA03, but I can't find the table that stores the links between the accounting document and its attachments?
<b><REMOVED BY MODERATOR></b>
Thanks,
Ning
Message was edited by:
Alvaro Tejada GalindoHi,
i_object1-typeid = 'YARSATTA'. "<<< Give your Object id name
i_object1-catid = 'BO'.
i_object1-instid = i_yarsitem-docno. "<<<< Document Number
call method cl_gos_attachment_query=>count_for_object
exporting
is_object = i_object1
ip_arl = space
receiving
rt_stat = i_stat1.
read table i_stat1 into wa_stat1 index 1.
if sy-subrc eq c_0.
move wa_stat1-counter to v_attno1.
endif.
For link you need to check for table SRGBTBREL
and also please check class CL_GOS*
a® -
I have a scenario where an employee working in country A is being transfered to country B within a global company. While in country B, the employee history from country A needs to be tracked. If I use Reference Employee Number functionality, will running a report with the employee number in country B include the histroy in country A?
Depends on the report, if it's standard only if it uses the PNPCE logical database will that possible.
-
Function Module to find out the release value in contract
Dear All,
I have to upload the contract with new accoutn assignment without changing the existing contract. For that i have to download all the existing contract data with value.
In that case i have some issues regarding the value.
For example : In the system old contract is created with value 1000 and the released value as 500.
In that case i have to uload the new contract with all the details of existing contract with value of 500 (1000-500=500).
How can i get the value (500) and from which table.Is there any functional module to find out the release value in contract.
Thanks and regads,
PM
Edited by: PM on Jan 21, 2010 8:40 AM
Edited by: PM on Jan 22, 2010 9:48 AMHi
You need to link the table VBFA and VBAK.
For a contract you can check all the subsequent document (which you can filter whether you want to see Order / delivery / Billing) in VBFA and then from there pick the subsequent document no. and then from VBAK you can pick the Net value of these subsequent documents, and so you will have both the values (value of Contract and value in subsequent document) and you can determine the balance value.
Regards
Amitesh Anand -
Function Module to find out detail of open period of Finance (FI)
Hi All,
I have a query that I want to know the existing function module to find out
FI period detail thatis detail of opened period in FI.
Regards,
RishiHi Rishi
Go to transaction SE37 and you can see the list of FM.
Thanks
Ashok
Assign points for useful answer -
Function module to find the Credit limit of a Customer based on Credit Area
hi Experts,
Is there any function module to find the Credit limit of a Customer based on Credit Area.
Regards,
Dheepakhi
try this:
select single * from KNKK INTO zzKNKK
where KUNNR = xkunnr and KKBER = xkkber.
credit limit: zzKNKK-KLIMK...
regards,darek -
Function Module to find date by passign the Planning Calendar
Hi All,
Can you tell me is there any function Module to find date by passign the Planning Calendar?
The requirement is i have a planning calender assigned to the Material in the MRP2 view.
Example: Material XXXXXX is assigned a Planning Calendar Z01.
Z01 is defined such that Delivery is on Monday only. This calendar says that the material is received from the Vendor only on Mondays.
So whenever i punch a Sales Order for Material XXXXXX, a PR is automatically geenrated when saving the sales order and the calculation of Delivery dates is also happening at this level.
Basing on this PR a PO is raised to a Vendor for procuring the Material XXXXXX, now my problem is for example the PO is raised today (30.04.2008), but the Materail XXXXXX is available only on next monday in my plant (05.05.2008) basing on my Planning Calendar assigned in the Materail Master, so i have to inform this dealy to my customer at the time of punching the sales order.
So is there any function Module to find date by passign the Planning Calendar?
Thanks for your valuable inputs.
Regards,
SudarshanHi Jorge,
Thanks for your reply.
I am unable to open the Function module which you have mentioned below.
I am working on 4.6 c version of SAP.
Any ways i have found one function module which is useful to my requirement as stated below:
DATE_GET_PERIOD
Thanks and Regards,
Sudarshan -
Table Name or Function Module to find out all the Screens & Subscreens for
Hello Experts,
Table Name or Function Module to find out all the Screens & Subscreens for all T-Codes
Helpful Answer will b rewarded
Arif ShaikHi Balaji,
But TSTC only Gives the Program Name , T-Code and Screen but not all the Subscreen details
Any other which U know -
Function Module to find the Difference between two times.
Hi All,
Wud you plz let me know the Function Module to find the Difference between two times.
Input Time1( Hours:Minutes) Time2 ( Hours:Minutes)
Need Output in Hours:Minutes only . ( No seconds Needed )
Ex :
Input :
06:00 to 18:00 Output : 12:00
and 20:00 to 06:00 Output: 10:00 with +ve sign only. No -ve sign.
Thanks,
N.L.Narayanacheck this .
data : p_timel like sy-uzeit,
p_timeh like sy-uzeit,
diff like sy-uzeit,
di(8) type c .
p_timel = '200000'.
p_timeh = '060000'.
diff = p_timeh - p_timel.
concatenate diff+0(2) ':' diff+2(2) into di.
write:/ di.
also check for this.
p_timel = '060000'.
p_timeh = '180000'.
see if this can be implemented in ur code .
or else u can try with Fm L_TO_TIME_DIFF passing startdate enddate starttime endtime with UOM as MIN
hope this helps regards,
vijay -
Function Module to find the Diff bt Two Times : O/p : Hours:Minutes only
Hi All,
Wud you plz let me know the Function Module to find the Difference between two times.
Input Time1( Hours:Minutes:Seconds) Time2 ( Hours:Minutes:Seconds)
Need Output in Hours:Minutes only . ( No seconds Needed )
Thanks,
N.L.NarayanaHi
Please use FM
<b>SD_DATETIME_DIFFERENCE</b> -
Function module to find both sold and ship to party
Is there any function module to find both sold-to-party and ship-to-party based on the sales Area.
That is if i give sales org , distribution channel , division as input . I must get Sold-to-party and Ship-to-party as output.
Regards,
S.VelsankarHi,
You can find sold to and ship to party customer from KNVP Table as below:-
SELECT KUNNR
FROM KNVP
INTO w_sold_to_party
WHERE VKORG = YOUR SALES ORG
AND VTWEG = dist channel
AND SPART = division
AND PARVW = 'SP'. "Sold to party depneds of how its configured in your system
Check TPAR table for description Sold to part and pass the PARVW value.
Similarly for ship to party
SELECT KUNNR
FROM KNVP
INTO w_sold_to_party
WHERE VKORG = YOUR SALES ORG
AND VTWEG = dist channel
AND SPART = division
AND PARVW = 'SH'. "Sold to party depneds of how its configured in your system
Regards,
Subhashini -
Function module to find time difference
Can any body help me to find the function module to find the time diff: between two times, time is in 24hrs
Hi again,
1. Difference is always returned in SECONDS.
2. use this code (just copy paste in new program)
REPORT abc.
data : t1 type sy-uzeit.
data : t2 type sy-uzeit.
DATA : DIFF TYPE I.
t1 = '090000'.
t2 = '100000'.
DIFF = T2 - T1.
WRITE :/ DIFF.
regards,
amit m.
Maybe you are looking for
-
How do I sync iPad and iPhone on iCloud?
How do I sync iPad and iPhone on iCloud?
-
I'm trying to pay for an app and it keeps on saying that my card number does not match !!
I'm trying to pay for an app and it keeps on saying that my card number does not match !!
-
System.out from Java class not output to JSP
I am using JSP to make a Java API web accessible. I include (package) java classes that write error messages to standard out when they catch an error. Works fine on the command line. Problem occurs when using in JSP. I include them with a page direct
-
Linksys X3000 does not work properly in bridge mode
Hi there. I have some trouble with my X3000, and I am not able to figure out what's wrong. This is the case: I have an ADSL-connection. I am going to use the X3000 as a modem only, and connect a router to it in bridge mode. Seems simple enough, but s
-
Hi Recently upgraded to safari 5 and it worked fine to start with then after about 3 days it refuses to open. I try to ope safari, the screen opens up and starts loading with the status bar getting to about 10% then just shuts down. When i go to repo