ABAP GET Personnel Number based on SY-UNAME
Hi,
anyone knows a bapi, function, etc, that can return a personnel number with sy-uname as input ?
Check out this link ...
Get PERNR using SY-UNAME
Hope this helps ...
Similar Messages
-
Function Module to get pernr number based on first name and last name
Hi All,
What is the Function Module to get pernr number based on first name and last name.
Could you please help me.
T@R.
Vidyahi Vidya,
you can get perner from PA0002 based on firs name and last name.
use select query and get perner. -
How to get personnel number of the user in the wd java code in Leave reques
Hi all,
we are using the standard Leave Request Applicatin ESS.
can any one please tell me how to get the personnel number of the user in the WD java code?
cause i have pass the pernr number to a bapi and get the details.
please help me its urgent.
thanks in advance.Hi Madhu,
Create a model for the particular bapi in wd java and acess it in your component. Then pernr parameter will be available in the context and u can pass value for the parameter (pernr) to the model and get the output.
If you hav any doubt, please let me know.
Regards,
Jithin -
How to get po number based on billing document number
Hi every body
how to get a po number based on billing document number
thanks in advance.
sekhar.kHi,
Check this field VBRK-BSTNK_VF.
Regards,
Satish -
ABAP Get Week Number for a Given Date.
Hi All,
I want to calculate week number for given date.
SAP has provided function modules like DATE_GET_WEEK.. Etc are giving week number. taking default start day as Monday. But for my requirement is calculate week number based on start day as Sunday.
Please let me know if we have any custom logic ??
Thanks & Regards
Vasu YadavHi Vasu,
SAP standard functionality takes MONDAY as first day.
But if you want then you can change it to SUNDAY by implementing BADI CALENDAR_DEFINITION. Create a new implementation for method IF_CALENDAR_DEFINITION~GET_FIRST_DAY_OF_WEEK and assign value as SUNDAY.
Hope it solves your problem.
Thanks
Saurabh Kabra -
Getting dynamic number based on databank variable.
I have run into an interesting issue, and I was wondering if anyone has any ideas.
Here is a run down of the setup.
I have 3 drop downs Category, Sub-Category, and Sub-Sub-Category (nice huh).
The values of the drop down as stored by E-Tester are numeric, so I am running into a bit of a problem trying to databank this test. It is stored as <option value=18>MyCategory</option>
I need to be able to choose the drop-down based on my databanked variable of "categoryName", but I couldn't figure out a way to set that on the form.
The other option, which I was diving into was parsing out the number from the html but again I am running into a problem since this is running off a databank.
I tried to run it through either the custom variable option or custom VBA and am running into the same problem. I can't tell it that the ending part of the string is a variable.
Here is my DOM Property Expression working on the inner html
<OPTION value=(\d+)>MyCategory</OPTION>
It works great as long the category is MyCategory, but I can't figure out a way to set the last portion to use a variable. If I try anything less than <OPTION value=(\d+)>MyCategory it matches all of the options in the drop down including -1 which is to add a new one.
Does anyone have any ideas or am I attempting something beyond the limitations of VBA?I think I may have a solution for you. Put this code on the page that you are trying to set the option of. Of course, the path to the select element will have to be replaced with the correct path.
Private Sub RSWVBAPage_afterPlay()
On Error GoTo ERRLBL
Dim element As HTMLSelectElement
Dim optionEl As HTMLOptionElement
Dim itemText As String
'Get the Path to the SELECT list
RSWApp.om.GetElementByPath "window(index=0).form(name=""myform"" | id=""myID"" | action=""submit.asp"" | index=0).formelement[SELECT](name=""Sub-Sub-Category"" | index=6)", element
If element Is Nothing Then
errDescription = "html object not found!"
errNumber = -1
Exit Sub
End If
'Get the Data bank value associated with the data bank value named "var_ItemText"
Call RSWApp.GetDataBankValue("var_ItemText", itemText)
'Go through each option element and match the text attribute with the data bank value. If we match, set the selected property to true
For Each optionEl In element
If StrComp(itemText, optionEl.text) = 0 Then
optionEl.selected = True
Exit For
End If
Next optionEl
Exit Sub
ERRLBL:
errDescription = Err.Description
errNumber = Err.Number
Let me know if this works for you.
- GateCity_QA -
How to get personnel numbers based on personal subarea?
Hi Experts,
Please give me the fuction module name to get the personnel numbers list based on personal subarea wise.
Best regards,
Narasimha.Hi experts,
i dont want to write select queries . I am enhancing the standard . So we are looking for FM.
'RP_CHECK_PERNR' - This function module is giving the personnel subarea as the exporting parameter and pernr as the importing parameter. But i want personnel subarea as the importing parameter and pernr as the exporting parameter.
please let me know how to process the same.
Best regards,
Narasimha. -
How to get RFQ number based from PO number...
Hello Experts,
How do I get the RFQ(request for quotation) based on a given PO(purchase order) number?
Thank you guys and take care!EKKO-EBELN = EKPO-EBELN
EKPO-ANFNR = RFQ Number.
Hope this helps.
Regards
Vinayak -
Evaluation path to get personnel number all the org unit and subordinates
Dear all,
I have OM issue to ask.This is the scenario:
Staff A belong to org 1. Under Org 1, I have org unit 1-A, 1-B and org unit 1-C.
Issue 1 :
I want to run report(RHSTRU00) to to generate all the staff number in org 1 (Include 1-A, 1-B, and 1-C).
Issue 2 :
I want to run report for 1-A, only staff belongs in org 1-A appear.The others not appear.
I was understanding I have to play around with evaluation path. Until now I can't find the suitable evaluation_path. I need your help.tqHi,
Not sure why you want to reinvent the wheel. The standard report RHXSTRU02 will give you people by Org Unit. Just enter the Org Unit ID number and you will get the employees as output.
If you still want to use RHSTRU00, you can use O-P or O-S-P to get the employees and the positions.
Paul -
How to get Partner Number based on Vendor Number
Hi,
I have vendor number(LIFNR), I would like to find out the partner number(PARNR) for this vendor number. I tried a lot but unable to find it.
Any help will be appreciated.
Thanks,
IbrahimHi...
have u checked the table VBPA(table for Sales Document: Partner)..in this table you can get the PARNR(Number of contact person)..
Hope this solve your problem.
Thanks
shankar -
FM to get transaction number based on product
Hi,
Do we have any FM to get all the transction number which are using the product?Don't know for function module, but you can certanly get it from tables. Do the following:
1. from table COMM_PRODUCT read guid (PRODUCT_GUID) of material id (PRODUCT_ID)
2. from table CRMD_ORDERADM_I read guid of header (HEADER) of material guid (PRODUCT)
3. in table CRMD_ORDERADM_H read transaction number of header guid
You can also try with just 2 step approach:
1. from table CRMD_ORDERADM_I read guid of header (HEADER) of material id (ORDERED_PROD)
2. in table CRMD_ORDERADM_H read transaction number of header guid
Regards. -
Hi,
I am looking to get the 'Personnel Number (PERNR) ' using sy-uname. Is there any table which hold this information.
Thanks,
VindIt all depends how the data is maintained in your system
Ideally the user name is maintained against a personnel number in communications infotype 0105.
I dont think it is advisible to use USR21 as the field is not from PA and it is described as Person number and not Personnel Number.
maybe others can comment as well.
Cheers
Ajay -
Get nth number of sets from user in proper set format in C#
how to take nth number of sets from user using string type list in C#.
Each set should be in this format {1, 2 , 3, ab,....nth }.
User can enter nth number of item in each set
then count the number of item in each set
Waiting for you answersI think you still not got my point. okay once again i explain you what i want.
User Enter set in WPF window in this format e.g {1,2,3,ab},{ab,cd,1,2}.
User can enter nth number of set.
User can enter nth number of elements\ items in each set.
Count the number of elements in each set.
Hopefully now you got my point
If I understand you correctly, you want to get the number based on the string like "{1,2,3,ab},{ab,cd,1,2}". Maybe you could try Regular Expression:
https://msdn.microsoft.com/en-us/library/az24scfc%28v=vs.110%29.aspx
For example this code snippet is able to count the set numbers and element numbers for you:
string input = "{1,2,3,ab},{ab,cd,1,2}";
string pattern1 = @"{.*?}";
string pattern2 = @"\w+,?";
Regex reg = new Regex(pattern1);
MatchCollection mc1 = reg.Matches(input);
Console.WriteLine("Number of set:" + mc1.Count);
for (int i = 0; i < mc1.Count; i++)
reg = new Regex(pattern2);
MatchCollection mc2 = reg.Matches(mc1[i].Value);
Console.WriteLine("Set " + (i + 1) + " element number:" + mc2.Count);
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Reg: Getting an error for getting Delivery number
Hello ABAPers,
Could you pleae assist me, For getting Delivery number based on the Sales Order Number.
Here for getting Delivery number i used "BAPI_OUTB_DELIVERY_CREATE_SLS" Function Module, how ever i'm getting the below error message through Retrurns. i.e The sales document is not yet complete: Edit data.
it would be a great helpful if you provide with sample coding. Thank you.
Regards
Mallikarjunto get delivery, read document flow table VBFA for next document.... However, the error you're mentioning comes from incompletion processing....probably cannot create a delivery when the SO document is incomplete! Complete the SO document (by processing the incompletion data) and try again.
-
BAPI to get Invoice Details based on PO Number
HI,
Is there any BAPI to get Invoice Details based on PO number. If so could you pls let me know that.
Regards,
RameshHi Ramesh ,
there is no Direct BAPI to get the List of Invoices ,But based on the Vendor list u can get the List .
pass Vendor list , Document Dates.
<b>BAPI_INCOMINGINVOICE_GETLIST</b> for more info check the Documentation of this FM.
Regards
Prabhu
Maybe you are looking for
-
I have been having problems with sending and receiving emails on both my macbook and my Ipad using my att.net email for over a month. I didn't change any of the original settings when that happened but after trying to fix it after scouring the inter
-
My ipod touch 4th Gen doesn't show me the music and videos
My ipod touch 4th Gen doesn't show me the music and videos I have, even though I can see it all in the I tunes and I can see that the ipod memory is full as it was... What to do??? Thx
-
I own Photoshop CS4 and get messages that updates are available, but when I go to install them I get the following message, "There was an error downloading this update, please try again later." I have tried numerous times with no success. What am I
-
Solaris 8 VM on T41 Sparc server?
is it possible to virtualize a solaris 8 OS as a VM on OVM server for sparc, 3.x running ona T4-1 server? I'm sure it's not possible, but have to ask. secondly, legacy zones only work with solaris 10, isit possible to make a solaris 10 VM and then ru
-
Grey screen"no entry sign/question mark
My imac was working fine and then the browsers began freezing. Tried force quits but no apps came up in the window. Tried restarting and heard a loud beep followed by grey screen and folder with question mark. Took out all connections and tried start