• No results found

SITUATION IF U HANDLE THE ERRORS IN CALL TRANSACTION WE HAVE SEVERAL WAYS

In document Interview Questions(All Interview) (Page 173-187)

507.) WHAT IS THE DIFFERENCE BETWEEN FILE PORT AND TRFC PORT ? A.) FILE port is used for EDI IDOCS

A.) SITUATION IF U HANDLE THE ERRORS IN CALL TRANSACTION WE HAVE SEVERAL WAYS

1)USING FORMAT_MESSAGE

2)WHATEVER U GET THE ERRORS IN CALL TRANSACTION,SIMPLY PASS

THOSE ERRORS TO SESSION METHOD

...THIS IS THE SITUATION OF BOTH ARE USING IN

THE SAME PROGRAM...OK

WRITE THE LOGIC FOR CALL TRANSACTION ---

--- --- ---

CALL THE CALL TRANSACTION IF SY-SUBRE < > 0.

...MEANS THE ABOVE STAT NOT EXECUTED SUCCESSFULLY....MEANS WE GET THE ERRORS IN CALL TRANSACTION

METHOD...OK

SIMPLY PASS THOSE ERRORS TO SESSION METHOD

LIKE THIS... ...

CALL THE TRANSACTION BY USING BDE_INSERT

...PROVIDE THE INPUT...OK

764.) How Calculate TOTALS,SUBTOTALS in ALV Reporting? A.) data: wa_fieldcat type slis_fieldcat_alv,

it_fieldcat type slis_t_fieldcat_alv. data: wa_sort type slis_sortinfo_alv, it_sort type slis_t_sortinfo_alv.

wa_fieldcat-do_sum = 'X'.

append wa_fieldcat to it_fieldcat. wa_sort-fieldname = 'KUNNR'. wa_sort-tabname = 'IT_FINAL'. wa_sort-subtot = 'X'.

append wa_sort to it_sort.

765.) How to handle Errors in Function Modules? A.) Using RAISING <ecxeption>

766.) Can we create a Table Without a Primary key? A.)NO

767.) If suppose There are 10 records in flat file then how many times BDC_open_group, BDC_INSERT, BDC_CLOSE_group executed?

A open group once,insert 10 times ,close group once 768.) Can Top-of-page trigger with VLINE.?

A TOP OF PAGE is triggered with write or

skip or uline or

not with vline.

769.) What is Table maintenance generator?

A.) Table maintanance is for creating,adding datas to a ZTABLE. 770.)How to find user exits?

A.) find the dilog program of the transaction code and go to display mode. search the word Call 'customer_function' and you will found the user exit. the function module for

implementing the user exit is exit_<program_name>_<suffix>. Write the code inside the include avaialble in FM.

771.)How u can perform validations in Lsmw?

A.) Using Field mappings n conversion rules step in LSMW

data fields from source structure to the appropriate fields in the destination structure.

Eg: Select first field ( ex: kunnr) -> Goto Create source field double click on it n select kunnr

Repeat like these for all fields Save the details n F3

772.) what are the events in LSMW? A.) BEGIN_OF_PROCESSING BEGIN_OF_TRANSACTION BEGIN_OF_RECORD END_OF_RECORD END_OF_TRANSACTION END_OF_PROCESSING

773.) After Uploading logo into SAP-SCRIPT How To Check Whether It is Success fully Uploaded or not?

A utilites->print preview-> and provide screen as lp01.

774.) what is meant by maintenance allowed(if it can provide authorization, what is authorization)

A Table maintenenece will give authorisation to add or all the B enetries into any database table .

C

D authorisation is nothing but it is to give authorisation to E particular user for a transaction.

775.) what can u do in UTP? A.) UTP:unit test plans

Example by giving various input values and checking the output. 776.) how to transfer smartforms?

A.) by transport request

but remember funtion modules of smart forms not transfort.they have to generate in taget system. name of sf may change on transport

777.) could you tell me the difference between an INTERFACE AND CONVERSION?

A CONVERSION:- One time data tranfer (normally BDC) B

C INTERFACE :- Periodic activity where two systems D communicate (SAP-SAP, SAP-Non SAP)

778.)Diff b/w AT NEW AND ON CHANGE OF

