850.book Seite 3 Dienstag, 8. Oktober 2013 5:16 17 Tanmaya Gupta Function Modules in ABAP® A Quick Reference Guide Bonn (cid:2) Boston 850.book Seite 5 Dienstag, 8. Oktober 2013 5:16 17 Contents at a Glance Part I System ........................................................................ 43 Part II ABAP Data Dictionary ................................................ 83 Part III Conversions ................................................................ 145 Part IV BDC, ALV, Report, and Screens .................................. 247 Part V Scripts and Forms ...................................................... 325 Part VI Archive, Number Ranges, Strings, and Text ............... 381 Part VII Frontend Services and Microsoft Office Integration ...................................... 421 Part VIII ALE, EDI, and IDoc ..................................................... 463 Part IX Users and Authorizations ........................................... 485 Part X Spools and Background Jobs ..................................... 505 Part XI Messages and Popups ................................................ 547 Part XII Transport Management .............................................. 591 Part XIII Application Log .......................................................... 619 Part XIV BAPI ............................................................................ 657 Part XV Miscellaneous ............................................................. 873 850.book Seite 7 Dienstag, 8. Oktober 2013 5:16 17 Contents Acknowledgments ........................................................................................... 33 Introduction .................................................................................................... 35 Part I: System .................................................................................. 43 1 ABAP4_CALL_TRANSACTION ................................................................ 45 2 ABAP_DOCU_DOWNLOAD ................................................................... 46 3 ARFC_GET _TID ..................................................................................... 47 4 AUTHORITY_CHECK_RFC ...................................................................... 47 5 BP_EVENT_RAISE ................................................................................... 48 6 CAT_CHECK_RFC_DESTINATION ........................................................... 49 7 DB_COMMIT ......................................................................................... 50 8 FTP_COMMAND ................................................................................... 50 9 FTP_CONNECT ....................................................................................... 51 10 FTP_DISCONNECT ................................................................................. 52 11 HTTP_SCRAMBLE ................................................................................... 53 12 OWN_LOGICAL_SYSTEM_GET ............................................................... 54 13 PRETTY_PRINTER ................................................................................... 54 14 RFC_CONNECTION_CLOSE .................................................................... 55 15 RFC_READ_TABLE.................................................................................. 56 16 RS_DELETE_PROGRAM.......................................................................... 58 17 RSLG_WRITE_SYSLOG_ENTRY ............................................................... 60 18 SXPG_CALL_SYSTEM.............................................................................. 62 19 SXPG_COMMAND_CHECK .................................................................... 65 20 SXPG_COMMAND_EXECUTE ................................................................. 67 21 SXPG_COMMAND_LIST_GET ................................................................. 69 22 SXPG_DUMMY_COMMAND_CHECK..................................................... 71 23 TH_DELETE_USER .................................................................................. 71 24 TH_ENVIRONMENT ............................................................................... 72 25 TH_GET_OWN_WP_NO ......................................................................... 73 7 850.book Seite 8 Dienstag, 8. Oktober 2013 5:16 17 Contents 26 TH_POPUP ............................................................................................ 74 27 TH_REMOTE_TRANSACTION ................................................................ 75 28 TH_SERVER_LIST ................................................................................... 76 29 TH_STOP_WP ........................................................................................ 77 30 TH_USER_INFO ..................................................................................... 78 31 TH_USER_LIST ....................................................................................... 79 32 TRFC_RECEIVER_INFO .......................................................................... 80 33 USER_EXISTS ......................................................................................... 81 Part II: ABAP Data Dictionary ......................................................... 83 34 DDIF_DOMA_GET ................................................................................. 85 35 DDIF_DTEL_GET.................................................................................... 86 36 DDIF_FIELDINFO_GET .......................................................................... 87 37 DDIF_NAMETAB_GET ........................................................................... 89 38 DDIF_TABL_ACTIVATE .......................................................................... 92 39 DDIF_TABL_GET .................................................................................... 92 40 DDIF_TABL_PUT ................................................................................... 94 41 DDIF_VIEW_GET ................................................................................... 95 42 DEQUEUE_ALL ...................................................................................... 96 43 DEQUEUE_E_TABLE .............................................................................. 97 44 ENQUEUE_E_TABLE .............................................................................. 98 45 F4_DATE ............................................................................................... 101 46 F4IF_DETERMINE_SEARCHHELP ........................................................... 103 47 F4IF_FIELD_VALUE_REQUEST ............................................................... 104 48 F4IF_GET_SHLP_DESCR ......................................................................... 107 49 F4IF_INT_TABLE_VALUE_REQUEST ....................................................... 108 50 F4IF_SELECT_VALUES ........................................................................... 111 51 F4IF_SHLP_EXIT_EXAMPLE ................................................................... 112 52 F4IF_START_VALUE_REQUEST .............................................................. 113 53 F4UT_OPTIMIZE_COLWIDTH ................................................................ 114 54 F4UT_PARAMETER_ALLOCATE ............................................................. 115 8 850.book Seite 9 Dienstag, 8. Oktober 2013 5:16 17 Contents 55 F4UT_PARAMETER_RESULTS_PUT .........................................................116 56 F4UT_PARAMETER_SORT ......................................................................117 57 F4UT_PARAMETER_VALUE_GET ............................................................118 58 F4UT_RESULTS_MAP .............................................................................120 59 FLUSH_ENQUEUE ..................................................................................121 60 HELP_DOCULINES_SHOW .....................................................................121 61 HELP_OBJECT_SHOW ............................................................................123 62 HELP_OBJECT_SHOW_FOR_FIELD .........................................................125 63 HELP_START ..........................................................................................127 64 RESET_ENQUEUE ...................................................................................128 65 VIEW_AUTHORITY_CHECK ....................................................................128 66 VIEW_ENQUEUE....................................................................................130 67 VIEW_GET_DDIC_INFO .........................................................................131 68 VIEW_MAINTENANCE ...........................................................................132 69 VIEW_MAINTENANCE_CALL .................................................................134 70 VIEW_MAINTENANCE_LOW_LEVEL ......................................................137 71 VIEW_MAINTENANCE_SINGLE_ENTRY .................................................140 72 VIEWCLUSTER_MAINTENANCE_CALL ...................................................142 Part III: Conversions ........................................................................145 73 ADD_TIME_TO_DATE ............................................................................147 74 C14B_ADD_TIME ...................................................................................148 75 CALCULATE_EXCHANGE_RATE..............................................................148 76 CF_UT_UNIT_CONVERSION ..................................................................150 77 CHAR_FLTP_CONVERSION ....................................................................151 78 COMPUTE_YEARS_BETWEEN_DATES ....................................................153 79 CONVERSION_EXIT_ALPHA_INPUT .......................................................154 80 CONVERSION_EXIT_ALPHA_OUTPUT ...................................................154 81 CONVERSION_EXIT_CUNIT_INPUT .......................................................155 82 CONVERSION_EXIT_CUNIT_OUTPUT ....................................................155 83 CONVERSION_EXIT_LUNIT_INPUT ........................................................156 9 850.book Seite 10 Dienstag, 8. Oktober 2013 5:16 17 Contents 84 CONVERSION_EXIT_LUNIT_OUTPUT .................................................... 157 85 CONVERSION_EXIT_GJAHR_INPUT ...................................................... 157 86 CONVERSION_EXIT_GJAHR_OUTPUT ................................................... 158 87 CONVERSION_EXIT_ISOLA_INPUT ....................................................... 158 88 CONVERSION_EXIT_IDATE_INPUT ....................................................... 159 89 CONVERSION_EXIT_IDATE_OUTPUT .................................................... 159 90 CONVERSION_EXIT_ISOLA_OUTPUT .................................................... 160 91 CONVERSION_EXIT_LDATE_OUTPUT ................................................... 161 92 CONVERSION_EXIT_PERI5_INPUT ........................................................ 161 93 CONVERSION_EXIT_PERI5_OUTPUT..................................................... 162 94 CONVERSION_EXIT_SDATE_INPUT....................................................... 162 95 CONVERSION_EXIT_SDATE_OUTPUT ................................................... 163 96 CONVERSION_FACTOR_GET ................................................................. 163 97 CONVERT_ABAPSPOOLJOB_2_PDF ...................................................... 165 98 CONVERT_DATE_TO_EXTERNAL .......................................................... 167 99 CONVERT_DATE_TO_INTERNAL ........................................................... 168 100 CONVERT_ITF_TO_HTML ...................................................................... 168 101 CONVERT_OTF...................................................................................... 172 102 CONVERT_OTFSPOOLJOB_2_PDF ......................................................... 174 103 CONVERT_TIME_INPUT ........................................................................ 175 104 CONVERT_TO_FOREIGN_CURRENCY ................................................... 176 105 CONVERT_TO_FRACTION ..................................................................... 178 106 CONVERT_TO_LOCAL_CURRENCY ....................................................... 179 107 COUNTRY_CODE_ISO_TO_SAP ............................................................. 180 108 COUNTRY_CODE_SAP_TO_ISO ............................................................. 181 109 CURRENCY_AMOUNT_SAP_TO_BAPI ................................................... 182 110 CURRENCY_AMOUNT_SAP_TO_IDOC .................................................. 182 111 CURRENCY_CODE_ISO_TO_SAP ........................................................... 183 112 CURRENCY_CODE_SAP_TO_ISO ........................................................... 184 113 DATE_CHECK_PLAUSIBILITY ................................................................. 185 114 DATE_CHECK_WORKINGDAY .............................................................. 185 115 DATE_COMPUTE_DAY .......................................................................... 186 10 850.book Seite 11 Dienstag, 8. Oktober 2013 5:16 17 Contents 116 DATE_CONV_EXT_TO_INT ....................................................................186 117 DATE_CONVERT_TO_FACTORYDATE ....................................................187 118 DATE_GET_WEEK ..................................................................................188 119 DATE_IN_FUTURE..................................................................................189 120 DATE_TO_PERIOD_CONVERT ...............................................................190 121 DAY_ATTRIBUTES_GET ..........................................................................191 122 DAY_IN_WEEK ......................................................................................192 123 DAYS_BETWEEN_TWO_DATES ..............................................................193 124 DIMENSION_CHECK ..............................................................................195 125 DIMENSION_GET ..................................................................................196 126 DIMENSION_GET_FOR_UNIT ................................................................197 127 DURATION_DETERMINE .......................................................................198 128 END_TIME_DETERMINE ........................................................................199 129 EVAL_FORMULA ...................................................................................200 130 FACTORYDATE_CONVERT_TO_DATE ....................................................201 131 FIMA_DAYS_AND_MONTHS_AND_YEARS ............................................202 132 FIRST_DAY_IN_PERIOD_GET .................................................................203 133 FLTP_CHAR_CONVERSION ....................................................................204 134 GET_CURRENT_YEAR.............................................................................205 135 HOLIDAY_CHECK_AND_GET_INFO .......................................................206 136 HOLIDAY_GET .......................................................................................207 137 HR_HK_DIFF_BT_2_DATES ....................................................................208 138 HR_SEN_CALE_DAYS_DATE ...................................................................209 139 HR_SEN_CALE_DAYS_DURATION .........................................................209 140 HR_SEN_CRULE_0100_DATE .................................................................210 141 HRCM_AMOUNT_TO_STRING_CONVERT .............................................211 142 HRCM_STRING_TO_AMOUNT_CONVERT .............................................211 143 LANGUAGE_CODE_ISO_TO_SAP ...........................................................212 144 LANGUAGE_CODE_SAP_TO_ISO ...........................................................213 145 LAST_DAY_IN_PERIOD_GET ..................................................................213 146 MATERIAL_UNIT_CONVERSION ............................................................214 147 MD_CONVERT_MATERIAL_UNIT ..........................................................216 11 850.book Seite 12 Dienstag, 8. Oktober 2013 5:16 17 Contents 148 MONTH_NAMES_GET ........................................................................... 217 149 MONTH_PLUS_DETERMINE.................................................................. 217 150 PERIOD_DAY_DETERMINE ................................................................... 218 151 READ_EXCHANGE_RATE ....................................................................... 219 152 RH_GET_DATE_DAYNAME ................................................................... 220 153 RKE_TIMESTAMP_CONVERT_INPUT..................................................... 221 154 RKE_TIMESTAMP_CONVERT_OUTPUT ................................................. 222 155 ROUND ................................................................................................. 222 156 RP_CALC_DATE_IN_INTERVAL.............................................................. 223 157 RP_LAST_DAY_OF_MONTHS ................................................................ 224 158 RS_CONV_EX_2_IN ............................................................................... 225 159 SCMS_BINARY_TO_XSTRING ................................................................ 226 160 SCMS_XSTRING_TO_BINARY ................................................................ 227 161 SCP_CODEPAGE_FOR_LANGUAGE ....................................................... 228 162 SCP_REPLACE_STRANGE_CHARS .......................................................... 228 163 SD_DATETIME_DIFFERENCE ................................................................. 230 164 SI_UNIT_GET ......................................................................................... 230 165 START_TIME_DETERMINE .................................................................... 231 166 SUBTRACT_TIME_FROM_DATE............................................................. 232 167 SWI_DURATION_DETERMINE .............................................................. 233 168 SX_OBJECT_CONVERT_OTF_PDF .......................................................... 234 169 SX_OBJECT_CONVERT_OTF_PRT .......................................................... 235 170 SX_OBJECT_CONVERT_OTF_RAW......................................................... 236 171 TIME_CHECK_PLAUSIBILITY ................................................................. 237 172 UNIT_CONVERSION_SIMPLE ................................................................ 237 173 UNIT_CONVERSION_WITH_FACTOR .................................................... 238 174 UNIT_CORRESPONDENCE_CHECK........................................................ 239 175 UNIT_GET ............................................................................................. 240 176 UNIT_OF_MEASURE_ISO_TO_SAP ........................................................ 241 177 UNIT_OF_MEASURE_SAP_TO_ISO ........................................................ 241 178 UNIT_OF_MEASUREMENT_HELP .......................................................... 242 179 WDKAL_DATE_ADD_FKDAYS ............................................................... 243 12 850.book Seite 13 Dienstag, 8. Oktober 2013 5:16 17 Contents 180 WEEK_GET_FIRST_DAY .........................................................................244 181 WEEKDAY_GET......................................................................................244 182 WLB3_GET_NUMBER_OF_WORKDAYS .................................................245 Part IV: BDC, ALV, Report, and Screens ..........................................247 183 BDC_CLOSE_GROUP ..............................................................................249 184 BDC_INSERT ..........................................................................................249 185 BDC_OPEN_GROUP ...............................................................................250 186 COMPLEX_SELECTIONS_DIALOG ..........................................................252 187 DP_CONTROL_ASSIGN_TABLE ..............................................................253 188 DP_CREATE ...........................................................................................255 189 DP_GET_FIELDS_FROM_TABLE .............................................................256 190 DYNP_GET_STEPL ..................................................................................257 191 DYNP_VALUES_READ ............................................................................257 192 DYNP_VALUES_UPDATE........................................................................259 193 FREE_SELECTIONS_DIALOG ..................................................................260 194 FREE_SELECTIONS_INIT .........................................................................263 195 FREE_SELECTIONS_RANGE_2_EX ..........................................................266 196 FREE_SELECTIONS_RANGE_2_WHERE...................................................267 197 LIST_FREE_MEMORY .............................................................................267 198 LIST_FROM_MEMORY...........................................................................267 199 LIST_TO_ASCI ........................................................................................268 200 LVC_FIELDCATALOG_MERGE ................................................................269 201 LVC_TRANSFER_FROM_SLIS ..................................................................269 202 LVC_VARIANT_DEFAULT_GET ...............................................................270 203 LVC_VARIANT_EXISTENCE_CHECK ........................................................271 204 LVC_VARIANT_F4 ..................................................................................272 205 REUSE_ALV_BLOCK_LIST_APPEND ........................................................272 206 REUSE_ALV_BLOCK_LIST_DISPLAY .......................................................274 207 REUSE_ALV_BLOCK_LIST_INIT ..............................................................274 208 REUSE_ALV_COMMENTARY_WRITE .....................................................275 13 850.book Seite 14 Dienstag, 8. Oktober 2013 5:16 17 Contents 209 REUSE_ALV_FIELDCATALOG_MERGE ................................................... 276 210 REUSE_ALV_GRID_DISPLAY .................................................................. 277 211 REUSE_ALV_GRID_LAYOUT_INFO_GET ................................................ 282 212 REUSE_ALV_GRID_LAYOUT_INFO_SET ................................................. 283 213 REUSE_ALV_HIERSEQ_LIST_DISPLAY .................................................... 283 214 REUSE_ALV_LIST_DISPLAY.................................................................... 286 215 REUSE_ALV_LIST_LAYOUT_INFO_GET .................................................. 286 216 REUSE_ALV_LIST_LAYOUT_INFO_SET ................................................... 289 217 REUSE_ALV_POPUP_TO_SELECT ........................................................... 289 218 REUSE_ALV_VARIANT_DEFAULT_GET .................................................. 291 219 REUSE_ALV_VARIANT_EXISTENCE........................................................ 292 220 REUSE_ALV_VARIANT_F4 ..................................................................... 293 221 REUSE_ALV_VARIANT_SELECT .............................................................. 294 222 RPY_DYNPRO_READ............................................................................. 296 223 RPY_TRANSACTION_READ ................................................................... 297 224 RS_COVERPAGE_SELECTIONS ............................................................... 298 225 RS_CREATE_VARIANT ........................................................................... 299 226 RS_EXTERNAL_SELSCREEN_STATUS ...................................................... 300 227 RS_FUNCTION_POOL_CONTENTS ........................................................ 301 228 RS_REFRESH_FROM_SELECTOPTIONS .................................................. 301 229 RS_REPORTSELECTIONS_INFO ............................................................. 302 230 RS_SELECTIONSCREEN_READ ............................................................... 303 231 RS_SET_SELSCREEN_STATUS ................................................................. 303 232 RS_SELECTIONSCREEN_UPDATE ........................................................... 304 233 RS_SUBMIT_INFO ................................................................................. 305 234 RS_SUPPORT_SELECTIONS.................................................................... 306 235 RS_TOOL_ACCESS ................................................................................. 306 236 RS_TREE_CONSTRUCT .......................................................................... 308 237 RS_TREE_LIST_DISPLAY ........................................................................ 309 238 RS_VARIANT_CATALOG ........................................................................ 311 239 RS_VARIANT_CHANGE ......................................................................... 313 240 RS_VARIANT_CONTENTS ...................................................................... 314 14
Description: