<?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: BAPI for VA23-like functionality in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114626#M442448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now written a wrapper for the SD_SALES_DOCUMENT_READ and it works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as you know, it only helps us to get the header information rather than the complete quotation data. Is there any RFC or BAPI which does that? Inspite of searching hard, I havent come across anything helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be really glad if you (or anyone else reading this &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; ) can help me out with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye!&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2007 11:28:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-17T11:28:18Z</dc:date>
    <item>
      <title>BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114621#M442443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the BAPI for the same behaviour as VA23? Only a BAPI that returns the details of the Quotation - I dont want a BAPI for changing the quotation or anything like that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI_QUOTATION_GETDETAILSBOS does not exist in the system. Is there any other BAPI which can help me export the quotation details using JCo?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 12:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114621#M442443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T12:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114622#M442444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can write your own RFC enabled function module to query the data.  You can get the information from tables VBAK, VBAP, VBEP, VBFA, VBPA, VBKD, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 12:56:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114622#M442444</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-16T12:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114623#M442445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer! There ist just one problem, I am not an ABAP guy, I just posted the question here in case anyone knew of a BAPI about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you will understand it better if I explain it - I am working on a JCo program which first lays down a quotation in the R/3 system. This part works smoothly. Next, I try to read this quotation using the number generated in the above step and export the data from the quotation into an XML file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only part I am stuck in is finding a BAPI which will read the quotation - the closest I found was SD_SALES_DOCUMENT_READ, but this does not seem to be working right in my program. I am still checking it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything simpler in sight to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help again!&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 13:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114623#M442445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T13:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114624#M442446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That function module would work good for you for getting the header level details if it was remote enabled.  It is not, and hence can not be called from outside the system.  Is there any ABAPer around that could write a wrapper function module around the SD_SALES_DOCUMENT_READ function module.  He could then make the wrapper RFC enabled, which would allow you to call it from jCo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 13:55:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114624#M442446</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-16T13:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114625#M442447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Rich!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally a positive reply from at least someone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately no, there is no one around here thats a good ABAP programmer. There are just two of us here who are a little familar with ABAP but if you could guide me to some white papers or example programs which show how a wrapper can be built for the SD_SALES--- module, I can go ahead and try it myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The need is however to stick with standard SAP delivered BAPIs as much as possible so it would be extremely helpful in case you know of a BAPI for the job &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still find it strange that there are BAPIs for laying a quotation and changing it but not for reading it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton!&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 14:38:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114625#M442447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T14:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114626#M442448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now written a wrapper for the SD_SALES_DOCUMENT_READ and it works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as you know, it only helps us to get the header information rather than the complete quotation data. Is there any RFC or BAPI which does that? Inspite of searching hard, I havent come across anything helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be really glad if you (or anyone else reading this &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; ) can help me out with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye!&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 11:28:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114626#M442448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T11:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114627#M442449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI'S for sales&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAP2E_FPLT_TO_BAPISDBPLD&lt;/P&gt;&lt;P&gt;MAP2E_KOMV_TO_BAPISDCOND&lt;/P&gt;&lt;P&gt;MAP2E_SADRVB_TO_BAPISDCOAD&lt;/P&gt;&lt;P&gt;MAP2E_THEAD_TO_BAPISDTEHD&lt;/P&gt;&lt;P&gt;MAP2E_VBAK_TO_BAPISDHD&lt;/P&gt;&lt;P&gt;MAP2E_VBAP_TO_BAPISDIT&lt;/P&gt;&lt;P&gt;MAP2E_VBEP_TO_BAPISDHEDU&lt;/P&gt;&lt;P&gt;MAP2E_VBFA_TO_BAPISDFLOW&lt;/P&gt;&lt;P&gt;MAP2E_VBKD_TO_BAPISDBUSI&lt;/P&gt;&lt;P&gt;MAP2E_VBPA_TO_BAPISDPART&lt;/P&gt;&lt;P&gt;MAP2E_VBUK_TO_BAPISDHDST&lt;/P&gt;&lt;P&gt;MAP2E_VBUP_TO_BAPISDITST&lt;/P&gt;&lt;P&gt;MAP2E_VEDA_TO_BAPISDCNTR&lt;/P&gt;&lt;P&gt;BAPI_SALESDOCUMENT_CHANGE      BAPI Change Sales Document&lt;/P&gt;&lt;P&gt;BAPI_SALESDOCUMENT_COPY        Copying a Sales Document in a Subsequent Documen&lt;/P&gt;&lt;P&gt;BAPI_SALESDOCU_CREATEFROMDATA1 Creating a Sales and Distribution Document&lt;/P&gt;&lt;P&gt;BAPI_SALESDOCU_CREATEWITHDIA   Creating a Sales and Distribution Document&lt;/P&gt;&lt;P&gt;MAP2E_CUXE1CUBLB_TO_BAPICUBLBM&lt;/P&gt;&lt;P&gt;MAP2E_CUXE1CUINS_TO_BAPICUINSM&lt;/P&gt;&lt;P&gt;MAP2E_CUXE1CUPRT_TO_BAPICUPRTM&lt;/P&gt;&lt;P&gt;MAP2E_CUXE1CUVAL_TO_BAPICUVALM&lt;/P&gt;&lt;P&gt;MAP2E_E1CUCFG_TO_BAPICUCFGM&lt;/P&gt;&lt;P&gt;MAP2E_E1CUREF_TO_BAPICUREFM&lt;/P&gt;&lt;P&gt;MAP2E_FPLA_TO_BAPISDBPL&lt;/P&gt;&lt;P&gt;MAP2E_FPLTVB_TO_BAPICCARDM&lt;/P&gt;&lt;P&gt;MAP2E_FPLT_TO_BAPISDBPLD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**&lt;STRONG&gt;Please reward suitable points&lt;/STRONG&gt;***&lt;/P&gt;&lt;P&gt;With Regards&lt;/P&gt;&lt;P&gt;Navin Khedikar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 11:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114627#M442449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T11:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114628#M442450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Navin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your knowledge of BAPIs related to Sales seems commendable. However, like I said, I am looking for a BAPI/RFC to help me read an existing quotation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already tried SD_SALES_DOCUMENT_READ but it returns only the header data. The SD_SALES_DOCUMENT_READ_POS helps partly but provides information only about one particular specified row of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your list, although comprehensive, does not seem to help me in any way regarding that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 13:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114628#M442450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T13:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114629#M442451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you want the line items now?    In your wrapper function module, try calling the function module SD_SALES_ITEM_LIST_READ after the other SD function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 13:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114629#M442451</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-17T13:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114630#M442452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again mate, I am trying it out right now and will post my results here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for showing up again with an answer!&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 13:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114630#M442452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T13:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114631#M442453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried out what you suggested. The SD_SALES_ITEM_LIST_READ returns the number of records in the quotation but no material numbers being used in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following is the code I have written as of yet - bear with me in case the code is dirty, I am a beginner as far as ABAP is concerned and am still stumbling along the way &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION Z_QUOTATION_READ_POS.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(DOC_NUMBER) LIKE  VBAK-VBELN
