Vous êtes sur la page 1sur 4

Useful ABAP Programs and Function Modules in SAP BI - SAP NetWe...

http://wiki.scn.sap.com/wiki/display/BI/Useful+ABAP+Programs+and...

Getting Started Newsletters Store

Welcome, Guest

Login

Register

Search the Community

SAP NetWeaver Business Warehouse / / ABAP in BW

Useful ABAP Programs and Function Modules in SAP BI


Added by Guest, last edited by Martin Grob on Oct 16, 2013

Applies to 3.x / 7.x


Listed below are some of the frequently used ABAP Programs in SAP BW. Program name RSCDS_NULLELIM RSDG_CUBE_ACTIVATE RSDG_CUBE_COPY RSDG_CUBE_DELETE RSDG_DODS_REPAIR RSDG_ODSO_ACTIVATE RSDG_IOBJ_ACTIVATE RSDG_IOBJ_DELETE RSDG_IOBJ_REORG RSDG_IOBJ_REORG_TEXTS RSDG_MPRO_ACTIVATE RSDG_MPRO_COPY RSDG_MPRO_DELETE RS_COMSTRU_ACTIVATE_ALL RS_TRANSTRU_ACTIVATE_ALL RSAU_UPDR_REACTIVATE_ALL RRHI_HIERARCHY_ACTIVATE SAP_AGGREGATES_ACTIVATE_FILL SAP_AGGREGATES_DEACTIVATE RS_PERS_ACTIVATE RSSM_SET_REPAIR_FULL_FLAG SAP_INFOCUBE_DESIGNS SAP_ANALYZE_ALL_INFOCUBES SAP_CREATE_E_FACTTABLES SAP_DROP_EMPTY_FPARTITIONS SAP_DROP_TMPTABLES SAP_RSADMIN_MAINTAIN CUBE_SAMPLE_CREATE Delete fact table rows where all Key Figure values are zero. See Note 619826. Activation of InfoCubes Make InfoCube Copies Delete InfoCubes Activation of all ODS Objects with Navigation Attributes Activation of all ODS Objects Activation of all InfoObjects Deletion of InfoObjects Repair InfoObjects Reorganization of Texts for InfoObjects Activating Multiproviders Make Multiprovider Copies Deleting Multiproviders Activate all inactive Communication Structures Activate Transfer Structure Activate Update Rules Activate Hierarchies Activating and Filling the Aggregates of an InfoCube Deactivating the Aggregates of an InfoCube Activating Personalization in Bex(Inactive are highlighted) Convert Full Requests to Repair Full Requests Print a List of Cubes in The System and Their Layouts Create DB Statstics for all InfoCubes Create Missing E-Fact Tables for InfoCubes and Aggregates Locate/Remove Unused or Empty partitions of F-Fact Table Remove T emperory Database Objects Add, change, delete RSADMIN table entries A fast way to put some "sample" records in a InfoCube. No need to use Flatfiles, just enter the value in a ALV-Grid or let fill the Cube with random value. SAP_CONVERT_NORMAL_TRANS RSDDS_AGGREGATES_MAINTAIN RSDDS_AGGREGATES_MAINTAIN RSDS_DATASOURCE_ACTIVATE_ALL RSDG_TRFN_ACTIVATE Convert BasisCube to Transactional Cube and the opposite way around. Handle change runs; same functionality as the function 'Tools -> Hierarchy/Attribute changes' Handle change runs; same functionality as the function 'Tools -> Hierarchy/Attribute changes' Activates DataSources Activate Transformation and DTP

1 de 4

30/01/2014 10:58

Useful ABAP Programs and Function Modules in SAP BI - SAP NetWe...

http://wiki.scn.sap.com/wiki/display/BI/Useful+ABAP+Programs+and...

Program name RSSM_OLTP_INIT_DELTA_UPDATE RSBKDTPREPAIR Init-delta settings written from rssdlinit/sel to OLTP Repair DTP

Listed below are some of the frequently used Function Modules within BW. Function Module RRMX_WORKBOOK_DELETE RRMX_WORKBOOK_LIST_GET RRMX_WORKBOOK_QUERIES_GET RRMX_QUERY_WHERE_USED_GET RRMX_JUMP_TARGETS_GET RRMX_JUMP_TARGET_DELETE Description (Function Group RRMX) Delete BW Workbooks permanently from Roles & Favourites Get list of all Workbooks Get list of queries in a workbook Lists where a query has been used Get list of all Jump Targets Delete Jump Targets

