<?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: Regarding SUBMIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit/m-p/2145181#M452395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur quick reply.&lt;/P&gt;&lt;P&gt;Im filtering all the vendors as per my requirement but how do i update it.if i want to update it by using call transaction, i stored all the filtered vendors in one internal table but how can update my transaction by using that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to update the xk03 transaction.but how can i do it.can u give some sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and is it possible to update the selection screen of called program by using submit.if so pls help me h can we do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Apr 2007 14:49:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-05T14:49:20Z</dc:date>
    <item>
      <title>Regarding SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit/m-p/2145179#M452393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ran a query against table BSAK to find any documents for 2007 with withholding tax base not equal to 0.00 and withholding tax code = to blank. No documents found therefore issue #1 has not reoccurred&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ran a query in table LFB1 of all vendors with tax codes on them. Uploaded these vendors to a query in table BSAK and queried for any documents with blank tax codes and withholding tax base = to 0.00. Only document 20374406 found and this is due to the tax code being added to the vendor master after the payment was posted. Issue B above has not reoccurred. Program RFWT0020 can be ran to correct issue A, but we should build an automated program that runs on a quarterly basis to correct documents with this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build a batch job to &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Query for all 1099-reportable vendors with activity for the appropriate year. &lt;/P&gt;&lt;P&gt;b) Take these vendors and update their corresponding payment documents via program RFWT0020.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here my question is how to update vendors corresponding payment documents.&lt;/P&gt;&lt;P&gt;the program &amp;lt;b&amp;gt;RFWT0020&amp;lt;/b&amp;gt; is update tax code all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here i write a select statement on &amp;lt;b&amp;gt;lfb1&amp;lt;/b&amp;gt; and fetch vendors with taxcode.&lt;/P&gt;&lt;P&gt;then based on that using the for all entries i fetch the vendors from &amp;lt;b&amp;gt;bsak&amp;lt;/b&amp;gt; where taxcode eq blank and tax base eq 0.00.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then after select the vendors from &amp;lt;b&amp;gt;T059q&amp;lt;/b&amp;gt; where taxcode = bsak-taxcode and QSC0D = '1099'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then after i need to update these vendors payment documents via program RFWT0020.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please send ur valuable response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 16:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit/m-p/2145179#M452393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T16:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit/m-p/2145180#M452394</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;U need to create a program to update the vendor before submiting the report RFWT0020.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this program u can create a symple batch input (via call transaction) in order to update the vendor data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 17:03:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit/m-p/2145180#M452394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T17:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit/m-p/2145181#M452395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur quick reply.&lt;/P&gt;&lt;P&gt;Im filtering all the vendors as per my requirement but how do i update it.if i want to update it by using call transaction, i stored all the filtered vendors in one internal table but how can update my transaction by using that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to update the xk03 transaction.but how can i do it.can u give some sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and is it possible to update the selection screen of called program by using submit.if so pls help me h can we do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 14:49:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit/m-p/2145181#M452395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit/m-p/2145182#M452396</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;Sorry I didn't understand your requirement very well, anyway you can do something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT T_LFB1.

  LOOP AT T_BSAK WHERE BUKRS = T_LFB1-BUKRS
                   AND LIFNR = T_LFB1-LIFNR.

    SUBMIT RFWT0020
            WITH I_BELNR   = T_BSAK-BELNR
            WITH I_BUKRS   = T_LFB1-BUKRS
            WITH I_LIFNR     = T_LFB1-LIFNR
            WITH I_TIME       = T_BSAK-BUDAT AND RETURN

  ENDLOOP.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way you update a single document, u can create a range if you need to update it in massive way, something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT T_LFB1.

  R_BELNR(3) = 'IEQ'.

  LOOP AT T_BSAK WHERE BUKRS = T_LFB1-BUKRS
                   AND LIFNR = T_LFB1-LIFNR.
    R_BELNR-LOW = T_BSAK-BELNR.
    APPEND R_BELNR.
  ENDLOOP.

  SUBMIT RFWT0020
          WITH I_BELNR   IN R_BELNR
          WITH I_BUKRS   = T_LFB1-BUKRS
          WITH I_LIFNR   = T_LFB1-LIFNR AND RETURN.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I think it's safer to update single document, because you can risk to update wrong documents by massive updating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Apr 2007 16:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-submit/m-p/2145182#M452396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-05T16:43:33Z</dc:date>
    </item>
  </channel>
</rss>

