• No results found

TEXT ELEMENT IS USED IN SMARTFORMS TO PRINT TEXT LITERALS AND FIELDS

In document Interview Questions(All Interview) (Page 45-51)

is set it will not show any error.

158.) How can we add another field to display in standard SAPSCRIPT? Ex. we have customer address in layout, now we have to add customer Phone no in the same.

A.) copy the standard code to custom code. and design according to our requirement. add an external subroutine in the script. and write the

functionality in ex-subroutine by using itput tabs and output tabs of structure itcsy. now go to naco take standard script and replace it with custom. go to transaction and configure it. goto->messages change message type. and save it.

159.) what is the meaning of SCREEN-INPUT = '0/1', SCREEN-ACTIVE =

'0/1'. in event AT SELECTION-SCREEN OUTPUT

A.) when screen-active component is zero then input = 0,output = 0 statically.screen field is invisible they are not ready

for input.

when active component is 1 then field is ready to accept the input from user.

160.) What are text elements in smartforms ?

A.) TEXT ELEMENT IS USED IN SMARTFORMS TO PRINT TEXT LITERALS AND FIELDS

161.) How will you add colour in a row using ALV ? A.) In final internal add a field

line_color(4) type C.

Insert value like 'C710’ according to your color choice in this field. Define a Layout

Define Routine Form disp_layout.

gd_layout-info_fieldname ='LINE_COLOR' endform.

Call this routine before display the grid.

162.) Which and How will you use function module for ALV Interactive report?

A.) n case of interactive alv to get all 17 events we use one fm i.e reuse_alv_events-get .

using read table statement we read required event form above itab to which all 17 events is exported in above fm. using the reuse_alv_commentary_write fm to displa any thing on list screen.

163.) why SAP script is clint dependent and smartform is clint indepedent ?

A.) generally in abap text's are client dependent .when a sap script is genrated it is stored as text .but when a

smartform is excuted at backend one funtion module is genrated .which is not(function modules are client independent ) client dependent in sap.

164.) How to type casting in OOPS ABAP and ABAP ? A.) 1. Narrow casting

2. Wide casting

Demo on "Narrow Casting" Parent class->M1 , Child class- >M1,M2

Attributes of super class can only be accessed.

Methods defined at Super class(M1) can only be accessed. Methods with REDEFINED Logic(M1) will be called

Methods in child class (M2) cannot be accessed

Demo on "Wide Casting" Parent class->M1 , Child class->M1,M2 Assign address of PARENT to CHILD Class object

Methods defined at child class(M2) can also be accessed with Parent reference.

Methods with REDEFINED Logic (M1) will be called The cast is only possible if the object was instantiated as the child and then it was casted to the parent object and then back again to the child object. The child has

everything the parent has so there is no problem with this path.

two types of casting 1.narrow casting

2.wide casting

it will comes under inheritance concepts.

like creating object for subclass by using that object we will call super class methods

164.) Report zabc. Top-of-page. Write : 'Hello'. End-of-page.

What is the output of the program.

A.) Event Top-of-page is not triggered. Thus you will not get the expected output (without linefeed!) 'Hello'.

You need a WRITE statement between Report and Top-of-page statement (implicit START-OF-SELECTION) to trigger the Top-of-page event. Explicit START-OF-SELECTION or END-OF-SELECTION can also be used for WRITE.

165.) A database table contains 3 fields(Student_no,Section,Total_marks).I want retrieve top 10 students from each section.Note:(Section contains data like A,B,C.Each section contains more than 10 students).

165.) visibility of a field string declared using tables statement? true/false.

A.)

166.) can any body tell what is idoc archieving and how to do that

A.) Archiving means collection of HISTORIAL Idocs that can be stored out side of The Database,By using this We can reduce load on the data base.

"WE10" is the TCODE for archive idoc info structure. Here 2 options is availabale.

1. Database 2. Archive

-> We can select Archive idoc then it give the information about This.

*Thats information i know guys if any one knows more than this PLZ tell me..*

