<?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: Problem with Batch Input in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361776#M1038170</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you are using the Function HR_INFOTYPE_OPERATION you don't need to call any BDC realted functions insert or close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So remove those functions and use only HR_INFOTYPE_OPERATION and if you want to use this function module you have to lock the PERNR before calling the FUnction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'BAPI_EMPLOYEE_ENQUEUE'
       exporting
            number = p0002-pernr
       importing
            return = return_struc.
      ....

    call function 'HR_INFOTYPE_OPERATION'
      exporting
        infty                  = '0002'
        number                 = p0002-pernr
        validityend            = p0002-endda
        validitybegin          = p0002-begda
        recordnumber           = p0002-seqnr
        record                 = p0002
        operation              = 'MOD'
        dialog_mode            = '1'
      importing
        return                 = return_struc
        key                    = record_key.

    if not return_struc is initial.
   
    endif.
   ......
  call function 'BAPI_EMPLOYEE_DEQUEUE'
       exporting
            number = p0002-pernr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Aug 2008 11:26:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-21T11:26:20Z</dc:date>
    <item>
      <title>Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361763#M1038157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning to everybody!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've a problem with my Batch Input, I have to create the batch input after the data are choosen in the previous ALV but when I tried this i received the following message "BDC_INSERT, dynpro .&amp;amp;. no válido."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my code, does anybody know why this is happend?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.

CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
* EXPORTING
*   IR_SALV_FULLSCREEN_ADAPTER       =
 IMPORTING
*   ET_EXCLUDING                     =
*   E_REPID                          =
*   E_CALLBACK_PROGRAM               =
*   E_CALLBACK_ROUTINE               =
   E_GRID                           = ref1.
*   ET_FIELDCAT_LVC                  =
*   ER_TRACE                         =
*   E_FLG_NO_HTML                    =
*   ES_LAYOUT_KKBLO                  =
*   ES_SEL_HIDE                      =
*   ET_EVENT_EXIT                    =
*   ER_FORM_TOL                      =
*   ER_FORM_EOL                      =

call method ref1-&amp;gt;check_changed_data.

 loop at itab_tabla INTO wa_tabla  where chk = 'X'.
    valid = 'X'.
    exit.
  endloop.

  CASE R_UCOMM.
    WHEN '&amp;amp;BI'.

    CALL FUNCTION 'POPUP_TO_CONFIRM'
      EXPORTING
       TITLEBAR                    = 'Ventana de confirmación'
*       DIAGNOSE_OBJECT             = ' '
        TEXT_QUESTION               = '¿Está seguro de querer ejecutar la carga de datos?'
       TEXT_BUTTON_1               = 'Yes'
*       ICON_BUTTON_1               = 'No '
       TEXT_BUTTON_2               = 'No'
*       ICON_BUTTON_2               = ' '
       DEFAULT_BUTTON              = '1'
*       DISPLAY_CANCEL_BUTTON       = 'X'
*       USERDEFINED_F1_HELP         = ' '
       START_COLUMN                = 25
       START_ROW                   = 6
*       POPUP_TYPE                  =
*       IV_QUICKINFO_BUTTON_1       = ' '
*       IV_QUICKINFO_BUTTON_2       = ' '
     IMPORTING
       ANSWER                      = answer.
*     TABLES
*       PARAMETER                   =
*     EXCEPTIONS
*       TEXT_NOT_FOUND              = 1
*       OTHERS                      = 2
              .

      IF answer = '1'.

       perform ejecutarBI.
     ENDIF.



    IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

****  LOOP AT ITAB_TABLA INTO wa_tabla WHERE CHK = 'X'.
****    wa_tabla-CHK = 'X'.
****
****    MODIFY ITAB_TABLA FROM WA_TABLA TRANSPORTING CHK WHERE PERID = wa_tabla-PERID .
****  ENDLOOP.
****
****
****        PERFORM ejecutarBI.
 ENDCASE.




*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form Ejecutar BI
*&amp;amp;---------------------------------------------------------------------*

FORM EJECUTARBI.


CALL FUNCTION 'BDC_OPEN_GROUP'
 EXPORTING
   CLIENT                    = SY-MANDT
*   DEST                      = FILLER8
   GROUP                     =  'PRUEBA'
*   HOLDDATE                  = FILLER8
*   KEEP                      = FILLER1
   USER                      =  'RREOL'
