<?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: Close session problem in batch input map due HR_INFOTYPE_OPERATION process in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580974#M1272745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But here is problem, that in FM BDC_CLOSE_GROUP is code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION BDC_CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Lokale Schnittstelle:&lt;/P&gt;&lt;P&gt;*"       EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"              NOT_OPEN&lt;/P&gt;&lt;P&gt;*"              QUEUE_ERROR&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;BAUSTEIN = 'BDC_CLOSE_GROUP'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- CALL Queue Interface  &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;C-Prog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  CALL 'BDC_CLOSE_GROUP'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC EQ 0 .&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'DEQUEUE_BDC_QID'&lt;/P&gt;&lt;P&gt;       EXPORTING  DATATYP = 'BDC '&lt;/P&gt;&lt;P&gt;                  GROUPID = BGROUP&lt;/P&gt;&lt;P&gt;                  QID     = BQID .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL FUNCTION 'DB_COMMIT'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM FEHLER_BEHANDLUNG USING SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here an internal call CALL 'BDC_CLOSE_GROUP'.  returning sy-subrc = 4. Check if session is open worked before calling this FM but it does not closing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 May 2009 14:47:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-18T14:47:44Z</dc:date>
    <item>
      <title>Close session problem in batch input map due HR_INFOTYPE_OPERATION process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580968#M1272739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I have problem with Batch input map creating. I process some data internal table for modification in infotype using FM HR_INFOTYPE_OPERATION and when some error appeared I should this record save in batch input map. This map will be processed manually in SM35 after run this report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_OPEN_GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_TABLE.&lt;/P&gt;&lt;P&gt;CALL FUNCTION HR_INFOTYPE_OPERATION.(modify)&lt;/P&gt;&lt;P&gt;IF error from FM.&lt;/P&gt;&lt;P&gt;REFRESH it_bim.&lt;/P&gt;&lt;P&gt;PERFORM fill_it_bim.&lt;/P&gt;&lt;P&gt;BDC_INSERT using it_bim.(create map for manually process in SM35)&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_OPEN_GROUP = sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;BDC_INSERT = sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;All is ok but when two records are processed and should be closed those session an error queue error raising and I do not why. 1 record in it_table processed successfully and 2 records not. Please help me anyone. Thnx.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 13:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580968#M1272739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T13:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Close session problem in batch input map due HR_INFOTYPE_OPERATION process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580969#M1272740</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;Try this way..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: g_flag type c.

LOOP AT IT_TABLE.
" Check the data passing to the FM
CALL FUNCTION HR_INFOTYPE_OPERATION.(modify)
IF error from FM.
" Open the BDC Group only if error occurs first time
  IF g_flag EQ space. 
    BDC_OPEN_GROUP.
    g_flag = 'X'.
  ENDIF.

  REFRESH it_bim.
  PERFORM fill_it_bim.
  BDC_INSERT using it_bim.(create map for manually process in SM35)
ENDIF.

ENDLOOP.

" Close if BDC is session is open
IF g_flag EQ 'X'.
BDC_CLOSE_GROUP.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 13:59:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580969#M1272740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T13:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Close session problem in batch input map due HR_INFOTYPE_OPERATION process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580970#M1272741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hellou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for help, I have all this coded, I do not describe all code at first time, but all I have as you wrote here and it do not worked...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 14:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580970#M1272741</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T14:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Close session problem in batch input map due HR_INFOTYPE_OPERATION process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580971#M1272742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh sorry, yes, open group I have before a loop, so I can try it open in loop when first error occur?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 14:04:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580971#M1272742</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T14:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Close session problem in batch input map due HR_INFOTYPE_OPERATION process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580972#M1272743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I try it, but it does not work too &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 14:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580972#M1272743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T14:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Close session problem in batch input map due HR_INFOTYPE_OPERATION process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580973#M1272744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will be better off [handling exceptions|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/a9/b8eef8fe9411d4b2ee0050dadfb92b/content.htm]!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 14:39:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580973#M1272744</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2009-05-18T14:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Close session problem in batch input map due HR_INFOTYPE_OPERATION process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580974#M1272745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But here is problem, that in FM BDC_CLOSE_GROUP is code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FUNCTION BDC_CLOSE_GROUP.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Lokale Schnittstelle:&lt;/P&gt;&lt;P&gt;*"       EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"              NOT_OPEN&lt;/P&gt;&lt;P&gt;*"              QUEUE_ERROR&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;BAUSTEIN = 'BDC_CLOSE_GROUP'.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--- CALL Queue Interface  &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;C-Prog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;  CALL 'BDC_CLOSE_GROUP'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC EQ 0 .&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'DEQUEUE_BDC_QID'&lt;/P&gt;&lt;P&gt;       EXPORTING  DATATYP = 'BDC '&lt;/P&gt;&lt;P&gt;                  GROUPID = BGROUP&lt;/P&gt;&lt;P&gt;                  QID     = BQID .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CALL FUNCTION 'DB_COMMIT'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM FEHLER_BEHANDLUNG USING SY-SUBRC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here an internal call CALL 'BDC_CLOSE_GROUP'.  returning sy-subrc = 4. Check if session is open worked before calling this FM but it does not closing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2009 14:47:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/close-session-problem-in-batch-input-map-due-hr-infotype-operation-process/m-p/5580974#M1272745</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T14:47:44Z</dc:date>
    </item>
  </channel>
</rss>

