RFASLD20 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 the EC sales list in DME format...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 RFASLD20 into the relevant SAP transactions such as SE38 or SE80
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: PAR_BSET = Base amount from tax items
Selection Text: PAR_CONV = Convert Amounts
Selection Text: PAR_DEL = Select Goods Delivery
Selection Text: PAR_DEST = RFC Destination
Selection Text: PAR_DME = Creation of DME File
Selection Text: PAR_DOWN = Display Down Payments
Selection Text: PAR_ELE = Electronic Transmission
Selection Text: PAR_EPOS = Line item display
Selection Text: PAR_EXDT = Translation Date
Selection Text: PAR_EXTY = Exchange Rate Type
Selection Text: PAR_FICA = Data from Contract A/R and A/P
Selection Text: PAR_JAHR = Reporting year
Selection Text: PAR_JAMO = Reporting Year of Calendar Mth
Selection Text: PAR_KNA1 = Read VAT No from Master Record
Selection Text: PAR_LSEP = Separate list
Selection Text: TREE_ID = DMEE Format Tree
Selection Text: SEL_VTDT = Tax Reporting Date
Selection Text: SEL_UKRS = Taxes on Sales/Purchases Group
Selection Text: SEL_MWKZ = Output Tax Code
Selection Text: SEL_LSTM = Reporting country
Selection Text: P_FICAEP = Line Item Transfer
Selection Text: P_BYVTDT = Tax Reporting Date Selection
Selection Text: P_BYBUDT = Posting Date Selection
Selection Text: PAR_UNIX = File name in file system
Selection Text: PAR_SRV = Select Service
Selection Text: PAR_SIGN = Separation by +/- Sign
Selection Text: PAR_QUAR = Reporting quarter
Selection Text: PAR_MONA = Reporting Period
Selection Text: PAR_MIKF = Print microfiche line
Title: EC Sales List in Data Medium Exchange Format
Text Symbol: B11 = NInt
Text Symbol: B10 = Order
Text Symbol: 240 = Additional Parameters
Text Symbol: 233 = is taken by the assujetti named on the joint list.
Text Symbol: 232 = contained on the magnetic medium. This responsibility
Text Symbol: 231 = responsibility for the validity of the information
Text Symbol: 230 = With this letter I declare that I take no
Text Symbol: 228 = is honest and true.
INCLUDE RFASLIDD.
INCLUDE RFASLIDD2. "NOTE 855291
INCLUDE RFASLALV.
INCLUDE RFASLI00.
No SAP DATABASE tables are accessed within this REPORT code!
SET_ARROW_ICON CALL FUNCTION 'SET_ARROW_ICON' "822130 EXPORTING "822130 i_parameter = gd_sappar "822130 i_icon_text = text-240 "822130 IMPORTING "822130 e_arrow_icon = fbutton. "822130
DIC2DYN CALL FUNCTION 'DIC2DYN' "822130 EXPORTING "822130 i_saptabname = gs_dmee_tree_head-param_struc "822130 i_tittext = text-240 "822130 CHANGING "822130 c_sapentries = gd_sappar. "822130
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename parameter_1 = sy-cprog CHANGING physical_filename = par_unix EXCEPTIONS OTHERS = 1.
AUTHORITY_CHECK_DATASET CALL FUNCTION 'AUTHORITY_CHECK_DATASET' "1063617 EXPORTING "1063617 ACTIVITY = 'WRITE' "1063617 FILENAME = ld_auth_filename "1063617 EXCEPTIONS "1063617 NO_AUTHORITY = 1 "1063617 OTHERS = 4. "1063617
AUTHORITY_CHECK_DATASET CALL FUNCTION 'AUTHORITY_CHECK_DATASET' "1572394 EXPORTING "1572394 ACTIVITY = 'WRITE' "1572394 FILENAME = ld_auth_filename "1572394 PROGRAM = ld_program "1572394 EXCEPTIONS "1572394 NO_AUTHORITY = 1 "1572394 OTHERS = 4. "1572394
DMEE_START call function 'DMEE_START' EXPORTING i_tree_type = tree_typ i_tree_id = tree_id item = epost param = param uparam = gd_sappar "822130 TABLES file_output = output SORT_FIELDS = sort_fields.
TAX_REP_SORT_DMEE_TABLE CALL FUNCTION 'TAX_REP_SORT_DMEE_TABLE' TABLES T_ITEM = t_epost T_DME_SORTFIELDS = sort_fields.
DMEE_PUT_ITEM call function 'DMEE_PUT_ITEM' EXPORTING item = epost PARAM = param uparam = gd_sappar "822130 TABLES file_output = output.
DMEE_END call function 'DMEE_END' EXPORTING "822130 uparam = gd_sappar "822130 IMPORTING "1155832 e_xml = gd_xml "1155832 TABLES file_output = output.
FI_PAYM_FILE_WRITE CALL FUNCTION 'FI_PAYM_FILE_WRITE' TABLES T_LINES = output.
FI_FILE_CLOSE CALL FUNCTION 'FI_FILE_CLOSE'.
FILE_VALIDATE_NAME CALL FUNCTION 'FILE_VALIDATE_NAME' EXPORTING logical_filename = gc_filename parameter_1 = sy-cprog CHANGING physical_filename = par_unix EXCEPTIONS OTHERS = 1.
FI_PAYM_FILE_OPEN CALL FUNCTION 'FI_PAYM_FILE_OPEN' EXPORTING I_TEMSE_NAME = space I_FILE_NAME = file_name.
ID_FOT_OUTPUT_DECLARATION CALL FUNCTION 'ID_FOT_OUTPUT_DECLARATION' EXPORTING id_par_corr = parpcorr TABLES tab_itab = comp_epost CHANGING ct_fotdeclsta = gt_fotdeclsta ct_fottbukrs = gt_fottbukrs ct_decl_help = gt_decl_help EXCEPTIONS NOT_UPDATED = 7.
FOT_ENQUEUE_DECLSTA CALL FUNCTION 'FOT_ENQUEUE_DECLSTA' EXPORTING it_fotdeclsta = gt_fotdeclsta id_enqmod = 'DEQ'.
CALL FUNCTION 'FOT_CREATE_ITABS' EXPORTING it_bukrs_umkrs = it_bukrs_umkrs id_decl_type = 0002 id_flag_umkrs = l_flag_umkrs IMPORTING et_fotdeclsta = gt_fotdeclsta et_decl_help = gt_decl_help et_fottbukrs = gt_fottbukrs.
FOT_CHECK_DECLSTA CALL FUNCTION 'FOT_CHECK_DECLSTA' EXPORTING it_fotdeclsta = gt_fotdeclsta id_par_corr = parpcorr.
FOT_ENQUEUE_DECLSTA CALL FUNCTION 'FOT_ENQUEUE_DECLSTA' EXPORTING it_fotdeclsta = gt_fotdeclsta id_enqmod = 'CHK'.
FM_MODIFY_ECSALES CALL FUNCTION 'FM_MODIFY_ECSALES' "1428597 EXPORTING "1428597 dmee_tree_id = tree_id "1428597 TABLES "1428597 t_epost = t_epost[]. "1428597
DMEE_GET_XML_DATA CALL FUNCTION 'DMEE_GET_XML_DATA' IMPORTING e_document = xml_doc_p e_xmlsize = ld_size TABLES t_xmltable = dummy_table.
SDIXML_DOM_TO_XML CALL FUNCTION 'SDIXML_DOM_TO_XML' EXPORTING document = xml_doc_p pretty_print = 'X' IMPORTING xml_as_string = xml_x EXCEPTIONS no_document = 1 OTHERS = 2.
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 RFASLD20 or its description.