<?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: Work shedule rule code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-shedule-rule-code/m-p/5364909#M1234565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;      I thank you very much for your immediate responce,Let me tell you my actual requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.2.1	Functional Description&lt;/P&gt;&lt;P&gt;xxxx company currently uses SAP script to check the available of work schedule rules, this SAP script is not effective especially searching for rotating shift WSR. It was decided in the ASE that a new ABAP report will be created in order to fulfil the gaps and limitations of SAP Script&lt;/P&gt;&lt;P&gt;1.2.2	Technical Description&lt;/P&gt;&lt;P&gt;New ABAP program will be created in order to cover the gap by SAP script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the selection screen of the new ABAP program, the users will attach the file (Standard template for new request) and the ABAP program will look for the exact match. The field names of the exact match can be found in Technical Design section.&lt;/P&gt;&lt;P&gt;This ABAP report will take inputted data by the users and search for available WSR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection Screen layout:&lt;/P&gt;&lt;P&gt;The layout of the selection screen is same as SAP query (Transaction ZXAUWSRG) but additionally the selection screen will also have provision to attach an excel file (.csv) format. The ABAP program reads the attach file data and look for the exact match of WSR across PS, Calendar ID and ES Grouping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables Used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T550A&lt;/P&gt;&lt;P&gt;T551A&lt;/P&gt;&lt;P&gt;T508A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection Screen: Same selection screen of current SAP query (Transaction ZXAUWSRG) to be used and add an optional for file selection. This selection option is to check for the rotation shift available WSR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP Code: The ABAP code checks the data input from the selection screen and look for the exact match for WSR in the above mentioned tables (more table name can be added during development stage) and returns with output screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output layout of the ABAP program is as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WSR Report Fields	  Data Item	Format	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grouping Details	  ES Grouping	Number	&lt;/P&gt;&lt;P&gt;Grouping Details	  PS Grouping	Number	&lt;/P&gt;&lt;P&gt;Calendar Details	  Calendar ID	Code	&lt;/P&gt;&lt;P&gt;WS Details	  WSR Rule	Code	&lt;/P&gt;&lt;P&gt;WS Details	  DWS	Code	&lt;/P&gt;&lt;P&gt;WS Details	  Week details	Code	&lt;/P&gt;&lt;P&gt;WS Details	  Rule for Day types	Code	&lt;/P&gt;&lt;P&gt;WS Details	  Shift Premium	Code	&lt;/P&gt;&lt;P&gt;WS Details	  PWS Detail	Code	&lt;/P&gt;&lt;P&gt;Validity	                       Start Date	Date	&lt;/P&gt;&lt;P&gt;Validity	                      End Date	Date	&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of Rotating shifts, for example a four week rotating shifts. The users should upload the excel file, using the above template with all the DWS weeks fields completed. The ABAP program will look for the exact match and will return with the following output layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WSR Report Fields	Data Item	Format	Additional Comments&lt;/P&gt;&lt;P&gt;Grouping Details	ES Grouping	Number	&lt;/P&gt;&lt;P&gt;Grouping Details	PS Grouping	Number	&lt;/P&gt;&lt;P&gt;Calendar Details	Calendar ID	Code	&lt;/P&gt;&lt;P&gt;WS Details	WSR Rule	Code	&lt;/P&gt;&lt;P&gt;WS Details	DWS	Code	&lt;/P&gt;&lt;P&gt;WS Details	Week details	Code	&lt;/P&gt;&lt;P&gt;WS Details	Rule for Day types	Code	&lt;/P&gt;&lt;P&gt;WS Details	Shift Premium	Code	&lt;/P&gt;&lt;P&gt;WS Details	PWS Detail	Code	&lt;/P&gt;&lt;P&gt;Validity	               Start Date	                Date	&lt;/P&gt;&lt;P&gt;Validity	               End Date	                Date	&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception: It will be possible to use the standard function modules for Exceptions. Additional exception and validation can be completed during the development stage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pls guide me in this aspect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2009 09:00:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-02T09:00:20Z</dc:date>
    <item>
      <title>Work shedule rule code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-shedule-rule-code/m-p/5364907#M1234563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can anyony help me with some sample code for extracting the work shedule rule from t550a,t551a and t508a  tables.its  please help me with you valuable suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 06:23:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-shedule-rule-code/m-p/5364907#M1234563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T06:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Work shedule rule code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-shedule-rule-code/m-p/5364908#M1234564</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;Pls use the following function Module:  HR_PERSON_READ_WORK_SCHEDULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give the list of pernr's in gt_pernr_tab along with start date and enddate. You will get the DWS, PWS, shift start time, shift end time, in gt_psp table. And also any absences or attendances booked will be displayed in the table gt_day_psp table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'HR_PERSON_READ_WORK_SCHEDULE'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      begin_date         = pn-begda&lt;/P&gt;&lt;P&gt;      end_date           = pn-endda&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      pernr_tab          = gt_pernr_tab[]&lt;/P&gt;&lt;P&gt;      psp                = gt_psp&lt;/P&gt;&lt;P&gt;      day_psp            = gt_day_psp&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      error_in_build_psp = 1&lt;/P&gt;&lt;P&gt;      OTHERS             = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 07:12:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-shedule-rule-code/m-p/5364908#M1234564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T07:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Work shedule rule code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-shedule-rule-code/m-p/5364909#M1234565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;      I thank you very much for your immediate responce,Let me tell you my actual requirement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.2.1	Functional Description&lt;/P&gt;&lt;P&gt;xxxx company currently uses SAP script to check the available of work schedule rules, this SAP script is not effective especially searching for rotating shift WSR. It was decided in the ASE that a new ABAP report will be created in order to fulfil the gaps and limitations of SAP Script&lt;/P&gt;&lt;P&gt;1.2.2	Technical Description&lt;/P&gt;&lt;P&gt;New ABAP program will be created in order to cover the gap by SAP script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the selection screen of the new ABAP program, the users will attach the file (Standard template for new request) and the ABAP program will look for the exact match. The field names of the exact match can be found in Technical Design section.&lt;/P&gt;&lt;P&gt;This ABAP report will take inputted data by the users and search for available WSR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection Screen layout:&lt;/P&gt;&lt;P&gt;The layout of the selection screen is same as SAP query (Transaction ZXAUWSRG) but additionally the selection screen will also have provision to attach an excel file (.csv) format. The ABAP program reads the attach file data and look for the exact match of WSR across PS, Calendar ID and ES Grouping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables Used&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T550A&lt;/P&gt;&lt;P&gt;T551A&lt;/P&gt;&lt;P&gt;T508A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selection Screen: Same selection screen of current SAP query (Transaction ZXAUWSRG) to be used and add an optional for file selection. This selection option is to check for the rotation shift available WSR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP Code: The ABAP code checks the data input from the selection screen and look for the exact match for WSR in the above mentioned tables (more table name can be added during development stage) and returns with output screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output layout of the ABAP program is as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WSR Report Fields	  Data Item	Format	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grouping Details	  ES Grouping	Number	&lt;/P&gt;&lt;P&gt;Grouping Details	  PS Grouping	Number	&lt;/P&gt;&lt;P&gt;Calendar Details	  Calendar ID	Code	&lt;/P&gt;&lt;P&gt;WS Details	  WSR Rule	Code	&lt;/P&gt;&lt;P&gt;WS Details	  DWS	Code	&lt;/P&gt;&lt;P&gt;WS Details	  Week details	Code	&lt;/P&gt;&lt;P&gt;WS Details	  Rule for Day types	Code	&lt;/P&gt;&lt;P&gt;WS Details	  Shift Premium	Code	&lt;/P&gt;&lt;P&gt;WS Details	  PWS Detail	Code	&lt;/P&gt;&lt;P&gt;Validity	                       Start Date	Date	&lt;/P&gt;&lt;P&gt;Validity	                      End Date	Date	&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of Rotating shifts, for example a four week rotating shifts. The users should upload the excel file, using the above template with all the DWS weeks fields completed. The ABAP program will look for the exact match and will return with the following output layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WSR Report Fields	Data Item	Format	Additional Comments&lt;/P&gt;&lt;P&gt;Grouping Details	ES Grouping	Number	&lt;/P&gt;&lt;P&gt;Grouping Details	PS Grouping	Number	&lt;/P&gt;&lt;P&gt;Calendar Details	Calendar ID	Code	&lt;/P&gt;&lt;P&gt;WS Details	WSR Rule	Code	&lt;/P&gt;&lt;P&gt;WS Details	DWS	Code	&lt;/P&gt;&lt;P&gt;WS Details	Week details	Code	&lt;/P&gt;&lt;P&gt;WS Details	Rule for Day types	Code	&lt;/P&gt;&lt;P&gt;WS Details	Shift Premium	Code	&lt;/P&gt;&lt;P&gt;WS Details	PWS Detail	Code	&lt;/P&gt;&lt;P&gt;Validity	               Start Date	                Date	&lt;/P&gt;&lt;P&gt;Validity	               End Date	                Date	&lt;/P&gt;&lt;P&gt;			&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exception: It will be possible to use the standard function modules for Exceptions. Additional exception and validation can be completed during the development stage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pls guide me in this aspect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 09:00:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-shedule-rule-code/m-p/5364909#M1234565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T09:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: Work shedule rule code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/work-shedule-rule-code/m-p/5364910#M1234566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks alot i have solved by writing a code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 07:59:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/work-shedule-rule-code/m-p/5364910#M1234566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T07:59:18Z</dc:date>
    </item>
  </channel>
</rss>

