<?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 in bapi_transaction_commit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543522#M1657566</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;    If i have understood your requirement correctly , you have created invoice for the unblocked records and you have to display all the invoice document number created in a screen after clicking on execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be achieved. Please follow the below process,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as the BDC is over , you can write a SELECT query in VBRK table to fetch the records based on the condition ERDAT EQ sy-datum AND ENNAM EQ sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you will have all the records created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are going to run the program more than once in a day, then add one more condition ERZET GE lv_uzeit.&lt;/P&gt;&lt;P&gt;This lv_uzeit has to be set at the initialization as given below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lv_uzeit TYPE sy-uzeit.

INITIALIZATION.
lv_uzeit = sy-uzeit.

&amp;lt;UNBLOCK&amp;gt;
&amp;lt;BDC&amp;gt;

SELECT VBELN FROM VBRK INTO IT_VBELN
WHERE ERNAM EQ sy-uname
    AND  ERZET  GE lv_uzeit
    AND  ERDAT  EQ sy-datum.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the table it_vbeln will have all the billing documents created during the execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_vbeln INTO WA_VBELN&lt;/P&gt;&lt;P&gt;   WRITE : wa_vbeln-vbeln.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus after clicking on execute you will have all the created invoice documents displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"NOTE: Your it_msg table will have all the numbers but it will also have other message as well hence it is better to go with the above approach."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveenkumar T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 12:00:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-22T12:00:36Z</dc:date>
    <item>
      <title>Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543518#M1657562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done one alv report with checkboxes which displays blocked billing plan line items.&lt;/P&gt;&lt;P&gt;I put a execute button, for selected records it is to be processed and the status get unblocked in dbase.&lt;/P&gt;&lt;P&gt;i have done this using some fm's start with SD_SALES....&lt;/P&gt;&lt;P&gt;at last i am calling bapi_transaction_commit it is working fine..&lt;/P&gt;&lt;P&gt;After that i am using bdc for vf01 and it's working fine and i got the messages into one itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how do i display that data in the screen ?&lt;/P&gt;&lt;P&gt;I have to display the data in the same screen by refresh it.&lt;/P&gt;&lt;P&gt;How do i achieve this...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is after click on execute it has display the Billing Numbers which are genarated..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
when 'EXECUTE'.
---
----
---
        refresh it_bdcdata.
* BDC for Invoice Creation
        v_index = v_index + 1. "SY-TABIX.
        perform bdc_dynpro      using 'SAPMV60A' '0102'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'KOMFK-VBELN( V_INDEX )'. "'KOMFK-VBELN(01)'.
        perform bdc_field       using 'BDC_OKCODE'
                                '/00'.
        concatenate 'KOMFK-VBELN(' v_index ')' into v_fnam.
        perform bdc_field       using v_fnam
                                wa_process-vbeln. "'40000003'.
        clear v_fnam.
       perform bdc_dynpro      using 'SAPMV60A' '0104'.
        perform bdc_field       using 'BDC_OKCODE'
                                '=SICH'.
        call transaction 'VF01' using it_bdcdata mode   'A'
                                                 update 'S'
                                                 messages into it_msg.
        perform bdc_messages.
      endloop.

      loop at it_error into wa_error.  " Here i am getting those billing numbers
        write : / wa_error-msg_err.
        clear wa_error.
      endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 11:29:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543518#M1657562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T11:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543519#M1657563</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;  Can you please explain your requirement more clearly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveenkumar T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 11:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543519#M1657563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T11:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543520#M1657564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am displaying an alv report with check boxes.&lt;/P&gt;&lt;P&gt;for selecteding records i am unblocking some records(Using fm's- commit work)&lt;/P&gt;&lt;P&gt;for those creating invoice(vf01-BDC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALL is well .. i am getting messages into one internal table.&lt;/P&gt;&lt;P&gt;now i want to display that messages in that screen(means after execute).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 11:42:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543520#M1657564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T11:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543521#M1657565</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;After BDC Process completion r using FORMAT_MESSAGE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From IT_MSG you can display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveen.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 11:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543521#M1657565</guid>
      <dc:creator>praveen_reddy2</dc:creator>
      <dc:date>2012-02-22T11:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543522#M1657566</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;    If i have understood your requirement correctly , you have created invoice for the unblocked records and you have to display all the invoice document number created in a screen after clicking on execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can be achieved. Please follow the below process,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as the BDC is over , you can write a SELECT query in VBRK table to fetch the records based on the condition ERDAT EQ sy-datum AND ENNAM EQ sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you will have all the records created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are going to run the program more than once in a day, then add one more condition ERZET GE lv_uzeit.&lt;/P&gt;&lt;P&gt;This lv_uzeit has to be set at the initialization as given below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lv_uzeit TYPE sy-uzeit.

INITIALIZATION.
lv_uzeit = sy-uzeit.

&amp;lt;UNBLOCK&amp;gt;
&amp;lt;BDC&amp;gt;

