Sei sulla pagina 1di 3

7/29/2015

AnSAPConsultant:SAPTalentManagementCreate/UploadTalentGroupcomments

An SAP Consultant
HOME

ABAP

ALV

SMART FORMS

ADOBE FORMS

HR ABAP

WORKFLOW

WEB DYNPRO ABAP

Friday, March 14, 2014

SAP Talent Management Create / Upload Talent Group


comments

HCM

Follow by Email
Emailaddress...

WhenwecreateTalentgroupsthroughuploadprograms

AnSAPConsultant
1,270likes

1. CreateTalentGroup:NeedtocreateTalentGroupobjectusingfunctionmoduleRH_INSERT_INFTY.
2. UploadTalentGroupDescription.Weusetwomainfunctionmodulestostorecomments(1)
SDOK_LOIO_CREATE_WITH_PHIO(2)SDOK_PHIO_STORE_CONTENT.OncecommentsforTalent

Liked

Groupisstored,wehavetocreateentryinHRP7420table.UsefunctionmoduleRH_INSERT_INFTY_EXPto
Youlikethis

insertrecord.ThistableshouldcontainTalentgroupobjectIDandcommentsinformationsuchashrp7420
description_idandhrp7420descr_class.

Followers
PERFORMupload_talent_group_descriptionUSINGgs_datadescription
CHANGINGls_hrp7420description_id
ls_hrp7420descr_class
gs_dataremarks.

*&*
*&Formupload_talent_group_description
*&*
*text
**
*>P_LS_HRP7420_DESCRIPTION_IDtext
**
FORMupload_talent_group_descriptionUSINGpv_content
CHANGINGpv_description_idTYPEp7420description_id
pv_descr_classTYPEp7420descr_class
pc_remarksTYPEtext150.
"Structures
DATA:
ls_kpro_loio_propertyTYPEsdokpropty,
ls_kpro_phio_propertyTYPEsdokpropty,
ls_phio_object_idTYPEsdokobject,
ls_file_infoTYPEsdokfilaci.
"Internaltables
DATA:
lt_kpro_loio_propertiesTYPETABLEOFsdokpropty,
lt_kpro_phio_propertiesTYPETABLEOFsdokpropty,
lt_file_content_asciiTYPETABLEOFsdokcntasc,
lt_file_infoTYPETABLEOFsdokfilaci.
"Variables
DATA:
lv_is_okTYPEboole_d,
lv_dummy_msgTYPEsymsg,
lv_ex_textTYPEstring,
lv_languageTYPEspras,
lv_kpro_phio_class_nameTYPEsdok_phcl,
lv_output_binary_lengthTYPEi,
lv_docu_idTYPEsdok_docid,
lv_classTYPEsdok_locl,
lv_okTYPEboole_d.
"RefClasses
DATA:
go_message_handler_attTYPEREFTOcl_hrbas_message_list.
http://www.ansapconsultant.com/2014/03/SAPTalentManagementCreateorUploadTalentGroupcomments.html

Jointhissite
withGoogleFriendConnect

Members(53) More

Alreadyamember?Signin

Popular Posts
1

ABAPALVReportexamplewithsteps

ExecuteABAPReportusingSUBMIT
statement

ABAPStepbysteptutorialonSmartForms
TemplateNode

ABAPSendingemailwithpdfattachment

WebDynproABAPALVON_CLICKevent

ABAPDynamicWHEREclause

ABAPDownloadreportoutputasPDFfile

ABAPALVDemoprograms

SAPABAPCL_ABAP_CHAR_UTILITIES
classusage

10

WebdynproabapError/Successmessage
sampleprogram

Websites I follow
HTML/CSS/Javscript Generator
1/4

7/29/2015

AnSAPConsultant:SAPTalentManagementCreate/UploadTalentGroupcomments

"Constants
CONSTANTS:
lc_text_loio_class_name_partTYPEstringVALUE'TXT'.
lv_kpro_phio_class_name='TXT_PHIO1'.
pv_descr_class='TXT_LOIO1'.
CREATEOBJECTgo_message_handler_att.

Easy CSS3 Generator


Digital Inspiration
Shout ME Loud
Twitter Feed

Web Dynpro ABAP Book