Function Module MONI_TIME_CONVERT CONVERT_TO_LOCAL_CURRENCY CONVERT_TO_FOREIGN_CURRENCY TERM_TRANSLATE_TO_UPPER_CASE UNIT_CONVERSION_SIMPLE TZ_GLOBAL_TO_LOCAL FISCPER_FROM_CALMONTH_CALC RSAX_BIW_GET_DATA_SIMPLE RSAU_READ_MASTER_DATA RSDRI_INFOPROV_READ DATE_COMPUTE_DAY DATE_GET_WEEK SLS_MISC_GET_LAST_DAY_OF_MONTH RSARCH_DATE_CONVERT RSPC_PROCESS_FINISH DATE_CONVERT_TO_FACTORYDATE CONVERSION_EXIT_PDATE_OUTPUT CONVERSION_EXIT_ALPHA_INPUT RSAOS_METADATA_UPLOAD RSDMD_DEL_MASTER_DATA RSPC_CHAIN_ACTIVATE_REMOTE ARCHIVFILE_CLIENT_TO_SERVER RSPC_API_CHAIN_START FACTORYDATE_CONVERT_TO_DATE HOLIDAY_CHECK_AND_GET_INFO

Description Used for Time Conversions. Convert Foreign Currency to Local Currecny. Convert Local Currency to Foreign Currency. Used to convert all texts to UPPERCASE Used to convert any unit to another unit. (Ref. table : T006) Used to convert timestamp to local time Convert 0CALMONTH or 0CALDAY to Financial Year or Period Generic Extraction via Function Module Used in Data Transformations to read master data InfoObjects Used to read Infocube or ODS data through RFC Returns a number what day of the week the date falls on. Will return a week that the day is in. Determine Last Day of the Month. Used for Date Converstions. We can use in Info Package routines. T o trigger an event in process chain Returns factory calendar date for a date Conversion Exit for Domain GBDAT: YYYYMMDD -> DD/MM/YYYY Conversion exit ALPHA, external->internal Upload of meta data from R/3 Deletion of master data T o activate a process chain after transport Transfer a File from an applicatioserver to a client Apis and Bapis for Process Chains Calendar function: Returns date for a factory calendar date Public holiday check with information

USEFUL ABAP-CLASS in NW 7 - BI to fix problems with Transformation Class CL_RSTRAN_STAT DELETE_VERSION_FROM_DB (Static Method) DELETE_RULE_FROM_DB Description For deleting the transformation version from database, helpful if the transformation metadata are corrupted. For deleting a given rule of transformation

important

sap

bw

bi

function_module

fm

se38

report

abap

2 de 4

30/01/2014 10:58

Useful ABAP Programs and Function Modules in SAP BI - SAP NetWe...

http://wiki.scn.sap.com/wiki/display/BI/Useful+ABAP+Programs+and...

