<?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 error while creating service PO by BAPI_PO_CREATE1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576194#M1660420</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 am trying to create a service PO using the BAPI_PO_CREATE1 with reference to service PR and I am getting an "In case of account assignment, please enter acc. assignment data for item" for which i found so many threads but none had resolved this error in my case eventhough i filled up all the required structure such as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  LOOP AT gt_esll INTO gs_esll.
      gs_services-pckg_no    = gs_esll-packno.
      gs_services-line_no    = gs_esll-introw.
      gs_services-subpckg_no = gs_esll-sub_packno.
      gs_services-quantity   = gs_esll-menge.
      gs_services-base_uom   = gs_esll-meins.
      gs_services-gr_price   = gs_esll-brtwr.
      gs_services-outl_ind   = 'X'.
      APPEND gs_services TO gt_services.
      CLEAR gs_services.
  ENDLOOP.

  LOOP AT gt_esll1 INTO gs_esll1.

    gs_services-pckg_no  = gs_esll1-packno.
    gs_services-line_no  = gs_esll1-introw.
    gs_services-ext_line = gs_esll1-extrow.
    gs_services-quantity = gs_esll1-menge.
    gs_services-base_uom = gs_esll1-meins.
    gs_services-gr_price   = gs_esll1-brtwr.
    APPEND gs_services TO gt_services.
    CLEAR gs_services.

    gs_servalues-pckg_no   = gs_esll1-packno.
    gs_servalues-line_no   = gs_esll1-introw.
    gs_servalues-serno_line = '01'.
    gs_servalues-quantity  = gs_esll1-menge.
    gs_servalues-net_value = gs_esll1-brtwr.
    APPEND gs_servalues TO gt_servalues.
    CLEAR:  gs_servalues, gs_esll1.

  ENDLOOP.

  gs_poacct-po_item = gv_poitm.
  gs_poacct-serial_no = gs_ebkn-zebkn.
  gs_poacct-quantity  = gs_ebkn-menge.
  gs_poacct-gl_account = gs_ebkn-sakto.
  gs_poacct-costcenter = gs_ebkn-kostl.
  gs_poacct-co_area = gs_ebkn-kokrs.
  APPEND gs_poacct TO gt_poacct.
  CLEAR gs_poacct.

  gs_poacctx-po_item = gv_poitm.
  gs_poacctx-serial_no = gs_ebkn-zebkn.
  gs_poacctx-po_itemx = 'X'.
  gs_poacctx-serial_nox = 'X'.
  gs_poacctx-quantity  = 'X'.
  gs_poacctx-gl_account = 'X'.
  gs_poacctx-costcenter = 'X'.
  gs_poacctx-co_area = 'X'.
  APPEND gs_poacctx TO gt_poacctx.
  CLEAR : gs_poacctx, gs_ebkn.
 
LOOP AT gt_ppsitm INTO gs_ppsitm.
  CLEAR: gs_poitm. " gt_poitm.
  READ TABLE gt_matnr INTO gs_matnr WITH KEY banfn = gs_ppsitm-banfn bnfpo = gs_ppsitm-bnfpo.
  CLEAR: gs_poitm.
  gv_poitm = gv_poitm + 10.

  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      INPUT         = gv_poitm
   IMPORTING
      OUTPUT        = gv_poitm.

  gs_poitm-po_item    = gv_poitm.
  gs_poitm-quantity   = gs_ppsitm-menge.
  gs_poitm-po_unit    = gs_matnr-meins.
  gs_poitm-net_price  = gs_ppsitm-quote_price.
