0% found this document useful (0 votes)
31 views

Important Function Modules List

Uploaded by

Suresh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Important Function Modules List

Uploaded by

Suresh
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 24

kkSAPkTutorialsk|kSAPkABAPk|kFunctionalkModuleskGuides kk<http://sapbrainsonline.com/> SAPBrainsonline.comk-kTheklargekcollectionkofktutorialsk&kreferencesk& studykmaterialsk&kPDFkboo skaboutkSAP kk*kABAPkTutorialk<http://sapbrainsonline.com/abap-tutorial> kk*kABAPkSyntaxk<http://sapbrainsonline.com/abap-tutorial/syntax> kk*kLSMWk<http://sapbrainsonline.com/lsmw-tutorial> kk*kBAPIk<http://sapbrainsonline.com/bapi-tutorial> kk*kSMARTFORMSk<http://sapbrainsonline.com/smartforms-tutorial> kk*kSAPkDownload kkkk<http://sapbrainsonline.com/help/sap-software-download.html> kk*kMMkModulekTutorialk<http://sapbrainsonline.com/mm-tutorial> -----------------------------------------------------------------------kkkkListkofkABAPkFunctionkModuleskinkSAP HerekiskaklistkofkimportantkFunctionkModuleskinkSAP.

Functionkmoduleskare rekusablekprogramsk(kcodesk)kthatkcankbekcalledkviakABAPkprograms. ABAP_DOCU_DOWNLOADk k DownloadkABAPkdocumentationkinkHTMLkformat.

APPL_LOG_DELETEk Withkthiskfunctionkmodulekyoukdeleteklogskinkthe databasekaccordingktokspecifiedkselectionkconditions k APPL_LOG_DISPLAYk database. k APPL_LOG_DISPLAY_INTERN Withkthiskfunctionkmodulekyoukcankanalyzeklogskinkthe

Withkthiskfunctionkmodulekyoukcankanalyzeklogskinklocal memory,ke.g.kwhenkyoukhavekonlykcollectedklogkrecordskatkruntimekandkdoknot wantktokwritektokthekdatabase. k APPL_LOG_INITk Thiskfunctionkmodulekchec skwhetherkthekspecified objectkorksub-objectkexistskandkdeleteskallkexistingkassociatedkdatakin localkmemory. k APPL_LOG_READ_DBk Withkthiskfunctionkmodulekyoukreadktheklogkdatakinkthe databasekforkankobjectkorksub-objectkaccordingktokspecifiedkselection conditions. k

APPL_LOG_READ_INTERNk Withkthiskfunctionkmodulekyoukreadkallklogkdatakwhose logkclasskhaskatkleastkthekspecifiedkvalue,kfromklocalkmemory,kforkthe specifiedkobjectkorksub-object. k APPL_LOG_SET_OBJECTk Withkthiskfunctionkmodule,kyoukcreatekaknewkobjectkor sub-objectkforkwritingkinklocalkmemory.kWithkakflagkyoukcankcontrolkwhether thekAPPL_LOG_WRITE_kmessageskarekwrittenkinklocalkmemorykorkarekoutputkon thekscreen. k APPL_LOG_WRITE_DBk Withkthiskfunctionkmodulekyoukwritekallkdatakforkthe specifiedkobjectkorksub-objectkinklocalkmemoryktokthekdatabase.kIfktheklog forkthekobjectkorksub-objectkinkquestionkisknew,ktheklogknumberkiskreturned tokthekcallingkprogram. k APPL_LOG_WRITE_HEADERk Withkthiskfunctionkmodule,kyoukwritektheklogkheader datakinklocalkmemory. k APPL_LOG_WRITE_LOG_PARAMETERS Withkthiskfunctionkmodule,kyoukwritektheknamekofkthe logkparameterskandkthekassociatedkvalueskforkthekspecifiedkobjectkor sub-objectkinklocalkmemory.kIfkthiskfunctionkmodulekiskcalledkrepeatedlykfor theksamekobjectkorksub-object,kthekexistingkparameterskarekupdated accordingly.kIfkyoukdoknotkspecifykankobjectkorksub-objectkwithkthekcall, thekmostkrecentlykusedkiskassumed. k APPL_LOG_WRITE_MESSAGE_PARAMS Withkthiskfunctionkmodulekyoukwritekaksinglekmessage, withkparameters,kinklocalkmemory.kOtherwisekthekfunctionkmodulekwor skli e APPL_LOG_WRITE_SINGLE_MESSAGE. k APPL_LOG_WRITE_MESSAGES Withkthiskfunctionkmodulekyoukwritekonekorkmore messages,kwithoutkparameters,kinklocalkmemory. k APPL_LOG_WRITE_SINGLE_MESSAGE Withkthiskfunctionkmodulekyoukwritekaksinglekmessage, withoutkparameters,kinklocalkmemory.kIfknokheaderkentrykhaskyetkbeenkwritten forkthekobjectkorksub-object,kitkiskcreated.kIfkyoukdoknotkspecifykankobject orksub-objectkwithkthekcall,kthekmostkrecentlykusedkiskassumed. ARFC_GET_TIDk k willkreturnkthekIPkaddresskofkthekterminalkinkhex.

BAL_CNTL_CREATEk k

CreatekControlkforklogkdisplay

