Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class YCLITC_PRINTED_FORM_WWW definition
- public
- inheriting from YCLITC_PRINTED_FORM_TEMPLATE
- create public .
- *"* public components of class YCLITC_PRINTED_FORM_WWW
- *"* do not include other source files here!!!
- public section.
- methods CONSTRUCTOR
- importing
- !I_FORM_NAME type YSITC_PRINTED_FORM_PARAMS-FORM_NAME
- !IT_VALUES type YTTITC_PRINTED_FORM_VALUES
- !IT_FILES type YTTITC_PRINTED_FORM_FILES optional .
- protected section.
- *"* protected components of class YCLITC_PRINTED_FORM_WWW
- *"* do not include other source files here!!!
- types:
- TT_MIME type standard table of W3MIME .
- methods READ_TEMPLATE
- redefinition .
- private section.
- *"* private components of class YCLITC_PRINTED_FORM_WWW
- *"* do not include other source files here!!!
- ENDCLASS.
- CLASS YCLITC_PRINTED_FORM_WWW IMPLEMENTATION.
- * <SIGNATURE>---------------------------------------------------------------------------------------+
- * | Instance Public Method YCLITC_PRINTED_FORM_WWW->CONSTRUCTOR
- * +-------------------------------------------------------------------------------------------------+
- * | [--->] I_FORM_NAME TYPE YSITC_PRINTED_FORM_PARAMS-FORM_NAME
- * | [--->] IT_VALUES TYPE YTTITC_PRINTED_FORM_VALUES
- * | [--->] IT_FILES TYPE YTTITC_PRINTED_FORM_FILES(optional)
- * +--------------------------------------------------------------------------------------</SIGNATURE>
- method CONSTRUCTOR.
- CALL METHOD SUPER->CONSTRUCTOR
- EXPORTING
- IT_VALUES = IT_VALUES
- IT_FILES = IT_FILES.
- Call method Set_Parameters
- exporting
- I_FORM_NAME = I_FORM_NAME.
- endmethod.
- * <SIGNATURE>---------------------------------------------------------------------------------------+
- * | Instance Protected Method YCLITC_PRINTED_FORM_WWW->READ_TEMPLATE
- * +-------------------------------------------------------------------------------------------------+
- * | [--->] IS_PARAMETERS TYPE YSITC_PRINTED_FORM_PARAMS
- * | [<---] ES_DATA TYPE YSITC_PRINTED_FORM_DATA
- * | [EXC!] FILE_NOT_FOUND
- * +--------------------------------------------------------------------------------------</SIGNATURE>
- method READ_TEMPLATE.
- Data:
- Ext type string,
- w_Key type WWWDATATAB,
- l_SUBRC type SY-SUBRC.
- w_Key-RELID = 'MI'.
- w_Key-OBJID = IS_PARAMETERS-FORM_NAME.
- Call method YCLITC_PRINTED_FORM=>READ_WWW_OBJECT
- exporting
- I_KEY = w_Key
- importing
- E_FILE_DATA = ES_DATA-FILE_TEMPLATE
- * E_MIME_TYPE =
- * E_FILE_SIZE = ES_DATA-FILE_TEMPLATE_SIZE
- E_FILE_EXT = Ext
- ** E_SUBRC = l_SUBRC.
- exceptions
- FILE_NOT_FOUND = 1
- ERROR = 2
- others = 99.
- ES_DATA-FILE_TEMPLATE_EXT = Ext.
- endmethod.
- ENDCLASS.
Add Comment
Please, Sign In to add comment