Create Sales Order Iview Using WD for Java
Dear Friends,
I have been assigned some task that is "<b>Create Sales order iview using web dynpro for java".</b>
I am new in this field, please help me out that from where i should start working on this.
please forward me some documents in this regrads.
Thanks & regards,
Iqbal Ahmd
Hi Iqbal,
If you are connecting to SAP system as backend then you can proceed creating a webdynpro application using the Adaptive RFC model from where you can call your BAPI's this webdynpro applications can be integrated on to the Enterprise Portal using the webdynpro iviews.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/creating%20a%20web%20dynpro%20application%20accessing%20abap%20functions.pdf
Go through the following links and tutorials
http://help.sap.com/saphelp_nw04/helpdata/en/15/0d4f21c17c8044af4868130e9fea07/content.htm
Tutorials & Samples for Web Dynpro Java [original link is broken]
Hope it helps you
regards
ambicasony
Similar Messages
-
Web Service for "Creating Sales Order" by using BAPI
Hello All,
I am trying to create a WS for "Creating Sales Order". The corresponding BAPI that I am using for this purpose is BAPI_SALESORDER_CREATEFROMDAT1. I am able to create the Web Service and run the WSDL on WS Navigator.
But there is a problem whil executing the Web Service. In the interface of WS, we can only enter item level details of "Order Partner". So when I enter the details and click on Execute, it returns me an error message "Please enter Ship to Party and Sold to Party". I have already given these details.
Does any one have any idea of what is going wrong?
Regards,
AbhishekAs you suggested i have passed the suggested parameters in item level..But this time i was not ablet to create the SO also..earlier i am able to creat SO but not line item, But now ia m not able to creat salesdocuement also.
Return talbe filled with belwo messages.
S V4 233 SALES_HEADER_IN has been processed successfully
E V1 320 No item category available (Table T184 ZKB TEXT )
E V4 248 Error in SALES_ITEM_IN 000000
W V1 555 The sales document is not yet complete: Edit data
E V4 219 Sales document was not changed -
Sales Order Creation Using Web Dynpro java
hi
i am new to webdynpro java.
Can anybody provide me the solution for creating sales order using bapi's .if possible with code snippets
if possible pls provide me some links for this.
Regards
kiranHi Kiran,
These are the mandatory fields to create sales order. While Service Context Mapping you select these fields and bind these attributes to input fields.
Order_header_in
Doc_type
Sales_org
Distr_chan
Division
Incoterms1
Pmnttrms
Order_items_in
Material
Plant
Target_qty
Target_qu
Gross_wght
Net_weight
Untof_wght
Ship_point
Order_partners
partn_role
Partn_numb
Order_schedules_in
Itm_number
Sched_line
Req_Date
Req_qty
Regards,
Sunaina Reddy T -
Creating sale order by using BAPI
Hi,
My requirement is to create a inquiry(VA11), By using the Inquiry no as a input in report, i should create a salesorder using BAPI in which the datas should be flowed from inquiry to sale order. i did almost everything except the Pricing Condition.
I am fetching the pricing condition values from table KONV-KSCHL and passing the value via BAPI_SALESORDER_CREATEFROMDAT2 it creates saleorder. In the created salesorder, there are two same pricing conditions but different rate 1.) the price of the MATNR which is maintained 2.) the changed MATNR price in inquiry level,
i need the value which is changed in inquiry level that is 2nd value.
can anyone help me in this...REPORT ZSALESORDER.
<< Cut and paste without attribution from
create sales order using BAPI
removed >>
Edited by: Rob Burbank on Feb 24, 2009 10:43 AM -
Creating sales order by using BAPI_SALESORDER_CREATEFROMDAT2
Hi friends
i am creating sales order by usign this bapi BAPI_SALESORDER_CREATEFROMDAT2. But I have create the sales order with reference to quotation. So ia m passing all req parametes and also the quotation no in ref-doc field. i am abel to create the sale order But what ever teh lines items we have in the quotation(va23).i am not gettnig the lines items in the sales order.But SO no is generated. Could ou pleae let me know whats teh prb or do i need to do anything for geetting the line items
Regard,
SaiAs you suggested i have passed the suggested parameters in item level..But this time i was not ablet to create the SO also..earlier i am able to creat SO but not line item, But now ia m not able to creat salesdocuement also.
Return talbe filled with belwo messages.
S V4 233 SALES_HEADER_IN has been processed successfully
E V1 320 No item category available (Table T184 ZKB TEXT )
E V4 248 Error in SALES_ITEM_IN 000000
W V1 555 The sales document is not yet complete: Edit data
E V4 219 Sales document was not changed -
Creating sales order using web dynpro JAVA
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 SharmaHi...
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
check this thread SALES ORDER creation using BAPI
sample java program which will call SAP bapi function sales order create
PradeeP -
Documentation on Creating Sales Order using Web Services
hi,
I can goto ESA Preview system using SAPGUI and create a sales order (using va01 transaction).
I tried to do the similar thing using the WebService (Create Sales order), but have lots of problems.
->Fields used in WebServices are not in sync with what would be if you use the GUI. (example u enter sales region, buyer id, ship address and the items for a standard sales order.
->There is not much documentation on what the fields in the webservice mean. (e.g. what is the difference between BuyerParty and BuyerInternalId? )
->There are no sample combination of values that work. (Belive me it would take hours to figure out right combination of values needed..)
Any hints would be appreciated
Kiran
http://erp.esworkplace.sap.com/socoview(bD1lbiZjPTgwMCZkPW1pbg==)/smdisplay.asp?id=138ABFEEA8A34999BFCEB31537EC8D65&fragID=&packageid=CBD4F2B708B8144DAEA05442D8FD491E&context=&iv=
http://erp.esworkplace.sap.com/socoview(bD1lbiZjPTgwMCZkPW1pbg==)/smdisplay.asp?id=5640EE01E71B11DAB5240007E9102256&fragID=&packageid=CBD4F2B708B8144DAEA05442D8FD491E&iv=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
check this thread SALES ORDER creation using BAPI
sample java program which will call SAP bapi function sales order create
PradeeP -
How to create sales order using bapi( test purpose)
Hi all,
while i was creating sales order using the BAPI_SALESORDER_CREATEFROMDAT1 it is giving some error,
version 0 is not defined for the fiscal year ****.
I have given the fallowing parameters as input
ORDER_HEADER_IN
DOC_TYPE OR
SALES_ORG 1000
DISTR_CHAN 10
DIVISION 00
ORDER_PATNERS
PARTN_ROLE SP
PARTN_NUMB 1000
ORDER_ITEMSIN
MATERIAL M-13
I need to create sample sales order . Please help me how to create sales order with an example( for test purpose).
Regards
Deviprasad.Hi Prasad,
Try using BAPI_SALESORDER_CREATEFROMDAT2.
While creating sales order using FM: BAPI_SALESORDER_CREATEFROMDAT2, please make sure ORDER_ITEMS_IN, ORDER_ITEMS_INX, ORDER_SCHEDULES_IN, ORDER_SCHEDULES_INX.
Pricing Conditions will not be mandatory to create a sales order via BAPI.
As you were saying, you can create a sales order but not with items. Do populate the internal tables that i have specified above.
Also try to pass the item number internally, this will help you in identifying the schedule lines.
Regards,
Priyanka. -
Issue in creating sales order using process_header API (web service)
Hi All,
I am trying to create sales order header using web service call to OE_ORDER_PUB.Process_header API.
When I pass the inputs and test the service,I get output with return_status='S'. But no record falls at the OE_ORDER_HEADER_ALL table.
I cant identify where the problem is.Is there any commit missing? Pls help me resolve this issue.
Thanks,
VinothHi All,
I am trying to create sales order header using web service call to OE_ORDER_PUB.Process_header API.
When I pass the inputs and test the service,I get output with return_status='S'. But no record falls at the OE_ORDER_HEADER_ALL table.
I cant identify where the problem is.Is there any commit missing? Pls help me resolve this issue.
Thanks,
Vinoth -
[ABAP] Create sales order using FM BAPI_SALESORDER_CREATEFROMDAT2 problem
Hello All,
In a report I have to create sales orders, I use function BAPI_SALESORDER_CREATEFROMDAT2, but I got the message like "ship-to-party xxxx is not assigned to sold-to-party" if I_PARTNERS-PARTN_ROLE = 'WE' and when is 'SH' I get 'please enter ship-to-party or sold-to-party'. Please suggest how to correct this. Thank you
Bogdan
Here is the code:
order header values
HEADER-DOC_TYPE = 'ZRTA'.
HEADER-SALES_ORG = '4301'.
HEADER-DISTR_CHAN = '43'.
HEADER-DIVISION = '40'.
HEADER-PURCH_DATE = '20051109'.
HEADER-PURCH_NO_C = '11111'.
header-date_type = 'D'.
*HEADER-REF_DOC = .
*HEADER-REFDOC_CAT = 'E'.
*HEADER-***_NUMBER = ZCONSGACTVSV-HUBREFNUM.
order item level data
I_ITEM-ITM_NUMBER = '000010'.
I_ITEM-MATERIAL = '950700129'.
*I_ITEM-ROUTE = CON-ROUTE.
*IF NOT ZCONSGAGRMSV-CHARG IS INITIAL.
I_ITEM-BATCH = ZCONSGAGRMSV-CHARG.
*ELSE.
I_ITEM-BATCH = '1'.
*ENDIF.
I_SCHEDULE-ITM_NUMBER = '000010'.
I_SCHEDULE-REQ_QTY = '13'.
*shipto = 'WE'.
I_PARTNERS-PARTN_ROLE = 'SH'. " Ship to
I_PARTNERS-PARTN_NUMB = '2000001'.
*I_PARTNERS-PARTN_ROLE = 'SH'. " Ship to
*I_PARTNERS-PARTN_NUMB = '2000001'.
I_PARTNERS-name =
APPEND: I_ITEM,
I_SCHEDULE,
I_PARTNERS.
CLEAR: I_ITEM,
I_SCHEDULE,
I_PARTNERS.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
SALESDOCUMENTIN =
ORDER_HEADER_IN = HEADER
ORDER_HEADER_INX =
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
SALESDOCUMENT = ORDER
TABLES
RETURN = RETURN
ORDER_ITEMS_IN = I_ITEM
ORDER_ITEMS_INX =
ORDER_PARTNERS = I_PARTNERS
ORDER_SCHEDULES_IN = I_SCHEDULE
ORDER_SCHEDULES_INX =
ORDER_CONDITIONS_IN =
ORDER_CFGS_REF =
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
ORDER_CCARD =
ORDER_TEXT =
ORDER_KEYS =
EXTENSIONIN =
PARTNERADDRESSES =Hi Bogdan,
The documentation says
Document Partner
Description
This table parameter is used to enter partners such as sold-to party, or ship-to party, both at header and item level.
The minimum requirement is that the sold-to party is entered at header level. Additional partner functions can then be automatically determined.
You can also enter different addresses in the structure.
Check if it is useful to you in some way.
Regards,
Ravi -
Sales order creation using webdynpro in ABAP
Plz give the process how to create sales order creation using webdynpro in ABAP. if not possible plz let me know how to create in JAVA.
It is very urgent. I hope i will get it very soon.
Thanks all
SaiIn your WDA application, all you need to do is call the BAPI BAPI_SALESORDER_CREATEFROMDAT2 when the user clicks some button. Most likely, you can put the code for this BAPI call in the onAction method for your button.
Regards,
Rich Heilman -
Creating sales order problem .pls if any body knows solution pls guide me
HI,
I have created sales orders by using bapi.They have told me one condition for this.Customer number,Division,PO number were same for in each row.means then only one sales order has to be created.i have completed that one.i am giving example..like this..
9800000010 sapjda 10 02.03.2007 555596 17 12,098
9800000010 sapjda 10 02.03.2007 755110 0.89 13,520
for this only one sales order has to be created.depends on Customer number,Division,PO number wer same in 2 rows.then only one sales order is to be created.But if the same is in 3rd row shown below means it is creating different sales order.but i want to create that 3rd row also same sales order like 1st row because 1st and 3rd row are having same Customer number,Division,PO number.
8700000010 sapjda 10 02.03.2007 985596 17 12,098
7600000012 sapjry 30 02.03.2007 654510 0.89 13,520
8700000010 sapjda 10 02.03.2007 765750 0.89 13,520
if u have solution pls send it to me urgently.Jayasankar ,
Sort the Internal table with Cust # , Divison and PO#.
Before doing this try to change your Internal table design such that all this field are in sequential order, Bcoz sorting may vary based on the field level also.
Thx
Parthi
Kindly reward if helpful. -
Error in creation of sales order bu using BAPI_SALESORDER_CREATEFROMDAT2
Hi ,
I am trying to create sales order by using bapi.
after passing all the parameters to bapi iam getting message as shown below.
SALES_HEADER_IN has been processed successfully
SALES_ITEM_IN has been processed successfully
<b>Order receipt/delivery not possible, credit customer blocked</b>
I had passed scedule line data ,and BAPI_TRANSACTION_COMMIT
also still iam getting this message.
please help me out of this problem.
Thanks,
Shuja.Hi Shuja
I guess the message is just a warning eventhough the order is created. The warning message states that Auto-Delivery can not be created.
Please check below to understand how the customer is blocked:
1. Manual Block -> Transaction XD03
-->Menupath: Extras->Blocking Data
2. Credit Block -> Transaction FD33
--> In the overview screen check the difference of value between Credit Limit & Credit Exposure
I guess in the case whereby Credit Limit value is less than Credit Exposure also this can happen.
Please try using a different Customer. Also simulate via transaction VA01.
Hope this helps.
Kind Regards
Eswar -
Function module to add record into incompletion log of creating sale order
Hi SD Experts,
Do you know any function module / class to add record a into incompletion log procedure of creating / changing sale order process? We can do it through configuration OVA2 but I need to add more condition before adding to this table.
Thanks,
DuyHi,
Refer to The SDN Post : [user exit to update the incompletion log in sales order for pricing error |Re: user exit to update the incompletion log in sales order for pricing error].
Limitation : While creating Sales order, this works only for document type with external number range as the code required for updating XVBUV require Sales Order Number.
Regards
Vinod -
To create Sale Order , Delivery and then Billing Automatically .
hi all ,
I want to create a program which will create SALES ORDER , then make DELIVERY of it and then BILLING .
Also i want to restrict the sale order to be create of those CUSTOMER whose credit limit is exceed , which is maintain in FD32 tcode .
If i go with BDC for Sales order it creates the sales order with a warning message , which i dont want .
Is there any BAPI for doing this ?
I do have try to find out the customer whose credit limit are exceed so as to restrict them in Program itself , but do not find the table for credit exposure to compare it with credit limit .
Please give me your Suggestion .
Secondly , Which BAPI is suitable for DELIVERY and BILLING in 4.7 version .
Thanks .Hi,
Check these below BAPI's
BAPI_SALESDOCU_CREATEFROMDATA
BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
BAPI_OUTB_DELIVERY_CREATE_SLS Generates Delivery for Customer Order
BAPI_BILLINGDOC_CREATE Custimer Individual Billing Document : Create Billing Document
BAPI_BILLINGDOC_CREATEFROMDATA Create Customer Individual Billing Doc.
Regards,
Jyothi CH.
Maybe you are looking for
-
Material related to FI_GL ,
HI Experts, As I am new to the FI_GL , can anyone please update me on this and also send any docs related to the same. As I am working on FI_GL related project for the first time. Please help me in this matter. Thanks Sekhar
-
Strange issue when adding a folder to my libs
Hi guys I have my classes in a libs folder, and in Actionscript Settings / Source I point to that folder. It works fine. I just attempted to add the AlivePDF source files (using source instead of swc as I want to alter something) in their org folder
-
Multiple templates one data definition--
Hi I have created two templates for the same data definition. Now while running the concurrent request i can select the template from the 'Options' button. Say the two templates are 1)template1 2)template2 Now template1 is the default template when i
-
Cannot insert duplicate key in ddm.log
Hello, I have been noticing the below on many occasions: *** IF EXISTS (select ItemKey from DiscItemAgents where ItemKey = 278482 and DiscArchKey = 5 and AgentID = 15 and AgentSite = 'auto') update DiscItemAgents set AgentTime = '07/31/2014 16:26:11'
-
What is the best tool for making a "coupon" for my website?
What is the best tool or app for making a "coupon" for my website?