*   RECORD                    = FILLER1
*   PROG                      = SY-CPROG
*   DCPFM                     = '%'
*   DATFM                     = '%'
* IMPORTING
*   QID                       =
* EXCEPTIONS
*   CLIENT_INVALID            = 1
*   DESTINATION_INVALID       = 2
*   GROUP_INVALID             = 3
*   GROUP_IS_LOCKED           = 4
*   HOLDDATE_INVALID          = 5
*   INTERNAL_ERROR            = 6
*   QUEUE_ERROR               = 7
*   RUNNING                   = 8
*   SYSTEM_LOCK_ERROR         = 9
*   USER_INVALID              = 10
*   OTHERS                    = 11
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.



* Ventana 1000

LOOP at itab_tabla INto wa_tabla.

  PERFORM BDC_DYNPRO      USING 'SAPMP50A' '1000'.
  PERFORM BDC_FIELD       USING 'BDC_OKCODE' '=INS'.
  PERFORM BDC_FIELD       USING 'RP50G-PERNR' wa_tabla-PERNR.
  PERFORM BDC_FIELD       USING 'RP50G-CHOIC' '15'.

* Ventana Infotipo 0015 con simulacion de ENTER

  PERFORM BDC_DYNPRO      USING 'MP001500' '2000'.
  PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                 'Q0015-BETRG'.

*  PERFORM BDC_FIELD       USING 'P0015-BEGDA' BEGDA.
  PERFORM BDC_FIELD       USING 'BDC_OKCODE' '=UPD'.

  PERFORM BDC_FIELD       USING 'P0015-LGART' '9998'. " Insertamos el total de la prorrata en el concepto de nómina 9998
*  PERFORM BDC_FIELD       USING 'P001-ENDDA' RECORD-ENDDA.

ENDLOOP.



CALL FUNCTION 'BDC_INSERT'
 EXPORTING
   TCODE                  = 'PA30'
*   POST_LOCAL             = NOVBLOCAL
*   PRINTING               = NOPRINT
*   SIMUBATCH              = ' '
*   CTUPARAMS              = ' '
  TABLES
    DYNPROTAB              = BDC_TAB
* EXCEPTIONS
*   INTERNAL_ERROR         = 1
*   NOT_OPEN               = 2
*   QUEUE_ERROR            = 3
*   TCODE_INVALID          = 4
*   PRINTING_INVALID       = 5
*   POSTING_INVALID        = 6
*   OTHERS                 = 7
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.




CALL FUNCTION 'BDC_CLOSE_GROUP'
* EXCEPTIONS
*   NOT_OPEN          = 1
*   QUEUE_ERROR       = 2
*   OTHERS            = 3
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

ENDFORM.                    "EjecutarBI&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 09:17:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361763#M1038157</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2008-08-21T09:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361764#M1038158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is with the BDC , and why can't you use the the Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HR_INFOTYPE_OPERATION for updating, why are you going for BDC, any sepecific reason..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'BDC_OPEN_GROUP'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   CLIENT                    = SY-MANDT&lt;/P&gt;&lt;P&gt;   GROUP                     =  'PRUEBA'&lt;/P&gt;&lt;P&gt;   USER                      =  'RREOL'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CLIENT_INVALID            = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  DESTINATION_INVALID       = 2&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GROUP_INVALID             = 3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  GROUP_IS_LOCKED           = 4&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  HOLDDATE_INVALID          = 5&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  INTERNAL_ERROR            = 6&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  QUEUE_ERROR               = 7&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  RUNNING                   = 8&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  SYSTEM_LOCK_ERROR         = 9&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  USER_INVALID              = 10&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                    = 11&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC  NE 0.&lt;/P&gt;&lt;P&gt;"Check first this Function OPen group success or failure.&lt;/P&gt;&lt;P&gt;"then only insert othter wise you get the problems..&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 09:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361764#M1038158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T09:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361765#M1038159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because I've to create the BDC_Data for after insert it into the BI, the function 'HR_INFOTYPE_OPERATION' I don't know how to use and I have to create the Batch Input before the data are inserted into the transacction PA30.... infotype 0015...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 09:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361765#M1038159</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2008-08-21T09:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361766#M1038160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;any way , keep the break point and BDC_OPEN_GROUP function call and check what is happening exactly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if Open Function fails , Insert Function will fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Call function 'BDC_OPEN_GROUP'..

if sy-subrc eq 0.
call Function 'BDC_INSERT_GROUP'...

...

endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;what is the message number and id  for the message you are getting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:13:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361766#M1038160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T10:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361767#M1038161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The number of the message I received is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_INSERT, dynpro .&amp;amp;. no válido.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Nº mensaje: 00339&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Diagnóstico&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Error al crear un juego de datos batch input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedimiento&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Informar al responsable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't create my data group, and I don't know why, the code is the same code of a report that make the same without the ALV before... can anybody help me? please!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361767#M1038161</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2008-08-21T10:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361768#M1038162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Translate:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Error al crear un juego de datos batch input.


Procedimiento

Informar al responsable.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:21:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361768#M1038162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T10:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361769#M1038163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, I'm spanish and I forgot to transalte that, sorry a lot. Now I have changed the order of the code and now, I can see in SM35 the Batch Input but this doesn't have nothing, this is the new code... now i don't received any message...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM EJECUTARBI.


CALL FUNCTION 'BDC_OPEN_GROUP'
 EXPORTING
   CLIENT                    = SY-MANDT
*   DEST                      = FILLER8
   GROUP                     =  'PRUEBA'
*   HOLDDATE                  = FILLER8
*   KEEP                      = FILLER1
   USER                      =  'RREOL'
*   RECORD                    = FILLER1
*   PROG                      = SY-CPROG
*   DCPFM                     = '%'
*   DATFM                     = '%'
* IMPORTING
*   QID                       =
* EXCEPTIONS
*   CLIENT_INVALID            = 1
*   DESTINATION_INVALID       = 2
*   GROUP_INVALID             = 3
*   GROUP_IS_LOCKED           = 4
*   HOLDDATE_INVALID          = 5
*   INTERNAL_ERROR            = 6
*   QUEUE_ERROR               = 7
*   RUNNING                   = 8
*   SYSTEM_LOCK_ERROR         = 9
*   USER_INVALID              = 10
*   OTHERS                    = 11
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.




* Ventana 1000

LOOP at itab_tabla INto wa_tabla.


  PERFORM BDC_DYNPRO      USING 'SAPMP50A' '1000'.
  PERFORM BDC_FIELD       USING 'BDC_OKCODE' '/00'.
  PERFORM BDC_FIELD       USING 'RP50G-PERNR' wa_tabla-PERNR.
  PERFORM BDC_FIELD       USING 'RP50G-CHOIC' '15'.


  PERFORM BDC_DYNPRO      USING 'SAPMP50A' '1000'.
  PERFORM BDC_FIELD       USING 'BDC_OKCODE' '=INS'.
  PERFORM BDC_FIELD       USING 'RP50G-PERNR' wa_tabla-PERNR.
  PERFORM BDC_FIELD       USING 'RP50G-CHOIC' '15'.

* Ventana Infotipo 0015 con simulacion de ENTER

  PERFORM BDC_DYNPRO      USING 'MP001500' '2000'.
  PERFORM BDC_FIELD       USING 'BDC_CURSOR'
                                 'Q0015-BETRG'.

*  PERFORM BDC_FIELD       USING 'P0015-BEGDA' BEGDA.
  PERFORM BDC_FIELD       USING 'BDC_OKCODE' 'UPD'.

  PERFORM BDC_FIELD       USING 'P0015-LGART' wa_tabla-CINCO. " Insertamos el total de la prorrata en el concepto de nómina 9998
*  PERFORM BDC_FIELD       USING 'P001-ENDDA'  wa_tabla-betrg.

ENDLOOP.



CALL FUNCTION 'BDC_INSERT'
 EXPORTING
   TCODE                  = 'PA30'
*   POST_LOCAL             = NOVBLOCAL
*   PRINTING               = NOPRINT
*   SIMUBATCH              = ' '
*   CTUPARAMS              = ' '
  TABLES
    DYNPROTAB              = BDC_TAB
* EXCEPTIONS
*   INTERNAL_ERROR         = 1
*   NOT_OPEN               = 2
*   QUEUE_ERROR            = 3
*   TCODE_INVALID          = 4
*   PRINTING_INVALID       = 5
*   POSTING_INVALID        = 6
*   OTHERS                 = 7
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

ENDIF.




CALL FUNCTION 'BDC_CLOSE_GROUP'
* EXCEPTIONS
*   NOT_OPEN          = 1
*   QUEUE_ERROR       = 2
*   OTHERS            = 3
          .
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

ENDFORM.                    "EjecutarBI&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361769#M1038163</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2008-08-21T10:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361770#M1038164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check you have populated BDC_TAB.&lt;/P&gt;&lt;P&gt;Do you have any records in BDC_TAB. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'BDC_INSERT'
 EXPORTING
   TCODE                  = 'PA30'
