<?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>Question Re: creating a purchase order in web dynpro for java......... in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184120#M1621606</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;To create a Purchase Order u need to call Bapi_po_create standard bapi from r/3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Go to File -&amp;gt; New -&amp;gt; Project - &amp;gt; Web Dyn pro Project -. &lt;/P&gt;&lt;P&gt;Give Name , pkg Name Click On Finish . &lt;/P&gt;&lt;P&gt;2) Expand ur project hirarchy -&amp;gt; go TO Application -&amp;gt; Right Click -&amp;gt; Create Application - &amp;gt; Give Application name and Pkg name - Click on Finish . &lt;/P&gt;&lt;P&gt;3) Now ur View And Controller Are Created by Default .&lt;/P&gt;&lt;P&gt;4) Go to Model-&amp;gt; Right Click on it-&amp;gt; Create Model -&amp;gt; Give Model Name &amp;amp; Pkg name Should diff from Application pkg the Click On Next &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Here u have to Two JCo Destination Name Like Model Data And Meta data &amp;amp; R/3 System Details like System Number , Host name Etc -&amp;gt; then Click on next .&lt;/P&gt;&lt;P&gt;b) Here u will text filed where u want to search for ur Required BAPI . Type ur BAPI Name i.e.,bapi_po_create1 Click on Search . Ur bapi will be displyed In Down . click on Next .&lt;/P&gt;&lt;P&gt;c) Now Ur model is Importedint into NWDS .&lt;/P&gt;&lt;P&gt;5)Right click on cmponent and click open Data Modeler .&lt;/P&gt;&lt;P&gt;6)Here u add ur Model .&lt;/P&gt;&lt;P&gt;7)Right click on Component cpontroller --&amp;gt; Apply template --&amp;gt;service controller and Map ur model data To Controller which r required.&lt;/P&gt;&lt;P&gt;This Servce Controller will contain the code to execute the bapi.&lt;/P&gt;&lt;P&gt;8)Do context mapping between Component controller and View Controller .&lt;/P&gt;&lt;P&gt;9) create a button in view and in the Action of the button call the Service controller execute mathod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to -&amp;gt; Project Name -&amp;gt; Right Click -&amp;gt; go to -&amp;gt; Deploy New Archive . &lt;/P&gt;&lt;P&gt;after wards u have to go Apllication -&amp;gt; Right click -&amp;gt; deploy and Run . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the data in the fields and click the Button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this link,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm&lt;/A&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;Sunaina reddy T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2009 12:07:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-27T12:07:52Z</dc:date>
    <item>
      <title>creating a purchase order in web dynpro for java.........</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaq-p/4184116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am new to web dynpro for java.i have already done an application &lt;/P&gt;&lt;P&gt;"Creating a Web Dynpro Application Accessing ABAP Functions" this application&lt;/P&gt;&lt;P&gt;have good document on sdn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this application is working fine .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i got an requiremnt for creating a purchase order in web dynpro for java.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in normal report when i call  the bapi the parameter are the header, headerx,item, itemx is an internal table.&lt;/P&gt;&lt;P&gt;&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                     = HEADER&lt;/P&gt;&lt;P&gt;    POHEADERX                    = HEADERX&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;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                       = RETURN&lt;/P&gt;&lt;P&gt;   POITEM                       = ITEM&lt;/P&gt;&lt;P&gt;   POITEMX                      = ITEMX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i just want to know how can i fill these internal table in web dynpro&lt;/P&gt;&lt;P&gt;for java to create an application accessing "Bapi_po_create" .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 05:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaq-p/4184116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-25T05:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: creating a purchase order in web dynpro for java.........</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184117#M1621603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;             Create a model of type Adaptive RFC model in Web Dynpro Java application.&lt;/P&gt;&lt;P&gt;Design your BAPI interface like this:&lt;/P&gt;&lt;P&gt;The input structures or input parameters are as import parameters,  the output structures or output parameters are as export parameters and input or output table as tables.&lt;/P&gt;&lt;P&gt;Write your logic in the BAPI. Make  it remote enabled. Create a model in your in Web Dynpro Java application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 06:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184117#M1621603</guid>
      <dc:creator>former_member197348</dc:creator>
      <dc:date>2008-07-25T06:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: creating a purchase order in web dynpro for java.........</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184118#M1621604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;follow the procedure given above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use any BAPI, first of all you need to know the input parameters (import parameters) and output parameters ( export parameters ) of the perticular BAPI very well. import parameters might be a table also.&lt;/P&gt;&lt;P&gt;depending on this you will supply the input to the bapi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialized the bapi in doInit () method. and give the input like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wdcontext.Bai Node.getCurrentElementxxx .setXXXfield(supply the input);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need more clarification?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PradeeeP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2008 07:11:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184118#M1621604</guid>
      <dc:creator>PradeepBondla</dc:creator>
      <dc:date>2008-07-25T07:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: creating a purchase order in web dynpro for java.........</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184119#M1621605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got a similar requirements. Could you please give me more information about the inputs that I need to give to "BAPI_PO_CREATE1" bapi. Because, I am not able figure out the input data to test the BAPI. Do you know what I mean. Please help me resolve this issue. i would appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gopal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 11:42:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184119#M1621605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T11:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: creating a purchase order in web dynpro for java.........</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184120#M1621606</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;To create a Purchase Order u need to call Bapi_po_create standard bapi from r/3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Go to File -&amp;gt; New -&amp;gt; Project - &amp;gt; Web Dyn pro Project -. &lt;/P&gt;&lt;P&gt;Give Name , pkg Name Click On Finish . &lt;/P&gt;&lt;P&gt;2) Expand ur project hirarchy -&amp;gt; go TO Application -&amp;gt; Right Click -&amp;gt; Create Application - &amp;gt; Give Application name and Pkg name - Click on Finish . &lt;/P&gt;&lt;P&gt;3) Now ur View And Controller Are Created by Default .&lt;/P&gt;&lt;P&gt;4) Go to Model-&amp;gt; Right Click on it-&amp;gt; Create Model -&amp;gt; Give Model Name &amp;amp; Pkg name Should diff from Application pkg the Click On Next &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) Here u have to Two JCo Destination Name Like Model Data And Meta data &amp;amp; R/3 System Details like System Number , Host name Etc -&amp;gt; then Click on next .&lt;/P&gt;&lt;P&gt;b) Here u will text filed where u want to search for ur Required BAPI . Type ur BAPI Name i.e.,bapi_po_create1 Click on Search . Ur bapi will be displyed In Down . click on Next .&lt;/P&gt;&lt;P&gt;c) Now Ur model is Importedint into NWDS .&lt;/P&gt;&lt;P&gt;5)Right click on cmponent and click open Data Modeler .&lt;/P&gt;&lt;P&gt;6)Here u add ur Model .&lt;/P&gt;&lt;P&gt;7)Right click on Component cpontroller --&amp;gt; Apply template --&amp;gt;service controller and Map ur model data To Controller which r required.&lt;/P&gt;&lt;P&gt;This Servce Controller will contain the code to execute the bapi.&lt;/P&gt;&lt;P&gt;8)Do context mapping between Component controller and View Controller .&lt;/P&gt;&lt;P&gt;9) create a button in view and in the Action of the button call the Service controller execute mathod.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to -&amp;gt; Project Name -&amp;gt; Right Click -&amp;gt; go to -&amp;gt; Deploy New Archive . &lt;/P&gt;&lt;P&gt;after wards u have to go Apllication -&amp;gt; Right click -&amp;gt; deploy and Run . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter the data in the fields and click the Button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this link,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/6a/11f1f29526944e8580c5e59333d96d/frameset.htm&lt;/A&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;Sunaina reddy T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 12:07:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184120#M1621606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T12:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: creating a purchase order in web dynpro for java.........</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184121#M1621607</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;Thanks a lot for your reply. I have already done a quick search and had a look at the following link and I am very much aware of the process of calling an RFC from webdynpro Java.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7828507"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; My question is not about this at all. Please read my requirement properly. I would appreciate your help if you can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gopal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 12:53:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184121#M1621607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T12:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: creating a purchase order in web dynpro for java.........</title>
      <link>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184122#M1621608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopal, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what is your issue, it seems you're not really understanding how the Model structure works in WDP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll assume few things here, like you know how to Import the Model into the WDP, and you know a little bit about what Java Classes will represent this Model in the Project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try these steps:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Import your Model into the Project;&lt;/P&gt;&lt;P&gt;2. Open your Component Modeler, create a Data Link between your Model / Component (Or Custom Controller, as you prefer)&lt;/P&gt;&lt;P&gt;  - You can also use the "Apply Template -&amp;gt; Service Controler"&lt;/P&gt;&lt;P&gt;3. Map the Input of your Model as the Main Node, check the Input Tables (you prob. will have two, POITEM = ITEM - POITEMX = ITEMX)&lt;/P&gt;&lt;P&gt;4. Also, check the Return box, since this is BAPI return (You can use to display Backend messages)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have the Model mapped into your Controller, you need to develop the Java function to execute it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a new Input class, like &lt;/P&gt;&lt;P&gt;     -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; BAPI_PO_CREATE1_Input purchaseOrderCreateInput = new BAPI_PO_CREATE1_Input();&lt;/P&gt;&lt;P&gt;2. Bind your Input Node, in the Controller, with your Input Class;&lt;/P&gt;&lt;P&gt;     -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; wdContext.nodeBAPI_PO_CREATE1().bind(purchaseOrderCreateInput);&lt;/P&gt;&lt;P&gt;3. Set any Import parameters you need:&lt;/P&gt;&lt;P&gt;     -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; purchaseOrderCreateInput.setEXPPURCHASEORDER(XXXX);&lt;/P&gt;&lt;P&gt;4. To Add references to the Table, you will perform something like:&lt;/P&gt;&lt;P&gt;First, you need to know what "Structure" you need to add (POItem Structure) - You have a Java class that represents that Structure..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;POITEM_Element poItemElement = new POITEM_Element();&lt;/P&gt;&lt;P&gt;poItemElement.setPROPERTY();   /// Set your Properties&lt;/P&gt;&lt;P&gt;purchaseOrderCreateInput.getPOITEM().add(poItemElement);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Execute your Input, &lt;/P&gt;&lt;P&gt;purchaseOrderCreateInput .execute();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2009 23:06:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/creating-a-purchase-order-in-web-dynpro-for-java/qaa-p/4184122#M1621608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-27T23:06:03Z</dc:date>
    </item>
  </channel>
</rss>