*  gs_poitm-price_unit = '1'.
  gs_poitm-tax_code   = gs_ppsitm-mwskz.
  gs_poitm-preq_no    = gs_ppsitm-banfn.
  gs_poitm-preq_item  = gs_ppsitm-bnfpo.

  IF gs_matnr-packno IS NOT INITIAL.
    gs_poitm-pckg_no    = gs_matnr-packno.        " ADDED BY SKE FOR SERVICE PO
  ENDIF.

  gs_poitm-item_cat    = gs_matnr-pstyp.
  gs_poitm-acctasscat = gs_matnr-knttp.

  APPEND gs_poitm TO gt_poitm.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aftrer executing this bapi, the accounts structure has been cleared whereas other sturcture has values.&lt;/P&gt;&lt;P&gt;Please give me some hints to fix this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Kalidass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jan 2012 07:46:22 GMT</pubDate>
    <dc:creator>former_member300258</dc:creator>
    <dc:date>2012-01-30T07:46:22Z</dc:date>
    <item>
      <title>error while creating service PO by BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576194#M1660420</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 am trying to create a service PO using the BAPI_PO_CREATE1 with reference to service PR and I am getting an "In case of account assignment, please enter acc. assignment data for item" for which i found so many threads but none had resolved this error in my case eventhough i filled up all the required structure such as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  LOOP AT gt_esll INTO gs_esll.
      gs_services-pckg_no    = gs_esll-packno.
      gs_services-line_no    = gs_esll-introw.
      gs_services-subpckg_no = gs_esll-sub_packno.
      gs_services-quantity   = gs_esll-menge.
      gs_services-base_uom   = gs_esll-meins.
      gs_services-gr_price   = gs_esll-brtwr.
      gs_services-outl_ind   = 'X'.
      APPEND gs_services TO gt_services.
      CLEAR gs_services.
  ENDLOOP.

  LOOP AT gt_esll1 INTO gs_esll1.

    gs_services-pckg_no  = gs_esll1-packno.
    gs_services-line_no  = gs_esll1-introw.
    gs_services-ext_line = gs_esll1-extrow.
    gs_services-quantity = gs_esll1-menge.
    gs_services-base_uom = gs_esll1-meins.
    gs_services-gr_price   = gs_esll1-brtwr.
    APPEND gs_services TO gt_services.
    CLEAR gs_services.

    gs_servalues-pckg_no   = gs_esll1-packno.
    gs_servalues-line_no   = gs_esll1-introw.
    gs_servalues-serno_line = '01'.
    gs_servalues-quantity  = gs_esll1-menge.
    gs_servalues-net_value = gs_esll1-brtwr.
    APPEND gs_servalues TO gt_servalues.
    CLEAR:  gs_servalues, gs_esll1.

  ENDLOOP.

  gs_poacct-po_item = gv_poitm.
  gs_poacct-serial_no = gs_ebkn-zebkn.
  gs_poacct-quantity  = gs_ebkn-menge.
  gs_poacct-gl_account = gs_ebkn-sakto.
  gs_poacct-costcenter = gs_ebkn-kostl.
  gs_poacct-co_area = gs_ebkn-kokrs.
  APPEND gs_poacct TO gt_poacct.
  CLEAR gs_poacct.

  gs_poacctx-po_item = gv_poitm.
  gs_poacctx-serial_no = gs_ebkn-zebkn.
  gs_poacctx-po_itemx = 'X'.
  gs_poacctx-serial_nox = 'X'.
  gs_poacctx-quantity  = 'X'.
  gs_poacctx-gl_account = 'X'.
  gs_poacctx-costcenter = 'X'.
  gs_poacctx-co_area = 'X'.
  APPEND gs_poacctx TO gt_poacctx.
  CLEAR : gs_poacctx, gs_ebkn.
 
LOOP AT gt_ppsitm INTO gs_ppsitm.
  CLEAR: gs_poitm. " gt_poitm.
  READ TABLE gt_matnr INTO gs_matnr WITH KEY banfn = gs_ppsitm-banfn bnfpo = gs_ppsitm-bnfpo.
  CLEAR: gs_poitm.
  gv_poitm = gv_poitm + 10.

  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      INPUT         = gv_poitm
   IMPORTING
      OUTPUT        = gv_poitm.

  gs_poitm-po_item    = gv_poitm.
  gs_poitm-quantity   = gs_ppsitm-menge.
  gs_poitm-po_unit    = gs_matnr-meins.
  gs_poitm-net_price  = gs_ppsitm-quote_price.