*   POST_LOCAL             = NOVBLOCAL
*   PRINTING               = NOPRINT
*   SIMUBATCH              = ' '
*   CTUPARAMS              = ' '
  TABLES
    DYNPROTAB              = BDC_TAB
* EXCEPTIONS
*   INTERNAL_ERROR         = 1
*   NOT_OPEN               = 2
*   QUEUE_ERROR            = 3
*   TCODE_INVALID          = 4
*   PRINTING_INVALID       = 5
*   POSTING_INVALID        = 6
*   OTHERS                 = 7
          .
IF SY-SUBRC  0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:31:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361770#M1038164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T10:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361771#M1038165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I have data in the BDC data...now I received the same message,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; BDC_INSERT, dynpro .&amp;amp;. no válido.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Nº mensaje: 00339&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Diagnóstico&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Error al crear un juego de datos batch input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Error where creating the data for the Batch Input&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Procedimiento&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Informar al responsable.&lt;/P&gt;&lt;P&gt;     Inform to the person in charge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361771#M1038165</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2008-08-21T10:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361772#M1038166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Redeca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Vijay wrote:The problem is with the BDC , and why can't you use the the Function

HR_INFOTYPE_OPERATION for updating&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He is Absolutely right.&lt;/P&gt;&lt;P&gt;BDC for PA30 never prefferd.i think you can achieve all goal for HR master data from HR_INFOTYPE_OPERATION.&lt;/P&gt;&lt;P&gt;either use PA40.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how you should use:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'HR_INFOTYPE_OPERATION'
     EXPORTING
          INFTY         = '0008'"0015 in your case and fill data accordingly
          NUMBER        = EMPLOYEENUMBER
          SUBTYPE       = SUBTYPE
          VALIDITYEND   = VALIDITYEND
          VALIDITYBEGIN = VALIDITYBEGIN
          RECORD        = P0008
          OPERATION     = CHECK_RECORD
    IMPORTING
          RETURN        = RETURN
          KEY           = PERSONALDATAKEY
     EXCEPTIONS
          OTHERS        = 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Gujargoud on Aug 21, 2008 12:56 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Gujargoud on Aug 21, 2008 12:56 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 10:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361772#M1038166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T10:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361773#M1038167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What should I put in the parameter operation of the function HR_INFOTYPE_OPERATION ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:06:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361773#M1038167</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2008-08-21T11:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361774#M1038168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rebeca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see these are the possible option we can give in OPRATION:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;COP	Copy
DEL	Delete
DIS	Display
EDQ	Lock/unlock
INS	Create
LIS9	Delimit
MOD	Change
INSS	Create for Actions is not converted to Change&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;choose either accordinf to your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:12:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361774#M1038168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T11:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361775#M1038169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for all the questions, now I have delete the funciton "BDC_OPEN_GROUP" and now, when I tried to insert the data with the function HR_INFOTYPE_OPERATION when I execute the message I received is "The data group is not open" please...can you give me any example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanksa  lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361775#M1038169</guid>
      <dc:creator>former_member384574</dc:creator>
      <dc:date>2008-08-21T11:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361776#M1038170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when you are using the Function HR_INFOTYPE_OPERATION you don't need to call any BDC realted functions insert or close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So remove those functions and use only HR_INFOTYPE_OPERATION and if you want to use this function module you have to lock the PERNR before calling the FUnction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'BAPI_EMPLOYEE_ENQUEUE'
       exporting
            number = p0002-pernr
       importing
            return = return_struc.
      ....

    call function 'HR_INFOTYPE_OPERATION'
      exporting
        infty                  = '0002'
        number                 = p0002-pernr
        validityend            = p0002-endda
        validitybegin          = p0002-begda
        recordnumber           = p0002-seqnr
        record                 = p0002
        operation              = 'MOD'
        dialog_mode            = '1'
      importing
        return                 = return_struc
        key                    = record_key.

    if not return_struc is initial.
   
    endif.
   ......
  call function 'BAPI_EMPLOYEE_DEQUEUE'
       exporting
            number = p0002-pernr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2008 11:26:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361776#M1038170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-21T11:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Batch Input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361777#M1038171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I have another 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:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-batch-input/m-p/4361777#M1038171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-18T13:40:24Z</dc:date>
    </item>
  </channel>
</rss>

