You are on page 1of 7

HOME

Home

SAP

ABAPINTERVIEWQUESTIONS
SAPABAPDiscussionForum

CrossApplications

RFC

BAPI

ALEIDOC

REPORTS
AboutUs

DIALOGPROGRAMMINGQUESTIONS
PrivacyPolicy

ObjectOrientedABAP

TermsandConditions
WebDynpro

SCRIPTS

SMARTFORMS

BDC

ContactUS

WorkFlow

SAPWorkflowInterviewQuestions

Downloads

FOLLOWBYEMAIL
Emailaddress...

Submit

SAP Workflow Interview Questions, this post consist of real time interview
questions on SAP ABAP Workflow. These questions are really helpful for the
ABAPersreferthispostformoredetailsandreadthisarticlebyclickingonread
more.

Search

FOLLOWUSONTWITTER!

GOOGLETRANSLATOR
SAPWorkflowInterviewQuestions

SelectLanguage
Poweredby

SAP Workflow Interview Questions, this post consist of real time interview questions on
SAPABAPWorkflow.ThesequestionsarereallyhelpfulfortheABAPersreferthispostfor
moredetails.

Translate

SPONSOREDADS
POPULARPOSTS

1.ABAPClassesandBusinessWorkflow?

SAPObjectOrientedABAPInterviewQuestions
Answers

We can use ABAP classes in the definition and runtime components of SAP WebFlow
EngineinthesamewayasobjecttypesdefinedintheBusinessobjectRepository(BOR).
Before proceeding further we need to know where to create and maintain ABAP Classes
andABAPInterfaces.

SAPWebDynproABAPInterviewQuestions
Answers

2.WhatisClassBuilderanditspurpose?

SAPProjectManagementRealtimeInterview
QuestionsAnswers

The Class Builder allows us to create and maintain global ABAP classes and interfaces.
Both of these object types, like global data types, are defined in the ABAP Repository,
thuscomposingacentralclasslibrary.Together,theyformacentralclasslibraryandare
visiblethroughoutthesystem.Wecandisplayexistingclassesandinterfacesintheclass
libraryusingtheClassBrowser.

ALVReportsInterviewQuestionsinSAPABAP

We can define local classes as well as global classes. They are defined locally in
programs,functiongroupsorasauxiliaryclassesofglobalclassesoftheclasspools.Local
classesareonlyvisiblewithinthedefiningmodule.ABAPclassesareprocessedusingthe
ClassBuilder.

FreeSAPPDFBooks,DocumentsandMaterialfree
Download

ModulePoolProgrammingInterviewQuestionsin
SAPABAP

ModulePoolProgrammingInterviewQuestionsand
Answers
SAPBADIInterviewQuestionsinABAP

50SAPABAPInterviewQuestionsforFreshers&
Experienced
50SAPABAPALEIDOCInterviewQuestions

3.HowtoreachClassBuilder?
ToreachtheinitialscreenoftheClassBuilder,chooseDevelopmentClassBuilderfrom
theinitialscreenoftheABAPWorkbenchorentertransactioncodeSE24.

BLOGARCHIVE
2015(1)
2014(38)

4.Howdoesitintegrate?
The Class Builder allows us to create Web development objects within the ABAP
Workbench.WecanusetheClassBrowsertodisplayandmaintainexistingglobalobject
typesfromtheclasslibrary.

2013(59)
December(4)
November(4)
October(1)

September(5)

ThediagrambelowillustratesthearchitectureoftheClassBuilderandtherelationships
between its components (including the Class Browser) From here, we can either display
thecontentsoftheclasslibraryoreditaclassusingtheClassEditor.
Once we have defined an object type, we can implement its methods. From the initial
screenortheClassEditor,wecanalsoaccesstheClassBuilderstestenvironment.

August(8)
July(1)
June(3)
SAPWorkflowInterviewQuestions
SAPWorkflowComponents

