Help in User Exit
There is user exit that bring table i_t_data with org.unit and dates ,
the problem is that the table dont bring all the org units we have, my qustion is how i now where this table become filled ?
i new in this topic i give more details maybe it helps,
ZXRSAU02 the name of user exit and inside i have this call
LOOP AT I_T_DATA INTO LW_T_DATA_0ORG
and when i go to tables tab in EXIT_SAPLRSAP_002
the table I_T_DATA dont have type or associated type just short text of
Transferred Data .
i check in all code thare is no place for insert modify or append to this table ,
i use rsa3 from bw to run this exit with no input in input fields.
Ferry Lianto replied
1. is how i now which org.unit is vaild or not becose i think i get to much org in table, for 4000 emp i get 2100 org i think is to much.
Do you have any logic/criteria to filter table IT_ORGUNITS in order to get the missing org. unit? If you do then perhaps you can narrow down the return values of org. unit.
2 .how i add the dates to org.
like in i_t_data i have
datefrom dateto org
20020627 99991231 50200828
You can do something like this assuming you are able to get the missing org. unit.
DATA: L_T_ORGUNIT LIKE HRMS_BW_IO_ORGUNIT OCCURS 0 WITH HEADER LINE. DATA: IT_ORGUNITS LIKE HROBJECT OCCURS 0 WITH HEADER LINE. DATA: WA_ORGUNIT LIKE HRMS_BW_IO_ORGUNIT. CASE I_DATASOURCE. WHEN '0ORGUNIT_ATTR'. L_T_ORGUNIT = I_T_DATA. CALL FUNCTION 'HR_BW_GET_OBJECTS' EXPORTING I_CHABASNM = '0ORGUNIT' BEGDA = SY-DATUM ENDDA = SY-DATUM TABLES OBJECTS = IT_ORGUNITS EXCEPTIONS NOT_FOUND = 1 OTHERS = 2. LOOP AT IT_ORGUNITS. * New logic to filter out the missing org. unit .... ENDLOOP. WA_ORGUNIT-DATEFROM = '20020627'. WA_ORGUNIT-DATETO = '99991231'. WA_ORGUNIT-ORGEH = '50200828'. INSERT WA_ORGUNIT INTO TABLE L_T_ORGUNIT. I_T_DATA = L_T_ORGUNIT.