*"     VALUE(DOC_POSNMR) LIKE  VBAP-POSNR
*"  EXPORTING
*"     VALUE(ENCO_EVBAK) LIKE  VBAK STRUCTURE  VBAK
*"     VALUE(ENCO_EVBAKKOM) LIKE  VBAKKOM STRUCTURE  VBAKKOM
*"     VALUE(ENCO_MATNR_POS) LIKE  VBAP-MATNR
*"  TABLES
*"      ENCO_FXAVBBD STRUCTURE  BV03V
*"      ENCO_EIVBAP STRUCTURE  AV03R
*"----------------------------------------------------------------------



CALL FUNCTION 'SD_SALES_DOCUMENT_READ_POS'

EXPORTING
  DOCUMENT_NUMBER = DOC_NUMBER
  DOCUMENT_POSNR = DOC_POSNMR

IMPORTING
  EVBAK = ENCO_EVBAK
  EVBAKKOM = ENCO_EVBAKKOM
  MATNR_POS = ENCO_MATNR_POS

TABLES
  FXAVBBD = ENCO_FXAVBBD.

ENCO_EIVBAP-VBELN = 0020000017.

CALL FUNCTION 'SD_SALES_ITEM_LIST_READ'

TABLES
  EIVBAP = ENCO_EIVBAP.

ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first part is of course where I use the READ_POS RFC, after that I call the LIST_READ as you suggested but in the output table, only the position numbers are filled up - at least it shows how many records are present in the Quotation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I get the material numbers too? I checked the SD_SALES_ITEM_LIST_READ Function module and in the module it only iterates on the position number. I know its not recommended to change SAP code so how do I go ahead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just give me the idea, I will try and implement it myself in ABAP - learn better that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 13:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114631#M442453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T13:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114632#M442454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I'm done with those function modules now.  Lets just hit the DB directly.  Put this logic in your function module and pass these back thru the interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select Single * into ex_vbak
           from vbak
                  where vbeln = DOC_NUMER.

