Академический Документы
Профессиональный Документы
Культура Документы
SetupforhavingadefaultstoragecategoryProductLifecycleManagementSCNWiki
GettingStarted Newsletters
Welcome,Guest
Login
Register
SearchtheCommunity
Products
Services&Support
AboutSCN
Downloads
Industries
Training&Education
Partnership
DeveloperCenter
LinesofBusiness
UniversityAlliances
Events&Webinars
Innovation
Store
ProductLifecycleManagement / / DMSCustomizing
Setupforhavingadefaultstoragecategory
CreatedbyChristophHopf,lastmodifiedonNov04,2014
Purpose
BasedondifferentbusinessandprocessrulesitmightbenecessarythatyouwouldavoidthepopupforselectingastoragecategoryinDMS.
https://wiki.scn.sap.com/wiki/display/PLM/Setup+for+having+a+default+storage+category
1/6
7/22/2016
SetupforhavingadefaultstoragecategoryProductLifecycleManagementSCNWiki
insteadyouwouldliketodefineadefaultstoragecategorythatshouldbeusedduringthecheckinprocess.
Overview
ToachievethistherearetwodifferentoptionsavailableanditdependsmoreorlessonyourrequirementsandABAPskillswhichonetochoose.Thepossibleoptionsare
Settingupaprofileincustomizing
UsingBADIDOCUMENT_STORAGE01withmethodBEFORE_LIST_STORAGECAT
Settingupaprofile
Sothefirstproposalwouldbetocreateaprofileinyoursystem.Youwillfindthenecessarytransactioninthecustomizingtreeat
https://wiki.scn.sap.com/wiki/display/PLM/Setup+for+having+a+default+storage+category
2/6
7/22/2016
SetupforhavingadefaultstoragecategoryProductLifecycleManagementSCNWiki
Forthisprofilepleaseaddyourworkstationapplicationsunder"Determinedefinitionsforapplications".Hereyoucanmaintainthedefaultstoragecategoryforthisapplicationinfield'Storagecat.'.Pleaseset
alsothe'display'flagforallmaintainedworkstationapplicationstoavoidsomefilteringbehaviorinCV03N.
https://wiki.scn.sap.com/wiki/display/PLM/Setup+for+having+a+default+storage+category
3/6
7/22/2016
SetupforhavingadefaultstoragecategoryProductLifecycleManagementSCNWiki
Sincethisprofileiscreatedassignittoallyourusersdirectly.Thenifanuseraddsaneworiginalfileandchoosesaworkstationapplicationthesystemshouldtakethestoragecategoryautomaticallyfrom
theprofileandthepopupnolongerappears.
Theadvantageofthisoptionisthatthewholesettingsarepurestnadardfunctionality.Butyouneedtocreateanentryforeachworkstationapplicationyouareusingsothatthiseffectisactiveforallfile
formats.
BadiDOCUMENT_STORAGE01
ThesecondoptionwouldbetousetheBADIDOCUMENT_STORAGE01withmethodBEFORE_LIST_STORAGECATinyoursystem.
Becauseinthestandarditisonlypossibletochooseifthestoragecategorygetsfilledautomaticallyoriftheusercandecide.WiththeBADImethodyoucanimplementaspecialcheckanddecideifyoujust
wanttoprovidearestrictedlistofpossiblestoragecategoriesforexample.Furtheryoucanrealizeanindividualcheckingfunctionbasedonyourdetailedprocessrequirements(e.g.implementingauthority
checks,....).
TheBADImethodiscalledinfunctionmoduleCV117_SCAT_SHOW_LISTwiththefollowingcoding:
**
https://wiki.scn.sap.com/wiki/display/PLM/Setup+for+having+a+default+storage+category
4/6
7/22/2016
SetupforhavingadefaultstoragecategoryProductLifecycleManagementSCNWiki
**Calluserexit
**
CLEARlf_act_imp_existing.
CALLMETHODcl_exithandler=>get_instance
EXPORTING
exit_name='DOCUMENT_STORAGE01'
null_instance_accepted=seex_true
IMPORTING
act_imp_existing=lf_act_imp_existing
CHANGING
instance=lf_exit.
lt_dc_list[]=gt_scat[].
IFNOTlf_act_imp_existingISINITIAL.
CALLMETHODlf_exit>before_list_storagecat
exporting:document_type=pf_dokar"Note804577
CHANGING:storagecat_list=lt_dc_list
EXCEPTIONS:cancel=01
OTHERS=02.
IFsysubrc<>0.
EXIT.
ENDIF.
ENDIF.
gt_scat[]=lt_dc_list[].
*
**KPRO:ifexactly1>takethis&goback
*
DESCRIBETABLEgt_scatLINESlf_rows.
IFlf_rows=1ANDpf_showISINITIAL.
READTABLEgt_scatINDEX1.
pfx_scat=gt_scatdttrg.
pfx_stype=gf_stype.
EXIT.
ENDIF.
AsyoucanseetheBADImethodgetsthedocumentnumberandthe"standard"storagecateogrylist(lt_dc_list).ThislistcanbeeditedandrebuildthenintheBADImethodbasedonyourimplemented
checks.PleasenotethatiftheBADImethodonlyreturnsonepossiblestoragecategory,thiscategoryisfilledautomaticallyandnopopupappears.Thepopuponlyappearswhentherearemorethanone
https://wiki.scn.sap.com/wiki/display/PLM/Setup+for+having+a+default+storage+category
5/6
7/22/2016
SetupforhavingadefaultstoragecategoryProductLifecycleManagementSCNWiki
categoriestochoose.
Back
document_storage01
ContactUs
Privacy
SAPHelpPortal
TermsofUse
LegalDisclosure
Copyright
https://wiki.scn.sap.com/wiki/display/PLM/Setup+for+having+a+default+storage+category
default
storage
category
profile
customizing
dms
dms_cus
FollowSCN
6/6