*  gs_poitm-price_unit = '1'.
  gs_poitm-tax_code   = gs_ppsitm-mwskz.
  gs_poitm-preq_no    = gs_ppsitm-banfn.
  gs_poitm-preq_item  = gs_ppsitm-bnfpo.

  IF gs_matnr-packno IS NOT INITIAL.
    gs_poitm-pckg_no    = gs_matnr-packno.        " ADDED BY SKE FOR SERVICE PO
  ENDIF.

  gs_poitm-item_cat    = gs_matnr-pstyp.
  gs_poitm-acctasscat = gs_matnr-knttp.

  APPEND gs_poitm TO gt_poitm.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aftrer executing this bapi, the accounts structure has been cleared whereas other sturcture has values.&lt;/P&gt;&lt;P&gt;Please give me some hints to fix this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Kalidass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 07:46:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576194#M1660420</guid>
      <dc:creator>former_member300258</dc:creator>
      <dc:date>2012-01-30T07:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating service PO by BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576195#M1660421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalidass,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Since you are using PR as the reference document, let the account assignment internal table be blank i.e. do not pass any data to 'gs_poacct' &amp;amp; 'gs_poacctx'.&lt;/P&gt;&lt;P&gt;2. As you are using 'BAPI_PO_CREATE1', the fields 'pckng_no' and subpckg_no' need not be entered. The BAPI determines them automatically.&lt;/P&gt;&lt;P&gt;3. Finally, you need to pass the Schedule Line Item data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pranav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 08:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576195#M1660421</guid>
      <dc:creator>former_member222709</dc:creator>
      <dc:date>2012-01-30T08:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating service PO by BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576196#M1660422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for ur quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are you suggesting not to fill services and service values structure as well or just short_text for services is enough..?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if i dint fill the services, then i get an error "Please maintain services or limits" and i even filled up the schedule item data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wouldn't you mind giving some more clarity on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kalidass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 08:48:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576196#M1660422</guid>
      <dc:creator>former_member300258</dc:creator>
      <dc:date>2012-01-30T08:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating service PO by BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576197#M1660423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how many items you have?&lt;/P&gt;&lt;P&gt;for account table you are  passing &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;gs_poacct-po_item = gv_poitm. " at this point what is the value of gv_poitm.?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for item table you are doing below in a loop. means its changing.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;gv_poitm = gv_poitm + 10.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so accounting table also should get values of gv_poitm accordingly. else you will get this error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 08:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576197#M1660423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T08:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating service PO by BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576198#M1660424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well soumya...you are correct..i did the same for account structure as well...i jus missed pasting it...here it is...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

LOOP AT gt_ebkn INTO gs_ebkn.

  gv_poitm = gv_poitm + 10.

  CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      INPUT         = gv_poitm
   IMPORTING
      OUTPUT        = gv_poitm.

  gs_poacct-po_item = gv_poitm.
  gs_poacct-serial_no = gs_ebkn-zebkn.
  gs_poacct-quantity  = gs_ebkn-menge.
  gs_poacct-gl_account = gs_ebkn-sakto.
  gs_poacct-costcenter = gs_ebkn-kostl.
  gs_poacct-co_area = gs_ebkn-kokrs.
  APPEND gs_poacct TO gt_poacct.
  CLEAR gs_poacct.

  gs_poacctx-po_item = gv_poitm.
  gs_poacctx-serial_no = gs_ebkn-zebkn.
  gs_poacctx-po_itemx = 'X'.
  gs_poacctx-serial_nox = 'X'.
  gs_poacctx-quantity  = 'X'.
  gs_poacctx-gl_account = 'X'.
  gs_poacctx-costcenter = 'X'.
  gs_poacctx-co_area = 'X'.
  APPEND gs_poacctx TO gt_poacctx.
  CLEAR : gs_poacctx, gs_ebkn.

ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 09:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576198#M1660424</guid>
      <dc:creator>former_member300258</dc:creator>
      <dc:date>2012-01-30T09:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating service PO by BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576199#M1660425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalidass,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will have to fill the following structures:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Header - POHEADER, POHEADERX&lt;/P&gt;&lt;P&gt;2. Item - POITEM, POITEMX&lt;/P&gt;&lt;P&gt;3. Schedule - POSCHEDULE, POSCHEDULEX&lt;/P&gt;&lt;P&gt;4. Services - POSERVICES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to add any texts, then, the same can be added. For your reference, you can use 'BAPI_PR_GETDETAIL' to check the data returned from the PR to fill the Services structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pranav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 09:12:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576199#M1660425</guid>
      <dc:creator>former_member222709</dc:creator>
      <dc:date>2012-01-30T09:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating service PO by BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576200#M1660426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I filled up structures that you mentioned. now the error is "No account assignment exists for service line 0000000010".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 4 service in my service PR. so my service structure contains totally 5 itmes incluing the main package and sub-package.&lt;/P&gt;&lt;P&gt;i also gave the main package no in item and itemx structire as well. main package - 520, sub-pack - 521.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 10:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576200#M1660426</guid>
      <dc:creator>former_member300258</dc:creator>
      <dc:date>2012-01-30T10:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating service PO by BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576201#M1660427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;service line is like 2,12,22, etc by default.. not 10,20,30.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you open the PO, i the services tab you will find the numbers... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you have 5 line items or 5 service lines in the PR?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 10:31:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576201#M1660427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-01-30T10:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating service PO by BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576202#M1660428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalidass,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this I would like to know, how do you identify package number. And if you are passing this value to the item &amp;amp; itemx structures, the same needs to be passed to the POSERVICES internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since, you are unable to create the PO without Account Assignment, for the Account Assignment use the data from 'BAPI_PR_GETDETAIL' and pass the same to 'BAPI_PO_CREATE1'. Try without the package number &amp;amp; sub-package number data also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pranav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 10:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576202#M1660428</guid>
      <dc:creator>former_member222709</dc:creator>
      <dc:date>2012-01-30T10:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating service PO by BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576203#M1660429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could see only 10 20 30 as service line no in service tab of PO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have only one 1 line item and for that i have 2 services. with the package No i am linking the items and their services.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 10:41:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576203#M1660429</guid>
      <dc:creator>former_member300258</dc:creator>
      <dc:date>2012-01-30T10:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating service PO by BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576204#M1660430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi pranav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from EBAN table i got the package no for a PR and passing that package No into ESLL table i am getting the subpaack No.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   SELECT banfn bnfpo txz01 matnr bsart ekgrp meins pstyp knttp packno FROM eban
     INTO TABLE gt_matnr
      FOR ALL ENTRIES IN gt_ppsitm
    WHERE banfn = gt_ppsitm-banfn
      AND bnfpo = gt_ppsitm-bnfpo.


    SELECT packno introw package sub_packno FROM esll
           INTO CORRESPONDING FIELDS OF TABLE gt_esll
           FOR ALL ENTRIES IN gt_matnr
           WHERE packno = gt_matnr-packno.

