J_1BLB02 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 Brazilian Legal Book 'Registro de Saídas' (Modelo 2)...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_1BLB02 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_LB02 - Modelo 2
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: ZFMANAUS = Z.F. de Manaus (Tax Region)
Selection Text: QUINZENA = Fifteen Days
Selection Text: MES = Month
Selection Text: LEGAL = Legal Format
Selection Text: INCL_SRV = Services with CFOP Code
Selection Text: FIRSTPAG = First Page Number
Selection Text: DECENDIO = Ten Days
Selection Text: BOOKSIZE = Pages Per Book
Selection Text: ACC = List Display
Title: List of Outgoing Documents
Text Symbol: 399 = Base:
Text Symbol: 398 = ICST:
Text Symbol: 396 = Totais ICMS:
Text Symbol: 395 = Subtotal ICMS:
Text Symbol: 393 = 7.00 Saídas e/ou Prestações de Serviços para o Exterior
Text Symbol: 392 = 6.00 Saídas e/ou Prestações de Serviços para Outros Estados
Text Symbol: 391 = 5.00 Saídas e/ou Prestações de Serviços para o Estado
Text Symbol: 390 = Resumo Mensal de Operações e Prestações por Código Fiscal ICMS
Text Symbol: 385 = Total geral
Text Symbol: 382 = mes
Text Symbol: 381 = quinzena
Text Symbol: 380 = decêndio
Text Symbol: 366 = Valor do Imposto por Sub. Tribut.
Text Symbol: 365 = Base de Cálculo
Text Symbol: 364 = Valor Contábil
Text Symbol: 363 = VF
Text Symbol: 362 = Operações realizadas com não contribuintes
Text Symbol: 361 = Operações realizadas com contribuintes
Text Symbol: 360 = Demonstrativo por Estado de Destino da Mercadoria ou da Prestação do Serviço - ICMS
Text Symbol: 350 = Registro de Saídas (Modelo 2) - Errorlist
Text Symbol: 400 = Errorlist
Text Symbol: 401 = BOOK OF ISSUES - BI - MODELO P2
Text Symbol: 402 = Demonstrative per State of Destination of Goods or Services - ICMS
Text Symbol: 403 = Monthly Resume of Operations and Provisions per ICMS Fiscal Code
Text Symbol: 404 = 5.00 Issues and/or Provisions of Services for the Same State
Text Symbol: 405 = 6.00 Issues and/or Provisions of Services for Other States
Text Symbol: 406 = 7.00 Issues and/or Provisions of Services for Abroad
Text Symbol: 407 = Abbreviations in Column 'Observations':
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
J_1BREAD_BRANCH_DATA call function 'J_1BREAD_BRANCH_DATA' exporting branch = j5_brnch bukrs = j5_bukrs importing * address = branch_data = branch_data cgc_number = cgc_number address1 = address1 exceptions others = 04.
J_1B_CFOP_GET_VERSION CALL FUNCTION 'J_1B_CFOP_GET_VERSION' EXPORTING LAND1 = address1-country REGION = address1-region date = j5_pdate-low IMPORTING VERSION = cfop_version EXTENSION = ext_len CFOPLENGTH = cfop_length EXCEPTIONS DATE_MISSING = 1 VERSION_NOT_FOUND = 2 OTHERS = 3.
MESSAGES_INITIALIZE call function 'MESSAGES_INITIALIZE'.
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "1478473 EXPORTING "1478473 input = j5_nfeno-low "1478473 IMPORTING "1478473 output = j5_nfeno-low. "1478473
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "1478473 EXPORTING "1478473 input = j5_nfeno-high "1478473 IMPORTING "1478473 output = j5_nfeno-high. "1478473
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "1478473 EXPORTING "1478473 input = j5_serie-low "1478473 IMPORTING "1478473 output = j5_serie-low. "1478473
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "1478473 EXPORTING "1478473 input = j5_serie-high "1478473 IMPORTING "1478473 output = j5_serie-high. "1478473
CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' "1478473 EXPORTING "1478473 input = j5_serie-low "1478473 IMPORTING "1478473 output = j5_serie-low. "1478473
CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' "1478473 EXPORTING "1478473 input = j5_serie-high "1478473 IMPORTING "1478473 output = j5_serie-high. "1478473
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'.
MESSAGE_STORE call function 'MESSAGE_STORE' "NFE exporting "NFE arbgb = '8B' "NFE msgty = 'E' "NFE msgv1 = j_1bnflin-reftyp "NFE msgv2 = j_1bnflin-refkey "NFE msgv3 = j_1bnfdoc-nfenum "NFE msgv4 = j_1bnfstx-taxtyp "NFE txtnr = '456'. "NFE
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-400 exceptions no_messages = 2.
CONVERSION_EXIT_ALPHA_INPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT' "1478473 EXPORTING "1478473 input = ls_nfegaps-nfenum "1478473 IMPORTING "1478473 output = key-nfenum. "1478473
CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' "1478473 EXPORTING "1478473 input = corr-series "1478473 IMPORTING "1478473 output = corr-series. "1478473
CONVERSION_EXIT_ALPHA_OUTPUT CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT' "1478473 EXPORTING "1478473 input = formout-series "1478473 IMPORTING "1478473 output = formout-series. "1478473
J_1B_NF_NUMBER_CONDENSE call function 'J_1B_NF_NUMBER_CONDENSE' exporting nf_number = j_1bnfdoc-nfnum series = j_1bnfdoc-series nf_number9 = j_1bnfdoc-nfenum "NFE importing ref_number = ref_number exceptions others = 1.
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_1BLB02 or its description.