<?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: What is wrong? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977009#M71099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT it_order INTO wa_result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;must be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_order INTO wa_order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which error does your program give?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Oct 2005 09:47:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-04T09:47:53Z</dc:date>
    <item>
      <title>What is wrong?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977008#M71098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My program does not work. Anybody who understands why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  Z_TEST_FUNKTIONSMODUL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*The function module get information about the order.&lt;/P&gt;&lt;P&gt;               .&lt;/P&gt;&lt;P&gt;DATA: it_order TYPE STANDARD TABLE OF /SAPNEA/MR3_ORDER_ITEM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: wa_order TYPE /SAPNEA/MR3_ORDER_HEADER.&lt;/P&gt;&lt;P&gt;wa_order-SALESDOCUMENT = '0005100000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION '/SAPNEA/SMAPI_ORDER_GETDETAIL'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    PI_ORDER_HEADER           = wa_order&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PI_PARVW                  =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PI_PRICE_CONDITION1       = 'PR00'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PI_PRICE_CONDITION2       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PI_PRICE_CONDITION3       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PI_TAX_CONDITION          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PI_UNIT_SPLIT             = 50&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PI_TEXT_ID                = '0001'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  PI_LANGUAGE               = SY-LANGU&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;    PO_ORDER_HEADER           = wa_order&lt;/P&gt;&lt;P&gt;   RETURN                    =  it_order&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    POT_ORDER_ITEM            = it_order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: wa_result LIKE LINE OF it_order.&lt;/P&gt;&lt;P&gt;LOOP AT it_order INTO wa_result.&lt;/P&gt;&lt;P&gt;  WRITE: 'wa_order-MATNR'.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 09:43:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977008#M71098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T09:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977009#M71099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;LOOP AT it_order INTO wa_result. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;must be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_order INTO wa_order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which error does your program give?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 09:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977009#M71099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T09:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977010#M71100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Runtime error. Call_function_conflict_leng. CX_SY_DYN_CALL_ILLEGAL_TYPE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 09:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977010#M71100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T09:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977011#M71101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi the problem is in ur write statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE: wa_order-MATNR.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No Quotes allowed.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: wa_pi_order TYPE /SAPNEA/MR3_ORDER_HEADER,
      wa_po_order TYPE /SAPNEA/MR3_ORDER_HEADER,
      i_item TYPE STANDARD TABLE OF /SAPNEA/MR3_ORDER_ITEM,
      wa_item TYPE /SAPNEA/MR3_ORDER_ITEM.

wa_pi_order = 'give the value'.

CALL FUNCTION '/SAPNEA/SMAPI_ORDER_GETDETAIL'
  EXPORTING
    pi_order_header           = wa_pi_order
*   PI_PARVW                  =
*   PI_PRICE_CONDITION1       = 'PR00'
*   PI_PRICE_CONDITION2       =
*   PI_PRICE_CONDITION3       =
*   PI_TAX_CONDITION          =
*   PI_UNIT_SPLIT             = 50
*   PI_TEXT_ID                = '0001'
*   PI_LANGUAGE               = SY-LANGU
 IMPORTING
   PO_ORDER_HEADER           =  wa_po_order
*   RETURN                    =
  tables
    pot_order_item            = i_item
          .
          
LOOP AT i_item INTO wa_item.
WRITE:/ wa_item-MATERIAL.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the above code it will work fine test with ur data, i dont have any testdata in my system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points and close the thread, could u plz close the threads previously opened by u.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 09:50:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977011#M71101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T09:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977012#M71102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's code which is working:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT ZTEST1.

DATA: wa_order TYPE /SAPNEA/MR3_ORDER_HEADER.
DATA: it_order TYPE STANDARD TABLE OF /SAPNEA/MR3_ORDER_ITEM.
DATA: wa_result TYPE /SAPNEA/MR3_ORDER_ITEM.

PARAMETERS pa_order TYPE vbak-vbeln.
 
wa_order-SALESDOCUMENT = pa_order.
 
CALL FUNCTION '/SAPNEA/SMAPI_ORDER_GETDETAIL'
EXPORTING
PI_ORDER_HEADER = wa_order
* PI_PARVW =
* PI_PRICE_CONDITION1 = 'PR00'
* PI_PRICE_CONDITION2 =
* PI_PRICE_CONDITION3 =
* PI_TAX_CONDITION =
* PI_UNIT_SPLIT = 50
* PI_TEXT_ID = '0001'
* PI_LANGUAGE = SY-LANGU
* IMPORTING
* PO_ORDER_HEADER =
* RETURN =
TABLES
POT_ORDER_ITEM = it_order.

LOOP AT it_order INTO wa_result.
WRITE: wa_result-ITM_NUMBER.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oh, and please close your previous posts and reward points for helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 09:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977012#M71102</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T09:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977013#M71103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not really understand what you mean I should do. What is now allowed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 09:55:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977013#M71103</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T09:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977014#M71104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I close? Mark "solved it by my own?"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 09:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977014#M71104</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T09:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is wrong?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977015#M71105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; How do I close? Mark "solved it by my own?"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Linn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First take a look on this page:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm" target="test_blank"&gt;https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you solved the problem on your own and any of the answers to your post was not helpful you can mark your post by "Solved it by my own". But if you found some of the posts helpful you can give points according how helpful it was for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can close the post by marking one of the answers (most helpfull one) by "Solved my problem" or if you did solve it on your own then close it by "Solved it by my own".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ville&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2005 10:06:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-wrong/m-p/977015#M71105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-04T10:06:27Z</dc:date>
    </item>
  </channel>
</rss>

