SAP Reports / Programs | Sales and Distribution | POS Interface(SD-POS) SAP SD

SELECTION SAP ABAP INCLUDE - documentation and ABAP source code







SELECTION is a standard ABAP INCLUDE available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter SELECTION 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 SELECTION. "Basic submit
SUBMIT SELECTION AND RETURN. "Return to original report after report execution complete
SUBMIT SELECTION VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


INCLUDES used within this REPORT SELECTION

No INCLUDES are used within this REPORT code!


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:

LOCATIONS_FOR_DOWNLOAD CALL FUNCTION 'LOCATIONS_FOR_DOWNLOAD' EXPORTING PI_DATUM_VON = P_DAT_V PI_DATUM_BIS = P_DAT_B * pi_kunnr = TABLES T_T001W_VALID = IT_T001W_VALID " not needed T_T001W_ALL = IT_T001W_ALL T_WRF1_VALID = IT_WRF1_VALID " not needed T_KUNNR = S_STORE T_VKORG = S_VKORG T_VTWEG = S_VTWEG EXCEPTIONS NOT_FOUND = 1 NO_VALID_LOCATIONS = 2 INVALID_PARAMETER = 3 NO_LOCATIONS = 4 OTHERS = 5.

CLFC_LEGAL_OBJECT_IN_CLASS CALL FUNCTION 'CLFC_LEGAL_OBJECT_IN_CLASS' EXPORTING CLASS = S_CLASS CLASS_TYPE = S_CLTYPE OBJECT = L_CL_OBJECT EXCEPTIONS CLASS_NOT_FOUND = 1 OBJECT_IN_CLASS = 2 OBJECT_NOT_IN_CLASS = 3 OTHERS = 4.

POS_CUST_SAL_DOC_CONTROL_READ CALL FUNCTION 'POS_CUST_SAL_DOC_CONTROL_READ' EXPORTING I_LOCNR = IIDOC_TAB-SNDPRN IMPORTING O_TWPIR = ITEM_TWPIR EXCEPTIONS NO_ENTRY_FOUND = 1 FILIALE_UNBEKANNT = 2 OTHERS = 3.

POS_CUST_CONDITIONS_CONVERT CALL FUNCTION 'POS_CUST_CONDITIONS_CONVERT' EXPORTING I_LOCNR = IIDOC_TAB-SNDPRN I_SCODE = ITEM_TWPIR-KSCHL IMPORTING O_PCODE = T_VALIDENT-KSCHL O_SCODE = ITEM_TWPIR-KSCHL EXCEPTIONS FILIALE_UNBEKANNT = 1 KOMM_PROFIL_UNBEKANNT = 2 UMSCHL_REGEL_UNBEKANNT = 3 UMSCHL_PARAMETER_UNBEKANNT = 4 OTHERS = 5.

EDI_DOCUMENT_OPEN_FOR_READ CALL FUNCTION 'EDI_DOCUMENT_OPEN_FOR_READ' EXPORTING DOCUMENT_NUMBER = IIDOC_TAB-DOCNUM EXCEPTIONS DOCUMENT_FOREIGN_LOCK = 1 DOCUMENT_NOT_EXIST = 2 DOCUMENT_NUMBER_INVALID = 3 OTHERS = 4.

EDI_SEGMENTS_GET_ALL CALL FUNCTION 'EDI_SEGMENTS_GET_ALL' EXPORTING DOCUMENT_NUMBER = IIDOC_TAB-DOCNUM TABLES IDOC_CONTAINERS = T_IDOCDATA EXCEPTIONS DOCUMENT_NUMBER_INVALID = 1 END_OF_DOCUMENT = 2 OTHERS = 3.

EDI_DOCUMENT_CLOSE_READ CALL FUNCTION 'EDI_DOCUMENT_CLOSE_READ' EXPORTING DOCUMENT_NUMBER = IIDOC_TAB-DOCNUM EXCEPTIONS DOCUMENT_NOT_OPEN = 1 PARAMETER_ERROR = 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 SELECTION or its description.