Function Module for finding all the users in an org unit?
Hi,
is there a function module or a table by which we can find all the users within a purchasing group of purchasing organisatiopn unit.
Looking for a quick response.
Regards,
Neha
Please use the function module BBP_OM_STRUC_GET_USER_FROM_ORG. You have to pass the Org Ids in the parameter START_OBJECTS. Then USER_TAB will give you all the users.
Note:
OTYPE = 'O'.
OBJID = <Org Id say 50002323>.
Regards
Kathirvel
Edited by: Kathirvel Balakrishnan on Sep 24, 2008 2:25 PM
Similar Messages
-
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 read all the Files in a Given UNIX directory.
Can anyone provide me with a FUNCTION MODULE which reads all the files available in a UNIX directory?
I have the UNIX directory given. I need to find all the files available in that particular Directory so that I can choose and process accordingly. Probably I can store all files in an Internal Table.
Thanks in advance.
SunilHi Nick,
Thankyou very much for the response.
The Function Module /SAPDMC/LSM_F4_SERVER_FILE is interactive wherein we can select only one file.
But my requirement is I need to collect (probably in an internal table) all the files exixting in the given UNIX directory.
Can you please find in that direction. I would be very grateful.
Thanks.
Sunil -
Function module to find out the changed values from tables
What is the standard function module to find out the changed values (the old & new values) from tables in SAP ?
Hi Harish,
Please elaborate your requirement...
Please have a look on CDHDR AND CDPOS tables... it contains changed data... but all chages are not being tracked using it..
Try Below FMs as well..
For Header Level...
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
date_of_change = cdhdr-udate
objectclass = cdhdr-objectclas
objectid = cdhdr-objectid
time_of_change = cdhdr-utime
username = cdhdr-username
TABLES
i_cdhdr = icdhdr
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
For Item Level
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = icdhdr-changenr
IMPORTING
header = cdhdr
TABLES
editpos = icdshw
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
Function module to retrieve all the personnel numbers in the eval path
Hi all,
I want to retrieve all the personnel numbers that fall in the evaluation path.
Like if my evaluation path is "B002" ( eval path for relationship is line supervisor of ), I want a function module that retrieves all the pernrs in this wval path up to the bottom level.
if A reports to B and B reports to C and C reports to D . I want a function module to retrieve(either positions or pernrs) C, B and A when I run it for position D.
any help??
regards
Sam
regards
SamHi
U can use FM RH_STRUC_GET to get the pernr in the evaluation path
data : IT_RESULT_TAB TYPE STANDARD TABLE OF SWHACTOR .
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
ACT_OTYPE = C_OTYPE
ACT_OBJID = W_POSIT
ACT_WEGID = C_WEGID (relation B002 like )
ACT_BEGDA = W_BEGDA
ACT_ENDDA = W_BEGDA
ACT_TDEPTH = 1 ( depath 1, 2, etc )
TABLES
RESULT_TAB = IT_RESULT_TAB .
Nb : Give points if it worths -
Function module to find wheather a user is heading any Org unit
Function module to find wheather a user is heading any Org unit
Hi Experts,
I need to know if a user(SY-UNAME) is heading any Org unit(Check box marked for Head of own organisational unit in TCODE PPOMA_CRM for position in Basic Data). Is there any FM for this? I am trying to use FM RH_STRUC_GET but not able to find.
Any help would be highly appreciated.Method get_assignments_of_user of class cl_crm_ppm_um_toolkit solved this problem.
-
Function module to read all the views of material data
Dear all ,
Is there any function module to read all the views of material data ?
Like we have MATERIAL_MAINTAIN_DARK for updating all the views of material data , I need a function module to read all the views of material master.
Thanks & Regards
ShivanandHello,
Check these BAPI'S
<b>BAPI_MATERIAL_DISPLAY Display Material
BAPI_MATERIAL_GET_DETAIL Determine Details for a Material</b>
Regards,
Vasanth -
Which Function Module can find all direct and indirect subordinate.
Hi,
I have a employee number(Chief of a organizational unit A). Do you know which function module can get all the direct and indirect subordinate of this chief? Indirect subordinate means that this chief can also view the Organizational unit(for example, Org. unit B) that under Org. Unit A. Further more, this chief can also view all the employees in other org unit that under Org. Unit B. If there is no such function module, do anyone of you have the example coding to get it? Your help is greatly appreciated. Thanks.use RH_STRUC_GET
~Suresh -
Any function module to read all the values in Tcode-PPQD?
Hi all
Is there any function module to read all the values in Tcode-PPQD (Display Qualifiaction Catalog).
and any idea what tables are involved to get these values like parent and child relationship?
Thanks in advance.
Murali.Murali,
you can use the following..
data: w_sobid type sobid, "Qualification ID
w_objid type objid. "Qualification Catalog
select objid into w_objid
up to 1 rows
from HRP1001
where otype = 'QK'
and plvar = '01'
and istat = 1
and risgn = 'B'
and relat = '030'
and endda ge sy-datum
and begda le sy-datum
and sclas = 'Q'
and sobid = w_sobid.
endselect.
if sy-subrc eq 0.
write: / w_objid,w_sobid.
endif.
Regards,
Suresh Datti -
Function module for getting all changes to BPs Business Partners for today
Can any body knows function module to find out all changed documents to the BPs depending upon the date.
Requirement is i have to find out the all BPs changed today in transaction FPP3.how can i find all those changed documents . Is there any FM to find out.
VineelHi Vineel,
For debugging: GoTo /n Click on the right most icon which is Customizing of local layout then click on create shortcut a screen will displayin that goto Application section select system command from the dropdown in Type, then write /h in command press OK a short cut will be automatically created on your desktop now drag this debugger on that pop up in TXn FPP3 and play with the debugger......
Hope this will help.. -
Table for finding out the User details
Hi All,
We need to create a KPI for number of hours a user has looged into a system. Is there any specific table where all the user related information is captured.If the information is not present in a table where can we find the above information?Please someone help me out.....
Also is it the same in all the systems or does this information differ from system to system?If it differs then how do we find the number of hours a user has logged in for a BW system, for a CRM system and for ECC system?
Regards,
ShravaniHello,
USR01User master record (run-time data)
USR02 Logon data
USR03 User address data
USR04 User master authorizations
USR05 User Master Parameter ID
USR06 Additional data per user
USR07 Object/values of last failed authorization check
USR08 Table for user menu entries
USR09 Entries for user menus (work areas)
USR10 User master authorization profiles
USR11 User Master Texts for Profiles (USR10)
USR12 User master authorization values
USR13 Short Texts for Authorizations
USR14 Surchargeable language versions per user
USR15 External User Name
USR20 Date of last user master reorganization
USR30 Additional Information for User Menu
USR40 Table for illegal passwords
USR41 User master: Additional data
USRCOBJ Object Filters for Exploding Product Structures
USRM0 Material Master User Settings: User Screen Reference
USRM1 Material Master User Settings: Organizational Levels
USRM2 Material Master User Settings: Logical Screens
USRMM User settings: material master
Might be these can help you.
Thanks
Geeta -
How to find all the user exits includes ,
Hi All ,
I need to find all the includes which are created for purpose of implementing user exits , I know they all start with ZX* but where to get the list .
THank you all
Vinay KollaHi Vinay....
Just excute following program in your ABAP Edter....
( Input parameters: T'CODE and User exit type.)
>TABLES: MODSAP, MODACT, TSTC.
>
>PARAMETERS: INPUT1 LIKE TSTC-TCODE DEFAULT ' ',
> INPUT2 LIKE MODSAP-TYP DEFAULT ' '.
>
>DATA: SEARCH1(6),
> SEARCH2(3),
> SEARCH3 LIKE MODSAP-MEMBER.
>DATA : FIRST_ROW VALUE 'Y'.
>
>CONCATENATE: '%' INPUT1 '%' INTO SEARCH1,
> '%' INPUT2 INTO SEARCH2.
>
>SELECT * FROM TSTC WHERE TCODE LIKE SEARCH1.
> FIRST_ROW = 'Y'.
> CHECK TSTC-PGMNA NE SPACE.
> CONCATENATE '%' TSTC-PGMNA '%' INTO SEARCH3.
> SELECT * FROM MODSAP WHERE TYP LIKE SEARCH2
> AND MEMBER LIKE SEARCH3.
> SELECT SINGLE * FROM MODACT WHERE MEMBER = MODSAP-NAME.
> IF FIRST_ROW EQ 'Y'.
> WRITE: /0 TSTC-TCODE, 6 TSTC-PGMNA, 16 MODSAP-NAME, 32 MODSAP-TYP,
> 45 MODSAP-MEMBER, 70 MODACT-NAME.
> FIRST_ROW = 'N'.
> ELSE.
>WRITE: /16 MODSAP-NAME, 32 MODSAP-TYP, 45 MODSAP-MEMBER, 70 MODACT-NAME.
> ENDIF.
> CLEAR : MODSAP, MODACT.
> ENDSELECT.
> IF SY-SUBRC NE 0.
> WRITE : /0 TSTC-TCODE, 6 TSTC-PGMNA, 30 'No exits found'.
> ENDIF.
> CLEAR TSTC.
>ENDSELECT.
>
>END-OF-SELECTION.
> CLEAR: SEARCH1, SEARCH2, SEARCH3.
Thanks,
Naveen Inuganti. -
Function Module for calculation of the net price of a configurable material
Hi,
I would like to know if a function module allows to calculate the purchasing /net price of a configurable material at a vendor and at a requested delivery date before the creation of a purchasing order.
For configurable materials, we have no PIR and no moving / standard price thus the valuation price in the PR is blank.
I would like to fill in the field "valuation price" in the PR with the net price we can find in the PO.
However the PR is created before the PO.
Thanks a lot in advance for yours reply.
regards,hi Pravenn,
I don't know about these functions, but u can try anything like this:
data:
strdate like sy-datum value '20070901',
enddate like sy-datum value '20070909',
date(10),
moddate(1).
date = enddate - strdate + 1.
moddate = date mod 7.
date = date div 7.
if moddate <> 0.
date = date + 1.
endif.
write: / date.
Regards
Allan Cristian
Message was edited by:
Allan Cristian -
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
Maybe you are looking for
-
When i plug in my ipod to itunes it shows an advertsment that wont go away
i plug in my ipod touch into the computer and when i click on MY IPOD it show an advertisment for an iphone application. when i click NOT NOW the advertisement wont go away. it stays on itunes not allowing me to sync or do anything on itunes with it
-
Keeps asking for authentication
Trying to move photos from my desktop into folders, and it keeps giving me the message "The item (photo name) can't be moved because (folder name) can't be modified." Then gives me two choies: "Authenticate" and "Cancel." I enter the password and it
-
Hello all, I am working on a site for a client in which I need to get a menu like this working: When the user scrolls over the work tab, I want "Print, web, ect..." to appear horiztonally underneath and be clickable. Every button has a roll over effe
-
Hi All, Im looking for some info on CRM prcing other than SAP Library.Please bounce back with some useful material. Thanks, Umar
-
Hi, I've got a customer who is interested in purchasing GSS's to provide local DNS services. They are a Windows/AD shop. Am I correct in thinking that the GSS can not be a replacement for there current local DNS, as the GSS (& Cisco Network Registrar