47 Child Pages
Function Module DATE_COMPUTE_DAY - Returns weekday for a date Function Module CONVERSION_EXIT_PDATE_OUTPUT - Conversion Exit for Domain FunctionModule CONVERT_TO_FOREIGN_CURRENCY- Translate local currency amount to foreign currency FunctionModule CONVERT_TO_LOCAL_CURRENCY - Translate foreign currency amount to local currency Function Module DATE_CONVERT_TO_FACTORYDATE - Calendar function: Returns factory calendar date for a date Function Module DATE_GET_WEEK - Calendar function: Returns week for a date FunctionModule FISCPER_FROM_CALMONTH_CALC Convert 0CALMONTH to Financial Year or Period FunctionModule MONI_TIME_CONVERT - Time Conversion FunctionModule RRMX_JUMP_TARGET_DELETE - Delete Jump Target global ID FunctionModule RRMX_JUMP_TARGETS_GET - Get list of views that are related to a given workbook object FunctionModule RRMX_QUERY_WHERE_USED_GET - Lists where a query has been used FunctionModule RRMX_WORKBOOK_LIST_GET - Get complete list of Excel workbooks FunctionModule RRMX_WORKBOOK_QUERIES_GET - Get all queries in a workbook Function Module RSAOS_METADATA_UPLOAD - Metadata upload from ECC Function Module RSARCH_DATE_CONVERT - Calendar function: Returns various dates FunctionModule RSAX_BIW_GET_DATA_SIMPLE - Template FM to transfer transactional data Function Module RSDMD_DEL_MASTER_DATA - Tool for maintaining master data Function Module RSPC_CHAIN_ACTIVATE_REMOTE Remote activation of a process chain FunctionModule TERM_TRANSLATE_TO_UPPER_CASE Language dependent conversion to upper case FunctionModule TZ_GLOBAL_TO_LOCAL Used to convert timestamp to local time Report CUBE_SAMPLE_CREATE - Create sample records Report RRHI_HIERARCHY_ACTIVATE - Activation of a hierarchy Report RSCDS_NULLELIM - Delete fact table rows where all Key Figure values are zero Report RSDDS_AGGREGATES_MAINTAIN - Execute Hierarchy Attribute Changes Report RSDG_CUBE_COPY - Make InfoCube Copies Report RSDG_CUBE_DELETE - Deleting InfoCubes Report RSDG_DODS_REPAIR - Activation of All ODS Objects with Navigation Attributes Report RSDG_IOBJ_DELETE - Deleting InfoObjects Report RSDG_IOBJ_REORG_TEXTS - Reorganization of Texts for InfoObjects Report RSDG_IOBJ_REORG - Repair InfoObjects Report RSDG_MPRO_DELETE - Delete MultiProviders Report RSSM_SET_REPAIR_FULL_FLAG - Set Repair Indicator for Full Requests Report SAP_ANALYZE_ALL_INFOCUBES - Create DB Statistics for all Infocubes Report SAP_CONVERT_NORMAL_TRANS - Conversion: Normal <--> Transactional InfoCube Report SAP_CREATE_E_FACTTABLES - Creates missing E fact tables for InfoCubes and aggregates Report SAP_INFOCUBE_DESIGNS - Cubes in the system and their layout Report SAP_RSADMIN_MAINTAIN - RSADMIN Administration Function Module SLS_MISC_GET_LAST_DAY_OF_MONTH - FM calculating the last day of a month Report ANALYZE_RSZ_TABLES - Check Report ANALYZE_RSZ_TABLES Function Module RSPC_API_CHAIN_START - Start Process Chain Function Module ARCHIVFILE_CLIENT_TO_SERVER Transfer File from Application server to client Function Module ARCHIVFILE_SERVER_TO_CLIENT Transfer File from Application client to server Function Module FACTORYDATE_CONVERT_TO_DATE - Calendar function: Returns factory calendar date for a date Function Module HOLIDAY_CHECK_AND_GET_INFO - Public holiday check with information Function Module LAST_FACTORYDATE_GET - Return last factory date for a factory calendar Function Module WEEK_GET_FIRST_DAY - Return first day for a week Report RSBKDTPREPAIR DTP Repair

11 Comments
Guest
Big 10xs. How about NW 2004s...

Guest
Good resource.

Guest
I just wanted to add to Jame's comment above. This is an excellent resource! I find myself periodically using the programs/function modules to reactivate transfer rules or datasources. However, I don't perform those actions enough to commit the program/fm names to memory. This wiki definitely help those of us who occasionally use these very useful programs.

Yogesh Patil
Definitely, this is good source of information. Great work..! One finding is that the FM RP_CALC_DATE_IN_INTERVAL is not exist in BI 7.0. Do you know any program/FM equivalent to this FM?

Guest
I just wanted to add to Jame's above. Excellent Resource

3 de 4

30/01/2014 10:58

Useful ABAP Programs and Function Modules in SAP BI - SAP NetWe...

http://wiki.scn.sap.com/wiki/display/BI/Useful+ABAP+Programs+and...

GauravPa
Dear team, Do agree with the Martin, Jame about the resource is helpfull..... Regards, Gaurav Patwari

Guest
This is the information I was trying to consolidate for late hours . This comprehensive list of programs and function modules has really saved my time. Thanks & Regards Paramesh

Guest
a lot of useful date methods in class "CL_RSAR_FUNCTION", use SE24 to test and play around CALL METHOD CL_RSAR_FUNCTION=>DATE_FISCPER( EXPORTING I_DATE I_PER = 'K4' = l_calday

IMPORTING E_FISCPER = l_fiscper ).

Anjali S Kumar
Just wanted to add to the content another Function Module ARCHIVFILE_CLIENT_TO_SERVER - To upload file from presentation server to application server. Regards, Anjali

Guest
Thanks a lot!

Harshil Joshi
RSBM_GUI_CHANGE_USTATE: manually change the status of the old request to red or green by using this function module

for more Change Status of DTP Request

Contact Us Privacy

SAP Help Portal Terms of Use

Legal Disclosure

Copyright

Follow SCN

4 de 4

30/01/2014 10:58

Vous aimerez peut-être aussi