IF gt_esll IS NOT INITIAL.
    SELECT packno introw extrow package sub_packno menge meins brtwr ktext1 FROM ESLL
           INTO TABLE gt_esll1
           FOR ALL ENTRIES IN gt_esll
           WHERE packno = gt_esll-sub_packno.
ENDIF.

  LOOP AT gt_esll INTO gs_esll.
      gs_services-pckg_no    = gs_esll-packno.
      gs_services-line_no    = gs_esll-introw.
      gs_services-subpckg_no = gs_esll-sub_packno.
      gs_services-quantity   = gs_esll-menge.
      gs_services-base_uom   = gs_esll-meins.
      gs_services-gr_price   = gs_esll-brtwr.
      gs_services-outl_ind   = 'X'.
      APPEND gs_services TO gt_services.
      CLEAR gs_services.
  ENDLOOP.

  LOOP AT gt_esll1 INTO gs_esll1.

    gs_services-pckg_no  = gs_esll1-packno.
    gs_services-line_no  = gs_esll1-introw.
    gs_services-ext_line = gs_esll1-extrow.
    gs_services-quantity = gs_esll1-menge.
    gs_services-base_uom = gs_esll1-meins.
    gs_services-gr_price   = gs_esll1-brtwr.
    APPEND gs_services TO gt_services.
    CLEAR gs_services.

    gs_servalues-pckg_no   = gs_esll1-packno.
    gs_servalues-line_no   = gs_esll1-introw.
    gs_servalues-serno_line = '01'.
    gs_servalues-quantity  = gs_esll1-menge.
    gs_servalues-net_value = gs_esll1-brtwr.
    APPEND gs_servalues TO gt_servalues.
    CLEAR:  gs_servalues, gs_esll1.

  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kalidass Etienne.S on Jan 31, 2012 11:07 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2012 10:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576204#M1660430</guid>
      <dc:creator>former_member300258</dc:creator>
      <dc:date>2012-01-30T10:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: error while creating service PO by BAPI_PO_CREATE1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576205#M1660431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kalidass,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;As you've mentioned, the package details you are using are from the PR as EBAN Table corresponds to PR data. Kindly verify with any existing PR and PO combination for their package numbers. If they are same, then, you can go ahead by passing them. Otherwise as I mentioned above, &lt;STRONG&gt;try without the package number &amp;amp; sub-package number data also.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since, you are unable to create the PO without Account Assignment, for the Account Assignment use the data from 'BAPI_PR_GETDETAIL' and pass the same to 'BAPI_PO_CREATE1'. Try without the package number &amp;amp; sub-package number data also.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Pranav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 06:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-creating-service-po-by-bapi-po-create1/m-p/8576205#M1660431</guid>
      <dc:creator>former_member222709</dc:creator>
      <dc:date>2012-01-31T06:10:57Z</dc:date>
    </item>
  </channel>
</rss>

