Function module RH_GET_MANAGER_ASSIGNMENT in MSS, HR Structural auth
Hi,
- Is function module RH_GET_MANAGER_ASSIGNMENT only valid when a personnel user is flagged as 'chief position' in HR Org model ? As this function module uses MANASS evaluation path and A012 (Manages...) as relationship, can it be used without mentioning 'chief position' in HR Org model ?
If no, what would be the best solution to find out all employees in MSS (Manager Self Services) case using HR Structural authorizations ? Custom Evaluation Path and Relationship ?
- What is the major difference in Evaluation Paths : MANASS, MSSDIREC and MSSREPS ?
Thanks,
Karan..
You can maintain evaluation paths in transaction OOAW.
There you also see the differences of the paths you mentioned.
To find existing paths to suit your needs you can use the search help in transation PPSS.
Kind regards, Rob Dielemans
Similar Messages
-
Using Function Module RS_CONV_EX_2_IN without a predefined structure
HELLO,
In a SDN Blog I have seen the FM 'RS_CONV_EX_2_IN' can be used to convert formatted char value to float.
I am trying this FM to convert some data but the final data format does not belong to an existing structure.
I have tried to define within the code but I keep getting a 15 return code (invalid name)
What is wrong? Does this FM need a predefined structure to work?
Here is a code sample:
TYPES: BEGIN OF OUT_PUT_TYPE_STRUC,
value TYPE F,
END OF OUT_PUT_TYPE_STRUC.
lv_tabfield-tabname = 'OUT_PUT_TYPE_STRUC'.
lv_tabfield-fieldname = 'VALUE'.
PARAMETERS lv_value TYPE crm_imp_cell_value OBLIGATORY. u201CCHAR30
CALL FUNCTION 'RS_CONV_EX_2_IN'
EXPORTING
input_external = lv_value
table_field = lv_tabfield
IMPORTING
output_internal = lv_cell_value
EXCEPTIONS
input_not_numerical = 1
too_many_decimals = 2
more_than_one_sign = 3
ill_thousand_separator_dist = 4
too_many_digits = 5
sign_for_unsigned = 6
too_large = 7
too_small = 8
invalid_date_format = 9
invalid_date = 10
invalid_time_format = 11
invalid_time = 12
invalid_hex_digit = 13
unexpected_error = 14
invalid_fieldname = 15
field_and_descr_incompatible = 16
input_too_long = 17
no_decimals = 18
invalid_float = 19
conversion_exit_error = 20
OTHERS = 21.
Thanks
PaulHI Jovito,
Thanks for your help.
But the out-put variable has the right type.
Here is the complete code that you can try.
I have tried two way for the input param.
Regards,
Paul
DATA lv_cell_value TYPE f.
DATA lv_tabfield TYPE tabfield.
DATA lv_value TYPE char30 value '44,5'.
TYPES: BEGIN OF out_put_type_struc,
value TYPE f,
END OF out_put_type_struc.
lv_tabfield-tabname = 'OUT_PUT_TYPE_STRUC'.
lv_tabfield-fieldname = 'VALUE'.
*PARAMETERS lv_value TYPE Char40 OBLIGATORY.
CALL FUNCTION 'RS_CONV_EX_2_IN'
EXPORTING
input_external = lv_value
table_field = lv_tabfield
IMPORTING
output_internal = lv_cell_value
EXCEPTIONS
input_not_numerical = 1
too_many_decimals = 2
more_than_one_sign = 3
ill_thousand_separator_dist = 4
too_many_digits = 5
sign_for_unsigned = 6
too_large = 7
too_small = 8
invalid_date_format = 9
invalid_date = 10
invalid_time_format = 11
invalid_time = 12
invalid_hex_digit = 13
unexpected_error = 14
invalid_fieldname = 15
field_and_descr_incompatible = 16
input_too_long = 17
no_decimals = 18
invalid_float = 19
conversion_exit_error = 20
OTHERS = 21.
IF sy-subrc = 0 .
WRITE lv_cell_value.
ELSE.
WRITE: / 'error ' , sy-subrc.
ENDIF. -
Function Module to get all feild names in a structure
Hello Friends,
Is there a function module,where i give the structure name and get all the feild names within that structure.
regards
kaushikHi,
You can use the for run time type descriptor classes to do this :
Here is a simple example :
REPORT z_assign_comp.
TYPE-POOLS : slis.
include <icon>.
"& Dynamic Programming ! Using Structure Descriptior Class. *
DATA: BEGIN OF line OCCURS 0,
col1 TYPE i,
col2(10) TYPE c,
col3 TYPE i,
END OF line.
FIELD-SYMBOLS : <fs> TYPE ANY.
FIELD-SYMBOLS : <itab_line> TYPE ANY.
DATA : BEGIN OF t_comp OCCURS 0,
comp(5) TYPE c,
END OF t_comp.
DATA : l_struc TYPE REF TO cl_abap_structdescr.
DATA : l_typedesc TYPE REF TO cl_abap_typedescr.
DATA : lt_comp TYPE abap_compdescr_tab,
w_comp LIKE LINE OF lt_comp.
line-col1 = 11.line-col2 = 'SAP'.line-col3 = 33.
APPEND line.
line-col1 = 44.line-col2 = 'P.I.'.line-col3 = 66.
APPEND line.
ASSIGN line TO <itab_line>.
"Call the static method of the structure descriptor describe_by_data
CALL METHOD cl_abap_structdescr=>describe_by_data
EXPORTING
p_data = <itab_line>
RECEIVING
p_descr_ref = l_typedesc.
"The method returns a reference of a type descriptor class therefore we
"need to Cast the type descriptor to a more specific class i.e
"Structure Descriptor.
l_struc ?= l_typedesc.
"Use the Attribute COMPONENTS of the structure Descriptor class to get
"the field names of the structure
lt_comp = l_struc->components.
LOOP AT line.
WRITE :/ 'Row : ', sy-tabix.
LOOP AT lt_comp INTO w_comp.
" Using the ASSIGN component ,assigns a data object to a field symbol.
ASSIGN COMPONENT w_comp-name OF STRUCTURE line TO <fs>.
WRITE :/ w_comp-name, ' ', <fs>.
ENDLOOP.
ENDLOOP.
Hope this helps.
regards,
Advait -
Dynamic Export table of a function Module
Hi Friends,
I have a requirement where fields of Export table of my function Module is dynamic. It is like the Fields to be expoerted by the Function Module would be stored in a seperate Z table
The Z table would contain the records as follows .
Table Name FieldName
=========
MARA MATNR
MARC WERKS
and So on..
. How can I define my Export table in Function module dynamically so that the structure of my Export Function Module would be same as that of the Fieldnames in Z table..
ThanksJust declare the associate type as "ANY TABLE" in the exporting parameter.
FUNCTION ZTEST.
*"*"Local Interface:
*" EXPORTING
*" REFERENCE(IT_TAB) TYPE ANY TABLE -
How to create a generic datasource from function module?
Dear experts,
I have created a generic datasource from function module. For this extrator, I created a function module and a structure.
I have now some difficulties to continue:
In this function module, i get data from different transparent tables. Then i put these data into an internal table.
I just don't know what is the relatioin between the structure i defined and this internal table.
I should make "iTab structure AA" in the source code?
ThanksHi..
check this
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
Generic Extraction via Function Module
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
1. Create s structure with the fields that you need from the 4 tables . Activate.
2. Goto SE 80 Select The Function Group , Copy , Select the Function module
" RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
Y or Z .
3. SE37 ->Your Function module name -> Change , In table tab give your structure
name by deleting the associated type given in " XXXX " .
4. Now select source code and Do the coding . Give Data source name in Coding .
In your case you have to take data from more that 1 table .
5. Activate the Function Group .
6. In RSO2 Create the Data source , Give the Function Module Name , And Save.
7. RSA3 -> Give data source name and Check for the Records .
Creation of custom datasource. (Using function module)
.Create a function group .
. Structure ZTXXXX
Create function module (i.e. ZTESTXXX) .
. Create the data source using transaction (RSO2).
. If structure exists for the table parameter of your function module then ok else create a structure for the table parameter .
Test the datasource in R/3 using transaction RSA3.
Transfer the data source to BW System and replicate it in the BW-System.
Message was edited by:
shiv -
Hi gurus,
I have created a genric extractor by using function module and i took extract structure as a DB View, FM is working fine, when i am checking the extractor in RSA3 for records, it is showing 0 records. When i am executing FM, it is showing the data.
Thanks&Regards
PhaniHey. The best way would be to set a break point in the FM and just see what's happening. Couple thoughts...
1) You may not be passing the data to E_T_DATA, but that is just a guess. If that is the case, you just need to append the records to E_T_DATA as that is what the FM needs to populate for the records to be processed further/sent to BW.
2) Is the selection criteria the same when you are running RSA3 and testing the FM?
Thanks -
Updation of db tables through Function module
Using the below funtion module i need to update an internal table with 3 fields (Fkkop-opbel,fkkop-xblnr,fkkop-opord) into their respective tables
CALL FUNCTION 'FKK_DOCUMENT_CHANGE'
EXPORTING
I_OPBEL = v_OPBEL
I_UPDATE_TASK = 'X'
TABLES
T_CHANGEDOPS = it_fkkop.
please can anyone tell me how.hi,
chk this.
CALL FUNCTION 'Z_SAVE_SHIP_MET_TABLE'
TABLES
zmpets_ship_met_save = int_zmpets_ship_met.
FUNCTION Z_SAVE_SHIP_MET_TABLE.
""Update Function Module:
""Local Interface:
*" TABLES
*" ZMPETS_SHIP_MET_SAVE STRUCTURE ZMPETS_SHIP_MET
modify zmpets_ship_met from table ZMPETS_SHIP_MET_SAVE.
ENDFUNCTION.
rgds
anver pls mark hlpful answers -
Problem facing in Function module.
Hi friends,
Happy New year to all.
I am facing the problem while crating Function module.
As my requirement:
I need to call this Function module in SAP-BW application area. I am creating this in BW side(SE37).
The intenal table which i am passing to the function module will vary. The structure is not constant.
Data is flowing from one table(source table) to another table(Destination table) . In BW if we want to refer the data in source table in START ROUTINE while loading, we use SOURCE_PACKAGE internal table.
1) I am passing Source_package internal table as ITAB_SOURCE_PACKAGE. (this source_package strucute also not canstant, it will vary)
2) passing second internal table as ITAB1, this structure also vary. I will declare this structure before calling the function module.
In Function module Table tab i given as
PARAMETER TYPE Associated Type
ITAB1 LIKE ANY
ITAB_SOURCE_PACK LIKE ANY
In Import tab:
SOURCEINFOOBJECT pass value
In source code i written as
DATA: WA_SOURCE_PACK like line of ITAB_SOURCE_PACK.
DATA: WA_ITAB1 like line of ITAB1.
LOOP AT ITAB_SOURCE_PACK INTO WA_SOURCE_PACK.
READ TABLE ITAB1 WITH KEY SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT
INTO WA_ITAB1.
IF SY-SUBRC NE 0.
WA_ITAB1-SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT.
INSERT WA_ITAB1 INTO TABLE ITAB1.
ENDIF.
ENDLOOP.
(Note: this is piece of code)
While checking i am getting as error
Field "ANY" is unknown. It is neither in one of the specified tablesnor defined by a "DATA" statement. "DATA" statement. "DATA" statement.
For this what i need to do.
As i am not very good in ABAP, pls help me.
Thanks & Regard
MRKHi,
u have to do like this..decalre itab1 and ITAB_SOURCE_PACK in the tables parameter...
so change like this
In Function module Table tab do like this
PARAMETER TYPE Associated Type
ITAB1
ITAB_SOURCE_PACK
In Import tab:
SOURCEINFOOBJECT pass value
In source code i written as
DATA: WA_SOURCE_PACK type ITAB_SOURCE_PACK.
DATA: WA_ITAB1 type ITAB1.
LOOP AT ITAB_SOURCE_PACK INTO WA_SOURCE_PACK.
READ TABLE ITAB1 WITH KEY SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT
INTO WA_ITAB1.
IF SY-SUBRC NE 0.
WA_ITAB1-SOURCEINFOOBJECT = WA_SOURCE_PACK-SOURCEINFOOBJECT.
INSERT WA_ITAB1 INTO TABLE ITAB1.
ENDIF.
ENDLOOP.
Regards,
Nagaraj -
Hello Friends,
i have created one Zfunction module in tht i have written code for interactive alv with check boxes.
now when the user selects the checkboxes amd press save button in alv grid display the output gets saved in one internal table in the source code itself but how to show the same output in the output of function module.
i declared the same structure type table in tables parameter of function module but m not getting any output .
pls suggest ....
Regards,
Sunny
Please use a more informative subject
Edited by: Rob Burbank on Feb 24, 2009 11:19 AMHi Sunny,
Please ignore my previous post.
I have partially understood your question. I assume that you have the required data in an internal table.
1. If you want it to be displayed in the output (in an internal table), then you can use the statement
itab2[] = itab1[].
where itab1[] is the internal table where you have all the data to be displayed (the one your specified),
itab2[] is the internal table declared in the "TABLES" tab of the function module.
Note: Here itab1 and itab2 should be of same structure.
2. If you want it to be displayed in an ALV format, then you can use the standard function module 'REUSE_ALV_GRID_DISPLAY' -
How to convert a function module to BW extractor
Hi
I am Technical consultant. I have knowledge on BW.
We have one requirement in BW. It is to develop a report in BW.
The data has pickup in R/3 from 7 tables.
So i created one structure in R/3 side, and I created function module in SE37 using this structure display data as per the requirement.
Here my doubt is, How can i make it as a BW extractor.
Thnanks.Hi,
As mentioned above, you have to follow the steps to create a Datasource to be able extract data to BW, what is your doubt on this?
Hi Laxmi sri
Define your structure name on tables tab of your function madule then goto SBIW transaction in R/3 and goto Generic datasources and provide tech name and description for the extract structure.
Now provide App component the location where you want to save it
Now rpess extraction by FM and provide your function module name and extract structure name
Save and select fields to make selections on BW side
Save
Hope it helps.
Regards,
Chama.
Raj. -
Issue with the RFC function module - parameters
Hi,
When i am creating RFC enabled function module, it was throwing an error like <b>'Reference parameters are not allowed with RFC'.</b>. I am implementing the test scenario to create BAPI, for that i have created table with 2 fields. My main intension is through RFC enabled function module planning to update the ztable.
When i was creating RFC enabled function module, it was giving error. I remembered that i need to use new structure when i create RFC enabled function module, so even i created structure also with the same fields of table fields.
can you please let me know the solution for this.
Thanks
jayaHi Ferry,
Your solution is perfect. can you please explain the below information...
Call by value
You pass the parameter with values. This means that the parameter
contents are copied both when the parameter is passed and when it is
transferred back to the calling parameter. For structures that contain
tables, performance may be reduced considerably. Therefore, you should
not do this.
I created the parameters with reference to table-fields, what do you mean by 'Call by value'check box usage there.
Is it mean ...if i change the contents of the field in FM will it pass back to the structure which i refered to this parameter, in this case its table-field.
Thanks
jaya -
Can anybody explain me creating Generic Datasource using Function module?
Hi,
can anybody explain me creating Generic Datasource using Function module?
Thax in advance,
Ravi.Generic Extraction via Function Module
/people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
1. Create s structure with the fields that you need from the 4 tables . Activate.
2. Goto SE 80 Select The Function Group , Copy , Select the Function module
" RSAX_BIW_GET_DATA_SIMPLE " and Give a New name starting With
Y or Z .
3. SE37 ->Your Function module name -> Change , In table tab give your structure
name by deleting the associated type given in " E_T_DATA " .
4. Now select source code and Do the coding . Give Data source name in Coding .
In your case you have to take data from more that 1 table .
5. Activate the Function Group .
6. In RSO2 Create the Data source , Give the Function Module Name , And Save.
7. RSA3 -> Give data source name and Check for the Records .
Creation of custom datasource. (Using function module)
<b>is an example</b>
1.Create a function group .
2. Structure ZTEST123
ZMATNR MATNR CHAR 18 0 Material Number
ZMTART MTART CHAR 4 0 Material type
ZMBRSH MBRSH CHAR 1 0 Industry sector
ZMATKL MATKL CHAR 9 0 Material group
ZBISMT BISMT CHAR 18 0 Old material number
ZMAKTX MAKTX CHAR 40 0 Material description
3. Create function module (i.e. ZTEST .) .
FM - YMARA_DATA_TRNS
FUNCTION YMARA_DATA_TRNS.
""Local Interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE OPTIONAL
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE OPTIONAL
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG OPTIONAL
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY OPTIONAL
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE ZTEST123 OPTIONAL
*" EXCEPTIONS
*" NO_MORE_DATA
*" ERROR_PASSED_TO_MESS_HANDLER
data : ZTEST123 type ZTEST123 occurs 0 with header line.
Maximum number of lines for DB table
STATICS: S_S_IF TYPE SRSC_S_IF_SIMPLE,
S_COUNTER_DATAPAKID LIKE SY-TABIX.
DATA: begin of t_mara occurs 0,
ZMATNR type MATNR,
ZMTART type MTART,
ZMBRSH type MBRSH,
ZMATKL type MATKL,
ZBISMT type BISMT,
end of t_mara.
DATA: begin of t_makt occurs 0,
ZMATNR type MATNR,
ZMAKTX type MAKTX,
end of t_makt.
Initialization mode (first call by SAPI) or data transfer mode
(following calls) ?
IF I_INITFLAG = SBIWA_C_FLAG_ON.
Check DataSource validity
CASE I_DSOURCE.
WHEN 'ZZMARA_DATA'.
WHEN OTHERS.
IF 1 = 2. MESSAGE E009(R3). ENDIF.
this is a typical log call. Please write every error message like this
LOG_WRITE 'E' "message type
'R3' "message class
'009' "message number
I_DSOURCE "message variable 1
' '. "message variable 2
RAISE ERROR_PASSED_TO_MESS_HANDLER.
ENDCASE.
Fill parameter buffer for data extraction calls
S_S_IF-REQUNR = I_REQUNR.
S_S_IF-DSOURCE = I_DSOURCE.
S_S_IF-MAXSIZE = I_MAXSIZE.
ELSE. "Initialization mode or data extraction ?
Data transfer: First Call OPEN CURSOR + FETCH
Following Calls FETCH only
First data package -> OPEN CURSOR
IF S_COUNTER_DATAPAKID = 0.
Determine number of database records to be read per FETCH statement
from input parameter I_MAXSIZE. If there is a one to one relation
between DataSource table lines and database entries, this is trivial.
In other cases, it may be impossible and some estimated value has to
be determined.
select MATNR
MTART
MBRSH
MATKL
BISMT
from mara up to 10 rows
into table t_mara.
if not t_mara[] is initial.
select MATNR
maktx
from makt
into table t_makt
for all entries in t_mara
where matnr = t_mara-zmatnr.
endif.
loop at t_mara.
read table t_makt with key zmatnr = t_mara-zmatnr.
ZTEST123-zmatnr = t_mara-zmatnr.
ZTEST123-ZMTART = t_mara-ZMTART.
ZTEST123-ZBISMT = t_mara-ZBISMT.
ZTEST123-ZMBRSH = t_mara-ZMBRSH.
ZTEST123-ZMATKL = t_mara-ZMATKL.
ZTEST123-zmaktx = t_makt-zmaktx.
append ZTEST123.
clear ZTEST123.
endloop.
clear E_T_DATA.
refresh E_T_DATA.
E_T_DATA[] = ZTEST123[].
ENDIF.
S_COUNTER_DATAPAKID = S_COUNTER_DATAPAKID + 1.
ENDIF. "Initialization mode or data extractio
ENDFUNCTION.
3. Create the data source using transaction (RSO2).
4. If structure exists for the table parameter of your function module then ok else create a structure for the table parameter E_T_DATA.
5. Test the datasource in R/3 using transaction RSA3.
6. Transfer the data source to BW System and replicate it in the BW-System. -
Extraction by functional module
Hi all,
I create a functional module for making generic data source but when i import my functional module name in rso2 and enter my functional module name and my structure name it shows one error
Error :TABLES-paramter E_T_DATA for extractor ZMM_SLO_MOV is missing
hear ZMM_SLO_MOV = my functional module name please can any body tell me how can i remove that error and create my data source.
thanksHi Ankit,
YOur function module should be in line with Function Module RSAX_BIW_GET_DATA_SIMPLE in the table parameter of the function modules E_T_DATA should of type structure you give in RSO2 below the FUNCTION Module name.
Correction to Reddy advice it should be extract structure name instead of Datasource
Hope this helps.
Best Regards,
PV
Edited by: USERPV on Dec 20, 2007 10:00 AM -
Generic datasource with function module
I am trying to create a transactional generic datasouce with fm.
I create my structure ZNVBAK1, create a function group ZRSAX, a FM ZRSAX_BIW_GET_DATA_SIMPLE1 and I adjust my source code.
I activated both FM and Function Group.
Now under RSO2 I enter the datasource name as in my code, I enter the application component SD as well as the description
When I choose extraction by FM, nothing happens, no windows prompting me to enter my function module as well as extract structure, I checked everthing look good.
Any Idea what I might be doing wrong?
Thanks!!Hi ,
First put values in Short Description, Medium Description & long Description,fields and then click on the Extraction by FM. You will get those filelds unabled.
You can also refer.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33?quicklink=index&overridelayout=true
Edited by: Nilesh Vakil on May 31, 2011 7:57 AM -
Function modules or BAPIs for ESS MSS
Hi Experts,
I am new to HR (ESS/MSS & who's who). I am looking for standard BAPI's and Function Modules that would give me information about an employee's upper level's and lower levels (reporting).
My requirement is to build an Webdynpro Application with taking employee id as user input and display his uplevel's and downlevel's. Also, hyperlink on employee should help me to further navigate to the corresponding employee's information.
Note: I tried to search this forum, but unable to narrow down the required business functions that i require.
Thanks,
Gaurav.https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=190743879
RH_GET_MANAGER_ASSIGNMENT
Maybe you are looking for
-
Does not happen all the time. Many time works no problems. When having problems seems to be that way for a while not just one email. Just did an email and wheel was spinning and trying to send. "Can't log on to server" I believe is what comes up. Hit
-
Hi, im looking at the posiblities of building a sort of virtual "monitor" into a full screen application. Idealy, this virtual monior would act as a second display displaying on one window. For example, while the aplication is running in full screen,
-
How can I get speaker volume contol in the toolbar on my iMac ?
How can I get speaker volume contol in the toolbar on my iMac ?
-
Discount Amount Problem in PO Smartform
Hi Experts, I'm Working on a po smartform.I need to display quantity, rate, discount & netvalue in line items.I'm using 2 internal tables.when displaying discount amount only first line item of discount amount is getting repeated sll the time, while
-
SAP Cloud for Customer & SAP ECC/CRM OnPremise integration using WebServices!
Hello All, I would like to ask if anyone has really created a working integration scenario between a Cloud Solution & an ECC/CRM OnPremise solution? We are trying to build some prototypes for this, however, due to connectivity errors/issues, unable t