560.) how do the sub-total in sap scripts?
A.) We will do that in smart forms.here some commands are there to displwy the subtotals.i.e by using "at end of <field name>" 561.)HASHED,STANDARD,SORTED TABLES?
A.) So Both Standard and Sorted Internal Tables Can be accessed by Indexes. Whereas Hashed Internal Tables Can be accessed By Only Key Fields. For Hashed Tables System automatically maintain a Hash Algorithm to retrieve the records with one time hit. For sorted Tables system automatically uses Binary Search to retrieve the records. For Standard Tables System Follows Linear Search.
562.)BADI
A.) As explained above BADI's are the enhanced versions of User- Exits. Please refer the below steps to find BADI's for
standard trasactions. Goto SE24.
Give Object Type cl_exithandler and f8.
Double click GET_INSTANCE menthod. In this method apply brake point for
CALL METHOD cl_exithandler=>get_class_name_by_interface Then give respective TCode and execute then Debugger will be getting activated.
Then is changing parameter we can find the all the BADI's for the given TCode.
563.)TYPES OF WINDOWS IN SMARTFORMS? A.) Main window:
which can cover several pages (flow text). As soon as a main window is completely filled with text and data, the system continues displaying the text in the main window of the next page. It automatically triggers the page break. Secondary Window:
In a secondary window you display text and data in a predetermined output area. There is no flow text
display with page break. If you position a secondary window with the same name on several pages, the system displays the contents of this secondary window on each page. Copy window
You use the copies window to define an output area for the print output, whose content you want to appear either only on the copy or only on the original. This allows you to flag copies as copies when the form is printed.
Final window:
You may want to display or query values on the first page that are determined only during processing. For example, you may want to name the grand total in the letter text of an invoice. However, this amount is determined only after listing all individual items. Or you may want to query on the first page within a condition the total number of pages, which the system calculates only after processing all pages.
In such a case, you use the final window: Processing first skips all windows of this type in the tree and works its way to the end of the tree. Only after the actual
processing is finished, the final windows are processed in the order in which they appear in the tree (from top to bottom). Now any information is available that is known only at the end of the form processing.
564.) The multiple page format is not possible in SAP SCRIPT. Control form command is used to pass SAPscript control
statements such as an unconditional page break to the form. How to create one page in landscape and the other page
in portrait in Scripts?
565.) Is BSEG and BKPF transaparent tables? A.) BKPF is the transparent table but BSEG is the cluster table.
BKPF,VBAK,VBAP,KNA1,COEP are transparent table. user can allow to create secondary index and allow to do buffer.
BSEG , BSCE are cluster table.should be access by primary key.not allow secondary index...user can call all field by select * from BSEG.
566.) What is a Normal,Constant and Variable Window? A.) main window - for continous data
variable window - has a certain area if the data exeeds the area it dont get printed
constant window - for constant data ex:rules and regulations,warnings ...
567.) Purpose of the statemement TABLE in a report?
A.) Declaration of TABLE statement in Report Program Creates a WORKAREA for that table(s) in thr Report program.
TABLES: MSEG, MKPF.
This comes handy when you write SELECT QUERY as select single * from mseg client specified
where mandt = sy-mandt and mblnr = pmblnr and mjahr = pmjahr.
So your Data against the parameters will be colected in the workarea(MSEG).
If you dont declare TABLE(S) & try to to use Select single *
you will get SYNTAX ERROR... 568.)Protect ….Endprotect in sap script?
A.) it is used to keep a block of text in the same page.. it enables u to prevent lines from splitting across pages.
569.) We give KEEP in BDC structure...what is its purpose? A.) It is Indicator to keep processed sessions. i.e. If this
flag is set, then session is kept after processing also. Otherwise, session will be deleted after processing.
570.) What are the compulsary values in RESUSE_LIST_DISPLAY and RESUSE_LIST_GRID? A.) I_CALLBACK_PROGRAM <sy-repid>
IT_FIELDCAT <field table> T_OUTTAB <Value Table>
571.) Want to stop the BDC session in progress.How? A.)/BEND
572.) how to print barcode in vertical manner
In that for each barcode there is a field called Rotation.
Will this help you. There if we see the value of 90 then i think it will print in vertical direction
573.) variant attached in the report. can be transportable from one server to another server
A.) Yes variant can be transported from one server to another, for that you have to manually attached the variants in th transport order.
In version 46C (I'm not sure about earlier versions), you can create a transport request in SE38 for the variants of a program. You could then use transaction SCC1 to copy those changes from one client to another.
To create transport:
1) Go to transaction SE38 and enter the program name. 2) Click the radio button next to the "Variants" subobject and click the "Change" button
3) On "ABAP: Variants" screen, select menu path "Utilities - > Transport request"
4) Enter the variant(s) you want to copy into the "Variant name" box.
5) Click the execute button and save the data to a new change request.
To copy to new client:
1) Log on to target client and goto transaction SCC1.
2) Enter the source client and change request number from above.
3) Click the execute button.
Please note that if you're doing this in a downstream
system (i.e. not a development box) you may need to change the client settings temporarily to carry out the client to
client copy in SCC1.
574.) how to code in SMARTFORMS for MULTIPLE RECORDS? A.) If it is regarding printing the mutiple line items in main
window then below steps need to follow in smartform In Main Window
Loop through TABLE into WA
Create program lines inside loop and pass data to table line field.
This will print the mutiple line items in smartform.
575.) I have 10 records in flat file. In that 7th record is error record. I want to update to data base. If i used Call transaction method what about 7 record and what about
8,9,10 records. If i used Session method what happen. Is it updated or stop at 7th record?
A.) In call Transaction method it depends upon the synchronous and asynchrounous update in synchrounous it will stop at 7 th record and 7,8,9 record is not updated and BDCMSGCOLL gives error msg the 7th record. in asynchronous all the
records are updated except 7 record In sesion method database table is not updated and it will go to sesion log file . and can analise or correct the error foud in the data file or program.
if find the error in data file u can correct them interactevely . other wise u modified the batch input program. ok thank u
576.) what is diffrence subroutine in report and subroutine in script...
A.) 1. in SCRIPT we nedd to give name of the Include Program in the PERFORM statement.
e,g. PERFORM F_GET_ADDRESS IN PROGRAM ZRETURNORDER. ....
ENDPERFORM
In report program we nedd not give any program name e.g. PERFORM f_get_data
2.In script we need to write command PERFORM....ENDPERFORM In report program we dont use PERFORM...ENDPERFORM but only the PERFORM 'name_of_form'.
3.In script the PERORM ...ENDPERFORM will be in window of script (SE71)and there is separate INCLUDE prorame(SE38) In report we can write PERFORM and FORM in the same program (SE38)
577.) if i login in english then top-of page will display in english.if i login in german then it will display in german as on .. abap report how...
A.) Let see it with an example..
in TOP-OF-PAGE we have.. .following text GOOD MORNING in text-element text-001
we have to translate this text in the language..in which we want to login and see the report in that language..
We translate this text by
text-element->goto->translation
select the program and write the translation of all the text-elements in the program(in our case say FR). Now, the translated text is present in the system. Now if i login in FR and execute the same report. i will find the tranlsated text in the report.
this is done by the system variable sy-langu.
As the login language is FR... the text will be displayed in french.
Note- if the tranlsation does not exist in the system, then the text will not at all appear in the report.
578.) what happend if a select statement inside aloop....
A.) There are cookbook rules in PERFORMANCE issues that are needed to be addressed while coding. One of those rules being .. Not to use a SELECT statment in a loop - Reason (The basic idea of querry is to limit DB hits).
579.)How to debug ale?
580.)) How can u create a new page in scripts? A.) in SE71,click on the pages tab
go to the menu bar
expand Edit->Create Element click on create element
581.) Pls reply me 1)can i debuging the idoc. 2)give some example of
pool table and cluster table. 3)what is update module. A.) yes we can debug the IDOC by using WE19 tcode .
By using this tcode we can test the IDOC and reprocess the IDOC. pooled tables: prps.
Clusted tables: Bseg.
totally 3 types 0f function modules. 1.RFC.
2.Normal F.Module. 3.Update
In update we have 2 types. v1 with restart.
v1 without Restart. v2 with restart.
By using this F.M we have To Manage the SCREENS. 582.) what is Catch Command?
A.) In TRY...ENDTRY, CATCH statement is used to specify the exception classes whose exceptions are to be caught and handled in following code.
583.) How we can Hide buttons on application toolbar.? A.) You can hide specific buttons on application toolbar by
using the command SET PF-STATUS .... EXCLUDING ... eg.
DATA: fcode TYPE STANDARD TABLE OF sy-ucomm. APPEND 'SAVE' TO fcode.
APPEND 'PRINT' TO fcode.
->SET PF-STATUS 'PF' EXCLUDING fcode.
584) if i want to insert 10 laks MM records and for inserting one record it takes 1 min by using call transaction or session
method . so here is there any alternative A.) use bapi..run in bacground
B.) HI,
Break the records into 100/1000 sessions and process ur session it ll take same time as it takes for single
sessions.
585.) In sap script how to print bar code in vertical manner.
586.) can we write a select query under end-of-selection event. and will it fetch data.
A.) Yes,You can write and it will fetch data.But the problem is that it leads to performance issue multipule selection on database.It is not encouraged.
Useually you use END-OF-SELECTION for formating the outp 587.) how to see the last updated record in a table? A.)CDHDR,CDPOS(ARRANGE THE DATES IN DESCENDING ORDER). 588.) Wats the difference between package and devolopment class??