WecandefinetheobjecttypesimmediatelyafterimplementingthemethodintheABAP
Editor.ItisalsopossibletoaccessthetestenvironmentfromtheinitialscreenorClass
Editor.

SAPWorkflowTransactionCodes
May(5)
April(6)

5.HowtousetheClassBuilder?

March(1)
February(19)

UsetheClassBuilderto:
Displayanoverview(intheClassBrowser)ofglobalobjecttypesandtheirrelationships.

January(2)
2012(65)

Maintainexistingglobalclassesorinterfaces.
Createnewglobalclassesandinterfaces.
Implementinheritancebetweenglobalclasses.
Createcompoundinterfaces.
Createandspecifytheattributes,methods,andeventsofglobalclassesandinterfaces.
Defineinternaltypesinclasses.
Implementmethods.
Redefinemethods.
Maintainlocalauxiliaryclasses.
Testclassesorinterfacesinasimulatedruntimeenvironment.

6.Whataretheconstraints?
Wecannotdefineobjecttypesonthebasisofgraphicalobjectmodeling.

7.Notebeforecreatingglobalclassesandinterfaces:
Global classes and interfaces that we create in the Class Builder are stored in the class
libraryand
administered by the R/3 Repository: they therefore have the same namespace as all
otherRepository
objects.Itisthereforenecessarytohavenamingconventionsforobjecttypesandtheir
componentsandto
usethemuniformlywithinprogramdevelopment.

8.NamingConventionsinABAPObjects:
ThefollowingnamingconventionhasbeenconceivedforusewithintheSAPnamespace.
If we do not observe the naming conventions for object types (classes and interfaces),
conflictswilloccurwhenthesystemcreatespersistentclasses,sinceitwillbeunableto
generatethenecessarycoclasses.

TOTALPAGEVIEWS

8 8 5 4 0 7

9.ConventionsforObjectTypes:

ClassintheclasslibraryCL_<classname>
InterfacesintheclasslibraryIF_<interfacename>
Localclassesinprograms
(recommendation)LCL_<classname>
Localinterfacesinprograms
(recommendation)LIF_<interfacename>

10.ConventionsforComponents:

Methodname<methodname>
Events<eventname>
Localtypedefinitionswithina
class(recommendation)TY_<typename>
Datadefinitions(variables)<variablename>
Datadefinitions(constants)
(recommendation)CO_<constantname>

LocalConventionswithinMethods:
Forparameters:
IMPORTINGparametersIM_<parametername>
EXPORTINGparametersEX_<parametername>
CHANGINGparametersCH_<parametername>
RESULTRE_<result>

11.HowtocreateABAPClassesthatsupportIF_WORKFLOWinterface?
GototransactionSE24andcreateacustomizedclass.
Nextthepopupappearswhereweneedtomentionthedetailasfollows:
Saveitandtheclassiscreated.
Now the class is to implement IF_WORKFLOW interface. For this go to the tab and
declare the IF_WORKFLOW as the interface there and press Enter two subinterfaces
appear:
BI_OBJECTandBI_PERSISTENT.
SavetheClass.
TheZCL_TESTclassnowcontainstheexistingmethodsofIF_WORKFLOWinterface.

12.LightsonKeyAttributesandAttributes:
The key attributes are used to define the object key. There can also be other defined
attributes other than key attributes. The SAP WebFlow Engine can access all public
attributesofaclass.
KeyAttributes:
In the Class Builder there is an additional column Key Attributes on the attributes tab
pageasshownbelow:
WeneedtocheckthisboxwhenwearedefininganyattributeastheKeyAttribute.
All key fields must be charactertype fields (elementary types: CHAR, NUMC) and have
adefinedlength.Themaximumlengthallowedforallkeyfieldsis32characters.
Thelengthofthekeyfieldforthepersistentdisplayis32characters.
In the case of persistent ABAP objects we can use the GUID, which is generated
automaticallybytheobjectmanagerwhenaninstanceiscreated.
Attributes:
In addition to all the other data types that the Class Builder supports, we can also
defineattributeswithreferencetoanobjectfromtheBusinessObjectRepository(BOR).
Todothis,wehavetousethestructureSWOTOBJIDasthedatatype.TheBORobjectis
determinedusingthecorrespondingvalue.
To assign a BOR object instance to an attribute we need to use the corresponding BOR
macros.Normally,thisisimplementedwithintheCONSTRUCTORofaclass.
TousetheBORmacrosinaclass,twoINCLUDESmustbeincluded.

