How to include recording in the program
Hello Experts,
I had recorded a transaction f-27 in shdb with name zrec , I had one zprogram in that i had written some logic. Now I want to include the recording(zrec) in zprogram . so please kindly guide me.
And also please tell me when we need to go for call trans and when we need session method.
Thank you so much for all the replies
Hi,
Please go to SHDB . select the recording, click on PROGRAM button.Give program name . Select radio button "Transfer From Recording".
Then a code is displayed in the next window.
Copy the code necessary from recording into your program.I.e internal table declaration , perform stmts and , Form endform stmts.
CALL TRANSACTION
1) When less number of records i.e < 25000 records are there.
2) When client requires explicit error file handling.
3) when the process must be very fast.
SESSION:
1) Background processing and scheduling are to be done.
2) Large volumes of data is handled.
3) Multiple transactions are to be handled.
Reward points if helpful.
Thanks and Regards.
Similar Messages
-
How to include body of the mail along with attachment using the below FM
Hi All,
I am using the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' to generate an e-mail with excel file as attachment. Can you please let me know how to include body of the e-mail along with this attachment.
Thanks & Regards
Gowthamihi,
see this code
TABLES: apqi. "Queue info definition
TYPES DECLARATION
*& Global Types
TYPE-POOLS: slis, "Type for alv list
sx. "SAP connect
TYPE-POOLS: list.
*& Types
TYPES: BEGIN OF s_itab_apqi.
INCLUDE STRUCTURE apqi.
TYPES: END OF s_itab_apqi.
INTERNAL TABLE / WORK AREA DECLARATION *
*& For email attachment
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: it_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
it_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE ,
it_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE ,
it_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE ,
it_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE .
DATA: v_cnt TYPE i ,
v_sent_all(1) TYPE c ,
v_doc_data LIKE sodocchgi1 ,
gd_error TYPE sy-subrc ,
gd_reciever TYPE sy-subrc .
DATA: p_email TYPE somlreci1-receiver
VALUE 'mail id here of the reciever'.
*& Variable for attachment name
DATA: v_attach(12).
*& Internal table to get data from apqi table
table here
DATA: ws_line TYPE slis_listheader.
DATA: it_list_top_of_page TYPE slis_t_listheader.
CONSTANTS : v_formname_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE'.
VARIABLE DECLARATION
DATA: v_colpos TYPE i.
DATA: v_transcnt(10) TYPE c,
v_transcnte(10) TYPE c,
v_transcntf(10) TYPE c,
v_msgcnt(10) TYPE c,
v_qid(20) TYPE c.
DATA v_tot_rec(3) TYPE n.
DATA :v_date(10) TYPE c,
v_time(8) TYPE c .
DATA: v_fromdate(10) .
DATA: v_todate(10) .
SELCTION SCREEN
SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-015.
PARAMETERS:
SELECTION-SCREEN END OF BLOCK blk1.
AT SELCTION SCREEN
AT SELECTION-SCREEN.
IF p_dfrom IS INITIAL AND
NOT p_dato IS INITIAL.
MESSAGE e000(zp) WITH text-020.
ENDIF.
START OF SELECTION
START-OF-SELECTION.
*& To get data from APQI table into internal table
PERFORM populate_itab.
**To Populate table with details to be entered into .xls file
PERFORM build_xls_data_table.
END OF SELECTION
END-OF-SELECTION.
*& To display ALV list when IT_APQI is not initial
IF NOT it_apqi[] IS INITIAL.
*&-- Send an Notification email
PERFORM send_email .
*&--To populate fields for ALV
PERFORM build_fieldcat .
PERFORM build_eventcat .
PERFORM e04_comment_build USING it_list_top_of_page[].
PERFORM build_layout .
PERFORM build_sortcat .
PERFORM start_list_viewer.
ELSE.
*&-- If no record exists in IT_APQI internal table then message is displayed
MESSAGE s000(zp) WITH text-021.
ENDIF.
FORMS **********************************
populate itab here -
*& Form BUILD_FIELDCAT
FORM build_fieldcat .
ENDFORM. " BUILD_FIELDCAT
*& Form BUILD_EVENTCAT
FORM build_eventcat .
DATA: v_header(25) .
CONCATENATE 'ZPIPY016' p_dfrom p_dato INTO v_header.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = it_eventcat[]
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
READ TABLE it_eventcat WITH KEY name = slis_ev_top_of_page
INTO wa_eventcat.
IF sy-subrc = 0.
MOVE v_formname_top_of_page TO wa_eventcat-form.
APPEND wa_eventcat TO it_eventcat.
ENDIF.
ENDFORM. " BUILD_EVENTCAT
*& Form BUILD_LAYOUT
FORM build_layout .
ws_layout-no_keyfix = 'X'.
ws_layout-group_buttons = 'X'.
ws_layout-colwidth_optimize = 'X'.
ENDFORM. " BUILD_LAYOUT
*& Form BUILD_SORTCAT
FORM build_sortcat .
CLEAR wa_sortcat.
CLEAR v_colpos.
ENDFORM. " BUILD_SORTCAT
*& Form START_LIST_VIEWER
FORM start_list_viewer .
DATA: ws_pgm LIKE sy-repid.
*& To Display ALV list
ws_pgm = sy-repid.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = ws_pgm
is_layout = ws_layout
it_fieldcat = it_fieldcat
it_sort = it_sortcat
i_save = 'A'
it_events = it_eventcat
TABLES
t_outtab = it_apqi
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. " START_LIST_VIEWER
*& Form BUILD_XLS_DATA_TABLE
FORM build_xls_data_table .
CLASS cl_abap_char_utilities DEFINITION LOAD.
CONSTANTS: con_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
*& To populate it_attach table to be send as email.
CONCATENATE 'Error of transaction SM35' ' '
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
*& To gettotal number of error records
DESCRIBE TABLE it_apqi LINES v_tot_rec .
CONCATENATE 'Number of Errors = ' v_tot_rec
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
CONCATENATE text-001
text-002
text-003
text-004
text-005
text-006
text-007
text-008
text-009
text-010
text-011
text-012
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
*& To populate it_attach from it_apqi
LOOP AT it_apqi INTO wa_apqi.
*& To get the date format in DD/MM/YYYY
WRITE wa_apqi-credate TO v_date DD/MM/YYYY.
*& To get time format in hh:mm:ss.
v_time = wa_apqi-cretime.
CONCATENATE v_time(2) ':' v_time2(2) ':' v_time4(2) INTO v_time.
v_transcnt = wa_apqi-transcnt.
v_transcnte = wa_apqi-transcnte.
v_transcntf = wa_apqi-transcntf.
v_msgcnt = wa_apqi-msgcnt.
v_qid = wa_apqi-qid.
CONCATENATE wa_apqi-groupid wa_apqi-creator
wa_apqi-qstate v_date
v_time wa_apqi-progid
wa_apqi-userid v_transcnt
v_transcnte v_transcntf
v_msgcnt v_qid
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach .
CLEAR it_attach .
CLEAR: v_transcnt ,
v_transcnte,
v_transcntf,
v_msgcnt ,
v_qid ,
v_date ,
v_time .
ENDLOOP.
ENDFORM . " BUILD_XLS_DATA_TABLE
*& Form POPULATE_EMAIL_MESSAGE_BODY
FORM populate_email_message_body .
REFRESH it_message.
it_message = 'message here'.
APPEND it_message.
CLEAR it_message.
ENDFORM. " POPULATE_EMAIL_MESSAGE_BODY
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
FORM send_file_as_email_attachment TABLES pit_message
pit_attach
USING p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
CHANGING p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
ld_email = p_email .
ld_mtitle = p_mtitle .
ld_format = p_format .
ld_attdescription = p_attdescription.
ld_attfilename = p_filename .
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
v_doc_data-doc_size = 1.
Populate the subject/generic message attributes
v_doc_data-obj_langu = sy-langu.
v_doc_data-obj_name = 'SAPRPT'.
v_doc_data-obj_descr = ld_mtitle .
v_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR v_doc_data.
READ TABLE it_attach INDEX v_cnt.
v_doc_data-doc_size =
( v_cnt - 1 ) * 255 + STRLEN( it_attach ).
v_doc_data-obj_langu = sy-langu.
v_doc_data-obj_name = 'SAPRPT'.
v_doc_data-obj_descr = ld_mtitle.
v_doc_data-sensitivty = 'F'.
CLEAR it_attachment.
REFRESH it_attachment.
it_attachment[] = pit_attach[].
Describe the body of the message
CLEAR it_packing_list.
REFRESH it_packing_list.
it_packing_list-transf_bin = space.
it_packing_list-head_start = 1.
it_packing_list-head_num = 0.
it_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES it_packing_list-body_num.
it_packing_list-doc_type = 'RAW'.
APPEND it_packing_list.
Create attachment notification
it_packing_list-transf_bin = 'X'.
it_packing_list-head_start = 1.
it_packing_list-head_num = 1.
it_packing_list-body_start = 1.
DESCRIBE TABLE it_attachment LINES it_packing_list-body_num.
it_packing_list-doc_type = ld_format.
it_packing_list-obj_descr = ld_attdescription.
it_packing_list-obj_name = ld_attfilename.
it_packing_list-doc_size = it_packing_list-body_num * 255.
APPEND it_packing_list.
Add the recipients email address
CLEAR it_receivers.
REFRESH it_receivers.
it_receivers-receiver = ld_email.
it_receivers-rec_type = 'U'.
it_receivers-com_type = 'INT'.
it_receivers-notif_del = 'X'.
it_receivers-notif_ndel = 'X'.
APPEND it_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = v_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = v_sent_all
TABLES
packing_list = it_packing_list
contents_bin = it_attachment
contents_txt = it_message
receivers = it_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT it_receivers.
ld_receiver = it_receivers-retrn_code.
ENDLOOP.
ENDFORM. " SEND_FILE_AS_EMAIL_ATTACHMENT
*& Form SEND_EMAIL
FORM send_email .
Populate message body text
PERFORM populate_email_message_body.
PERFORM send_file_as_email_attachment
TABLES it_message
it_attach
USING p_email
'Error Sessions from SM35'
'XLS'
'filename'
v_attach
CHANGING gd_error
gd_reciever.
ENDFORM. " SEND_EMAIL
*& Form E04_COMMENT_BUILD
text
-->E04_LT_TOP_OF_PAGE text
FORM e04_comment_build USING lt_top_of_page TYPE slis_t_listheader.
CLEAR: v_fromdate,
v_todate.
WRITE p_dfrom TO v_fromdate DD/MM/YYYY.
WRITE p_dato TO v_todate DD/MM/YYYY.
*& To write header in ALV list
*& Program name
CLEAR ws_line.
ws_line-typ = 'H'.
ws_line-info = text-016.
APPEND ws_line TO lt_top_of_page.
CLEAR ws_line.
ws_line-typ = 'S'.
ws_line-key = text-018.
ws_line-info = v_tot_rec.
APPEND ws_line TO lt_top_of_page.
*& Date from
CLEAR ws_line.
ws_line-typ = 'S'.
ws_line-key = text-050.
ws_line-info = v_fromdate.
APPEND ws_line TO lt_top_of_page.
*& Date to
CLEAR ws_line.
ws_line-typ = 'S'.
ws_line-key = text-051.
ws_line-info = v_todate.
APPEND ws_line TO lt_top_of_page.
ENDFORM. "E04_COMMENT_BUILD
FORM TOP_OF_PAGE *
FORM top_of_page.
*& To write Heading in Top of page
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_list_top_of_page.
ENDFORM. "TOP_OF_PAGE
thanks -
When I upgraded from v4 to v5 my bookmarks was lost. I do have the one that is in the firefox toolbar. Apparently I had a bookmarks add-on. V5 changed my browser how can I determine what the program was and if the bookmarks are still there?
Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Websites remembering you and automatically log you in is stored in a cookie.
*Create an allow Cookie Exception to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
*Tools > Options > Privacy > Cookies: Exceptions
In case you are using "Clear history when Firefox closes":
*do not clear Cookies
*do not clear Site Preferences
*Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
*https://support.mozilla.org/kb/Clear+Recent+History
Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
Clearing cookies will remove all specified (selected) cookies including cookies that have an allow exception and cookies from plugins. -
How to make records to the table TRFCQIN
hi all,
anyone can tell me
how to make records to the table TRFCQIN
regardsHi Wanna,
Write a module pool program to enter record into table TRFCQIN.
Take fields to which u want to make entries in module pool.
Use insert command to append data in table TRFCQIN.
Refer this code :
CASE OK_CODE_101.
WHEN 'SAV1'.
TRFCQIN-QNAME = 'XYZ'.
TRFCQIN-QCOUNT = "Screen field name at which user will enter value
INSERT TRFCQIN.
if sy-subrc <> 0.
message e007.
else.
clear TRFCQIN.
clear ok_code_101.
endif.
endcase.
Reward points if helpful.
Regards,
Heamnt -
i have made with iweb a website on my macbook, now i want to change it, through my imac, how can I get in the program , which is on the mac book. On both computer I have Lion
You need to transfer your domain.sites file from your MacBook to your iMac. This is the file where iWeb stores all info and can be found under User/Library/Application Support/iWeb/domain.sites.
Transfer this file from your MacBook to the same place on your iMac and double click the domain.sites file and iWeb will open it on your iMac and you can update your site from there too. -
How to include variable in the text column in report painter?
Dear Expert,
Would like to seek for your help to include How to include variable in the text column in report painter?Please advice.
Thank you.
Regards,
Karen
Edited by: Karen Swee Ping Ho on Jun 17, 2011 2:48 AMHi,
Thank you for the promt reply.
1) How I include the variable in the column header to display fiscal year which I have selected from the selection screen?
which variable should i use?
2) Where can i find more information about the characteristic and which variable to be use base on the characteristic?
For example: I would like to display the fiscal year from the selection screen/input screen when execute the report which also will reflected to the element definition and will display the fiscal year also in the column text?
3) Kindly advise base on question 2, the variable that i use in element definition it will also display in selection screen?
4) When execute the report the first selection screen input parameter it obtain from where it is from element definition?
5) Please advice how to be done when report execute with first screen input selection will also reflect the element definition of column and rom with the selection of the fiscal year?
Please help.
many thanks
Edited by: KH on Jun 18, 2011 7:18 AM -
How do I know if the program has been downloaded to another computer or not?
How do I know if the program has been downloaded to another computer or not? Also how do I know if it is the educational version or not?
What exactly? Your questions don't make much sense since you failed to provide an explanation what problem you actually have, what program you actually mean and so on. That aside, edu versions are technically not different from the normal programs, just their licensing is different.
Myleniumu -
Hello , I need to find the serial number of my programs .
Would anyone know where and how to do it?
The programs are installed on PC
Thank youFind your serial number quickly
-
I have just purchased a new computor. I had Lightroom 5.7 on the old computor and need to know how to go about downloading the program to my new computor. Thanks for any help you can provide.
Lightroom - all versions
Windows
http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Windows
Mac
http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh -
How to use ranges in the program
hi all,
my requirement is i need to create a range for srat date so iam creating a structure say name of the range table is zstartdate. how to use this table in my program.
selct * from zuser_Secobjects where start_date in zstartdate. is it ok ?
thanks
maheedhar.thi maheedhar,
I am sending u the sample program and the docs also.
Program:
T A B L E D E C L E R A T I O N *
**-- Tables used
**-- VBAK. "Sales Document: Header Data
T Y P E D E C L E R A T I O N *
**-- Type for VBAK
TYPES: BEGIN OF T_VBAK,
VBELN LIKE VBAK-VBELN,
ERDAT LIKE VBAK-ERDAT,
AUART LIKE VBAK-AUART,
END OF T_VBAK.
I N T E R N A L T A B L E D E C L E R A T I O N *
**-- Internal table to store header data
DATA: IT_VBAK TYPE STANDARD TABLE OF T_VBAK WITH HEADER LINE.
**-- Ranges for Inquiry/Quotation
RANGES R_AUART FOR VBAK-AUART.
C O N S T A N T S D E C L E R A T I O N *
**-- Constant to store value of Inquiry (IN) / Quotation (QT).
CONSTANTS: C_IN LIKE VBAK-AUART VALUE 'AF',
C_QT LIKE VBAK-AUART VALUE 'AG',
C_EQ(4) TYPE C VALUE 'EQ',
C_I(2) TYPE C VALUE 'I'.
I N I T I A L I Z A T I O N *
**-- Clear the internal tables and flag.
CLEAR: IT_VBAK,
R_AUART.
**-- Refresh the internal tables.
REFRESH: IT_VBAK,
R_AUART.
**-- Initialization of ranges
R_AUART-SIGN = C_I.
R_AUART-OPTION = C_EQ.
R_AUART-LOW = C_IN.
APPEND R_AUART.
CLEAR R_AUART.
R_AUART-SIGN = C_I.
R_AUART-OPTION = C_EQ.
R_AUART-LOW = C_QT.
APPEND R_AUART.
CLEAR R_AUART.
S E L E C T I O N S C R E E N *
SELECTION-SCREEN BEGIN OF BLOCK CHARLY WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: S_VBELN FOR IT_VBAK-VBELN OBLIGATORY.
SELECT-OPTIONS: S_ERDAT FOR IT_VBAK-ERDAT.
SELECTION-SCREEN END OF BLOCK CHARLY.
A T S E L E C T I O N S C R E E N ( V A L I D A T I O N S ) *
AT SELECTION-SCREEN.
**-- Check the sales order number exists in the database table or not
SELECT SINGLE VBELN
FROM VBAK
INTO IT_VBAK
WHERE VBELN IN S_VBELN
AND ERDAT IN S_ERDAT
AND AUART IN R_AUART.
**-- If no single data selected display error message.
IF SY-SUBRC <> 0.
MESSAGE E000.
ENDIF.
S T A R T O F S E L E C T I O N *
START-OF-SELECTION.
**-- To fetch data from database table (VBAK)
**-- Store the data into the internal tabe (IT_VBAK)
PERFORM ZF_GETDATA.
E N D O F S E L E C T I O N *
END-OF-SELECTION.
**-- To display sales order.
PERFORM ZF_CHECK_DISPLAY.
T O P O F P A G E *
TOP-OF-PAGE.
**-- Page header
PERFORM ZF_TOP_OF_PAGE.
E N D O F P A G E *
END-OF-PAGE.
**-- Page footer
PERFORM ZF_END_OF_PAGE.
*& Form ZF_GETDATA
text
--> p1 text
<-- p2 text
FORM ZF_GETDATA .
SELECT VBELN
ERDAT
AUART
INTO TABLE IT_VBAK
FROM VBAK
WHERE VBELN IN S_VBELN
AND ERDAT IN S_ERDAT
AND AUART IN R_AUART.
IF SY-SUBRC <> 0.
MESSAGE S001 WITH IT_VBAK-VBELN.
ELSE.
SORT IT_VBAK.
ENDIF.
ENDFORM. " ZF_GETDATA
*& Form ZF_CHECK_DISPLAY
text
--> p1 text
<-- p2 text
FORM ZF_CHECK_DISPLAY .
CLEAR: IT_VBAK.
LOOP AT IT_VBAK.
IF IT_VBAK-AUART = C_IN.
ULINE.
WRITE:/1 SY-VLINE, 10 TEXT-006 INVERSE COLOR COL_HEADING,
50 TEXT-007 INVERSE COLOR COL_HEADING,
143 SY-VLINE.
WRITE:/1 SY-VLINE,12 IT_VBAK-VBELN INVERSE COLOR COL_NORMAL,
52 IT_VBAK-ERDAT INVERSE COLOR COL_NORMAL,
143 SY-VLINE.
ENDIF.
IF IT_VBAK-AUART = C_QT.
ULINE.
WRITE:/1 SY-VLINE, 10 TEXT-008 INVERSE COLOR COL_HEADING,
50 TEXT-007 INVERSE COLOR COL_HEADING,
143 SY-VLINE.
WRITE:/1 SY-VLINE,12 IT_VBAK-VBELN INVERSE COLOR COL_NORMAL,
52 IT_VBAK-ERDAT INVERSE COLOR COL_NORMAL,
143 SY-VLINE.
ULINE.
ENDIF.
ENDLOOP.
ENDFORM. " ZF_CHECK_DISPLAY
*& Form ZF_TOP_OF_PAGE
Header of the page gets displayed as soon as a new page is generated
FORM ZF_TOP_OF_PAGE .
ULINE.
WRITE:/1 SY-VLINE, 5 TEXT-002 INVERSE COLOR 7,143 SY-VLINE.
WRITE:/1 SY-VLINE, 143 SY-VLINE .
WRITE:/1 SY-VLINE, 30 TEXT-003 INVERSE COLOR 7,143 SY-VLINE.
WRITE:100 TEXT-004 INVERSE COLOR 7,120 SY-DATUM INVERSE COLOR 7,
143 SY-VLINE.
WRITE:/1 SY-VLINE,100 TEXT-005 INVERSE COLOR 7,
120 SY-PAGNO INVERSE COLOR 7,143 SY-VLINE.
ULINE.
ENDFORM. " ZF_TOP_OF_PAGE
*& Form ZF_END_OF_PAGE
Footer text displayed in each page
FORM ZF_END_OF_PAGE .
WRITE:/60 TEXT-008.
Docs:
Ranges
A selection table is linked to the column of a database table, or to an internal field in the program. A selection table is an internal table object of the standard table type that has a standard key and a header line.
In addition to selection tables that we create using SELECT-OPTIONS, we can use the RANGES statement to create internal tables that have the structure of selection tables. You can use these tables with certain restrictions the same way you use actual selection tables.
A ranges table type is a special case of a table type. A ranges table type describes the structure of an internal table for administrating complex areas, i.e. the type of an internal table ranges table in the ABAP program.
The row type of a ranges table type has a fixed structure. The row type consists of 4 components SIGN (sign), OPTION (comparison operator), LOW (lower limit) and HIGH (upper limit) in this order.
1. SIGN The database type of SIGN is C with length 1. The contents of SIGN determine for each row whether the result of the row condition is to be included in or excluded from the resulting set of all rows. Possible values are I (inclusion criterion operators are not inverted) and E (exclusion criterion operators are inverted).
2. OPTION The database type OPTION is C with length 2. It contains the selection operator. The following operators are available:-
- If HIGH is empty, we can use EQ, NE, GT, LE, LT, CP, and NP.
- CP and NP are only allowed if wildcards (*' or '+) are used in the input fields.
- If wildcards are entered on the selection screen, the system automatically uses the operator CP. The escape character is defined as #.
- If HIGH is filled, you can use BT (Between) and NB (Not Between). We cannot use wildcard characters.
3. LOW - The data type of LOW is the same as the column type of the database table, to which the selection criterion is linked.
If HIGH is empty, the contents of LOW define a single field comparison. In combination with the operator in OPTION, it specifies a condition for the database selection.
If HIGH is filled, the contents of LOW and HIGH specify the upper and lower limits for a range. In combination with the operator in OPTION, the range specifies a condition for the database selection.
4. HIGH - The data type of HIGH is the same as the column type of the database table, to which the selection criterion is linked. The contents of HIGH specify the upper limit for a range selection.
If the selection table contains more than one row, the system applies the following rules when creating the complete selection criterion:
1. Form the union of sets defined on the rows that have SIGN field equal to I (inclusion).
2. Subtract the union of sets defined on the rows that have SIGN field equal to E (exclusion).
3. If the selection table consists only of rows in which the SIGN field equals E, the system selects all data outside the set specified in the rows.
RANGES tables
We can use the following variants of the TYPES and DATA statements to create internal tables of the same type as selection tables.
TYPES|DATA .
An elementary associated type defines the type of components LOW and HIGH. It can be defined by specifying a data element or by directly defining the data type, number of places and if necessary the number of decimal places.
A ranges table type always has Standard table access mode and a standard key that is non-unique.
I think this will help u .
Reward points if helpful.
Regards
Nilesh -
How to improve performance of the program
I have this program which loops 3 times and in each loop it creates differents variants and calls the program passing these variants. Now the pple who run this program say that the performance of the program decreased. They say that if this run it takes 3times more time than running individual program 3 times seperately. Any ideas on how i should go about this. Seems like with in the loop the all the information about the second program which is being called is stored.Any ideas on how to clear the program memory with in the loop.
Let me explain in little more detail. The program which i wrote create variants in a loop and passes them to the report which is also called inside the loop like.
do 3 times.
*create variant.
submit <program> X via selection-screen using tables....
enddo.
Now what this report does is it just retrieves like 500,000 records and updates them to another table. -
How can I record just the Capitals hockey games?
I just switched from Comcast to Verizon. I am able to record the pregame show and the post game show for the Washington Capitals, but I can't record just the Capitals hockey games. I do not want to record all of the hockey games; I just want to record the Capitals Games. I don't want to have to search through the listings every week to record the games. Can you tell me if there is a way to do this?
Thanks for the response, Wyodor. I don't know what that is, but I'll have a look. Is it an alternative to iWeb or a way to transfer pre-existing iWeb sites? When you say merge domain files, is that like so multiple copies of the same site show up then you can pick and choose the non-corrupted pages and group them then delete the corrupted ones? I am on Snow Leopard with no plans or need to upgrade anytime soon.
And yes, I will read your links but just wanted to ask those questions. Maybe they'll answer my questions, maybe not.
I was able to discern that within the domain file is a domain folder with all the site folders, each with their own page ".gz" files which expand into ".xml" files. I was trying to figure out if you could simply drag the corrupt pages out that way and replace them with backup copies that are still good. I am having trouble discerning which pages are which as they all have random names like site-page-30F175E3-AE33-4F10-A490-1A096D9B185B.xml and although I expanded and opened each in Text Wrangler, I still couldn't discern which were which for sure, and trial and error proved cumbersome. Also, I did notice some of the later corrupted domain files had one or two more pages than the site itself has, so not sure how they got added or duplicated or what.
Again, I'll look at your links, but do you know about swapping out individual page .xml files this way within the domain file? -
How to include all of the original text in email replies with attachment
I am using Mac Mail and I have set up the composing preferences to include all of the original message when responding. This only works so long as I don't send an attachment. If I send an attachment in my reply then the recipient doesn't receive any of the previous text, although the copy in my 'sent' box has it on. I contacted BT and got the following response "If you can send and receive emails including attachments via this software then this indicates that the client configuration is correct, and unfortunately this is as far as we can support Mac Mail. I would suggest you seek further advice from Apple as this may be down to the way you have configured the mail client’s composing preferences. Apple’s help desk will be able to tell you if this is a known issue". I've searched the forum for an answer but couldn't find one, does anyone know how to fix this?
Annette, welcome to Apple Discussions.
I don't know what is causing your mail problem, but offer a possible alternate solution.
Open the email you want to respond to. Then click reply. Then copy the text.
Then open a new message and paste the copied text. Add your attachment & any additional new text. Then send.
Cheers, Tom -
How to rerieve records from the table starting with character 'D'
Hi Folks,
How to get the records from the table starting with character 'D'.
Select Max (fld1) fron tab1 into tab1-fld1 where fld 2 = l_fld2 and starting character of fld(1) is 'D'.
last record in the table starting with character 'D'
How can i do that??
Pl explain.
Thanks,
MattHi,
Select Max (fld1) fron tab1 into tab1-fld1 where fld 2 = l_fld2 and starting character of fld(1) is 'D'.
Select MAX (fld1)
From tab1
into table itab
where fld 2 = l_fld2
and fld1 like 'D%'. -
Help, I have a huge project due for school and I need to know how to re-load the programs I lost.
Download CS6 products
Mylenium
Maybe you are looking for
-
How to fix yahoo mail going to trash folder and not inbox?
Incoming email to my yahoo account (through Rogers) ends up in my trash folder and not my inbox. I do not have the same problem with my gmail account and email addressed there goes to the gmail inbox. Any advice on how to fix this problem? Thanks
-
Two AlV Grids in a single screen
I want to bring two ALV GRIDS in a single report output screen.How can i achieve this through Classical coding( not OBJECT ORIENTED ). If possible please provide with codes. thanks, Venkat
-
HU without inventory management and message L3778 in storage type 999
Hi experts, Need suggestion on the process to add inventory of an HU with status 'HU without inventory Management'. This issue has occurred out of the below scenario: 1. our warehouse is HU & WM managed. 2. We have a transfer order for a delivery doc
-
Opening files in cc on yosemite
I was finding that I couldn't open anything past 3 times in Photoshop, Illustrator, and even Dreamweaver. I still can't, but I've found out that if you use the shortcut, and tap at least 3 times, you will get the window to open where you can select
-
System Updates, Now Won't Boot
I did four recommended system updates yesterday, two being Security and ITunes. Now my MacBook won't boot, even in Safe Boot mode or from the disk. Just the blue screen and the circle. I have it connected to another computer so I can see and get into