A.) When we use At new for a field, it will trigger whenever there is any change in al lthe fields from the left to that of the particular field. But when we use On change of it triggers only when there is any change in the particular field.

At new can only be used inside loop. On change of can used outside the loop.

No logical Expressions can be added with at new. Logical expressions like AND OR can be used with on change of.

When AT NEW occurs, the alpha-numeric fields have * in their value,where as in case of On Change, the alphanumeric

fields have their Corresponding value, of that particular record, where the Event gets fired.

On Change of executes for the first value of field too, this is not the case with At New.

On change of cannot be used in ABAP objects At new can be used in this

When we use At new for a field, it will trigger whenever there is any change in all the fields from the left to that of the particular field. But when we use On change of it triggers only when there is any change in the particular field.

At new can only be used inside loop. On change of can used outside the loop.

No logical Expressions can be added with at new. Logical expression like OR can be used with on change of.

When AT NEW occurs, the alpha-numeric fields have * in their value, where as in case of On Change, the alphanumeric fields have their Corresponding value, of that particular record, where the Event gets fired.

In the below code it matters with structure sequence.

If 1st column to be BUKRS and 2nd column to be F1 in ITAB Structure then the At New event will show F1 column values as '*' asterisks.

REPORT ZGSK.

*...AT NEW Vs ON CHANGE OF EVENTs... *

DATA : BEGIN OF ITAB OCCURS 0, F1(10) TYPE C,

BUKRS LIKE T001-BUKRS, END OF ITAB. ITAB-BUKRS = '1000'. ITAB-F1 = 'ababcbcb'. APPEND ITAB. ITAB-BUKRS = '1100'. ITAB-F1 = '1233333'. APPEND ITAB. ITAB-BUKRS = '1100'.

ITAB-F1 = '3333333'. APPEND ITAB. ITAB-BUKRS = '1200'. ITAB-F1 = '555555'. APPEND ITAB. *AT NEW LOOP AT ITAB. AT NEW BUKRS.

WRITE :/ ITAB-BUKRS , ITAB-F1. ENDAT. ENDLOOP. ULINE. *AT ONCHANGE LOOP AT ITAB. ON CHANGE OF ITAB-BUKRS. WRITE :/ ITAB-BUKRS , ITAB-F1. ENDON.

ULINE.

*AT ONCHANGE with Logical Expression "OR" LOOP AT ITAB.

ON CHANGE OF ITAB-BUKRS or ITAB-F1. WRITE :/ ITAB-BUKRS , ITAB-F1.

ENDON. ENDLOOP.

779.) How many types of RFCs are there? A.) Asynchronous (aRFC)

Synchronous (sRFC) Transactional (tRFC) Queue (qRFC0 Parallel (pRFC) 780.)

What are control commands in Scripts? A.) Explicit Page Break: NEW-PAGE

Preventing Page Breaks: PROTECT

Next Main Window: NEW-WINDOW

Assigning a Value to a Text Symbol: DEFINE

Formatting Time Fields: SET TIME MASK

Country-Dependent Formatting: SET COUNTRY

Position of the Leading Sign: SET SIGN

Initializing Numbered Paragraphs: RESET

Including Other Texts: INCLUDE

Changing the Style: STYLE

Formatting Addresses: ADDRESS

Setting a Header Text in the Main Window: TOP

Setting a Footer Text in the Main Window: BOTTOM

Conditional Text: IF

Calling ABAP Subroutines: PERFORM

Inserting Print Controls: PRINT-CONTROL

Boxes, Lines, Shading: BOX, POSITION, SIZE

Hexadecimal Data: HEX, ENDHEX

Summing a Program Symbol: SUMMING

781.) How many methods are there in BDC? Which methods you know well?

A.) In BDC,there are 3 methods.i.e; 1.Direct Input Method

2.Session Method

3.Call Transaction Method

Direct Input Method:It is used for transferring large amount of data.It doesn't create sessions but stores the data directly into the respective tables.It works by

calling number of function modules.If any error occurs then it will restart the entire procedure and execute the direct input programs in background only.

time,this method is not applicable because it needs more times in terms of hours may be in days.It is carried out by 3 function modules:BDC_OPEN_GROUP,BDC_INSERT & BDC_CLOSE_GROUP.