SELECT VBELN FROM VBRK INTO IT_VBELN
WHERE ERNAM EQ sy-uname
    AND  ERZET  GE lv_uzeit
    AND  ERDAT  EQ sy-datum.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the table it_vbeln will have all the billing documents created during the execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_vbeln INTO WA_VBELN&lt;/P&gt;&lt;P&gt;   WRITE : wa_vbeln-vbeln.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus after clicking on execute you will have all the created invoice documents displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"NOTE: Your it_msg table will have all the numbers but it will also have other message as well hence it is better to go with the above approach."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveenkumar T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 12:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543522#M1657566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T12:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543523#M1657567</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;You can simply Loop at it_msg and write the lines.&lt;/P&gt;&lt;P&gt;It will display your messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you want to display only successful cases then you can - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_msg INTO wa_msg WHERE msgtyp = 'S'.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Bansal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 12:06:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543523#M1657567</guid>
      <dc:creator>Harsh_Bansal</dc:creator>
      <dc:date>2012-02-22T12:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543524#M1657568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anurag,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:  it_msg LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.
DATA : v_msg(255) TYPE c.

LOOP AT IT_MSG WHERE msgtyp = 'S'.

CALL FUNCTION 'FORMAT_MESSAGE'
        EXPORTING
          id        = it_msg-msgid
          lang    = 'E'
          no      = it_msg-msgnr
          v1      = it_msg-msgv1
          v2      = it_msg-msgv2
          v3      = it_msg-msgv3
          v4      = it_msg-msgv4
        IMPORTING
          msg       = v_msg
        EXCEPTIONS
          not_found = 1
          OTHERS    = 2.

ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ajoy Chakraborty on Feb 22, 2012 5:54 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 12:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543524#M1657568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T12:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543525#M1657569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I have done the things what you said.&lt;/P&gt;&lt;P&gt;but my requriement is i want to display the invoice numbers(message created) in separate screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i am getting the message in status bar of lastly created invoice number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the loop is not displaying in another screen.&lt;/P&gt;&lt;P&gt;Kindly note that it is an interactive report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anurag.radha on Feb 22, 2012 2:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 12:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543525#M1657569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T12:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543526#M1657570</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;   Did you write same select query I have mentioned. and use the write statement as shown in the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After select you should write this code as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT it_vbeln INTO WA_VBELN
WRITE : /n wa_vbeln-vbeln.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if that is done i am very sure that it will display the list of invoice number in a different screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveenkumar T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 13:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543526#M1657570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T13:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543527#M1657571</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;Just use Write statement in Loop to display messages.&lt;/P&gt;&lt;P&gt;Then it will come in a new screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Bansal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 13:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543527#M1657571</guid>
      <dc:creator>Harsh_Bansal</dc:creator>
      <dc:date>2012-02-22T13:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543528#M1657572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear harsh Bansal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this but it is not displaying in the new screen.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
        call transaction 'VF01' using it_bdcdata mode  'N'
                                                 update 'S'
                                                 messages into it_msg.

        select single vbeln from vbrk into wa_vbrk
        where ernam eq sy-uname
            and  erzet  ge lv_uzeit
            and  erdat  eq sy-datum
            and  ernam  eq sy-uname.
        append wa_vbrk to it_vbrk.
        clear wa_vbrk.
      endloop.
      loop at it_vbrk into wa_vbrk.
        write : / wa_vbrk-vbeln color 5.
        clear wa_vbrk.
      endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 13:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543528#M1657572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T13:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543529#M1657573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This should work actually.&lt;/P&gt;&lt;P&gt;Did you try debugging it from Select statement onwards??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harsh Bansal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 14:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543529#M1657573</guid>
      <dc:creator>Harsh_Bansal</dc:creator>
      <dc:date>2012-02-22T14:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543530#M1657574</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;    Write your SELECT query outside the BDC LOOP. If it is inside the loop it will always fetch the same data. since you have used select single.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check if the Internal table it_vbrk is not Empty. &lt;/P&gt;&lt;P&gt;you code should look like.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call transaction 'VF01' using it_bdcdata mode  'N'
                                                 update 'S'
                                                 messages into it_msg.
  
      endloop.

    select  vbeln from vbrk into table it_vbrk
        where ernam eq sy-uname
            and  erzet  ge lv_uzeit
            and  erdat  eq sy-datum.

IF it_vbrk IS NOT INITIAL.
             loop at it_vbrk into wa_vbrk.
        write : / wa_vbrk-vbeln color 5.
        clear wa_vbrk.
      endloop..
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please revert if you still face problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Praveenkumar T.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 14:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543530#M1657574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-22T14:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in bapi_transaction_commit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543531#M1657575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still it is not working.&lt;/P&gt;&lt;P&gt;i debugged it it goes to that loop and displaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any way i resolved this by passing this it_vbrk to reuse_alv-grid_display.&lt;/P&gt;&lt;P&gt;it works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnak you so much all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 09:48:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-bapi-transaction-commit/m-p/8543531#M1657575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-23T09:48:27Z</dc:date>
    </item>
  </channel>
</rss>