CALLMETHODcl_hrtmc_document_utils=>get_new_id
EXPORTING
iv_document_type='COMMENT'
IMPORTING
ev_document_class=lv_class
ev_document_id=lv_docu_id
ev_is_ok=lv_ok.
"logicalclassproperties
ls_kpro_loio_propertyname='ORIGINAL_LANGUAGE'.
ls_kpro_loio_propertyvalue=sylangu.
INSERTls_kpro_loio_propertyINTOTABLElt_kpro_loio_properties.
"physicalclassproperties
ls_kpro_phio_propertyname='STORAGE_CATEGORY'.
ls_kpro_phio_propertyvalue='HCM_TMC_CT'.
INSERTls_kpro_phio_propertyINTOTABLElt_kpro_phio_properties.
ls_kpro_phio_propertyname='LANGUAGE'.
ls_kpro_phio_propertyvalue=sylangu.
INSERTls_kpro_phio_propertyINTOTABLElt_kpro_phio_properties.

"createnewloiowithphio
DATAlv_loio_unique_idTYPEsdokloioloio_id.
lv_loio_unique_id=lv_docu_id.
CALLFUNCTION'SDOK_LOIO_CREATE_WITH_PHIO'
EXPORTING
loio_class=pv_descr_class
phio_class='TXT_PHIO1'
loio_unique_id=lv_loio_unique_id
IMPORTING
phio_object_id=ls_phio_object_id
TABLES
loio_properties=lt_kpro_loio_properties
phio_properties=lt_kpro_phio_properties
EXCEPTIONS
missing_class=1
bad_class=2
missing_properties=3
bad_relations=4
bad_properties=5
not_authorized=6
duplicate_object_id=7
bad_storage_type=8
exception_in_exit=9.
IFsysubrc<>0.
CASEsysubrc.
WHEN1.
pc_remarks='MissingClass'.
EXIT.
WHEN2.
pc_remarks='BadClass'.
EXIT.
WHEN3.
pc_remarks='MissingProperties'.
EXIT.
WHEN4.
pc_remarks='BadRelationship'.
EXIT.
WHEN5.
pc_remarks='BadProperties'.
EXIT.
WHEN6.
http://www.ansapconsultant.com/2014/03/SAPTalentManagementCreateorUploadTalentGroupcomments.html

2/4

7/29/2015

AnSAPConsultant:SAPTalentManagementCreate/UploadTalentGroupcomments

pc_remarks='NotAuthorized'.
EXIT.
WHEN7.
pc_remarks='DuplicateObjectID'.
EXIT.
WHEN8.
pc_remarks='BadStorageType'.
EXIT.
WHEN9.
pc_remarks='ExceptioninExit'.
EXIT.
ENDCASE.
ENDIF.
pv_description_id=lv_loio_unique_id.
"Preparecontent
CALLFUNCTION'SCMS_STRING_TO_FTEXT'
EXPORTING
text=pv_content
IMPORTING
length=lv_output_binary_length
TABLES
ftext_tab=lt_file_content_ascii.
"Isertfileinformationtothephysicalcontent/file
ls_file_infofile_size=lv_output_binary_length.
ls_file_infobinary_flg=abap_false.
APPENDls_file_infoTOlt_file_info.

"Storecomment
CALLFUNCTION'SDOK_PHIO_STORE_CONTENT'
EXPORTING
object_id=ls_phio_object_id
raw_mode=abap_false
TABLES
file_content_ascii=lt_file_content_ascii
file_access_info=lt_file_info
EXCEPTIONS
not_existing=1
not_allowed=2
not_authorized=3
no_content=4
bad_storage_type=5
OTHERS=6.
IFsysubrc<>0.
CASEsysubrc.
WHEN1.
pc_remarks='NotExisting'.
EXIT.
WHEN2.
pc_remarks='NotAllowed'.
EXIT.
WHEN3.
pc_remarks='NotAuthorized'.
EXIT.
WHEN4.
pc_remarks='NoContent'.
EXIT.
WHEN5.
pc_remarks='BadStorageType'.
EXIT.
WHEN6.
pc_remarks='UnIdentifiedError'.
EXIT.
ENDCASE.
ELSE.
ENDIF.
ENDFORM."upload_talent_group_description
Recommend this on Google

http://www.ansapconsultant.com/2014/03/SAPTalentManagementCreateorUploadTalentGroupcomments.html

3/4

Potrebbero piacerti anche