<?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: Adding records to a custom table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862307#M928311</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;I alreday have a maintenance view table , basically I have been asked to create a report which will enter a record into my ZALLOC table through running this new transaction.Its like listed below for better understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frame this entire section &amp;#150; &amp;#147;Selection Criteria:&amp;#148;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--new block&lt;/P&gt;&lt;P&gt;Selection Screen:&lt;/P&gt;&lt;P&gt;Material Document of Original Transfer Posting (101/311): __________ (ZALLOC- ZMBLNR)&lt;/P&gt;&lt;P&gt;Receiving Plant/S.Loc. Item of Original Transfer Posting (101/311): ____ (ZALLOC- ZZEILE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material Document of Pro-rationed Transfer Posting (901/911): __________ (ZALLOC-ZMBLNR_PRO)&lt;/P&gt;&lt;P&gt;Receiving Plant/S.Loc. Item of Pro-rationed Transfer Posting (901/911): ____ (ZALLOC- ZZEILE_PRO)&lt;/P&gt;&lt;P&gt;--end block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--new block&lt;/P&gt;&lt;P&gt;Issuing Plant: ____ (ZALLOC-ZWERKS_ISS)&lt;/P&gt;&lt;P&gt;Issuing Storage Location: ____ (ZALLOC-ZLGORT_ISS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receiving Plant: ____ (ZALLOC-ZWERKS)&lt;/P&gt;&lt;P&gt;Receiving Storage Location: ____ (ZALLOC-ZLGORT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Batch: TRANSFERS (ZALLOC-ZCHARG non-changeable default &amp;#145;TRANSFERS&amp;#146;)&lt;/P&gt;&lt;P&gt;--end block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program Flow:&lt;/P&gt;&lt;P&gt;- Find the material document lines of the pro-rationed transfer posting.  &lt;/P&gt;&lt;P&gt;- Check to see if the pro-rationed document is a 901 or a 911 material document.  Display hard error &amp;#145;Pro-rationed document item is not a 901 or 911 movement type&amp;#146;&lt;/P&gt;&lt;P&gt;- Check to make sure that the MSEG-WERKS and LGORT match the receiving plant and storage location ZWERKS and ZLGORT.  Display Hard Error &amp;#150; &amp;#145;Provided pro-rationed item plant and storage location does not match the provided receiving plant and storage location.&amp;#146;&lt;/P&gt;&lt;P&gt;- Check the material document ZMBLNR_PRO and ZZEILE_PRO for MSEG-SHKZG = &amp;#145;S&amp;#146;.  Display hard error &amp;#145;Item Line is not an Inbound Item into Receiving Facility. Check for correct item line in pro-rationed material document (901/911)&amp;#146;&lt;/P&gt;&lt;P&gt;- Check to see if this key has already been entered into the ZALLOC table. &lt;/P&gt;&lt;P&gt;- If it is grab the volume from the item line, populate all fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Use the Posting Date as the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Insert it into the table. &lt;/P&gt;&lt;P&gt;- Provide success/error report to show the record entered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this would help in helping me out , would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 May 2008 22:44:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-13T22:44:33Z</dc:date>
    <item>
      <title>Adding records to a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862304#M928308</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;I need to create a report with a transaction so that I can directly enter the records into this custom table using the transaction . can anyone explain me how to go about doing it . Basically I have a custom table which adds records to the custom table called allocation table.I need to create a report with a transaction which will update the table using this transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 20:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862304#M928308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T20:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding records to a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862305#M928309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, in that case you shouldn't create a report, but a module pool, which is used for transaction programming (dialog programming).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a module pool program (type MODULE POOL).&lt;/P&gt;&lt;P&gt;2. Create screen for entering data.&lt;/P&gt;&lt;P&gt;3. Put UI elements on screen according to your custom table (use the structure for putting the elements on screen on the fly).&lt;/P&gt;&lt;P&gt;4. Create PBO (process before output and PAI (process after input).&lt;/P&gt;&lt;P&gt;5. Create GUI status and GUI Title.&lt;/P&gt;&lt;P&gt;6. Handle user command.&lt;/P&gt;&lt;P&gt;7. Insert data into custom table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 21:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862305#M928309</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-05-13T21:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding records to a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862306#M928310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aarav,&lt;/P&gt;&lt;P&gt;instead of creating a custom report, create a maintenance view.. You can assign this to a transaction code (For this, first create a transaction variant through transaction "SHD0" and use this transaction variant in SE93 for creating a transaction...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Karthik S Kumar on May 13, 2008 11:25 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 21:24:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862306#M928310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T21:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Adding records to a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862307#M928311</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;I alreday have a maintenance view table , basically I have been asked to create a report which will enter a record into my ZALLOC table through running this new transaction.Its like listed below for better understanding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Frame this entire section &amp;#150; &amp;#147;Selection Criteria:&amp;#148;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--new block&lt;/P&gt;&lt;P&gt;Selection Screen:&lt;/P&gt;&lt;P&gt;Material Document of Original Transfer Posting (101/311): __________ (ZALLOC- ZMBLNR)&lt;/P&gt;&lt;P&gt;Receiving Plant/S.Loc. Item of Original Transfer Posting (101/311): ____ (ZALLOC- ZZEILE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material Document of Pro-rationed Transfer Posting (901/911): __________ (ZALLOC-ZMBLNR_PRO)&lt;/P&gt;&lt;P&gt;Receiving Plant/S.Loc. Item of Pro-rationed Transfer Posting (901/911): ____ (ZALLOC- ZZEILE_PRO)&lt;/P&gt;&lt;P&gt;--end block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--new block&lt;/P&gt;&lt;P&gt;Issuing Plant: ____ (ZALLOC-ZWERKS_ISS)&lt;/P&gt;&lt;P&gt;Issuing Storage Location: ____ (ZALLOC-ZLGORT_ISS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Receiving Plant: ____ (ZALLOC-ZWERKS)&lt;/P&gt;&lt;P&gt;Receiving Storage Location: ____ (ZALLOC-ZLGORT)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Batch: TRANSFERS (ZALLOC-ZCHARG non-changeable default &amp;#145;TRANSFERS&amp;#146;)&lt;/P&gt;&lt;P&gt;--end block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program Flow:&lt;/P&gt;&lt;P&gt;- Find the material document lines of the pro-rationed transfer posting.  &lt;/P&gt;&lt;P&gt;- Check to see if the pro-rationed document is a 901 or a 911 material document.  Display hard error &amp;#145;Pro-rationed document item is not a 901 or 911 movement type&amp;#146;&lt;/P&gt;&lt;P&gt;- Check to make sure that the MSEG-WERKS and LGORT match the receiving plant and storage location ZWERKS and ZLGORT.  Display Hard Error &amp;#150; &amp;#145;Provided pro-rationed item plant and storage location does not match the provided receiving plant and storage location.&amp;#146;&lt;/P&gt;&lt;P&gt;- Check the material document ZMBLNR_PRO and ZZEILE_PRO for MSEG-SHKZG = &amp;#145;S&amp;#146;.  Display hard error &amp;#145;Item Line is not an Inbound Item into Receiving Facility. Check for correct item line in pro-rationed material document (901/911)&amp;#146;&lt;/P&gt;&lt;P&gt;- Check to see if this key has already been entered into the ZALLOC table. &lt;/P&gt;&lt;P&gt;- If it is grab the volume from the item line, populate all fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Use the Posting Date as the date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Insert it into the table. &lt;/P&gt;&lt;P&gt;- Provide success/error report to show the record entered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this would help in helping me out , would be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 22:44:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862307#M928311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T22:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding records to a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862308#M928312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I gone with the selection screen and few program lines but I am confused in between the program lines and I am not able to recah the solution .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me out please in going through the program lines please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 22:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862308#M928312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T22:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Adding records to a custom table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862309#M928313</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;I already have a report which does the work of entering the records in the allocation table through the maintaince of table view which goes through a call transaction ZALC1 which is for a module pool program , I just now need a small report and call the at very transaction , but this will have a extra validation against mseg table.&lt;/P&gt;&lt;P&gt;The existing report is as follows.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zmm_zalc_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES:&lt;/P&gt;&lt;P&gt;  zalloc.                     " Allocation table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  ltp_memid TYPE char_60.     " Memory id for cluster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS:&lt;/P&gt;&lt;P&gt;  pa_werks TYPE werks_d OBLIGATORY. " Plant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;  so_lgort FOR zalloc-zlgort, " Storage location.&lt;/P&gt;&lt;P&gt;  so_budat FOR zalloc-zbudat, " Posting date.&lt;/P&gt;&lt;P&gt;  so_charg FOR zalloc-zcharg MATCHCODE OBJECT mch1. " Batch number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT COUNT(*) FROM zalloc WHERE&lt;/P&gt;&lt;P&gt;      zwerks EQ pa_werks AND&lt;/P&gt;&lt;P&gt;      zlgort IN so_lgort AND&lt;/P&gt;&lt;P&gt;      zbudat IN so_budat AND&lt;/P&gt;&lt;P&gt;      zcharg IN so_charg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-dbcnt = 0.&lt;/P&gt;&lt;P&gt;    MESSAGE i003(/spe/cons_api).&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;No records found for given selection criteria.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CONCATENATE sy-uname sy-datum INTO ltp_memid.&lt;/P&gt;&lt;P&gt;    EXPORT pa_werks = pa_werks so_lgort = so_lgort so_budat = so_budat so_charg = so_charg TO MEMORY ID ltp_memid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL TRANSACTION 'ZALC1'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have to create a new report based on this report with the specifications mentioned in the previos thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 04:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-records-to-a-custom-table/m-p/3862309#M928313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T04:10:11Z</dc:date>
    </item>
  </channel>
</rss>

