<?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: batch input folder creation for HR infotype posting. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-folder-creation-for-hr-infotype-posting/m-p/5612530#M1278883</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shital,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i'm talking about batch processing is not about recording. I understand already how do u do bdc programming. What I want to know is how you can create a folder job like the one you can see using t-code sm35 or the one which is created with lsmw when we use batch recording method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 May 2009 01:05:55 GMT</pubDate>
    <dc:creator>snursalim</dc:creator>
    <dc:date>2009-05-20T01:05:55Z</dc:date>
    <item>
      <title>batch input folder creation for HR infotype posting.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-folder-creation-for-hr-infotype-posting/m-p/5612527#M1278880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to create a report where the report will calculate the bonus of employee's based on certain calculation and then post it to infotype 14/15/267. What I wanna do now is how to create a batch session which can be executed via SM36 so my program can be in background and anytime they want to. Basically what I want to have is to have a batch input session folder like the report RHINTE00 can generate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please kindly share any knowledge about this batch session programming. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 06:51:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-folder-creation-for-hr-infotype-posting/m-p/5612527#M1278880</guid>
      <dc:creator>snursalim</dc:creator>
      <dc:date>2009-05-19T06:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: batch input folder creation for HR infotype posting.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-folder-creation-for-hr-infotype-posting/m-p/5612528#M1278881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recommend you to use the HR Function modules to update the infotypes. It's most seccure. Here an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************************************************************************&lt;/P&gt;&lt;P&gt;First, you have to see the FM parameters:&lt;/P&gt;&lt;P&gt;Here is a list of the fm's parameters and how they are used, obviously not all parameters will be used depending on what function you are performing i.e. insert, change, delet etc &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;infty - Infotype being updated &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;objectid - object id from infotype &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;number - Personnel number &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;validityend - validity end date &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;validitybegin - validity begin date &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;record - infotype record values to be updated, inserted etc (will be structure of infortyoe you are updating) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recordnumber - sequence nunber from infotype record you are updating &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Operation - describes what operation is to be performed &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;nocommit - commit yes('X') / no(' ') &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dialog_mode - dialog mode or not, default is '0' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; Now, the examples codes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example coding for MODIFY infotype operation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      CONSTANTS: change TYPE pspar-actio VALUE 'MOD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      "This code is requred and locks the record ready for modification&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;         number = p_pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      "loop at p0071 into p_p0071.  "added to put code in context&lt;/P&gt;&lt;P&gt;      validitybegin = p_record-begda.&lt;/P&gt;&lt;P&gt;      validityend   = p_record-endda.&lt;/P&gt;&lt;P&gt;      p_record-endda = pn-begda - 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          infty         = '0071'&lt;/P&gt;&lt;P&gt;          subtype       = p_record-subty&lt;/P&gt;&lt;P&gt;          objectid      = P_record-objps&lt;/P&gt;&lt;P&gt;          number        = p_record-pernr     "employeenumber&lt;/P&gt;&lt;P&gt;          validityend   = validityend&lt;/P&gt;&lt;P&gt;          validitybegin = validitybegin&lt;/P&gt;&lt;P&gt;          record        = p_record&lt;/P&gt;&lt;P&gt;          recordnumber  = p_record-SEQNR&lt;/P&gt;&lt;P&gt;          operation     = change&lt;/P&gt;&lt;P&gt;          nocommit      = nocommit&lt;/P&gt;&lt;P&gt;          dialog_mode   = '0'&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          return        = return_struct&lt;/P&gt;&lt;P&gt;          key           = personaldatakey&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          OTHERS        = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       "endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     "unlock record after modification&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;        number = p_pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*********************************************************************************************************************&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example coding for INSERT infotype operation&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       CONSTANTS: insert TYPE pspar-actio VALUE 'INS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      "This code is requred and locks the record ready for modification&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;         number = p_pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      validitybegin = p_record-begda.&lt;/P&gt;&lt;P&gt;      validityend   = p_record-endda.&lt;/P&gt;&lt;P&gt;      p_record-pernr = p_pernr&lt;/P&gt;&lt;P&gt;      p_record-begda =  pn-begda.&lt;/P&gt;&lt;P&gt;      p_record-endda =  validityend.&lt;/P&gt;&lt;P&gt;      p_record-subty = p_SUBTY.  "subtype of new entry&lt;/P&gt;&lt;P&gt;      p_record-SCREF = p_SUBTY.  "subtype of new entry&lt;/P&gt;&lt;P&gt;      "plus populate any other fields you need to update&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'HR_INFOTYPE_OPERATION'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          infty         = '0071'&lt;/P&gt;&lt;P&gt;          subtype       = p_record-subty&lt;/P&gt;&lt;P&gt;          number        = p_record-pernr     "employeenumber&lt;/P&gt;&lt;P&gt;          validityend   = validityend&lt;/P&gt;&lt;P&gt;          validitybegin = validitybegin&lt;/P&gt;&lt;P&gt;          record        = p_record&lt;/P&gt;&lt;P&gt;          operation     = insert&lt;/P&gt;&lt;P&gt;          nocommit      = nocommit&lt;/P&gt;&lt;P&gt;          dialog_mode   = '0'&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          return        = return_struct&lt;/P&gt;&lt;P&gt;          key           = personaldatakey&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          OTHERS        = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     "unlock record after modification&lt;/P&gt;&lt;P&gt;     CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;        number = p_pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really hope it help you...!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 13:27:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-folder-creation-for-hr-infotype-posting/m-p/5612528#M1278881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T13:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: batch input folder creation for HR infotype posting.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-folder-creation-for-hr-infotype-posting/m-p/5612529#M1278882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any specific reason you are going for BDC to update your infotype records. Actaully I have see lot of implementatios where BDC is used for the same.&lt;/P&gt;&lt;P&gt;Anyways to answer your question.&lt;/P&gt;&lt;P&gt;1) Go to SHDB and enter transaction you want to do recording for. PA30 in your case&lt;/P&gt;&lt;P&gt;2) Do the recording,as per recording fill BDC_DATA&lt;/P&gt;&lt;P&gt;3) BDC_OPEN_GROUP BDC_CLOSE_GROUP&lt;/P&gt;&lt;P&gt;Here is [sample|http://www.abapprogramming.net/2007/11/abap-bdc-session-method-sample-code.html] code&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 17:00:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-folder-creation-for-hr-infotype-posting/m-p/5612529#M1278882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T17:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: batch input folder creation for HR infotype posting.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-folder-creation-for-hr-infotype-posting/m-p/5612530#M1278883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shital,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i'm talking about batch processing is not about recording. I understand already how do u do bdc programming. What I want to know is how you can create a folder job like the one you can see using t-code sm35 or the one which is created with lsmw when we use batch recording method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 01:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-folder-creation-for-hr-infotype-posting/m-p/5612530#M1278883</guid>
      <dc:creator>snursalim</dc:creator>
      <dc:date>2009-05-20T01:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: batch input folder creation for HR infotype posting.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-folder-creation-for-hr-infotype-posting/m-p/5612531#M1278884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shital,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i'm talking about batch processing is not about recording. I understand already how do u do bdc programming. What I want to know is how you can create a folder job like the one you can see using t-code sm35 or the one which is created with lsmw when we use batch recording method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2009 01:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/batch-input-folder-creation-for-hr-infotype-posting/m-p/5612531#M1278884</guid>
      <dc:creator>snursalim</dc:creator>
      <dc:date>2009-05-20T01:12:17Z</dc:date>
    </item>
  </channel>
</rss>