BAL_CNTL_FREEk ReleasekControl k BAL_CNTL_REFRESHk k BAL_DB_DELETEk Deleteklogskfromkthekdatabase k BAL_DB_DEQUEUEk Unloc klog k BAL_DB_ENQUEUEk Loc klog k BAL_DB_LOADk k BAL_DB_LOADk Loadklog(s) k BAL_DB_SAVE Saveklogskinkthekdatabase k BAL_DB_SAVEk Saveklog(s) k BAL_DB_SAVE_PREPARE Prepareksave k BAL_DB_SEARCHk Findklogskinkthekdatabase k BAL_DSP_LOG_DISPLAYk Displaykmessageskinkmemory k BAL_DSP_LOG_DISPLAYk DisplaykLog k BAL_DSP_LOG_PARAMETERSk Loadklogskfromkthekdatabase Putknewkdatakinklogkdisplay

k BAL_DSP_LOG_TECHNICAL_DATA

Eitherkoutputkextendedklongktextkorkcallkakcallbac routinek(basedkonkthekdatakinkBAL_S_LOG-PARAMS)

Outputkallklogkheaderkdata k BAL_DSP_MSG_LONGTEXTk k BAL_DSP_MSG_PARAMETERS Displaykmessageklongktext

BAL_DSP_MSG_TECHNICAL_DATA Outputktechnicalkdatakofkakmessageksuchkaskwor karea, errorknumber,ketc. k BAL_DSP_OUTPUT_FREEk k BAL_DSP_OUTPUT_INITk k BAL_DSP_OUTPUT_SET_DATA Endkoutput Initializekoutput

Setkdatasetktokbekdisplayed k BAL_DSP_PROFILE_DETLEVEL_GET MessagekhierarchykinkDETLEVEL k BAL_DSP_PROFILE_NO_TREE_GET Displaykwithoutktreek(fullscreen) k BAL_DSP_PROFILE_POPUP_GET Displaykwithoutktreek(popup) k BAL_DSP_PROFILE_SINGLE_LOG_GET Standardkprofilek(SLG1)kforkoneklog k BAL_DSP_PROFILE_STANDARD_GET Standardkprofilek(SLG1)kforkaklotkofklogs k

Eitherkoutputkextendedklongktextkorkcallkakcallbac routinek(basedkonkthekdatakinkBAL_S_MSG-PARAMS) k

BAL_GLB_AUTHORIZATION_GET Assignkauthorization k BAL_GLB_AUTHORIZATION_RESET Resetkauthorization k BAL_GLB_CONFIG_GETk Readkconfiguration k BAL_GLB_CONFIG_SETk k BAL_GLB_MEMORY_EXPORTk PutkfunctionkgroupkmemorykinkABAP-MEMORY k BAL_GLB_MEMORY_IMPORT GetkfunctionkgroupkmemorykfromkABAP-MEMORY k BAL_GLB_MEMORY_REFRESHk (Partially)kresetkglobalkmemory k BAL_GLB_MEMORY_REFRESHk (Partially)kinitializekmemory k BAL_GLB_MSG_CURRENT_HANDLE_GET Setkconfiguration

Getkcurrentkmessagekhandle k BAL_GLB_MSG_DEFAULTS_GET Getkmessagekdefaults k BAL_GLB_SEARCH_LOG Findklogskinkmemory k BAL_GLB_SEARCH_MSGk Findkmessageskinkmemory k BAL_LOG_CREATEk Createklogkwithkheaderkdata k BAL_LOG_CREATEk Createklogkwithkheaderkdata k

BAL_LOG_DELETEk Deleteklogk(fromkdatabasekalsokatkSave) k BAL_LOG_EXIST Chec kexistencekofkaklogkinkmemory k BAL_LOG_HDR_CHANGEk k BAL_LOG_HDR_CHECK Chec klogkheaderkdatakforkconsistency k BAL_LOG_HDR_READk k BAL_LOG_MSG_ADDk k BAL_LOG_MSG_ADDk Putkmessagekinklog k BAL_LOG_MSG_CHANGE Changekmessage k BAL_LOG_MSG_CHANGEk Changekmessage k Putkmessagekinklog Changeklogkheader

BAL_LOG_MSG_CUMULATEk k BAL_LOG_MSG_DELETEk k BAL_LOG_MSG_DELETEk k BAL_LOG_MSG_EXIST

Addkmessagekcumulated Deletekmessage

Deletekmessage

Chec kexistencekofkakmessagekinkmemory

BAL_LOG_MSG_CHECKk k

Readklogkheaderkandkotherkdata

Chec kmessagekdatakforkconsistency

k BAL_LOG_MSG_READ Readkmessagekandkotherkdata k BAL_LOG_MSG_REPLACE Replaceklastkmessage k BAL_LOG_REFRESHk Deleteklogkfromkmemory k BAL_LOG_REFRESH Deleteklogkfromkmemory k BAL_MSG_DISPLAY_ABAPk k BAL_OBJECT_SELECTk ReadkApplicationkLogkobjectsktablekrecord k BAL_OBJECT_SUBOBJECT Chec kwhetherkobjectkandksubobjectkexistkandkthe combinationkiskallowed k BAL_SUBOBJECT_SELECTk Readksubobjectktablekrecord k BP_EVENT_RAISEk TriggerkankeventkfromkABAP/4kprogram k BP_JOBLOG_READk Fetchkjobklogkexecutions k CHANGEDOCUMENT_READ_HEADERS Getkthekchangekdocumentkheaderkforkaksaleskdocument, andkputkthekresultskinkankinternalktable. k OutputkmessagekaskABAP-MESSAGE

