on 08-04-2008 8:02 AM
Hello everyone,
i am new to web dynpro. Can any one tell me how to creating sales order by web dynpro JAVA using BAPI.
Thanks.
Vinita Sharma
hi
Expand your Project Structure,you find WebDynpro,expand it.
you find Models.
Rightclick on it.
click on CreateModel.
window will be opened,choose import Adaptive RFC Model.
Enter all the fields like model name,model package,
model and metadata instances,
choose next and enter all the details in singleserver mode
to connect to R/3 (connection details for backend Connection),choose next .
Window will be displayed.
In Function Name field enter
bapi_salesorder,*
click on search ,you can find two bapies for creating salesOrder choose the desired one,click on next.choose Finish.
Add this model to webDynpro Component.
Expand WebDynpro Component in your Project Structure.
you can find UsedModels.
Right click on it.
click on Add and select the model.
Using modelbinding to the component Controller and contextmapping to the view you can implement the functionality.
Regards
sowmya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi vinita sharma,
Using BAPI's or RFC's we can connect to the Backend R3 to fetch Data and utilise it in NWDS.
For Getting Data for the Sales Order the Bapi's Used are :
Creating Sales order - BAPI_SALESORDER_CREATEFROMDAT2
and to store the work you need to commit explicitly by executing the BAPI_Transaction_Commit.
other BAPIs can be found in BAPI transaction in R/3.
Ex:
List of All Order Data - BAPISDORDER_GETDETAILEDLIST
Change of status order - BAPI_ORDER_CHANGE_STATUS_GET .
you can Find more BAPI's Related to Sales Order, in Business Object (BO) : BUS2032.
ALL BAPI's are RFC's but All RFC's are Not BAPI's.
In NWDS in your Project you Have Model you need to Create Model over there Giving the ModelData and MetaData Information nothing but the JCO's. after that give your Backend system Details. In Next Step you need to Give The BAPI Name you Need to Connect.In This you create your Model in NWDS.
Bind your Model to Component Controller by Applying Template Choose Service Controller.
I Hope This Information Might be Helpful for you.
Regards,
Sharma.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinit,
First design your user interface according to your requirement or same as SAP standard sales order. Then create an Adaptive RFC model using the sales order BAPI. Add this model to the Component controller. Map this model context to the view using data modeler. Now bind UI elements with model context. Create a method to execute BAPI. Create a button 'Create' and an action in the sales order. In onActionmethod of Create call execute BAPI method. Make sure all mandatory parameters are being passed. You can show the result also by printing the Sales order no. after BAPI call
Regards,
Siva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Here are tutorials to use BAPI's in web dynpro...
http://help.sap.com/saphelp_nw70/helpdata/en/f8/bdfe80d9a3b048a5fb32a7d149774e/frameset.htm
/thread/466588 [original link is broken]
you can find many more tutorials on this from SDN.....
PradeeP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
what is ur requirement?
do you want to display sales orders information(which is in the form of a table in R/3)
in your web dynpro application using bapi ?
Regards,
Satya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi...
you can use Adaptive RFC methodology in web dynpro java to work with BAPIs..... these are standard bapi's provided
Here are required Bapis... select which one you want....
BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
BAPI_ORDER_CHANGE_STATUS_GET Change status for order
BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
BAPI_SALESORDER_GETSTATUS Sales order: Display status
BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
PradeeP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.