3.Call Transaction Method:It transfers data only once at a time but explicity handled if any errors are occured,It is used in Real time by using these 3 function modules and finally give the results by setting the updates & modes. Updates:Asyncrhonous & Syncrhonous

Modes: A for Show Screen N for No Screen

E for Error Screen

782.) What is the maximum value for Line-Size in the Report? A.) The maximum width of a list is 1023 characters.

You should keep lists to the minimum possible size to improve useability

and performance(recommendation: LINE-SIZE < 132). For very wide lists (LINE-SIZE > 255), you should consult the notes

for using LINE-SIZE greater than 255. 783.) what is a workflow?

A.) work flow is an equalent to an e-mail.it contains Inbox&Outbox.WF is for error handling purpose. 784.)

in which method i can upload data to two transactions? and how?

somebody tell me.

A Using session method you can upload data for 2 or more B transactions.The procedure is

C 1)open the session using FM : BDC_OPEN_GROUP D 2)Insert the transaction using BDC_INSERT

E repeat the second step for as many tcodes as you need just F by calling the FM : BDC_INSERT

G 3)End the session using FM : BDC_CLOSE_GROUP

785.) can we write at-line-selection and at-user-command at a time in same program.

plz some body help me to know this answer.

A YES BOT THE EVENTS ARE TRIGGERED IN THE SAME PROGRAM. AT B LINE SELECTION EVENT SELECT THE CURRENT ROW WHICH IS STORED C IN SY-LSIND. IF THE USER DOUBLE CLICK ON THE LINE THE AT

D USER COMMAND TRIGERS. THIS CONTAINS THE FUNCTION CODE OF E THE FIELD.NOW YOU CAN CALL LIST SCREN THERE AFTER. SO ITS F MANDATORY BOTH THE EVENTS SHOULD TRIGGER IN ONE PROGRAM 786.) Can we call one program(not include) from another program?

A By using SUBMIT Statement. B

C SUBMIT <rep_name> USING SELECTION-SCREEN scr D

E SUBMIT <rep_name> F VIA SELECTION-SCREEN

G USING SELECTION-SET 'VARIANT1'

H USING SELECTION-SETS OF PROGRAM <rep_name> I AND RETURN.

787.) what is difference between occurs1 and occurs2? A.) Let me correct u Siddharth,

Its not correct that when u use occurs 1 or occurs 2 u cannot append more values than that, if u use that memory up, system automatically allocates enough memory so that the internal table can hold more records.

And as far as occurs 0 is concerned when u use

occurs 0, system allocates 8kb memory from the paging area unnecessarily, if u intend to retrieve less rows then its

better to write some value on occurs clause.

There is only one case where occurs clause limits the number of rows that can be added to an internal table, i.e, when we use APPEND SORTED BY.

788.) in script can i print the back page of a paper A.) Easy - page FRONT lists page CONTACTS as next page and CONTACTS lists FRONT as next page. Since CONTACTS does not contain a MAIN

window, it will print the contacts info and then continue on to FRONT for the rest of the main items. Additionally, set print mode on FRONT to

D (duplex) and set CONTACTS to 'blank' (for both resource name and print mode - this is the only way to get to the

back of the page). 789.)

1) What is read with binary search?

2) I have initialization write ?a?

Top-of-page write ?b? what is the output for this/

3) If I don?t have start of selection event in report will it execute?it is mandatory or not?

4) What is table maintenance generator? 5) Is it advisable to have secondary index/

6) How we will imlement BAPI?

7) What is process code in idoc?

8) Where the information msg will display? 9) Where warning msg will display?

10) Where we use watch point?what exactly watch point means?

11) What is a spool?

12) What is program name that contains all print program names and form names other than TNAPR?

13) How we will capture errors in bapi?

14) How to transfer std text from production to quality? A 1) BINARY SEARCH DIVIDES THE ENTIRE SELECTION PROCESS INTO B TWO PARTS SO ITS HELP FOR PERFORMANCE TUNING.

C

D 2) I GUESS ONLY 'b' WOULD BE PRINTED. E

F 3) NO ITS NOT MANDATORY TO CALL THE START OF SELECTION

In document Interview Questions(All Interview) (Page 173-187)