<?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: VBSEC Table not updating while parking a doc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbsec-table-not-updating-while-parking-a-doc/m-p/7650970#M1573127</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;Thanks for the reply... I put my break points in there but it's not stopping there at all. I am still looking into and will keep updating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Feb 2011 15:54:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-24T15:54:49Z</dc:date>
    <item>
      <title>VBSEC Table not updating while parking a doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbsec-table-not-updating-while-parking-a-doc/m-p/7650966#M1573123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a program wherein I am using a FM which is a copy of the std FM PRELIMINARY_POSTING_FB01. When I am calling the FM ZPRELIMINARY_POSTING_FB01 I am passing the following tables to it t_bkpf, t_bseg,t_bsec,t_bset and t_bsez. Tables t_bkpf, T_bseg and t_bsec have values in it. Now when I called this FM in my program it parked the document correclty but it only updated tables VBKPF and VBSEG but didn't update the table VBSEC which has one time vendor information. I put a break point just right before I am calling the FM and all the three tables are filled with the correct data but when I checked table vbsec after parking it doesn't have any data. When I did the same using std TCode FV60 it updated table VBSEC as well. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how I have called the FM in my program: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ZPRELIMINARY_POSTING_FB01'
    EXPORTING
       i_xcmpl =                         lv_i_xcmpl
       i_tcode =                         lv_i_tcode
       i_tcode_int =                     lv_i_tcode_int
    TABLES
       t_bkpf =                          lt_c_t_bkpf
       t_bseg =                          lt_c_t_bseg
       t_bsec =                          lt_c_t_bsec
       t_bset =                          lt_c_t_bset
       t_bsez =                          lt_c_t_bsez
  .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can you please tell me what might I be missing here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnaks,&lt;/P&gt;&lt;P&gt;Rajat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 18:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbsec-table-not-updating-while-parking-a-doc/m-p/7650966#M1573123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-23T18:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: VBSEC Table not updating while parking a doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbsec-table-not-updating-while-parking-a-doc/m-p/7650967#M1573124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Can you please tell me what might I be missing here?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;You are missing giving the forum any information to help with your question. The problem could be anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 19:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbsec-table-not-updating-while-parking-a-doc/m-p/7650967#M1573124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-23T19:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: VBSEC Table not updating while parking a doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbsec-table-not-updating-while-parking-a-doc/m-p/7650968#M1573125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Rob, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right before calling the FM I checked my internal table lt_c_t_bsec and it had data in it but when I checked the table VBSEC after parking the doc I didn;t see any entry in the table for that document number, so I am not able to understand why it didn;t update table VBSEC, although it updated table VBKPF and VBSEG correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 19:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbsec-table-not-updating-while-parking-a-doc/m-p/7650968#M1573125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-23T19:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: VBSEC Table not updating while parking a doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbsec-table-not-updating-while-parking-a-doc/m-p/7650969#M1573126</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;Maybe put a breakpoint in the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Include &lt;STRONG&gt;LF040F00&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    loop at yvbsec.
      loop at yvbseg where buzei eq yvbsec-buzei.
        if yvbseg-xcpdd ne 'X' and
           yvbseg-xzemp ne 'X'.
          delete yvbsec.
          exit.                                      "Note 430791
        else.
          upd_vbsec = char_u.
        endif.
      endloop.
    endloop.

        loop at yvbsec where buzei eq xvbsec-buzei.
          i = sy-tabix.
          if yvbsec ne xvbsec.
            upd_vbsec = char_u.
            xvbsec-kz = char_u.        "Update
          endif.
        endloop.
        if sy-subrc ne 0.
          upd_vbsec = char_u.
          xvbsec-kz = char_i.          "Insert
        endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These appear to be the points where the update flag for table BSEC is set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Robert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 21:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbsec-table-not-updating-while-parking-a-doc/m-p/7650969#M1573126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-23T21:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: VBSEC Table not updating while parking a doc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbsec-table-not-updating-while-parking-a-doc/m-p/7650970#M1573127</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;Thanks for the reply... I put my break points in there but it's not stopping there at all. I am still looking into and will keep updating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Feb 2011 15:54:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbsec-table-not-updating-while-parking-a-doc/m-p/7650970#M1573127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-24T15:54:49Z</dc:date>
    </item>
  </channel>
</rss>

