Professional Documents
Culture Documents
Explore...ABAP:CallMaintenanceViewfromaprogramusingFMVIEW_MAINTENANCE_CALL
EXPLORE...ABAP
| D EMO & UTIL ITY CO D ES | TIPS & TRICK S | BEST PRA CTICES
CallMaintenanceViewfromaprogramusingFMVIEW_MAINTENANCE_CALL
ThiscodedemonstrateshowtocallfunctionmoduleVIEW_MAINTENANCE_CALLtocallatablemaintenanceviewfromany
program.
S EA R C H T HI S B L O G
Search
ALE(1)
ALV(8)
BADI(1)
BOLProgramming(1)
CustomConversionExit(1)
DynamicInternalTable(2)
EDI(1)
Excelupload(1)
F4Help(2)
HTMLinABAP(1)
ModulePool(3)
PerformanceTuning(1)
REGEX(1)
SelectionScreen(3)
TMG(1)
TrafficLight(1)
TransactionCodes(2)
UsefulFunctionModules(4)
UtilityCodes(12)
UtilityTips(20)
S UB S C R I B E V I A EMA I L
Enteryouremailaddress:
Subscribe
B L O G A R C HI V E
2012(1)
2011(1)
2010(2)
2009(8)
2008(17)
December(2)
October(1)
September(2)
August(4)
July(8)
TheCode:
Populateascreenfieldwithout
triggeringPAIusi...
1 *&*
Gettheenteredvaluefromafield
3 *&*
2 *&ReportZ_TEST_PROGRAM
http://abapexplorer.blogspot.in/2008/07/functionmoduletocalltable.html
1/3
3/31/2015
Explore...ABAP:CallMaintenanceViewfromaprogramusingFMVIEW_MAINTENANCE_CALL
onPOVofanoth...
CallMaintenanceViewfroma
programusingFMVIEW...
CheckingSyntaxaprogramat
runtime
4 *&Demoprogramforbloghttp://abapexplorer.blogspot.com/
5 *&*
6 REPORTz_test_program.
7 DATA:
8 i_sellistTYPESTANDARDTABLEOFvimsellistINITIALSIZE0,
9 i_headerTYPESTANDARDTABLEOFvimdescINITIALSIZE0,
Escapecharacterfornamesin
ABAP
10 i_namtabTYPESTANDARDTABLEOFvimnamtabINITIALSIZE0.
HowtosearchforBADI's
12 PARAMETERS:p_viewTYPEviewnameMATCHCODEOBJECTviewmaintOBLIGATORY.
ABAPPerformanceTuning
Checkpoints
13
Dynamictabledisplayusing
CL_SALV_TABLE
11
14 ATSELECTIONSCREEN.
15
16 CALLFUNCTION'VIEW_GET_DDIC_INFO'
17 EXPORTING
18 viewname=p_view
19 *VARIANT_FOR_SELECTION=''
T O T A L P A G EV I EWS
20 TABLES
21 sellist=i_sellist
22 x_header=i_header
2 1 7095
23 x_namtab=i_namtab
24 EXCEPTIONS
25 no_tvdir_entry=1
FO LLO WER S
Jointhissite
withGoogleFriendConnect
Members(10)
26 table_not_found=2
27 OTHERS=3
28 .
29 IFsysubrc<>0.
30 data:l_messagetypeNATXT.
31 CONCATENATE'Table/View'p_view
32 INTOl_messageSEPARATEDBYspace.
33 MESSAGEe001(00)WITHl_message'notintheDictonary'.
34 ENDIF.
Alreadyamember?Signin
35
36 STARTOFSELECTION.
37
38 CALLFUNCTION'VIEW_MAINTENANCE_CALL'
39 EXPORTING
40 action='S'
41 view_name=p_view
42 EXCEPTIONS
43 client_reference=1
44 foreign_lock=2
45 invalid_action=3
46 no_clientindependent_auth=4
47 no_database_function=5
48 no_editor_function=6
49 no_show_auth=7
50 no_tvdir_entry=8
51 no_upd_auth=9
52 only_show_allowed=10
53 system_failure=11
54 unknown_field_in_dba_sellist=12
55 view_not_found=13
56 maintenance_prohibited=14
57 OTHERS=15
58 .
59
60 IFsysubrc<>0.
61 MESSAGEi001(00)WITH'Errorwhilecallingtheview'.
62 LEAVELISTPROCESSING.
63 ENDIF.
5CO MMENTS:
NaimeshPatelsaid...
HiSourav,Thanksforyoucommentonmyblog.
Youmightliketoseethisblog:whichcangetthechangedcontentsaftertheFMVIEW_MAINTENANCE_CALL
http://abapexplorer.blogspot.in/2008/07/functionmoduletocalltable.html
2/3
3/31/2015
Explore...ABAP:CallMaintenanceViewfromaprogramusingFMVIEW_MAINTENANCE_CALL
http://helpabap.blogspot.com/2008/09/capturechangedcontentafterfm.html
SEP T EM BER1 3,20 0 8 A T 4:29A M
Anonymoussaid...
HOWshudigoaboutifinsteadofparameter,selecctoptionisused?
thanks
A U GU ST 1 6,20 0 9A T 1 2:24A M
RafaelCamiloRojasLpezsaid...
URLwasmovedto:
http://zevolving.com/2008/09/capturechangedcontentafterthefmview_maintenance_call/
N O V EM BER1 6,20 1 2A T 7:32A M
manisaid...
Iamreallysatisfybyyourinformation.
It'swellwritten,tothepoint,andrelativetowhatIdo.
Ilikeitverymuchforgivinginformationon
SAPABAPOnlineTraining
.
N O V EM BER27,20 1 2A T 9:28 P M
yektektrainingsaid...
nicepostthankyou
M A RCH27,20 1 4A T 9:1 6A M
PO STACO MMENT
Enteryourcomment...
Commentas:
Publish
GoogleAccount
Preview
PostaComment
NewerPost
Home
OlderPost
Subscribeto:PostComments(Atom)
http://abapexplorer.blogspot.in/2008/07/functionmoduletocalltable.html
3/3