<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3508685#M843945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your valuable answer, now it is worikng fine....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Mar 2008 13:13:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-01T13:13:05Z</dc:date>
    <item>
      <title>BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3508682#M843942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sap Gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to upload the ME21N using BAPI.&lt;/P&gt;&lt;P&gt;If i test the BAPI function module independently it is creating the PO.&lt;/P&gt;&lt;P&gt;but when i pass the data using porg. shown below it is going for dump saying like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;STRONG&gt;"Type conflict when calling a function module (field length)."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;The call to the function module "BAPI_PO_CREATE1" is incorrect In the function module interface, you can specify only&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;fields of a specific type and length under "POHEADER".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;Although the currently specified field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;"I_POHEADER" is the correct type, its length is incorrect.&lt;/STRONG&gt;*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;report  /scl/rummpurr_me21n1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:i_poheader      type standard table of bapimepoheader,&lt;/P&gt;&lt;P&gt;      i_poheaderx      type standard table of bapimepoheaderx,&lt;/P&gt;&lt;P&gt;      i_poitem           type standard table of bapimepoitem,&lt;/P&gt;&lt;P&gt;      i_poitemx         type standard table of bapimepoitemx,&lt;/P&gt;&lt;P&gt;      i_poschedule    type standard table of bapimeposchedule,&lt;/P&gt;&lt;P&gt;      i_poschedulex  type standard table of bapimeposchedulx,&lt;/P&gt;&lt;P&gt;      i_return            type standard table of bapiret2.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;data :  wa_poheader       type     bapimepoheader,&lt;/P&gt;&lt;P&gt;        wa_poheaderx       type      bapimepoheaderx,&lt;/P&gt;&lt;P&gt;        wa_poitem             type     bapimepoitem,&lt;/P&gt;&lt;P&gt;        wa_poitemx           type     bapimepoitemx,&lt;/P&gt;&lt;P&gt;        wa_poschedule      type     bapimeposchedule,&lt;/P&gt;&lt;P&gt;        wa_poschedulex    type     bapimeposchedulx,&lt;/P&gt;&lt;P&gt;        wa_return               type    bapiret2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_poheader-comp_code    =   'Z010'.&lt;/P&gt;&lt;P&gt;wa_poheader-doc_type     =   'NB'.&lt;/P&gt;&lt;P&gt;wa_poheader-creat_date   =   sy-datum.&lt;/P&gt;&lt;P&gt;wa_poheader-vendor       =   '0000000014'.&lt;/P&gt;&lt;P&gt;wa_poheader-purch_org    =   'Z100'.&lt;/P&gt;&lt;P&gt;wa_poheader-pur_group    =   '110'.&lt;/P&gt;&lt;P&gt;append wa_poheader to i_poheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_poheaderx-comp_code    =   'X'.&lt;/P&gt;&lt;P&gt;wa_poheaderx-doc_type     =   'X'.&lt;/P&gt;&lt;P&gt;wa_poheaderx-creat_date   =   'X'.&lt;/P&gt;&lt;P&gt;wa_poheaderx-vendor       =   'X'.&lt;/P&gt;&lt;P&gt;wa_poheaderx-purch_org    =   'X'.&lt;/P&gt;&lt;P&gt;wa_poheaderx-pur_group    =   'X'.&lt;/P&gt;&lt;P&gt;append wa_poheaderx to i_poheaderx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_poitem-po_item      =  '0010'."wa_item-po_item.&lt;/P&gt;&lt;P&gt;wa_poitem-material     =   '000000000010000029'.&lt;/P&gt;&lt;P&gt;wa_poitem-plant        =   'Z100'.&lt;/P&gt;&lt;P&gt;wa_poitem-stge_loc     =   '002'.&lt;/P&gt;&lt;P&gt;wa_poitem-quantity     =   '10'.&lt;/P&gt;&lt;P&gt;wa_poitem-net_price    =   '20'.&lt;/P&gt;&lt;P&gt;wa_poitem-tax_code     =   'P0'.&lt;/P&gt;&lt;P&gt;append wa_poitem to i_poitem.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;wa_poitemx-po_item      =   '0010'.&lt;/P&gt;&lt;P&gt;wa_poitemx-material     =   'X'.&lt;/P&gt;&lt;P&gt;wa_poitemx-plant        =   'X'.&lt;/P&gt;&lt;P&gt;wa_poitemx-stge_loc     =   'X'.&lt;/P&gt;&lt;P&gt;wa_poitemx-quantity     =   'X'.&lt;/P&gt;&lt;P&gt;wa_poitemx-net_price    =   'X'.&lt;/P&gt;&lt;P&gt;wa_poitemx-tax_code     =   'X'.&lt;/P&gt;&lt;P&gt;append wa_poitemx to i_poitemx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_poschedule-po_item          =   '0010'.&lt;/P&gt;&lt;P&gt;wa_poschedule-delivery_date    =   '20081231'.&lt;/P&gt;&lt;P&gt;append wa_poschedule to i_poschedule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_poschedulex-po_item          =   '0010'.&lt;/P&gt;&lt;P&gt;wa_poschedulex-delivery_date    =   'X'.&lt;/P&gt;&lt;P&gt;append wa_poschedulex to i_poschedulex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'BAPI_PO_CREATE1'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;    poheader                     =  i_poheader&lt;/P&gt;&lt;P&gt;    poheaderx                    =  i_poheaderx&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POADDRVENDOR                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  TESTRUN                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MEMORY_UNCOMPLETE            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  MEMORY_COMPLETE              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POEXPIMPHEADER               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POEXPIMPHEADERX              =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  VERSIONS                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_MESSAGING                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_MESSAGE_REQ               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_AUTHORITY                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NO_PRICE_FROM_PO             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXPPURCHASEORDER             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXPHEADER                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXPPOEXPIMPHEADER            =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; tables&lt;/P&gt;&lt;P&gt;   return                       =  i_return&lt;/P&gt;&lt;P&gt;   poitem                       =  i_poitem&lt;/P&gt;&lt;P&gt;   poitemx                      =  i_poitemx&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POADDRDELIVERY               =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   poschedule                   =  i_poschedule&lt;/P&gt;&lt;P&gt;   poschedulex                  =  i_poschedulex&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POACCOUNT                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POACCOUNTPROFITSEGMENT       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POACCOUNTX                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POCONDHEADER                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POCONDHEADERX                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POCOND                       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POCONDX                      =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POLIMITS                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POCONTRACTLIMITS             =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POSERVICES                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POSRVACCESSVALUES            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POSERVICESTEXT               =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSIONIN                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  EXTENSIONOUT                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POEXPIMPITEM                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POEXPIMPITEMX                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POTEXTHEADER                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POTEXTITEM                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ALLVERSIONS                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POPARTNER                    =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POCOMPONENTS                 =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POCOMPONENTSX                =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POSHIPPING                   =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POSHIPPINGX                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  POSHIPPINGEXP                =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_return into wa_return.&lt;/P&gt;&lt;P&gt;  write:/ wa_return-message,wa_return-type.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct this Prog. and send the answer ASAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.......points is sure for relavent answer......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 12:34:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3508682#M843942</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-01T12:34:37Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3508683#M843943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;poheader&lt;/STRONG&gt; is an export parameter (as -x), not a table, and your program send a whole table. You have to loop at your table of po order header and call the BAPI for each po order. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call function 'DIALOG_SET_NO_DIALOG'.
...
loop at header_table.
  ...
  call function 'BAPI_PO_CREATE1'
  ...
  call function 'BAPI_TRANSACTION_COMMIT'
  ...
endloop.
...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 12:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3508683#M843943</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2008-03-01T12:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3508684#M843944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here I_POHEADER is an internal table. Please try to pass work area wa_poheader instead of i_poheader. Same thing applies for i_poheaderx. Here pass wa_poheaderx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this. It will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 12:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3508684#M843944</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-03-01T12:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3508685#M843945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your valuable answer, now it is worikng fine....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Mar 2008 13:13:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi/m-p/3508685#M843945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-01T13:13:05Z</dc:date>
    </item>
  </channel>
</rss>

