SAP Reports / Programs

RFTBLBI1 SAP ABAP Report - Batch Input Report for Creating Limits







RFTBLBI1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program creates limits and interim limits automatically using transaction TBL1 (either as a batch input session or a call transaction)...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RFTBLBI1 into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RFTBLBI1. "Basic submit
SUBMIT RFTBLBI1 AND RETURN. "Return to original report after report execution complete
SUBMIT RFTBLBI1 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: CTU =
Selection Text: CTUMODE =
Selection Text: CUPDATE =
Selection Text: E_GROUP =
Selection Text: E_HDATE =
Selection Text: E_KEEP =
Selection Text: E_USER =
Selection Text: GROUP = Session Name
Selection Text: HOLDDATE = Lock Date
Selection Text: KEEP = Session hold = X
Selection Text: NODATA =
Selection Text: P_SEPA = Field Separator Character
Selection Text: P_V0_A = Path/file name for limits
Selection Text: P_V0_D = Path/file name for limits
Selection Text: P_VIL_A = Path/file name for int. limits
Selection Text: P_VIL_D = Path/file name for int. limits
Selection Text: SESSION =
Selection Text: S_LINE1 = Lines from/to
Selection Text: S_LINE2 = Lines from/to
Selection Text: USER = Session user
Title: Batch Input Report for Creating Limits
Text Symbol: S11 = Write Log File
Text Symbol: S10 = No Data Indicator
Text Symbol: S09 = Error Sess.
Text Symbol: S08 = Call Transaction
Text Symbol: APS = Read from Application Server
Text Symbol: DSK = Upload fr. Desktop/Presentation Server
Text Symbol: DTA = Input Files
Text Symbol: E00 = Error opening dataset, return code:
Text Symbol: ERR = Processing errors
Text Symbol: F02 = Records Read
Text Symbol: F03 = Records Skipped
Text Symbol: F04 = Records Processed
Text Symbol: FI1 = limits.csv
Text Symbol: FI2 = interims.csv
Text Symbol: I01 = Session Name
Text Symbol: I02 = Open Session
Text Symbol: I03 = Insert Transaction





Text Symbol: I04 = Close Session
Text Symbol: I05 = Rtrn Code =
Text Symbol: I06 = Error Session Created
Text Symbol: LIN = Input files: Lines to be read
Text Symbol: S01 = Session Name
Text Symbol: S02 = User
Text Symbol: S03 = Keep Session
Text Symbol: S04 = Lock Date
Text Symbol: S05 = Processing Mode
Text Symbol: S06 = Update Mode
Text Symbol: S07 = Generate session


INCLUDES used within this REPORT RFTBLBI1

INCLUDE BDCRECX1.


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

TB_LIMIT_WS_FILENAME_GET CALL FUNCTION 'TB_LIMIT_WS_FILENAME_GET' EXPORTING * DEF_FILENAME = ' ' * DEF_PATH = ' ' * mask = mode = 'O' * TITLE = ' ' IMPORTING filename = c_file * PATH = * FILE = EXCEPTIONS selection_cancel = 1 selection_error = 2.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING LOGICAL_FILENAME = l_file_path CHANGING PHYSICAL_FILENAME = u_file EXCEPTIONS LOGICAL_FILENAME_NOT_FOUND = 1 VALIDATION_FAILED = 2 OTHERS = 3 .

TB_LIMIT_UPLOAD CALL FUNCTION 'TB_LIMIT_UPLOAD' EXPORTING filename = u_filename filetype = 'ASC' * ITEM = ' ' * FILEMASK_MASK = ' ' IMPORTING * FILESIZE = cancel = c_cancel * ACT_FILENAME = * ACT_FILETYPE = TABLES data_tab = tt_tab2048 EXCEPTIONS INVALID_TYPE = 1 NO_BATCH = 2 UNKNOWN_ERROR = 3 GUI_REFUSE_FILETRANSFER = 4 NO_AUTHORITY = 5.

DDIF_NAMETAB_GET CALL FUNCTION 'DDIF_NAMETAB_GET' "#EC DOM_EQUAL EXPORTING tabname = u_tabname * ALL_TYPES = ' ' * LFIELDNAME = ' ' * GROUP_NAMES = ' ' * IMPORTING * X030L_WA = * DTELINFO_WA = * TTYPINFO_WA = * DDOBJTYPE = * DFIES_WA = * LINES_DESCR = TABLES * X031L_TAB = dfies_tab = tt_dfies EXCEPTIONS not_found = 1 OTHERS = 2.