Include<CNTN03>containsthelocaltypes

Include<CNTN02>containstheBORmacros

13)WhyIF_WORKFLOWInterface?
The IF_WORKFLOW interface is necessary when using an ABAP class within the SAP
WebFlowEngine.Theinterfacecontainsmethodsthatallowtheobjecttobeusedwithin
theSAPWebFlowEngine.
TheSAPWebFlowEnginehandlesallobjectsgenerically.Objectshavetobesavedinthe
eventofacontextchange.Therefore,itisnecessarytoconvertobjectreferencesinsuch
a way that they can be saved persistently. Conversely, we have to be able to generate
thecorrespondinginstanceofanABAPclassfromthepersistentlysavedkey.

There are also a number of SAP WebFlow Engine components, for example, the
Workflow Log that can display objects. In this case the object has to provide
correspondingfunctions.

The IF_WORKFLOW interface puts a logical parenthesis round the BI_PERSISTENT


(instancemanagement)andBI_OBJECT(objectbehavior)interfaces.TheIF_WORKFLOW
interfacecontainsthefollowingmethods:

BI_PERSISTENT~FIND_BY_LPOR

BI_PERSISTENT~LPOR
BI_PERSISTENT~REFRESH
BI_OBJECT~DEFAULT_ATTRIBUTE_VALUE
BI_OBJECT~EXECUTE_DEFAULT_METHOD
BI_OBJECT~RELEASE

AclassthatimplementstheIF_WORKFLOWinterfacecanbeusedinanyworkflow.The
class is automatically released for use in workflows when the interface is implemented.
Therefore, we can only make compatible changes to a class after implementation (we
cannotdeleteattributes,changetypesordeletemethods).Thereisnowhereusedlistto
showwhichworkflowstheclassisusedin.

Internal classes of an application should not implement the IF_WORKFLOW interface,


sincethiscouldmeanthateachmethodoftheclassisusedintheworkflow.Therefore,
we should encapsulate the workflow functions in another class that calls the selected
methodsoftheinternalclass.

Each method of the IF_WORKFLOW Interface as mentioned earlier has its distinct
functionality,whichisdiscussedbelow.

14.BI_PERSISTENT~FIND_BY_LPORMethod:
If we want to convert a persistent saved display of an object into an instance of the
corresponding
ABAP
class,
SAP
Webflow
Engine
calls
the
BI_PERSISTENT~FIND_BY_LPORmethod.
Features:
The method parameter LPOR is the persistent object reference and is of SIBFLPOR
structuretype.AreferenceofBI_PERSISTENTtypeisreturned.
ThefollowingtableshowsthecomponentsoftheSIBFLPORstructure:

FieldDescription
CATIDDescribestheobjecttype(CLforABAPclasses)
TYPEIDABAPclassname
INSTIDObjectkey.Thekeyislimitedto32characters.

Wecanimplementthismethodinseveralways.Inthecaseofpersistentclasseswecan
createtheABAPobjectinstanceusingthegeneratedclasses.
In the case of individual persistence management we have to implement the individual
actions (such as creating an instance, performing an existence check, entering public
attributes,andsoon)manuallywithinthe
class.
Instancemanagementtakesplaceautomaticallyinthecaseofpersistentclasses.Inthe
case of individual persistence management we also have to carry out instance
managementbyclass.

The SAP WebFlow Engine does not provide any instance management. We must

