SAP Reports / Programs | Financial Accounting | General Ledger Accounting(FI-GL) SAP FI

RFASLD20 SAP ABAP Report - EC Sales List in Data Medium Exchange Format







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


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 RFASLD20. "Basic submit
SUBMIT RFASLD20 AND RETURN. "Return to original report after report execution complete
SUBMIT RFASLD20 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: 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.





Text Symbol: 227 = that the information contained on the magnetic medium
Text Symbol: 226 = the assujetti named in the joint list, I declare
Text Symbol: 010 = Reportg Quarter
Text Symbol: 011 = /
Text Symbol: 012 = Reporting Period
Text Symbol: 020 = VAT no.
Text Symbol: 030 = Name
Text Symbol: 031 = Nomination
Text Symbol: 040 = Period
Text Symbol: 041 = Q/year
Text Symbol: 050 = Number
Text Symbol: 051 = Customers
Text Symbol: 060 = Total amount
Text Symbol: 070 = Contract A/R + A/P
Text Symbol: 080 = Exchange rate
Text Symbol: 129 = Print parameter(message)
Text Symbol: 130 = Print control
Text Symbol: 201 = Quarter delivery list of
Text Symbol: 202 = Free intracommunity goods and
Text Symbol: 203 = Similar operations
Text Symbol: 204 = -------------------------
Text Symbol: 205 = Magnetic medium containing
Text Symbol: 206 = One list
Text Symbol: 207 = More lists
Text Symbol: 208 = Accompanying note
Text Symbol: 209 = Name and addrs of
Text Symbol: 210 = VAT number
Text Symbol: 211 = Contactperson
Text Symbol: 212 = Phone number
Text Symbol: 213 = Period of the data contained on the list:
Text Symbol: 214 = Number of customers on the list:
Text Symbol: 215 = Total amount of the list ( &waer ) :
Text Symbol: 216 = Certify honest and true,
Text Symbol: 217 = Date
Text Symbol: 218 = Signature
Text Symbol: 219 = (Name and quality)
Text Symbol: 220 = of the declarant
Text Symbol: 221 = of the person who made the
Text Symbol: 222 = magnetic medium





Text Symbol: 223 = Number of lists contained on the magnetic medium
Text Symbol: 225 = With the agreement that has been given to me by,


INCLUDES used within this REPORT RFASLD20

INCLUDE RFASLIDD.
INCLUDE RFASLIDD2. "NOTE 855291
INCLUDE RFASLALV.
INCLUDE RFASLI00.


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:

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'.

FOT_CREATE_ITABS



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.



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 RFASLD20 or its description.