Select Single * into ex_vbap
                 from vbap
                          where vbeln = DOC_NUMBER
                             and posnr = DOC_ITEM_NUMBER.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 14:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114632#M442454</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-17T14:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114633#M442455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to pass back all line items of the quote, you wil need to pass the internal table instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select * into  table tb_vbap
                 from vbap
                          where vbeln = DOC_NUMBER.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 14:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114633#M442455</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-17T14:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114634#M442456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that you exporting and tables parameters are typed correct for this new logic.   Make sure that the VBAK exporting parameter is of type VBAK, and the tables parameter for VBAP is type like VBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 14:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114634#M442456</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-17T14:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114635#M442457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try out your code now...but just a remark - wont "Select Single ....... and posnr = DOC_ITEM_NUMBER" insert just a single record where the position number is defined?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was trying to get all the materials in the quotation - some kind of a loop to iterate through all the POSNMRs. I will try something like "Select * into enco_vbap from vbap where vbeln = DOC_NUMBER".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will let you know what happens &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye!&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 14:53:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114635#M442457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T14:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114636#M442458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried out the code with the following results - when I use the Select* instead of the select single, I get the entry of the last row in the evbap table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two materials in the quotation, but with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select * into enco_evbap
                 from vbap
                          where vbeln = DOC_NUMBER.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get only one entry in the output containing the second material. If I use the select single, I get the first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am guessing, I am not aware of looping techniques in ABAP. When I use Select * blah blah blah, how do I append a second row in the enco_evbap table so that the second material gets written into the second row?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, the following dirty beginner ABAP code that I have - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION Z_QUOTATION_READ_POS.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(DOC_NUMBER) LIKE  VBAK-VBELN
*"     VALUE(DOC_POSNMR) LIKE  VBAP-POSNR
*"  EXPORTING
*"     VALUE(ENCO_EVBAK) LIKE  VBAK STRUCTURE  VBAK
*"     VALUE(ENCO_EVBAKKOM) LIKE  VBAKKOM STRUCTURE  VBAKKOM
*"     VALUE(ENCO_MATNR_POS) LIKE  VBAP-MATNR
*"     VALUE(ENCO_EVBAP) LIKE  VBAP STRUCTURE  VBAP
*"  TABLES
*"      ENCO_FXAVBBD STRUCTURE  BV03V
*"      ENCO_EIVBAP STRUCTURE  AV03R
*"----------------------------------------------------------------------

CALL FUNCTION 'SD_SALES_DOCUMENT_READ_POS'

EXPORTING
  DOCUMENT_NUMBER = DOC_NUMBER
  DOCUMENT_POSNR = DOC_POSNMR

IMPORTING
  EVBAK = ENCO_EVBAK
  EVBAKKOM = ENCO_EVBAKKOM
  MATNR_POS = ENCO_MATNR_POS

TABLES
  FXAVBBD = ENCO_FXAVBBD.

ENCO_EIVBAP-VBELN = 0020000017.

Select single * into enco_evbak
           from vbak
                  where vbeln = DOC_NUMBER.

Select * into enco_evbap
                 from vbap
                          where vbeln = DOC_NUMBER.
endselect.

CALL FUNCTION 'SD_SALES_ITEM_LIST_READ'

TABLES
  EIVBAP = ENCO_EIVBAP.



ENDFUNCTION.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help, I really appreciate it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 15:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114636#M442458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T15:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114637#M442459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You forget the TABLE in the second select statement.  You don't need the function modules anymore so you can get rid of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

