<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: call function ' HR_PERSONAL_WORK_SCHEDULE' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-hr-personal-work-schedule/m-p/1831565#M354335</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aeroshil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my experience and observation of the use of the HR_PERSONAL_WORK_SCHEDULE function module, it is used primarily for reading and expanding the PWS belonging to an employee from the 0007 infotype which could be used for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updates should always be performed via the given function modules/methods e.g. HR_INFOTYPE_OPERATION. You might want to check the NOCOMMIT flag being passed to the function module, it should be ' ' i.e. default value, else if you want to COMMIT the LUW @ a later stage, then ensure you have coded an explicity COMMIT WORK at a later and more appropriate stage of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding HR_INFOTYPE_OPERATION, for the fields u have asked you would get a good explanation from the possible values by checking the domains of the respetive fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPERATION can have the following values with the explanations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COP	Copy&lt;/P&gt;&lt;P&gt;DEL	Delete&lt;/P&gt;&lt;P&gt;DIS	Display&lt;/P&gt;&lt;P&gt;EDQ	Lock/unlock&lt;/P&gt;&lt;P&gt;INS	Create&lt;/P&gt;&lt;P&gt;LIS9	Delimit&lt;/P&gt;&lt;P&gt;MOD	Change&lt;/P&gt;&lt;P&gt;INSS	Create for Actions is not converted to Change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TCLAS has the following values, and basically indicates for which genre of personnel the operation is being carried out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A	Master Data and Time Data (PA**** table updates)&lt;/P&gt;&lt;P&gt;B	Applicant Data (PB**** table updates)&lt;/P&gt;&lt;P&gt;T	Shift Schedule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally DIALOG_MODE can have the values 0,1 and 2. As you might be aware the function module updates the infotype(s) via a BDC dialog run, and this field basically describes the mode of operation, e.g. 0 is for No Display MODE 'N' BDC run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps with your work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2007 07:18:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-29T07:18:54Z</dc:date>
    <item>
      <title>call function ' HR_PERSONAL_WORK_SCHEDULE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-hr-personal-work-schedule/m-p/1831563#M354333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i use the FM 'HR_PERSONAL_WORK_SCHEDULE' TO UPDATE infotype p0007. what about the field 'schkz'. i was using FM 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;but its not able to update the data correctly.. also the significance of 'operation' ' tclas ' and 'dialogue_mode'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aeroshil nameirakpam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:02:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-hr-personal-work-schedule/m-p/1831563#M354333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: call function ' HR_PERSONAL_WORK_SCHEDULE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-hr-personal-work-schedule/m-p/1831564#M354334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this code it might help u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below code shows how HR_PERSONAL_WORK_SCHEDULE is used. Export to the FM a personnel &lt;/P&gt;&lt;P&gt;number, period and it will retrieve the employees work schedule for that period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: it_ptpsp type standard table of t_ptpsp initial size 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_ptpsp type t_ptpsp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pernr = pernr-pernr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;begda = pn-begda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endda = pn-endda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;KUG =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;REFRESH = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WORKING_HOURS = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;SWITCH_ACTIV =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODIFY_ENTRIES = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I0001_I0007_ERROR = '0'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;READ_CLUSTER =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;warning_occured = gd_warning&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I0000 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I0001 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I0002 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I0007 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I0049 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I2001 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I2002 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I2003 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perws = it_ptpsp "Stores employees work schedule &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I0003 =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;error_occured = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abort_occured = 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:10:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-hr-personal-work-schedule/m-p/1831564#M354334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: call function ' HR_PERSONAL_WORK_SCHEDULE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-hr-personal-work-schedule/m-p/1831565#M354335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aeroshil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my experience and observation of the use of the HR_PERSONAL_WORK_SCHEDULE function module, it is used primarily for reading and expanding the PWS belonging to an employee from the 0007 infotype which could be used for further processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updates should always be performed via the given function modules/methods e.g. HR_INFOTYPE_OPERATION. You might want to check the NOCOMMIT flag being passed to the function module, it should be ' ' i.e. default value, else if you want to COMMIT the LUW @ a later stage, then ensure you have coded an explicity COMMIT WORK at a later and more appropriate stage of your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding HR_INFOTYPE_OPERATION, for the fields u have asked you would get a good explanation from the possible values by checking the domains of the respetive fields:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPERATION can have the following values with the explanations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;COP	Copy&lt;/P&gt;&lt;P&gt;DEL	Delete&lt;/P&gt;&lt;P&gt;DIS	Display&lt;/P&gt;&lt;P&gt;EDQ	Lock/unlock&lt;/P&gt;&lt;P&gt;INS	Create&lt;/P&gt;&lt;P&gt;LIS9	Delimit&lt;/P&gt;&lt;P&gt;MOD	Change&lt;/P&gt;&lt;P&gt;INSS	Create for Actions is not converted to Change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TCLAS has the following values, and basically indicates for which genre of personnel the operation is being carried out:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A	Master Data and Time Data (PA**** table updates)&lt;/P&gt;&lt;P&gt;B	Applicant Data (PB**** table updates)&lt;/P&gt;&lt;P&gt;T	Shift Schedule&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally DIALOG_MODE can have the values 0,1 and 2. As you might be aware the function module updates the infotype(s) via a BDC dialog run, and this field basically describes the mode of operation, e.g. 0 is for No Display MODE 'N' BDC run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps with your work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:18:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-hr-personal-work-schedule/m-p/1831565#M354335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: call function ' HR_PERSONAL_WORK_SCHEDULE'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-hr-personal-work-schedule/m-p/1831566#M354336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes u can use tht..in the import parameters make field 'MODIFY_ENTRIES' as 'X'.&lt;/P&gt;&lt;P&gt;SCHKZ field is for work schedule name in IT0007.&lt;/P&gt;&lt;P&gt;Tclass is A here in HR_infotype_operation'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:23:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-function-hr-personal-work-schedule/m-p/1831566#M354336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:23:49Z</dc:date>
    </item>
  </channel>
</rss>