DDIF_DTEL_GET CALL FUNCTION 'DDIF_DTEL_GET' "#EC DOM_EQUAL EXPORTING name = tt_dfies-rollname * STATE = 'A' langu = sy-langu IMPORTING * GOTSTATE = dd04v_wa = tt_dd04v * TPARA_WA = EXCEPTIONS illegal_input = 1 OTHERS = 2.

DDIF_FIELDINFO_GET CALL FUNCTION 'DDIF_FIELDINFO_GET' EXPORTING tabname = trlm_mrm_vtblm0g * FIELDNAME = ' ' * LANGU = SY-LANGU * LFIELDNAME = ' ' * ALL_TYPES = ' ' * IMPORTING * X030L_WA = * DDOBJTYPE = * DFIES_WA = * LINES_DESCR = TABLES dfies_tab = lt_dfies * FIXED_VALUES = EXCEPTIONS not_found = 1 internal_error = 2 OTHERS = 3.

TB_LIMITTYPE_CHECK CALL FUNCTION 'TB_LIMITTYPE_CHECK' EXPORTING sla = gt_vtblv0_di-sla * importing * e_atla = EXCEPTIONS existence = 1 OTHERS = 2.

CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' EXPORTING input = c_vtblv0-partnr IMPORTING output = c_vtblv0-partnr.

TB_LIMIT_CURRENCY_SET CALL FUNCTION 'TB_LIMIT_CURRENCY_SET' EXPORTING i_sla = c_vtblv0-sla i_mandt = sy-mandt i_bukrs = c_vtblv0-bukrs i_waers = c_vtblv0-waers IMPORTING e_waers = c_vtblv0-wlimit.

BAPI_CURRENCY_CONV_TO_INTERNAL CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_INTERNAL' EXPORTING currency = c_vtblv0-wlimit amount_external = l_bapicurr max_number_of_digits = 23 IMPORTING amount_internal = c_vtblv0-elimit return = l_return EXCEPTIONS OTHERS = 1.

BAPI_CURRENCY_CONV_TO_INTERNAL CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_INTERNAL' EXPORTING currency = c_vtblv0-wlimit amount_external = l_bapicurr max_number_of_digits = 23 IMPORTING amount_internal = c_vtblv0-blimit return = l_return EXCEPTIONS OTHERS = 1.

BAPI_CURRENCY_CONV_TO_INTERNAL CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_INTERNAL' EXPORTING currency = c_vtblvil0-wlimit_il amount_external = l_bapicurr max_number_of_digits = 23 IMPORTING amount_internal = c_vtblvil0-elimit_il return = l_return EXCEPTIONS OTHERS = 1.

BAPI_CURRENCY_CONV_TO_INTERNAL





CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_INTERNAL' EXPORTING currency = c_vtblvil0-wlimit_il amount_external = l_bapicurr max_number_of_digits = 23 IMPORTING amount_internal = c_vtblvil0-blimit_il return = l_return EXCEPTIONS OTHERS = 1.

MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE' IMPORTING e_identification = g_message_handle EXCEPTIONS OTHERS = 1.

MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = l_msgid * EXCEPTION_IF_NOT_ACTIVE = E02 msgty = l_msgty msgv1 = l_msgv1 msgv2 = l_msgv2 msgv3 = l_msgv3 msgv4 = l_msgv4 txtnr = l_msgno * ZEILE = G_MESSAGE_COUNT zeile = g_tabix * IMPORTING * ACT_SEVERITY = I01 * MAX_SEVERITY = I02 EXCEPTIONS message_type_not_valid = 01 not_active = 02.

MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING * CORRECTIONS_OPTION = ' ' * CORRECTIONS_FUNC_TEXT = ' ' * LINE_FROM = ' ' * LINE_TO = ' ' object = text-err * SEND_IF_ONE = ' ' * BATCH_LIST_TYPE = 'J' * SHOW_LINNO = 'X' * SHOW_LINNO_TEXT = ' ' * SHOW_LINNO_TEXT_LEN = '3' * IMPORTING * CORRECTIONS_WANTED = EXCEPTIONS inconsistent_range = 1 no_messages = 2 OTHERS = 3.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_log_file_v0_a CHANGING physical_filename = p_v0_a EXCEPTIONS logical_filename_not_found = 1 validation_failed = 2 OTHERS = 3.

FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_log_file_vil_a CHANGING physical_filename = p_vil_a EXCEPTIONS logical_filename_not_found = 1 validation_failed = 2 OTHERS = 3.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RFTBLBI1 or its description.