Function module to find the current logged in users
Hi all,
My requirement is to send mail with some information to the quality program account who are logged in currently.....for that which function module should i use
to get the details of logged in users,in that particular system.Please let me know as soon as possible ,its ugrent.If possible sent me the coding.
Thanks and Regards,
Ramya
Hi
Try this code:
DATA: TH_OPCODE(1) TYPE X.
DATA: USRS_INFO TYPE TABLE OF UINFO.
CONSTANTS: OPCODE_LIST LIKE TH_OPCODE VALUE 2.
CALL 'ThUsrInfo' ID 'OPCODE' FIELD OPCODE_LIST
ID 'TAB' FIELD USRS_INFO-*SYS*.
LOOP AT USRS_INFO.
ENDLOOP.
Max
Similar Messages
-
Function Module to find the Last Execution date of Back ground Job
Hi,
Is there any function module to find the <b>last execution date of back ground job</b>.
So that I can transfer the data from SAP to Legacy system based on the document creation date should be in between last execution date and current date.
thanks in advance.
Eswar.Don't know of a function module, but you should be able to use the information in table TBTCO to get the last start date and time of the job you are interested in.
-
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 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 the path of application server
Hi can any one say me what is the function module to find the path of the application server
Hi ,
What i understand from ur question is that u need path for application server from the presentation layer i.e user screen.
u can achive the path this way
parameter: file type filename-fileintern.
when user presses F4 here, it will show the directories and path in the AL11.
I didnt find any FM which will get the path of Al11.
revrt back if any issues,
Regards,
Naveen -
Function Module to find the day
Hi,
I have a date S_DATE with me.
I need to find the day of that date.
I hope there is a function module for this.
Please reply me if you know the name of the Function Module to find the date.
Thanks in advance.Hi Rajesh,
Thanks for the reply. Your answer solved my problem. -
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® -
Any Function module to find the vendor description
Any Function module to find the vendor description.
Regards
PaulHi,
Do you mean that you need the name and address details of the Vendor. you can get it in table LFA1.
regards,
Mahesh -
Hi
I am new to sharepoint 2010.
I created a custom task list, where I have many tasks assigned to users (I had tasks assigned to me as well). I created a view as "My tasks "and having a filter as Assigned To is equal to [Me]. When I do that my view fails to show the
tasks assigned to me. This happens same with the Sharepoints 'My Tasks' view as well. I tested by creating some test tasks under my name and when I selected 'My Tasks' view no tasks are getting displayed.
Please help.
Thanks,
Gokulkumar.Hi,
According to your post, my understanding is that you wanted to display the tasks assigned the current logged in user.
In my environment, if I used the System Account, My Task view didn’t display any tasks.
However , if I used other users except the System Account, My Task view could display current user tasks correctly.
I recommend to use other accounts except System Account to log in site. Then everything will work well.
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
Get the current Logged on User on Mobile Client
Hi
I have to display the current logged in User of the Mobile client in my application. I think I have to use the User and UserManager API for that. But the thing is I am not able to instantiate the class to use the methods in it.I think I have to create a session object for using these classes, but in Session API I can see that I will have to create a new session and I want to use the current session.
Please tell me how to use these APIs and get the instance of User or UserManager.
Regards,
PriyaHi Priya,
You can try with:
User user = UserManager.getInstance().getCurrentUser();
The User interface has methods to get relevant information (for ie. getName() or getFirstName()), take a look on the [javadocs|http://help.sap.com/javadocs/nwmobile/SP3/laptops/com/sap/ip/me/api/user/User.html]
Best Regards,
Simon. -
Get username and password of the currently logged-in user in CRM and pass it to the plugin
Hi,
I am integrating CRM Online and SharePoint Online. Right now I am using Office365 trial version for both. Hence, the same username and password works for both.
I want to create sub-site in SharePoint on create of an entity record. Currently, I am passing the admin credentials. But, I want to pass the credentials of the currently logged-in user in CRM to the plugin which is getting executed on create of account entity.
So that I can then create sub-site in SharePoint using the current user credentials instead of admin credentials.
Is there way to achieve this?Hello,
You would not be able to get login/password of currently logged in user. I believe usage of admin credentials is the best way to achieve your goal.
Dynamics CRM MVP
My blog -
Function module to find the child of WBS elements
Hi,
i need to find the KSTAR (Cost Element) for the corresponding WBS element . If the particular WBS element does not contain the COST Element, then to find all the children WBS element .
I need to find all the child WBS elements and its level for the parent WBS element. I am using the table COSB and PRPS table . kindly solve to find a FUNCTIONAL MODULE which uniquely the child WBS element. Kindly help to solve.Hit the PRPS table where STUFE(Level in Project Hierarchy) > Current level and project Id = Current project ID.
Hope it helps.
Reward if it is useful.
Thanks,
Srinivas -
Function module to find the columns in Internal table
Hi Group,
Is there any function module which displays the columns of the internal table. I guess there is one cos when we debug any program and select the "Tables" button while debugging and enter an internal table and then do a "Find" the pop up which comes up shows the internal table columns. As this functionality is in the debugger which I cannot debug hence was wondering if some one has come across any such function module. Thanks in advance.
Regards,
Ankur Bhandari
[email protected]Hi again,
1. In the above FM
Pass Program as SY-REPID (U cann pass other prg name also)
in FieldName Pass the name of the internal table
eg. 'ITAB'
2. This FM will give u the details of the
internal table.
The u can display the COMPONENTS table
using ALV or anyother method u like.
Regards,
Amit M. -
Function module to find the fiscal periods
Hi Guys,
Please let me know if any of you are aware a function module which determines the fiscal periods between two dates.
(Begin and end dates.)
Thanks.Hi Sai,
From your post, I understood that you want to find how many periods are there between two dates, right.
I am not sure whether there is a direct function module for this.
But you can try this.
Use the FM DATE_TO_PERIOD_CONVERT to get the Fiscal Year and Period from a date. You have to input the date and Fiscal variant.
Using this you can determine the Fiscal year and Period for both the dates.
Then you can find the difference of these two Fiscal Periods.
This thread will be helpful for you to find the Difference of two fiscal periods
Urgent : Difference of two fiscal period
Hope this helps,
Regards,
Hari.
Maybe you are looking for
-
Solaris installation - ORA-27302
Hi, I was trying to install the Oracle Collaboration Suite on a Solaris box. During the Information storage, I got the following error in the Oracle Database Configuration Assistant: ORA-27302: failure occured at: skgpwreset1 ORA-27303: additional in
-
I wonder if there's a novice out there like me who has tried to edit effects for an old VHS and found some short cuts? eg. I have an video that's only about 20 years old but because it was taken inside at night it's quite dark and grainy, not to men
-
Ipod battery replacement worries
I am having my old battery replaced at an apple store. What are the chances that I will lose my songs??? Appreciate a reply!!! Thank you. Jeff
-
ITune Purchases did not import over to iTune 7.2
Just updated to iTune 7.2 and all library items imported OK, however, none of my purchased movies imported, says that I am not authorized to play on my iPod? What gives with this? PLEASE HELP
-
Insert keyframe in classic tween doesn't preserve curve data in CS5?
In earlier versions of Flash (CS3 and CS4) this technique I am about to describe works perfectly. Since Flash CS5 came along, it stopped working. I have no idea how to get it to work again. Here's what I want to accomplish: Draw a circle shape on the