*CALL FUNCTION 'SD_SALES_DOCUMENT_READ_POS'
* 
*EXPORTING
*  DOCUMENT_NUMBER = DOC_NUMBER
*  DOCUMENT_POSNR = DOC_POSNMR
* 
*IMPORTING
*  EVBAK = ENCO_EVBAK
*  EVBAKKOM = ENCO_EVBAKKOM
*  MATNR_POS = ENCO_MATNR_POS
* 
*TABLES
*  FXAVBBD = ENCO_FXAVBBD.
 
ENCO_EIVBAP-VBELN = 0020000017.
 
Select single * into enco_evbak
           from vbak
                  where vbeln = DOC_NUMBER.
 
Select * into TABLE enco_evbap
                 from vbap
                          where vbeln = DOC_NUMBER.
*endselect.
 
*CALL FUNCTION 'SD_SALES_ITEM_LIST_READ'
* 
*TABLES
*  EIVBAP = ENCO_EIVBAP.
* 
 
 
ENDFUNCTION.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 15:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114637#M442459</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-04-17T15:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114638#M442460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sameer,&lt;/P&gt;&lt;P&gt;  I don't know if I am too late...:)&lt;/P&gt;&lt;P&gt;You can as well use the FM RFC_READ_TABLE function module.&lt;/P&gt;&lt;P&gt;Once for VBAK and another time for VBAP.&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 15:16:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114638#M442460</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T15:16:01Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114639#M442461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; I tried out your suggestions and just saw your last post about the missing "table" keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yesterday I tried it with the statement Select * appending table enco_..... and that had worked. The following is the running program now &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FUNCTION Z_QUOTATION_READ_POS.
*"----------------------------------------------------------------------
*"*"Local Interface:
*"  IMPORTING
*"     VALUE(DOC_NUMBER) LIKE  VBAK-VBELN
*"     VALUE(DOC_POSNMR) LIKE  VBAP-POSNR
*"  EXPORTING
*"     VALUE(ENCO_EVBAK) LIKE  VBAK STRUCTURE  VBAK
*"     VALUE(ENCO_EVBAKKOM) LIKE  VBAKKOM STRUCTURE  VBAKKOM
*"     VALUE(ENCO_MATNR_POS) LIKE  VBAP-MATNR
*"     VALUE(ENCO_EVBAP) LIKE  VBAP STRUCTURE  VBAP
*"  TABLES
*"      ENCO_FXAVBBD STRUCTURE  BV03V
*"      ENCO_EVBAP1 STRUCTURE  VBAP
*"----------------------------------------------------------------------

CALL FUNCTION 'SD_SALES_DOCUMENT_READ_POS'

EXPORTING
  DOCUMENT_NUMBER = DOC_NUMBER

  "The position number is not needed because a list of all materials in
  "the quotation is needed - not just one material at a particular
  "position. However, it is a required parameter and is set by default
  "to 0.
  DOCUMENT_POSNR = DOC_POSNMR

IMPORTING
  EVBAK = ENCO_EVBAK
  EVBAKKOM = ENCO_EVBAKKOM
  MATNR_POS = ENCO_MATNR_POS

TABLES
  FXAVBBD = ENCO_FXAVBBD.

"Select single * into enco_evbak
           "from vbak
                  "where vbeln = DOC_NUMBER.


"The following select code works
"Select * appending table enco_evbap1
                "from vbap
                        "where vbeln = DOC_NUMBER.
"endselect.

Select * into TABLE enco_evbap1
                 from vbap
                          where vbeln = DOC_NUMBER.

ENDFUNCTION.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all your help!&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2007 07:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114639#M442461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-18T07:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI for VA23-like functionality</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114640#M442462</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;check this one:&lt;/P&gt;&lt;P&gt;BAPISDORDER_GETDETAILEDLIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to fill I_BAPI_VIEW with what informations you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Frisoni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Mar 2010 19:16:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-for-va23-like-functionality/m-p/2114640#M442462</guid>
      <dc:creator>guilherme_frisoni</dc:creator>
      <dc:date>2010-03-09T19:16:32Z</dc:date>
    </item>
  </channel>
</rss>