167.) Where do you find info on new developments in SAP? A.)

168.) When would you use a BAPI rather than an IDOC

A.) idoc is used to transfer data from sap to sap systems. but bapi is used to transfer data from sap to non-sap systems also.

169.)Explain V2 Updates?

A.) V1 update takes priority over V2 updates. V1 update can be performed asynchronously, synchronously & locally whereas v2 update can only perform asysnchronosly.

170.) What is the structure of CTU PARAMS ? A.) We should use this structure in BDC call transaxction for the refference of mode,update and default size mode TYPE ctuparams-dismodeupmode

update TYPE ctuparams-upmode

defzize TYPE ctuparams-defsize "setting the size of the output paze

171.)What is partner profile?

A.) The tcode for creating the partner profile is WE20 . These partner profiles are used when generating idocs i.e sending and receiving idocs.(partner profiles are nothing but sendor and receiver information ) In this the mandatory things to remember is port number , logical system , inbound parameters , out bound parameters.

172.) What are the methods of interfacing to SAP? A.)

173.)What is SAP Package?

A.) A Package is Type of Development object which act as a container to store a development objects such as screens , menus, function , transactions

174.) you have to select fourth vendor no in basic list go to open new list ( secondary list) . what is the coding in

interactive report ?.. tell me the coding clearly plz?...

A.)

175.)How to debug sap script? A.)RSTXDBUG

go to se71

specify the form name, utilities

under that activate debugger sap scripts was debugger. go to me23n

click on print preview,

one popup will display like sap script was debugger click on ok button

here it will display the form painter, here we can debug the form

175.) how to print only one line item at every page in smart forms in main window .for ex for sales order i will get so many

items i need to display only at one page like 1st line at one page and second line at 2nd page .pls answer itttt

A.) use new page command just after the command line of the main window. it process other window on a page and then go to the next page.don't use page break command 176.) what are various ways of triggering a new page in reports ? A.) trigger the command new-page.

177.) what will happen if called program is not executable ? A.)

178.) How do you set background job automatically ? A.) To maintain or monitor SAP background jobs, enter the Select Background Jobs screen by using transaction code SM37 or menu path System ® Services ® Background jobs ® Job overview. The window is a selection screen. A listing of background jobs will appear according to this window.

178.) How can you change properties of screen elements dynamically in Module pool Programming ?

A.) In PBO event , loop at screen & modify different screen element.

eg.-> deactivate a parameter loop at screen.

if screen-name = 'Material Number'. screen-Input = 0.

screen-active = 0. endif.

endloop.

179.) Can we use transfer dataset to transfer data in internal table ? A.)

180.) What are different ways in which data upload can be done using LSMW? A.)

181.) What is COMMIT concept in BAPI? A.)

A.)

183.) How are exceptions handles in bapi's ?

184.) Why cant we use Normal function module for data transfer? A.)

185.) How are BAPI different from normal function modules? A.)

186.) What is direct input method ?

A.) In bdc, direct input method can handle exclusively large amount of data only.It is also can process foreground and background. It also having log file default.

difference with session method is validations can be done by sap predefine function modules. It is faster than session method. In case of errors direct input mechanism provides restart mechanism for this we have to execute in the background only this rbmvshow or tcode bmv0.

187.) Can you call a bdc from a report program ? A.)

188.) How to read files and process BDC's automatically ? A.)

189.) Is it possible to include two transactions with one group name in one program in session method ?

A.) Yes, it is possible, for every new transaction we need to use bdc_insert function module.

190.) How do you Export a session ? A.)

191.) Which method of BDC’s would u apply ? Session or call transaction ? why ? Which is more good ? Its advantages ?

A.) Well, it depends upon the two scenarios of requirement: 1. if we have bulk data, then we should use bdc session method so that one session can process lot of screens with data with log analysis w.r.t the benefit of sm35 tcode.

should use call transaction method to get the immediate feedback about a relevant tcode.

192.) How to get the status of an IDOC in a report without using WE02 transaction ?

In document Interview Questions(All Interview) (Page 45-51)