CHANGEDOCUMENT_READ_POSITIONS Getkthekdetailskofkakchangekdocument,kandkstorekthemkin ankinternalktable.kThiskwillktellkyoukwhetherkakfieldkwaskchanged,kdeleted, orkupdated. k CLAF_CLASSIFICATION_OF_OBJECTS Returnkallkofkthekcharacteristicskforkakmaterial k CLOI_PUT_SIGN_IN_FRONTk Movektheknegativeksignkfromkthekleftkhandksidekofka number,ktokthekrightkhandksidekofktheknumber.kNotekthatkThekresultkwillkbe leftkjustifiedk(li ekallkcharacterkfields),knotkrightkjustifedkasknumbers normallykare. k CLPB_EXPORTk server) k CLPB_IMPORTk server) k COMMIT_TEXTk k ImportkakTextkTablekfromkthekClipboardk(onkpresentation Exportkaktextktablektokthekclipboardk(onkpresentation

TokloadklongktextkintokSAP

CONVERSION_EXIT_ALPHA_INPUT convertskanyknumberkintokakstringkfillkwithkzeroes, withktheknumberkatkthekextremekright k CONVERSION_EXIT_ALPHA_OUTPUT

convertskanyknumberkwithkzeroeskrightkintokaksimple integer k CONVERT_ABAPSPOOLJOB_2_PDF convertkabapkspoolkoutputktokPDF k CONVERT_OTF ConvertkSAPkdocumentsk(SAPScript)ktokotherktypes. k CONVERT_OTFSPOOLJOB_2_PDF

convertskakOTFkspoolktokPDFk(i.e.kSapscriptkdocument) k CONVERT_TO_FOREIGN_CURRENCY Convertklocalkcurrencyktokforeignkcurrency. k CONVERT_TO_LOCAL_CURRENCY Convertkfromkforeignkcurrencyktoklocalkcurrency k DATE_CHECK_PLAUSIBILITY Chec ktokseekifkakdatekiskinkakvalidkformatkforkSAP. Wor skwellkwhenkvalidatingkdateskbeingkpassedkinkfromkotherksystems. k DATE_COMPUTE_DAYk Returnskaknumberkindicatingkwhatkdaykofkthekwee kthe datekfallskon.kMondaykiskreturnedkaskak1,kTuesdaykask2,ketc. k DATE_GET_WEEKk willkreturnkthekwee kthatkakdatekiskin. k DATE_IN_FUTUREk CalculatekakdatekNkdayskinkthekfuture. k DAY_ATTRIBUTES_GETk Returnkusefulkinformationkaboutkakday.kWillktellkyou thekdaykofkthekwee kaskakwordk(Tuesday),kthekdaykofkthekwee k(2kwouldkbe Tuedsay),kwhetherkthekdaykiskakholiday,kandkmore.(providedkbykFrancois Henrotte) k DOWNLOADk downloadkakfilektokthekpresentationkserverk(PC) k DYNP_VALUES_READk Readkthekvalueskfromkakdynpro.kThiskfunctionkcankbe usedktokreadkthekvalueskfromkakreportskselectionkscreenktook(Another example). k DYNP_VALUES_UPDATE SimilarktokDYNP_VALUES_READ,kthiskfunctionkwillkallow thekupdatingkofkfieldskonkakdynpro.kVerykusefulkwhenkyoukwantktokchangeka fieldkbasedkonkthekvaluekenteredkforkanotherkfield. k

ENQUE_SLEEPk processing. k

Waitkakspecifiedkperiodkofktimekbeforekcontinuing

ENQUEUE_ESFUNCTIONk Loc kankabapkprogramksokthatkitkcannotkbekexecuted. k PleaseknotekthatkyoukshouldknotkusekSY-REPIDktokpass yourkreportknamektokthekfunction.kThekvaluekofkSY-REPIDkwillkchangekaskitkis beingkpassedktokthekfunctionkmodule,kandkwillknoklongerkholdkthekvaluekof thekcallingkreport. EPS_GET_DIRECTORY_LISTING drive k EPS_GET_FILE_ATTRIBUTES Passkinkakfilenamekandkakpath,kandkwillkreturn attributeskforkthekfile k F4_DATEk displayskakcalendarkinkakpopupkwindowkandkallowskuser tokchoosekakdate,korkitkcankbekdisplayedkreadkonly. k F4_IF_FIELD_VALUE_REQUEST UsekvalueskfromkakDDICktablektokprovidekaklistkof possiblekvalues.kTABNAMEkandkFIELDNAMEkarekrequiredkfields,kandkwhen MULTIPLE_CHOICEkiskselected,kmorekthankonekvaluekcankbekreturned. k F4IF_INT_TABLE_VALUE_REQUEST F4khelpkthatkreturnskthekvalueskselectedkinkankinternal table.kVerykhandykwhenkprogrammingkyourkverykownkF4khelpkforkakfield. k F4IF_SHLP_EXIT_EXAMPLE documentskthekdifferentkreasonsktokusekaksearchkhelp exit,kandkshowskhowkitkiskdone. k F4IP_INT_TABLE_VALUE_REQUEST Thiskfunctionkdoesknotkexistkink4.6kandkabove.kUse F4IF_INT_TABLE_VALUE_REQUESTkinstead. k FILENAME_GETk

popupktokgetkakfilenamekfromkakuser,kreturnskblan filenamekifkuserkselectskcancel

returnkaklistkofkfilenameskfromkaklocalkorknetwor

FORMAT_MESSAGE Ta eskakmessagekidkandknumber,kandkputskitkintoka variable.kWor skbetterkthankWRITE_MESSAGE,ksinceksomekmessageskusek$kaska placekholder,kandkWRITE_MESSAGEkdoesknotkaccommadatekthat,kitkonlykreplaces thekampersandsk(&)kinkthekmessage. k FTP_COMMANDk ExecutekakcommandkonkthekFTPkserver k FTP_CONNECTk k FTP_DISCONNECTk Closekthekconnectionk(andklogkoff)kthekFTPkserver k FUkCSAP_MAT_BOM_READk Youkcankusekthiskfunctionkmodulektokdisplayksimple materialkBOMs.kYoukcannotkdisplaykBOMkgroupsk(forkexample,kallkvariantskofka variantkBOM).kaskinktransactionkCS03.kCurrentkrestrictions:kYoukcannot displayklongktexts.kYoukcannotkdisplayksub-items.kYoukcannotkdisplay classificationkdatakofkBOMkitemskforkbatches.kYoukcankonlykdisplaykone alternativekorkvariant.kYoukcannotkenterkankalternativekforkmodule CSAP_MAT_BOM_READ,ksokyoukalwayskseekalternativek01.kThekfollowingkexample camekfromkakpostingkonkthekSAP-R3-Lkmailingklist. k FunctionkGroupkGRAPkisknow obsolete. SAPkrecommendskusingkfunctionskinkfunctionkgroupkSFES instead.kBelowkiskankoverviewkofkthekchanges. k G_SET_GET_ALL_VALUES Fetchkvalueskfromkakset. k GET_CURRENT_YEARk k GET_GLOBAL_SYMBOLSk Returnskaklistkofkallktables,kselectkoptions,ktexts, etckforkakprogram.kEvenkincludeskthektextkdefinitionskforkthekselection screen k Getkthekcurrentkfiscalkyear. Openkakconnectionk(andklogkin)ktokankFTPkserver

GET_INCLUDETABk ReturnskaklistkofkallkINCLUDESkinkakprogram k GET_JOB_RUNTIME_INFOk Getkthekcurrentkjobknumberkfromkakprogram.kAlso returns otherkusefulkinfokaboutkthekcurrentkjob. k GUI_CREATE_DIRECTORYk k GUI_DELETE_FILEk presentationkserver k GUI_DOWNLOADk ReplaceskWS_DOWNLOAD.kDownloadktablekfromkthekapp serverktokpresentationkserver k GUI_EXECk ReplaceskWS_EXECUTE.kStartkakFilekorkProgram AsynchronouslykwithkWinExec k GUI_GET_DESKTOP_INFOk Des topk(client) k GUI_REMOVE_DIRECTORY Deletekakdirectorykonkthekpresentationkserver k GUI_RUNk StartkakFilekorkProgramkAsynchronouslykwith ShellExecute k GUI_UPLOADk ReplaceskWS_UPLOAD.kUpoadkfilekfromkpresentationkserver tokthekappkserver k HELP_STARTk Displaykhelpkforkakfield.kUsefulkforkdoingkATkSELECTION SCREENkONkVALUEkREQUESTkforkthosekfieldskthatkdoknotkprovidekF4khelpkatkthe DDICklevel. k HELP_VALUES_GET_WITH_TABLE ReplaceskWS_QUERY.kDeliverskInformationkAboutkthe Createkakdirectorykonkthekpresentationkserver ReplaceskWS_FILE_DELETE.kDeletekakfilekonkthe

ShowkaklistkofkpossiblekvalueskforkF4kpopupkhelpkon selectionkscreens.kThiskfunctionkmodulekpopskupkakscreenkthatkiskjustkli e allkthekotherkF4khelps,ksokitkloo skli ekthekrestkofkthekSAPksystem.kVery usefulkforkprovidingkdropdownskonkfieldskthatkdoknotkhavekthemkpredefined.

k HOLIDAY_CHECK_AND_GET_INFO Usefulkforkdeterminingkwhetherkorknotkakdatekiska holiday.kGivekthekfunctionkakdate,kandkakholidaykcalendar,kandkyoukcan determinekifkthekdatekiskakholidaykbykchec ingkthekparameterkHOLIDAY_FOUND. k HOLIDAY_GET Provideskaktablekofkallkthekholidayskbasedkuponka FactorykCalendark&/kHolidaykCalendar. k HR_DISPLAY_BASIC_LISTk iskankHRkfunction,kbutkcankbekusedkforkanykdata.kYou passkitkdata,kandkcolumnkheaders,kandkitkprovideskaktablekcontrolkwithkthe abilityktokmanipulatekthekdata,kandksendkitktokWordkorkExcel.kAlsokseekthe additionalkdocumentationkhere. k HR_GET_LEAVE_DATA Getkallkleavekinformationk(includeskleavekentitlement, usedkholidays/paidkoutkholidays) k

HR_PAYROLL_PERIODS_GETk Getkthekpayrollkperiodkforkakparticularkdate. (provided bykFrancoiskHenrotte) k HR_TIME_RESULTS_GETk Getkthektimekresultskforkakpayrollkperiod.k(providedkby FrancoiskHenrotte) k INIT_TEXTk TokloadklongktextkintokSAP k K_WERKS_OF_BUKRS_FINDk Returnkaklistkofkallkplantskforkakgivenkcompany code. k LIST_FROM_MEMORY Retrieveskthekoutputkofkakreportkfromkmemorykwhenkthe reportkwaskexecutedkusingkSUBMITkEXPORTINGkLISTkTOkMEMORY.kSeekalso WRITE_LIST. k LIST_TO_ASCIIk convertkankABAPkreportk(displayedkonkscreen)kfromkOTF tokASCIIkformat k MBEW_EXTENDk Getkthekstoc kpositionkforkthekpreviouskmonth.kThis

HR_IE_NUM_PRSI_WEEKSk k

Returnktheknumberkofkwee skbetweenktwokdates.

displaysktheksamekinfokthatkyoukseekinkMM03. k MONTH_NAMES_GETk language. k MONTH_PLUS_DETERMINEk Addkorksubtractkmonthskfromkakdate.kToksubtractka month,kenterkaknegativekvaluekforkthekmonthskparameter. k MS_EXCEL_OLE_STANDARD_OLE willkbuildkakfile,kandkautomaticallykstartkExcel k OTF_CONVERTk wrapskseveralkotherkfunctionkmodules.kWillkconvertkOTF tokASCIIkorkPDF k POPUP_TO_CONFIRM_LOSS_OF_DATA Itkreturnskallkthekmonthkandknameskinkrepective

Createkakdialogkboxkinkwhichkyoukma ekakquestion whetherkthekuserkwishesktokperformkakprocessingkstepkwithklosskofkdata. k POPUP_TO_CONFIRM_STEP

Createkakdialogkboxkinkwhichkyoukma ekakquestion whetherkthekuserkwishesktokperformkthekstep. k POPUP_TO_CONFIRM_WITH_MESSAGE Createkakdialogkboxkinkwhichkyoukinformkthekuserkabout akspecifickdecisionkpointkduringkankaction. k POPUP_TO_CONFIRM_WITH_VALUE Createkakdialogkboxkinkwhichkyoukma ekakquestion whetherkthekuserkwishesktokperformkakprocessingkstepkwithkakparticular object. k POPUP_TO_DECIDEk k POPUP_TO_DECIDE_WITH_MESSAGE Providekuserkwithkseveralkchoiceskaskradiokbuttons

Createkakdialogkboxkinkwhichkyoukinformkthekuserkabout akspecifickdecisionkpointkviakakdiagnosisktext. k POPUP_TO_DISPLAY_TEXTk Createkakdialogkboxkinkwhichkyoukdisplaykaktwokline message k POPUP_TO_SELECT_MONTHk Popupktokchoosekakmonth k POPUP_WITH_TABLE_DISPLAY Providekakdisplaykofkaktablekforkuserktokselectkone, withkthekvaluekofkthektableklinekreturnedkwhenkselected. k PRICINGk Returnkpricingkconditionskinkankinternalktable.kUse structurekTCOMKkforkparameterkCOMM_HEAD_1,kandkstructurekTCOMPkforkparameter COMM_ITEM_1,kandksetkCALCULATION_TYPEktokB.kThekpricingkconditionskwillkbe returnedkinkXOMV.kYoukmustkfillkTCOMP,kandkTCOMKkwithkthekappropriatekvalues beforekcalllingkthekfunctionkinkorderkforkitktokwor . k PROFILE_GETk k PROFILE_SETk k READ_TEXTk k REGISTRY_GETk ReadkankEntrykfromkthekRegistry k REGISTRY_SETk k SetkankentrykinkthekRegistry WritekankEntrykinkankINIkFilekonkthekfrontend TokloadklongktextkintokSAP ReadkankEntrykinkankINIkFilekonkthekfrontend

RFC_ABAP_INSTALL_AND_RUN RunskankABAPkprogramkthatkiskstoredkinkthektable PROGRAMkwhenkthekMODEk=kF.kTablekWRITESkcontainskthekouputkofkthekprogram. Allowskyouktokrunkakprogramkwithoutkhavingktheksourcekcodekinkthektarget system. k RH_GET_ACTIVE_WF_PLVAR ReturnkthekactivekHRkPlan k

RH_GET_DATE_DAYNAMEk k RH_START_EXCEL_WITH_DATA

returnkthekdaykbasedkonkthekdatekprovied

startskExcelkwithkthekcontentskofkankinternalktable. ThiskfunctionkfindskExcelkinkthekdes topkregistry.kItkalsokuseskaklocalkPC wor ingkdirectoryktoksavekthekfilek(thatskwhatkthekWkvaluekforkdatakpath flagkdoes).kVeryktransparentktokuser! k RH_STRUC_GETk k RHP0_POPUP_F4_SEARKk iskakmatchcodekforkanyktypekofkHRkPlanningkobject, includingkthekpossibilityktokfillkthekfieldkthatkyoukwant k RKD_WORD_WRAPk Convertkaklongkstringkorkphrasekintokseveralklines. k RP_CALC_DATE_IN_INTERVAL Returnskallkrelatedkorgkinfo

Add/subtractkyears/months/dayskfromkakdate k RP_LAST_DAY_OF_MONTHSk Determineklastkdaykofkmonth k RPY_DYNPRO_READk Readkdynpro,kincludingkscreenkflow k RPY_TRANSACTION_READk Givenkaktransaction,kreturnkthekprogramkandkscreenkor givenkakprogramkandkscreen,kreturnkthektransactionskthatkusekthekprogramkand screen. k RS_COVERPAGE_SELECTIONS Returnskankinternalktablekthatkcontainskakformatted listkofkallkthekselectionkparameterskenteredkforkakreport.kTablekiskreadykto printkout. k

RS_REFRESH_FROM_SELECTOPTIONS Getkthekcurrentkcontentskofkselectionkscreen k RS_SEND_MAIL_FOR_SPOOLLIST SendkmessagekfromkABAP/4kprogramktokSAPoffice. k RS_VARIANT_CONTENTSk Returnskthekcontentskofkthekspecifiedkvariantkinka table. k RSPO_DOWNLOAD_SPOOLJOBk Downloadkthekspoolkfromkakprogramktokakfile. Requires spoolknumber. k RSPO_RETURN_ABAP_SPOOLJOB Fetchkprinterkspoolkaccordingktokthekspoolknumber informed. k RZL_READ_DIR Ifkthekserverknamekiskleftkblan ,kitkreadskakdirectory fromklocalkpresentationkserver,kotherwisekitkreadskthekdirectorykofkthe remotekserver k RZL_READ_DIR_LOCALk k RZL_READ_FILE Readkakfilekfromkthekpresentationkserverkifknokserver namekiskgiven,korkreadkfilekfromkremotekserver.kVerykusefulktokavoid authoritykchec skthatkoccurkdoingkankOPENkDATASET.kThiskfunctionkusingkakSAP Ckprogramktokreadkthekdata. k RZL_SLEEPk k RZL_SUBMITk k Hangkthekcurrentkapplicationkfromk1ktok5kseconds. Submitkakremotekreport. ReadkakdirectorykonkthekApplicationkServer

RZL_WRITE_FILE_LOCALk Savesktablektokthekpresentationkserverk(notkPC).kDoes notkusekOPENkDATASET,ksokitkdoesknotksufferkfromkauthoritykchec s! k

SAP_CONVERT_TO_XLS_FORMAT

ConvertkdataktokMicrosoftkExcelkformat. k SAPGUI_PROGRESS_INDICATOR DisplaykakprogresskbarkonkthekSAPkGUI,kandkgivekthe userksomekideakofkwhatkiskhappening k SAVE_TEXTk TokloadklongktextkintokSAP k SCROLLING_IN_TABLEk Ifkyoukarekcodingkakmodulekpoolkandkusingkaktable control,kyoukcankusekthiskfunctionkSCROLLING_IN_TABLEktokhandlekany scrolling.k(providedkbykPaulkKjaer) k SD_DATETIME_DIFFERENCEk GivekthekdifferencekinkDayskandkTimekfork2kdates k SO_NEW_DOCUMENT_ATT_SEND_API1

Sendkakdocumentkaskpartkofkankemail.kThekdocumentation iskbetterkthanknormalkforkthiskfunction,ksokpleasekreadkit. k SO_SPLIT_FILE_AND_PATHk Splitkakfullykpathedkfilenamekintokakfilenamekandka path. k SO_SPOOL_READk Fetchkprinterkspoolkaccordingktokthekspoolknumber informed.kSeekalsokRSPO_RETURN_ABAP_SPOOLJOB k SO_WIND_SPOOL_LISTk informed. k SWD_HELP_F4_ORG_OBJECTS HRkMatchcodektailoredkforkorganizationalkunits. Includeskakbuttonksokthatkyoukcankbrowsekthekhierarchyktoo. k SX_OBJECT_CONVERT_OTF_PDF ConversionkFromkOTFktokPDFk(SAPScriptkconversion) Browsekprinterkspoolknumberskaccordingktokuser

k SX_OBJECT_CONVERT_OTF_PRT ConversionkFromkOTFktokPrinterkFormatk(SAPScript conversion) k SX_OBJECT_CONVERT_OTF_RAW ConversionkFromkOTFktokASCIIk(SAPScriptkconversion) k SXPG_CALL_SYSTEM youkcankchec kthekuserskauthorizationkforkthe specifiedkcommandkandkrunkthekcommand.kThekcommandkrunskonkthekhostksystem onkwhichkthekfunctionkmodulekiskexecuted.kThekfunctionkmodulekiskRFC capable.kItkcankthereforekbekrunkonkthekhostksystemkatkwhichkakuserkhappens tokbekactivekorkonkanotherkdesignatedkhostksystemkatkwhichkankR/3kserverkis active. k SXPG_COMMAND_CHECKk Chec kwhetherkthekuserkiskauthorizedktokexecutekthe specifiedkcommandkonkthektargetkhostksystemkwithkthekspecifiedkarguments. k SXPG_COMMAND_DEFINITION_GET ReadkthekdefinitionkofkaksinglekexternalkOSkcommand fromkthekR/3kSystemskdatabase. k SXPG_COMMAND_EXECUTEk Chec kakuserskauthorizationktokusekakcommand,kaskin SXPG_COMMAND_CHECK.kIfkthekauthorizationkchec kisksuccessful,kthenkexecute thekcommandkonkthektargetkhostksystem. k SXPG_COMMAND_LIST_GETk SelectkaklistkofkexternalkOSkcommandkdefinitions. k TERMINAL_ID_GETk k Returnkthekterminalkid

TH_DELETE_USERk Logoffkakuser.kSimilarkresultsktokusingkSM04. k TH_ENVIRONMENTk GetkthekUNIXkenvironment k TH_POPUPk screen. k Displaykakpopupksystemkmessagekonkakspecifickusers

TH_REMOTE_TRANSACTION

Runkaktransactionkonkakremotekserver.kOptionally providekBDCkdataktokbekusedkinkthektransaction k TH_USER_INFOk Givekinformationkaboutkthekcurrentkuserk(sessions, wor stationkloggedkinkfrom,ketc) k TH_USER_LIST Showkwhichkuserskarekloggedkintokankappkserver k TMP_GUI_DIRECTORY_LIST_FILES Retrievekallkofkthekfileskandksubdirectorieskonkthe PresentationkServerk(PC)kforkakgivenkdirectory. k Whenkakvaluekotherkthank*kork*.*kiskusedkforkthe filter,kyoukwillknotkgetkanykdirectories,kunlessktheykmatchkyourkwildcard filter.kForkexample,kifkyoukenteredk*.png,kthenkonlykfileskandkdirectories thatkendkinkpngkwillkbekreturnedkbykthekfunction. UNIT_CONVERSION_SIMPLEk convertkweightskfromkonekUOMktokanother. k UPLOADk uploadkakfilektokthekpresentationkserverk(PC) k UPLOAD_FILES Willkloadkonekorkmorekfileskfromkappkorkpresentation server k WEEK_GET_FIRST_DAYk Forkakgivenkwee k(YYYYMMkformat),kthiskfunctionkreturns thekdatekofkthekMondaykofkthatkwee . k WRITE_LISTk Usefulkforkwritingkoutktheklistkcontentskthatkresult fromkthekfunctionkLIST_FROM_MEMORY. k WS_DOWNLOADk SavekInternalkTablekaskFilekonkthekPresentationkServer k WS_EXCELk k StartkEXCELkonkthekPC

WS_EXECUTEk k WS_FILE_DELETE

executekakprogramkonkakwindowskPC

DeletekFilekatkthekFrontend k WS_FILENAME_GETk CallkFilekSelector k WS_MSGk Createkakdialogkboxkinkwhichkyoukdisplaykankonekline message k WS_UPLOADk LoadkFileskfromkthekPresentationkServerktokInternal ABAPkTables k WS_VOLUME_GETk Getktheklabelkfromkakfrontendkdevice. k WWW_LIST_TO_HTMLk Afterkrunningkakreport,kcallkthiskfunctionktokconvert theklistkoutputktokHTML. kkkkkkkkkkRelatedkSAPkTutorialsk&kReferences k1.kCallkanotherkprogramkfromklistkinkABAP kkkk<http://sapbrainsonline.com/abap-tutorial/call-another-program-from-list-inabap.html>SUBMIT kkkkrep.k(Callskthekreportkrepk.kLeaveskthekactivekprogramkandkstarts kkkktheknew... k2.kSAPkSystemkFieldsklistkkCommonlykusedkwithkABAPkprograms kkkk<http://sapbrainsonline.com/abap-tutorial/abap-system-fields-list.html>Here kkkkiskaklistkofkimportantkSAPkSystemkfieldskwhichkarekcommonlykusedkin kkkkour... k3.kABAPkProgramkforkOutputkTablekFieldsktokakList kkkk<http://sapbrainsonline.com/abap-tutorial/codes/abap-program-for-output-tabl e-fields-to-a-list.html>When kkkkyou rekloo ingkatkthekstructurekofkaktable,kSAPkwillkletkyoukprint kkkkthe... k4.kPassingkdatakusingkSAPkMemoryk&kABAPkMemory kkkk<http://sapbrainsonline.com/abap-tutorial/passing-data-using-sap-memory-abap -memory.html>There kkkkarektwokcross-programkmemorykareasktokwhichkABAPkprogramskhave kkkkaccesskthatkyoukcan... k5.kListkofkSAPkTransactionkcodeskforkABAPkDevelopment kkkk<http://sapbrainsonline.com/abap-tutorial/abap-transaction-codes-list.html>H ere kkkkiskaklistkofkimportantkTcodeskusedkwithkABAPkdevelopment. kkkkTransactionkcodesk(kshowing... k6.kSAPkStandardkReportskList kkkk<http://sapbrainsonline.com/abap-tutorial/sap-standard-reports-list.html>Lis t kkkkofkStandardkReportskinkSAP.Akquic kreferencekforkABAPkprogrammersk, kkkkFunctionalkconsultantskand...

k7.kSolutionkforksomekrealktimekproblemsk|kSAPkABAPkTrobleshootingkhelps kkkk<http://sapbrainsonline.com/abap-tutorial/solution-for-some-real-time-proble ms-sap-abap-trobleshooting-helps.html>Solution kkkkforkthekproblemskli ekSystemkgetskstuc k,Shortkdump,Fieldkexitskare kkkkcompletelykignored,TransactionkSE16... k8.kGENERATEk(ABAPkKeyword) kkkk<http://sapbrainsonline.com/abap-tutorial/syntax/generate-abap- eyword.html> GENERATE kkkkiskak eywordkusedkinkSAPkABAPkprogramming.kThisktutorialkcoverskits kkkkintroductionk&... k9.kUploadkandkDownloadkABAPkSourcekCode kkkk<http://sapbrainsonline.com/abap-tutorial/codes/upload-and-download-abap-sou rce-code.html>Sample kkkkprogramksourcekcodekforkUploadingk/DownloadingkkABAPkreports kkkkcompletekwithktextskSourcekCodekListing... 10.kABAPkProgramkforkLoc kAllkUsers kkkk<http://sapbrainsonline.com/abap-tutorial/codes/abap-program-for-loc -all-us ers.html>This kkkkprogramk(un)loc skallkthekuserskinkakclient,kexceptkforkthekcurrent kkkkuser,kand... Google: Faceboo : ThiskentrykwaskpostedkonkFriday,kNovemberk18th,k2011katk1:42kpmkandkis filedkunderkABAPk<http://sapbrainsonline.com/category/abap-tutorial>. YoukcankfollowkanykresponsesktokthiskentrykthroughkthekRSSk2.0 <http://sapbrainsonline.com/abap-tutorial/function-modules-list.html/feed> feed.kYoukcankleavekakresponsek<#respond>,korktrac bac <http://sapbrainsonline.com/abap-tutorial/function-modules-list.html/trac bac > fromkyourkownksite. kkkkkkSubmitkyourktipkorkresponse Clic kherektokcancelkreply. </abap-tutorial/function-modules-list.html#respond> Namek(required) Mailk(willknotkbekpublished)k(required) Website kk* kk* kkkkkkkkFreekSubscribekbykEmail kk* kkkkkkkkSAPkABAPkTopics kkkkkkokABAPktutorialk<http://sapbrainsonline.com/abap-tutorial> kkkkkkkkkk+kABAPkSourcekCodes kkkkkkkkkkkk<http://sapbrainsonline.com/abap-tutorial/codes> kkkkkkkkkk+kABAPkSyntaxk&kKeywords

kkkkkkkkkkkk<http://sapbrainsonline.com/abap-tutorial/syntax> kkkkkkkkkk+kABAPkCodekOptmization kkkkkkkkkkkk<http://sapbrainsonline.com/abap-tutorial/abap-code-optimization-met hods-techniques.html> kkkkkkokALVkTutorialk<http://sapbrainsonline.com/alv-tutorial> kkkkkkokINTERNALkTABLESk<http://sapbrainsonline.com/internaltables-tutorial> kkkkkkokLSMWk<http://sapbrainsonline.com/lsmw-tutorial> kkkkkkokABAPkOBJECTSk<http://sapbrainsonline.com/objects-tutorials> kkkkkkokALEk<http://sapbrainsonline.com/ale-tutorial> kkkkkkokBAPIk<http://sapbrainsonline.com/bapi-tutorial> kkkkkkokBDCk(BatchkDatakCommunication) kkkkkkkk<http://sapbrainsonline.com/bdc-tutorial> kkkkkkokCTSk(kChange&TransportkSystemk) kkkkkkkk<http://sapbrainsonline.com/cts-tutorial> kkkkkkokDictionarykkABAPkDDIC kkkkkkkk<http://sapbrainsonline.com/data-dictionary-tutorial> kkkkkkokEDIk<http://sapbrainsonline.com/edi-tutorial> kkkkkkokIDOCk<http://sapbrainsonline.com/idoc-tutorial> kkkkkkokITSkkInternetkTransactionkServer kkkkkkkk<http://sapbrainsonline.com/its-tutorial> kkkkkkokMENUk&kSCREENkPAINTER kkkkkkkk<http://sapbrainsonline.com/menuscreenpainter-tutorial> kkkkkkokUSERkEXITSk<http://sapbrainsonline.com/userexits-tutorial> kkkkkkokWORKFLOWk<http://sapbrainsonline.com/wor flow-tutorial> kkkkkkokSAPSCRIPTSk<http://sapbrainsonline.com/sapscripts-tutorial> kkkkkkokSMARTFORMSk<http://sapbrainsonline.com/smartforms-tutorial> kk* kk* kkkkkkkkSAPkFunctionalkModules kkkkkkokFIkModulek<http://sapbrainsonline.com/fi-tutorial> kkkkkkokHRkModulek<http://sapbrainsonline.com/hr-tutorial> kkkkkkokMMkModulek<http://sapbrainsonline.com/mm-tutorial> kkkkkkokPMkModulek<http://sapbrainsonline.com/pm-tutorial> kkkkkkokPPkModulek<http://sapbrainsonline.com/pp-tutorial> kkkkkkokPSkModulek<http://sapbrainsonline.com/ps-tutorial> kkkkkkokQMkModulek<http://sapbrainsonline.com/qm-tutorial> kkkkkkokSDkModulek<http://sapbrainsonline.com/sd-tutorial> kkkkkkokTreasuryk<http://sapbrainsonline.com/treasury-tutorial> kkkkkkokWarehousekManagementk<http://sapbrainsonline.com/wm-tutorial> kkkkkkokLogisticsk<http://sapbrainsonline.com/logistics-tutorial> kkkkkkokCOkkControllingkModulek<http://sapbrainsonline.com/co-tutorial> kkkkkkokSAPkCrosskApplicationk<http://sapbrainsonline.com/ca-tutorial> kk* kk* kkkkkkkkQuic kGuides kkkkkkokSAPkInterviewkQuestionsk<http://sapbrainsonline.com/category/faq> kkkkkkokManualsk&kGuidesk<http://sapbrainsonline.com/category/manuals> kkkkkkokSAPkModuleskOverview kkkkkkkk<http://sapbrainsonline.com/help/sap-modules-overview.html> kkkkkkokSAPkR3kARCHITECTUREkINTRODUCTION kkkkkkkk<http://sapbrainsonline.com/help/sap-r3-architecture-introduction.html> kkkkkkokSAPkCertificationkHelpk&kDetails kkkkkkkk<http://sapbrainsonline.com/help/sap-certification-help-details.html> kkkkkkokListkofkSAPkCompanieskinkIndia

kkkkkkkk<http://sapbrainsonline.com/help/list-of-sap-companies-in-india.html> kkkkkkkk<http://sapbrainsonline.com/abap-tutorial/abap-code-optimization-methods -techniques.html> kkkkkkokHRkTablesk&kInfotypes kkkkkkkk<http://sapbrainsonline.com/hr-tutorial/list-of-sap-hr-tables-and-infoty pes-tables.html> kkkkkkokSAPkHELPk<http://sapbrainsonline.com/category/help> kk* kkkk<http://sapbrainsonline.com/adds/boo s.php> kk* kkkkkkkkSAPkSolutions kkkkkkokEmergingkTechnologiesk<http://sapbrainsonline.com/Emerging_Tech/> kkkkkkokSAPkNetWeaver kkkkkkkk<http://sapbrainsonline.com/Emerging_Tech/sap_netweaver.html> kkkkkkokSAPkXIk<http://sapbrainsonline.com/Emerging_Tech/XI.html> kkkkkkokSAPkBWk<http://sapbrainsonline.com/Emerging_Tech/category/sap-bw> kk* -----------------------------------------------------------------------SAPkTutorialk|k<http://sapbrainsonline.com>PrivacykPolicy <http://sapbrainsonline.com/privacy-policy-statement>k|kSitemap <http://sapbrainsonline.com/sitemap.xml>k|kRSSkFeed <http://feeds.feedburner.com/Sapbrainsonlinecom> Disclaimer:Allkofkthekproductknameskherekarektrademar skofktheir respectivekcompanies.kTheksiteksapbrainsonline.comknokwaykaffiliated withkSAPkAG.kUsekinformationkonkthisksitekatkyourkownkris .kInformation furnishedkinktheksitekiskcollectedkfromkvariousksiteskandkpostskfrom users.kThisksitekdoesknotkhostkanykfileskonkitskserver.kIfkany complaintskaboutkthekpostskpleasekcontactkuskat [email protected]

You might also like