thereforeimplementourowninstancemanagementinthecaseofindividualpersistence
management.TheFIND_BY_LPORmethodshouldalwaysreturnthesameinstanceifthe
followingproblemsaretobeavoided:

Inconsistencyinthedatadisplay
Instancedatabeingoverwrittenbyanotherinstance
Lockingconflicts

ThereisanimplementationexampleintheCL_SWF_FORMABSENCdemoclass.

"Youfoundtheinformationhelpfulandwanttosaythanks?Yourdonationisenoughto
inspireustodomore.Thanksabunch!"

Posted in: ABAP Interview Questions, ABAPInterviewQuestions, DataDictionary, SAPWorkflow, SAP


Workflow

Youmightalsolike:
SAPProjectRealTimeABAPInterviewQuestionsAnswers
CompleteListofSAPABAPFunctionModules
SAPProjectQuestionsandAnswers/SAPProjectInterviewQuestionsRealTime
SAPABAPCodinginEfficientManner
SAPInterviewQuestions10
Linkwithin

NewerPost

Home

OlderPost

0comments:
PostaComment
Note:Onlyamemberofthisblogmaypostacomment.

Enteryourcomment...

Commentas:

IndianGreat(Google)
Signout

Publish

Preview

Notifyme

Categories

ABAPInterviewQuestions(50)ABAPOpenSQLStatements(1)ABAPSyntaxRules(6)ABAPWORKBENCH(2)
ALE IDOC (6) ALE IDOC Interview Questions (19) ALV Interview Questions (22) BADI (2) BAPI (1) BAPI

InterviewQuestions(14)BDC(6)BDCInterviewQuestions(9) ClassicalReportsInterviewQuestion(3) ClassicalReports

InterviewQuestions(22) Conditional Statements (1) CrossApplications (14) Data Dictionary (48) Data Type
Questins (6) Data types (1) Dialog programming (30) Dialog Programming Interview Questions (4) DOMAIN Interview
Questions (8) Function Module (2) IDoc Tutorials (6) Interactive Report Interview Questions (4) InteractiveReports
InterviewQuestions(22) Internal Tables (1) Lock Object Interview Questions (1) LockObjectsInterviewQuestions (10) Logical
Database (1) ModularizationInterviewQuestions(25)ModulePoolProgramming(39) Object Oriented ABAP (2)
Object Oriented ABAP Interview Questions (34) OOABAP (9) Reports (14) Reports Interview Questions
(19) RFC (1) RFCInterviewQuestions(14) RICEF (1) RICEF Objects (1) SAP ABAP Interview Questions (39) SAP

ABAPIntroduction(46)SAPABAPMessageTypes(2) SAPBADIInterviewQuestions(11) SAPBasics


(70) SAP Books (2) SAP Certification (1) SAP CONSULTANTS (5) SAP CRM (1) SAP ENHANCEMENTS (39) SAP
EXITS(39)SAPEXITS(SAPENHANCEMENTS)InterviewQuestions(1)SAPExitsEnhancementsInterviewQuestions(3)SAP Free Books
(1) SAPHR(2) SAP Lock Object (1) SAP Open SQL Statements (1) SAP R/3 Architecture (4) SAP Search help (1) SAP Smartforms (1) SAP
SmartformsInterviewQuestions(2)SAPTables(5)SAPTcodes(10)SAPViews(1) SAPWebdynproABAP(12)SAPWorkflow(3)

SAPWorkProcessors(2)Scripts(3)ScriptsInterviewQuestions(32) SearchHelpInterviewQuestions(9) Smartforms (1)


Table Maintenance Generator(4)Tables in SAP(2) Tables Interview Questions (3) Type Group Interview Questions (7) Variable
Declaration(1) ViewsInterviewQuestions(5)Webdynpro(12)

ProtectedBlog

Copyright2014SAPABAPInterviewQuestions|PoweredbyBlogger

ThisblogisnotaffiliatedtoSAPAG|SAPistrademarkofSAPAG|Theinformationcollectedfromvarioussourcesuseinformationwithyourownrisk.