Function module to get user AND usergroup
Hi Folks,
I need a function module which returns the user and the usergroup.
BAPI_USER_GETLIST won't work as it doesn't return the usergroup.
There are some other function modules but none of them can be called remotely.
I can't write a function module myself as we are working with validated systems.
The whole approval process would take months...
Does anybody know a function module which returns the user AND the usergroup AND can be called remotely?
Hope somebody can help me.
Bastian
are you talking about usr02-CLASS values if yes
BAPI_USER_GET_DETAIL returns this in
export parameter LOGONDATA-class
Regards
Raja
Similar Messages
-
Function Module to get BEGIN and END date of a month?
Hello everybody,
Is there any function module to get BEGIN and END date of a month
GIVEN EITHER THE CURRENT SYSTEM DATE or MONTH?
Regards,
Sanghamitra.A.hi
CALL FUNCTION 'PA03_PERIODDATES_GET'
EXPORTING
f_abkrs = p_abkrs1
IMPORTING
f_permo = wf_permo
f_current_begda = wf_begda
f_current_endda = wf_endda
CHANGING
f_current_period = wf_pabrp
f_current_year = wf_pabrj
EXCEPTIONS
pcr_does_not_exist = 1
abkrs_does_not_exist = 2
period_does_not_exist = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
this is the function module to get the first date and last date of a particular month
if u have any doubts ask
regads
karthik
reward points if useful -
Function module to get attribute and value from organisation model
Hi
I need a function module to get the attribute and its corresponding values set on the sales org stucture.The export parameter will be the Sales Org Id.
Please reply ASAP.
Edited by: prem kumar on Apr 16, 2009 9:37 AMHi Prem,
If it helps, we use FM RHGA_READ_ATTRIBUTES for that in version 4.
Kind regards,
Garcia -
Function module for getting month and year of the previous month (say -6)
Hi,
Is there a function module that will get you the month and year of say, a month before, and as far as 11 months ago.
For example, say today is 6/2007. I want 7 months ago.
How do i get this value?
What function module or method is available?
Points will be rewarded and responses will be appreciated.
Thank You,
JohnHi
lv_period gives the month and year which is two months earlier now as we have specified lv_months as -2.
DATA: LV_PERIOD LIKE S001-SPMON,
LV_MONTHS(2) TYPE C VALUE '2-',
LV_DATUM LIKE SY-DATUM,
LV_NEWDT LIKE SY-DATUM,
P_SPMON LIKE S001-SPMON VALUE '200601'.
CONCATENATE P_SPMON '01' INTO LV_DATUM.
LV_PERIOD = P_SPMON+0(6).
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
MONTHS = LV_MONTHS
OLDDATE = LV_DATUM
IMPORTING
NEWDATE = LV_NEWDT
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC = 0.
LV_PERIOD = LV_NEWDT+0(6).
ENDIF.
WRITE :/ LV_PERIOD.
OR
Use the following FM for getting the year and the month based on date
CACS_DATE_GET_YEAR_MONTH
or
Call Function 'CCM_GO_BACK_MONTHS '.
Funny module: 03/31/2002 - 1 month = 02/31/2002
OR
RE_ADD_MONTH_TO_DATE ( Add / substract month to/from date )
Need ur reward points.
Best regards,
Ravi -
Any function module to get Stock and value of material on a given date?
Hi Friends
Is there any function module available to get Stock/and value of material on a given date?
Thanks
HarishSorry I didn't elaborate the requirement.
I am asked to develop a custom report for inventory management. For range of materials it is required to display stock and value on particular date and GRs GIs for the range.
I need function module to use in Zreport.
Thanks
Harish -
Function Module to get Date and Time out of Timestamp
Hi,
Source system timestamp field CREATED_TS of Type DEC-15
BW PSA data in format 20.140.707.105.948
In DSO, I have created two target InfoObjects; one for Date and one for Time.
In transformation from PSA to DSO, in field level routine, I want to split timestamp into Date and Time.
There is a function module CACS_TIMESTAMP_GET_DATE in source system but it is not available in BW. Another function module ADDR_CONVERT_TIMESTAMP_TO_DATE which is available in BW but returns only Date.
Does anyone know a function module in BW which takes Timestamp (PSA data in format 20.140.707.105.948) and returns Date and Time.
Much better would be a FM which take timestamp and also Timezone and returns Date and Time.
Thanks
AhmadTimestamp to date time conversion (with time zone) is built into ABAP. Why use a function module?
Read the ABAP help on CONVERT. -
Function Module for Get Price and Bonus in Sales Order
Hi.. ABAP Guru's..
I wanna make a function for get price and get Bonus for all material items in sales order.
Help me for solving it.. Please.
Thanks a lot before and after.
Rgds,
Asep SaepudinHi,
Welcome to SDN.
Refer
https://forums.sdn.sap.com/click.jspa?searchID=7085162&messageID=782207
https://forums.sdn.sap.com/click.jspa?searchID=7085162&messageID=950526
Regards -
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. -
Table or Function module to get Internal order planning and Cost element pl
Dear All,
Table or Function module to get Internal order planning and Cost element planning.
Internal order planning from T-code KO13.
Thanks in advance.
Regards,
Ravi
Edited by: Ravi Chandra on Sep 13, 2011 8:08 AMBPEJ, BPEG, BPEP
-
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. -
Function Module to get usage by supplying measuring point and equipment no
Hi,
I want to know what is the function module to get the usage on giving the measuring point,equipment number and month.Thanks in advance.
Regards,
SGRTry this Function Module : ALM_ME_EQUIPMENT_GETDETAIL
-
Function module to get the dates from the year and the period
Is there a function Module to get the dates from the year and the period
Check with :
To get last day of period use .
LAST_DAY_IN_PERIOD_GET.
To get last of month Use :
RE_LAST_DAY_OF_MONTH
HRVE_LAST_DAY_OF_MONTH
LAST_DAY_OF_MONTHS
ISB_PREVIOUS_PERIOD_DATE_GET
Thanks
Seshu -
Function Module to get PO details based on Plant and PO date
Hi
1. Is there any Function Module to get PO details based on Plant and PO date?
2. Is there any Function Module to get Material document details based on PO number?
Thanks
Narendrahi,
check these standard reports.
ME2L - By vendor
ME2M - By material
MSRV3 - By service
ME2K - By account assignment
ME2C - By material group
ME2B - By tracking number
ME2N - By PO number
ME2W - By supplying plant
also chck this func module.
REPL_LIST_PURCHASE_ORDER_READ
reward if hlpful. -
BAPI function module to get condition type and its values based on delivery number?
Hi All,
I would like to have the BAPI function module to get condition type value based on delivery number before invoice is created.please provide detail program for as a reference .please reply as soon as possible its urgent.
Regards,
saaikumar.If you haven't already, you may first need to search via the SAP transaction "BAPI" in the area this is applicable to. Failing that I do hope you get an answer.
-
Call function module in backgrouns task and in update task
Hi Gurus,Pls crear me on the " <b>Call function module in backgrouns task and in update task</b>".
how it works and waht is the link with LUW releated to these .
also heard that commit work statement aslo linked with this.
Pls clarfiy me with expalnation of code.Hi sridhar,
the explanation already given is correct and good. Small add-on:
All functions called during one LUW with addition IN UPDATE TASK are stored together with their actual parameters in a temporary memory area. The moment a COMMIT WORK is issued, the functions are released to be executed by a so-called update task which is running in the background. This explains why functions called in update task never return anything, no SY-SUBRC and no export or table parameters If a function called in update task raises an exception or runs into an error the calling user will get an express message informing about this. Also, all database updates done by this update process are rolled back to keep consistency.
This proceeding helps to keep database tables consistent and allows the user to keep on doing his work before all database updates are complete. You may have seen messages like "material will be changed" after saving. If you open the same material immediately, you'll get a message "object locked by...<yourself>". This means the update task is still running.
Regards,
Clemens
Maybe you are looking for
-
Hi, I am trying to create a sales order in oracle APPS by invoking a Apps adpater through Process_order API and facing the following problem. file:/D:/product/10.1.3.1/OracleAS/bpel/domains/default/tmp/.bpel_X12_4010_850_1.0_3d82ae6bde584c24576ce07e5
-
WLC user rate limit on guest ssid anchor controller
Hi, I have been looking through the forums & some cisco documents but not found a good example similar to what I am seeking to do so now I am turning to the expertise of my peers. We have been deploying 3502 APs remotely to locations with full T1s th
-
Use of session variables disappeared
Hi - I have a really old CF site that has worked perfectly all these years. Sometime over the past 7 days, my all of my session variables have ceased to work. These session variables appear on the pages where I set them up, but the minute I transfer
-
Thumbnail pictures cannot be opened, black exclamation mark appears
Numerous photos cannot be opened any more, when I click on the little previews I see only a black surface with an exclamation mark. How can I fix this problem ?
-
Indesign CS4 Running Really Slow
Hi, I've done a search on this topic and tried all the suggestions without success. I'm using Indesign CS4 to write a lengthy technical document. The file is mainly text (~250 pages), with about 25 Illustrator figures (placed) total size ~16MB. About