J_1BLFA1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report creates the legal file 'Arquivo magnético' following the law Convênio 131/97...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 J_1BLFA1 into the relevant SAP transactions such as SE38 or SE80
Below is a list of transaction codes which are relevant to this SAP report
J1B_LFA1 - Arquivo Magnético/Convênio ICMS
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.
Selection Text: ALLOP = All Transactions
Selection Text: APPLSERV = Application Server
Selection Text: ASSETS = Exclude Assets/Consumption
Selection Text: CFOP86 = CFOPs for Record 86
Selection Text: CFOPS = CFOP
Selection Text: CONTACT = Contact Person
Selection Text: FILE_A = File Name (Application Server)
Selection Text: FILE_P = File Name (Present'n Server)
Selection Text: IDENT = Identification Code
Selection Text: INCL74 = Generate All Record Types
Selection Text: INTER = Interstate - w/wo Sub. Trib.
Selection Text: INTST = Interstate - Sub. Trib. Only
Selection Text: NFDIRALL = All Notas Fiscaís
Selection Text: NFDIRIN = Incoming Notas Fiscaís
Selection Text: NFDIROUT = Outgoing Notas Fiscaís
Selection Text: NORMAL = Normal File
Selection Text: ONLY74 = Generate Record Types 74 & 75
Selection Text: PRESSERV = Presentation Server (Local)
Selection Text: REC_56 = Create Record 56
Selection Text: REGIONS = Regions of Destination/Origin
Selection Text: TESTRUN = Test Run
Selection Text: TOTADJ = Total Adjustment File
Selection Text: WOUT74 = Do Not Generate Record Type 74
Selection Text: MATNR = D .
Title: Sintegra
Text Symbol: 101 = Output
Text Symbol: 102 = Regions and CFOPs
Text Symbol: 103 = Administrative Data
Text Symbol: 104 = Contents
Text Symbol: 105 = Reasons
Text Symbol: 106 = Record Type 53: NF Direction
Text Symbol: 107 = Record Type 56: Matl Selection
Text Symbol: 108 = Record Type 74: Matl Stock Selection
Text Symbol: 200 = Dataset
Text Symbol: 201 = Number of Records
Text Symbol: 202 = Total Number of Records
Text Symbol: 390 = Error list
Text Symbol: 400 = Number of Records per Record Type
INCLUDE J_1BLFA1_ACC.
No SAP DATABASE tables are accessed within this REPORT code!
J_1BREAD_BRANCH_DATA CALL FUNCTION 'J_1BREAD_BRANCH_DATA' EXPORTING branch = j5_brnch "branch code bukrs = j5_bukrs "company code IMPORTING address1 = address branch_data = branch_data cgc_number = cgc_number EXCEPTIONS OTHERS = 04.
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' "1598415 EXPORTING "1598415 logical_filename = gc_filename "1598415 CHANGING "1598415 physical_filename = file_a "1598415 EXCEPTIONS "1598415 logical_filename_not_found = 1 "1598415 validation_failed = 2 "1598415 OTHERS = 3. "1598415
J_1B_CFOP_GET_VERSION CALL FUNCTION 'J_1B_CFOP_GET_VERSION' EXPORTING land1 = address-country region = address-region date = j5_pdate-low IMPORTING cfoplength = cfop_length EXCEPTIONS date_missing = 1 version_not_found = 2 OTHERS = 3.
DATE_TO_PERIOD_CONVERT CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING i_date = rep_date_high i_periv = periv IMPORTING e_buper = buper e_gjahr = gjahr EXCEPTIONS input_false = 1 t009_notfound = 2 t009b_notfound = 3 OTHERS = 4.
J_1B_CHECK_NEW_PERIOD_CLOSING CALL FUNCTION 'J_1B_CHECK_NEW_PERIOD_CLOSING' EXPORTING i_bukrs = j5_bukrs i_lfgja = gjahr i_lfmon = buper+1(2) i_caller = in_68 EXCEPTIONS period_not_closed = 1 not_possible = 2 no_marv_for_bukrs = 3 only_mbew = 4 future_period = 5 OTHERS = 6.
MESSAGES_INITIALIZE CALL FUNCTION 'MESSAGES_INITIALIZE'.
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "1535079 EXPORTING "1535079 input = j5_nfeno-low "1535079 IMPORTING "1535079 output = j5_nfeno-low. "1535079
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "1535079 EXPORTING "1535079 input = j5_nfeno-high "1535079 IMPORTING "1535079 output = j5_nfeno-high. "1535079
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "1535079 EXPORTING "1535079 input = j5_serie-low "1535079 IMPORTING "1535079 output = j5_serie-low. "1535079
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "1535079 EXPORTING "1535079 input = j5_serie-high "1535079 IMPORTING "1535079 output = j5_serie-high. "1535079
CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' "1535079 EXPORTING "1535079 input = j5_serie-low "1535079 IMPORTING "1535079 output = j5_serie-low. "1535079
CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' "1535079 EXPORTING "1535079 input = j5_serie-high "1535079 IMPORTING "1535079 output = j5_serie-high. "1535079
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "1535079 EXPORTING "1535079 input = it_records-nfnum "1535079 IMPORTING "1535079 output = it_records-nfnum. "1535079
J_1B_NF_PARTNER_READ CALL FUNCTION 'J_1B_NF_PARTNER_READ' EXPORTING partner_type = j_1bnfdoc-partyp partner_id = j_1bnfdoc-parid partner_function = j_1bnfdoc-parvw doc_number = j_1bnfdoc-docnum IMPORTING parnad = parnad EXCEPTIONS OTHERS = 04.
MESSAGE_STORE CALL FUNCTION 'MESSAGE_STORE' EXPORTING arbgb = '8B' msgty = 'E' msgv1 = j_1bnflin-reftyp msgv2 = j_1bnflin-refkey msgv3 = j_1bnfdoc-nfnum msgv4 = j_1bnfstx-taxtyp txtnr = '456'.
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "1535079 EXPORTING "1535079 input = lv_nfenum "1535079 IMPORTING "1535079 output = it_records-nfnum. "1535079
MESSAGES_GIVE CALL FUNCTION 'MESSAGES_GIVE' TABLES t_mesg = t_mesg EXCEPTIONS OTHERS = 1.
MESSAGES_SHOW CALL FUNCTION 'MESSAGES_SHOW' EXPORTING corrections_option = ' ' corrections_func_text = ' ' object = text-390 EXCEPTIONS no_messages = 2.
ARCHIVFILE_SERVER_TO_CLIENT CALL FUNCTION 'ARCHIVFILE_SERVER_TO_CLIENT' EXPORTING path = file_a targetpath = file_p EXCEPTIONS error_file = 1 OTHERS = 2.
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' "1598415 EXPORTING "1598415 logical_filename = gc_filename "1598415 CHANGING "1598415 physical_filename = uv_file_a "1636464 EXCEPTIONS "1598415 logical_filename_not_found = 1 "1598415 validation_failed = 2 "1598415 OTHERS = 3. "1598415
J_1B_NF_PARTNER_READ CALL FUNCTION 'J_1B_NF_PARTNER_READ' EXPORTING partner_type = *j_1bnfdoc-partyp partner_id = *j_1bnfdoc-parid doc_number = *j_1bnfdoc-docnum partner_function = *j_1bnfdoc-parvw IMPORTING parnad = wa_parnad EXCEPTIONS OTHERS = 04.
J_1B_NF_PARTNER_READ CALL FUNCTION 'J_1B_NF_PARTNER_READ' EXPORTING partner_type = j_1bnfdoc-partyp partner_id = j_1bnfdoc-parid partner_function = j_1bnfdoc-parvw doc_number = j_1bnfdoc-docnum IMPORTING parnad = parnad EXCEPTIONS OTHERS = 04.
J_1B_NF_VALUE_DETERMINATION CALL FUNCTION 'J_1B_NF_VALUE_DETERMINATION' EXPORTING nf_header = j_1bnfdoc IMPORTING ext_header = wk_indoc TABLES nf_item = wk_lin nf_item_tax = wk_stx EXCEPTIONS OTHERS = 1.
T134M_SINGLE_READ CALL FUNCTION 'T134M_SINGLE_READ' EXPORTING t134m_bwkey = plants-low "#EC DOM_EQUAL t134m_mtart = material-mtart IMPORTING wt134m = is_t134m EXCEPTIONS not_found = 1 OTHERS = 2.
MBEW_SINGLE_READ CALL FUNCTION 'MBEW_SINGLE_READ' EXPORTING matnr = material-matnr bwkey = plants-low "#EC DOM_EQUAL bwtar = space IMPORTING wmbew = mbew EXCEPTIONS lock_on_mbew = 1 lock_system_error = 2 wrong_call = 3 not_found = 4 OTHERS = 5.
J_1B_READ_MBEW_MBEWH CALL FUNCTION 'J_1B_READ_MBEW_MBEWH' EXPORTING i_mbew = mbew IMPORTING e_mbew = mbew e_mbewh = mbewh EXCEPTIONS no_selection = 1 OTHERS = 2.
KNA1_SINGLE_READ CALL FUNCTION 'KNA1_SINGLE_READ' EXPORTING kna1_kunnr = it_consig_summe-parid IMPORTING wkna1 = ls_kna1 EXCEPTIONS not_found = 1 OTHERS = 2.
LFA1_SINGLE_READ CALL FUNCTION 'LFA1_SINGLE_READ' EXPORTING lfa1_lifnr = it_consig_summe-parid IMPORTING wlfa1 = ls_lfa1 EXCEPTIONS not_found = 1 OTHERS = 2.
J_1B_READ_MSKU_MSKUH CALL FUNCTION 'J_1B_READ_MSKU_MSKUH' EXPORTING i_msku = it_msku IMPORTING e_msku = it_msku EXCEPTIONS no_selection = 1 OTHERS = 2.
J_1B_READ_MSLB_MSLBH CALL FUNCTION 'J_1B_READ_MSLB_MSLBH' EXPORTING i_mslb = it_mslb IMPORTING e_mslb = it_mslb EXCEPTIONS no_selection = 1 OTHERS = 2.
J_1B_READ_MKOL_MKOLH CALL FUNCTION 'J_1B_READ_MKOL_MKOLH' EXPORTING i_mkol = it_mkol IMPORTING e_mkol = it_mkol EXCEPTIONS no_selection = 1 OTHERS = 2.
MBEW_SINGLE_READ * CALL FUNCTION 'MBEW_SINGLE_READ' * EXPORTING * matnr = it_product-matnr * bwkey = plants-low "#EC DOM_EQUAL * bwtar = space * IMPORTING * wmbew = mbew * EXCEPTIONS * lock_on_mbew = 1 * lock_system_error = 2 * wrong_call = 3 * not_found = 4 * OTHERS = 5.
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 J_1BLFA1 or its description.