Program RPCPRRU0.
Category: SAP
Program SAPBC_DATA_GENERATOR to Generate Sample Data in SFLIGHT Tables
The database tables of flight data model, used in SAP example programs, can be filled using the program SAPBC_DATA_GENERATOR.
Performance comparison examples – Program RSHOWTIM
Use program RSHOWTIM to display performance comparison examples.
Class/Function for date computation
Class CL_HRPAD_DATE_COMPUTATIONS.
Use FM DATE_CHECK_PLAUSIBILITY: Check if date is valid.
Convert internal date to output format according user’s config
Use FM CONVERT_DATE_TO_EXTERNAL to convert data from internal format, to user format.
FORM convert_date_format
USING
value(p_internal_format) TYPE datum
CHANGING
p_external_format TYPE char10.
CLEAR p_external_format.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
date_internal = p_internal_format
IMPORTING
date_external = p_external_format
EXCEPTIONS
date_internal_is_invalid = 1
others = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM.
How to check if date is valid
Have you ever had problems when working with a date value? Use FM DATE_CHECK_PLAUSIBILITY to validate if value you have is a valid date.
Routine to get table line type dynamically
DATA: tabledescr TYPE REF TO cl_abap_tabledescr,
structuredescr TYPE REF TO CL_ABAP_DATADESCR.
tabledescr ?= cl_abap_tabledescr=>describe_by_data( table_type ).
call method tabledescr->GET_TABLE_LINE_TYPE
receiving P_DESCR_REF = structuredescr.
ASSERT structuredescr->absolute_name(6) = '\TYPE='.
structure_name = structuredescr->absolute_name+6(30).
Program RSTXTRAN – insert in a task, text object created in tcode SO10
RSTXTRAN – insert in a task, text object created in tcode SO10.
Program RSTXSCRP – Import/export of sapscript
RSTXSCRP – Import/export of sapscript