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.
Similar Messages
-
Sales order, Delivery and Billing document creation
Hello Experts,
I am working on credit management and am in need of creating sales order, delivery and billing document.
Can some one send me the screen shots or any doc which outlines order,delivery and billing document creation.
Will award points definitely.
Also what are the t.codes for these creation?
Regards,
SriramOrder Create:
Transaction VA01
Give the order type , If standard order use OR or ZOR, which ever is maintained
Then give the sold to and press enter
In the Items screen Give the material and quantity and press enter. This should be enough to create an order, if u need u can give order reasons...etc. Then save the Order. Note down the order number.
Go to VL01N-
and give the above order for which u are doing delivery, In the pick quantity enter the amount in the order and press enter. and make sure the delievry date should be the same in the Sales Order Schedule line- REquested delivery date. Save the document.Note down the document number
Go to VL02N - Open the above delivery document and click on PGI - done
Now go to VF01 and this should bring up the delivery document number., If it doesnt , give the delivery document number and hit enter. then save the document. Billing is done.
Regards
Sai -
Sales order, Delivery and Invoice changes history tables
Dear All,
I want to know how to find out the changes done in Sales Order, Delivery and Invoice.
As far as sales order is concerned, I know CDHDR and CDPOS are tables can be used to find out the changes.
But I am not sure about the "Object ID". Where we need to find out this Object ID?
In the Data element "VBELN_VA" "Change Document" option has been checked under "Further Characteristics" tab.
Please confirm about the "Object ID".
Similarly give inputs for Delivery and Invoice change history also.
Regards,
MullairajaHi,
Could you please explain, how to use these programs?
Regards,
Mullairaja -
Urjent-Any function module for finding Sales order, Delivery and Invoic
Hi Experts,
I am having selection screen like
Sales order
Delivery
Invoice
Customer
If i give sales order
Delivery and Invoice should pull
If i give delivery
sales order and Invoice should pull
If i give Invoice
sales order and delivery should pull
If i give customer
all customer related data should pull
Do we have any function modules to meet this reqirement?
If we have please provide function modules.
Thanks,
mahe
Edited by: Rob Burbank on Mar 30, 2009 4:17 PM
Edited by: mahahe on Mar 31, 2009 9:12 PMYou can use VBFA table, right? in the FM also, you can find the same logic, like pulling from VBFA table.
thanq -
Create Sales Order With Reference to Billing Document Using BAPI_SALESORDER
Hi,
How can i create a sales order With Reference to Billing Document Using BAPI_SALESORDER_CREATEFROMDAT2?
Thanks in advance,
Alejandro.I have to create sales order with reference to existing billing document. I have tried to following bapis.
1. BAPI_SALESORDER_CREATEed
I have successfully created document with following details.
-->ORDER_HEADER_IN:
DOC_TYPE = ZRK
SALES_ORG = 3000
DISTR_CHAN = 00
DIVISION = 00
ORD_REASON = 100
SD_DOC_CAT = L
CURRENCY = EUR
REF_DOC = 100000028
REF_DOC_CA = M
-->ORDER_ITEMS_IN:
ITM_NUMBER = 000010
MATERIAL = 701791
TARGET_QTY = 0000000001000
CURRENCY = EUR
REF_DOC = 100000028
REF_DOC_CA = M
-->ORDER_PARTNERS:
PARTN_ROLE = SP
PARTN_NUMB = W12001
COUNTRY = NL
by providing this input i am able to create the document but it is not picking up the net value. so i have passed some extra paramters in ORDER_ITEMS_IN
COND_TYPE = PNET
COND_VALUE = 14,56
COND_D_UNT = PC.
folowing error is occured: Condition PNET is missing in pricing procedure A V Z0000.
is it something related to configuration problem?
2.BAPI_SALESORDER_CREATEFROMDAT1 or BAPI_SALESORDER_CREATEFROMDAT2
I have used same test data that is used for BAPI_SALESORDER_CREATEFROMDATA (where in i coudl succefully create doc). but here i encounterd following error.
Unpermitted combination of business object BUS2032 and sales doc. category L. -
Sale order delivery and billing blocked
Hi sap sd gurus
I have a problem after creating a sale order , the one line item in sale order showing status of delivery blocked and billing blocked , now i am unable to post delivery and billing when i see in schedule line item order qty and confirmed qty .
Now i want to find why this is blocked and remedy for removing this block .
Could anyone suggest me in this issue asap
thanks in advance
KannaDear Kanna,
Go to XD02 at the toppage you will find Extras
In that Extra Topage you will find a field Blocking Data.
Check whether Order block and Delivery Block has been ticked.
If ticked is there remove the tick and try Delivery and Billing.
If you have any concerns revert back the same to me
With Regards,
Amjath -
Various Dates In sales Orders , Delivery and Billing
Hi all ,
Can some one tell me various dates along with feild name and their relevance .
Sales Order process
Delivery dates if the process includes picking and Packing is considered
if transortation module is considered .
Billing relevant dates .
thanks
ksrFor whichever field you want to know the details, place your mouse on that field and press F1. The explanation would be self explanatory.
Please post questions related to your real time issues and not like this.
thanks
G. Lakshmipathi -
Wront entries while creating sales order sold and shipto accounts
Hi Guru's,
By mistake Client key user enter sold to party correctly but enter ship to party a different account number and created the sales order. Will anyone guide me how to overcome the problem. What is the procedure?hi
then cancel the invoice if created and reverse PGI and delete the delivery document then change the sales order
regards -
Create Sales Order / Delivery with BAPI
Hi,
I want to create a sales order and the its delivery using BAPI. Is there such BAPI or should i use two different BAPI functions.
I also need to post goods issue after the completition of the delivery. Which BAPI is the most appropriate for my pupose?
thanks for your help,
- ferudunHi,
Check this example of creating a sales order and for creating delivery...and PGI
************SALES ORDER INPUT CREATION.
PARAMETERS: p_auart TYPE auart OBLIGATORY.
PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
PARAMETERS: p_spart TYPE vtweg OBLIGATORY.
PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
*ITEM
PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
PARAMETERS: p_itcat TYPE pstyv OBLIGATORY.
DATA DECLARATIONS.
DATA: v_vbeln LIKE vbak-vbeln.
DATA: header LIKE bapisdhead1.
DATA: headerx LIKE bapisdhead1x.
DATA: item LIKE bapisditem OCCURS 0 WITH HEADER LINE.
DATA: itemx LIKE bapisditemx OCCURS 0 WITH HEADER LINE.
DATA: partner LIKE bapipartnr OCCURS 0 WITH HEADER LINE.
DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
DATA: lt_schedules_inx TYPE STANDARD TABLE OF bapischdlx
WITH HEADER LINE.
DATA: lt_schedules_in TYPE STANDARD TABLE OF bapischdl
WITH HEADER LINE.
HEADER DATA
header-doc_type = p_auart.
headerx-doc_type = 'X'.
header-sales_org = p_vkorg.
headerx-sales_org = 'X'.
header-distr_chan = p_vtweg.
headerx-distr_chan = 'X'.
header-division = p_spart.
headerx-division = 'X'.
headerx-updateflag = 'I'.
PARTNER DATA
partner-partn_role = 'AG'.
partner-partn_numb = p_sold.
APPEND partner.
partner-partn_role = 'WE'.
partner-partn_numb = p_ship.
APPEND partner.
ITEM DATA
itemx-updateflag = 'I'.
item-itm_number = '000010'.
itemx-itm_number = 'X'.
item-material = p_matnr.
itemx-material = 'X'.
item-plant = p_plant.
itemx-plant = 'X'.
item-target_qty = p_menge.
itemx-target_qty = 'X'.
item-target_qu = 'EA'.
itemx-target_qu = 'X'.
item-item_categ = p_itcat.
itemx-item_categ = 'X'.
APPEND item.
APPEND itemx.
Fill schedule lines
lt_schedules_in-itm_number = '000010'.
lt_schedules_in-sched_line = '0001'.
lt_schedules_in-req_qty = p_menge.
APPEND lt_schedules_in.
Fill schedule line flags
lt_schedules_inx-itm_number = '000010'.
lt_schedules_inx-sched_line = '0001'.
lt_schedules_inx-updateflag = 'X'.
lt_schedules_inx-req_qty = 'X'.
APPEND lt_schedules_inx.
Call the BAPI
CALL FUNCTION 'BAPI_SALESDOCU_CREATEFROMDATA1'
EXPORTING
sales_header_in = header
sales_header_inx = headerx
IMPORTING
salesdocument_ex = v_vbeln
TABLES
return = return
sales_items_in = item
sales_items_inx = itemx
sales_schedules_in = lt_schedules_in
sales_schedules_inx = lt_schedules_inx
sales_partners = partner.
Check the return table.
LOOP AT return WHERE type = 'E' OR type = 'A'.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
WRITE: / 'Error in creating document'.
ELSE.
COMMIT WORK AND WAIT.
WRITE: / 'Document ', v_vbeln, ' created'.
ENDIF.
************DELIVERY CREATION.
DATA: BEGIN OF t_vbap OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
zmeng LIKE vbap-kwmeng,
matnr LIKE vbap-matnr,
werks LIKE vbap-werks,
END OF t_vbap.
DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
WITH HEADER LINE.
DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
WITH HEADER LINE.
DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
SELECT vbeln posnr zmeng matnr werks
INTO TABLE t_vbap
FROM vbap
WHERE vbeln = v_vbeln.
LOOP AT t_vbap.
t_request-document_numb = t_vbap-vbeln.
t_request-document_item = t_vbap-posnr.
t_request-quantity_sales_uom = t_vbap-zmeng.
t_request-quantity_base__uom = t_vbap-zmeng.
t_request-id = 1.
t_request-document_type = 'A'.
t_request-delivery_date = sy-datum.
t_request-material = t_vbap-matnr.
t_request-plant = t_vbap-werks.
t_request-date = sy-datum.
t_request-goods_issue_date = sy-datum.
t_request-goods_issue_time = sy-uzeit.
APPEND t_request.
ENDLOOP.
CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
TABLES
request = t_request
createditems = t_created
return = t_return.
READ TABLE t_return WITH KEY type = 'E'.
IF sy-subrc = 0.
MESSAGE e208(00) WITH 'Delivery creation error'.
ENDIF.
COMMIT WORK.
************Post goods issue.
READ TABLE t_created INDEX 1.
DATA: vbkok_wa TYPE vbkok.
vbkok_wa-vbeln_vl = t_created-document_numb.
vbkok_wa-wabuc = 'X'.
DATA: v_error.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = vbkok_wa
delivery = t_created-document_numb
IMPORTING
ef_error_in_goods_issue_0 = v_error.
COMMIT WORK.
Thanks,
Naren -
Create sales order basis and other
Good afternoon,
I need to create a sales order with a copy to another order of sale. Ever used the control of copy of order to order, plus the flow of documents are all linked, ie every order that I create, will be linked to one another ... When you need to check the orders, I see all the flow of documents, where my intereese is only copying the data from order to order.
Someone has passed this and can share the solution?
Tks.
Eduardo RebeloHello,
Yes, this is correct solution. But i want the to see the "display document flow" one sales order and not all sales order. If i need to check one sales order, i will go see all sales order the button display document flow.
Will be a bit confusing to analyze sales orders by button display document flow.
Lets me know you understand. -
Creating sales order, va01 and
Hi,
While creating a sales order, sold-to-party and ship-to-party fields are available and they are entered while creating order.
How can I know to whom an order has been shipped to?
In which table can I get this data?
I need to know to whom shipment has done, not the sold-to-party of order.
Thanks.
deniz.hi.
Ship to Add, you can get Sales Order numbers in VBAK, VBPA Tables. and
The Ship to party Address you can get in KUWEV-KUNNR.
This table store the Customer Shipping Address.
Regards.
SrEeNu. -
Credit Management - Sales Order Blocked and then credit limit increased.
Hello,
We have activated dynamic credit check and have following situation
a) Sales Order created and it went into credit block as its value exceeded the limit
b) Subsequently credit limit was increased.
What steps need to be taken to permit further activities on this sales order. Is VKM3/VKM4 the only way ?
We tried executing the programs 'RVKRED06'. But nothing happened.
Please advise.
Regards
Jayesh.Hi Yadav,
I have matched my Customizing of Development and Sandbox. I couldn't trace any difference and hence I am posting in Forum for Expert Opinions.
Regards
Vikas -
Create Sales order ,Delivery, Billing and Invoice no. in back date.
Hello Gurus,
Goodevening ,
we have a requirement , here we need to create, Delivery on back date.
Note- System should do the availability check on back date. ( 1.e on requested delivery date) and confirm quantity on that date.
Note-What ever sales transaction happned yesterday day will be enterded today on yesterday date( this daily happens to this industry).
My problem is system is not doing availability check on requested delivery date its just doing on todays date and giving confirmation but in system stock was there on yesterday date.
Note - Always there is one day back log for actual sales and system entry.
Looking for your inputs
Thanks in advance.
Regards
Ravi.MHi Lakshmipathi,
Thanks for you reply,
This a typical kind of industry.-Poultry industry
They do the transactions in the night times at farms where they will not have any access for systems.so they want to post those transactions on back date.
Note- i do have idea, system does do availability check on current date,but is there any possiblity for back postings with availablity check that I am looking for all the possible options with all the possible feed backs.
Note- Customer is selling the semi -finished product that i have already mentioned, whether i maintain OR not maintain system is doing avaliblity check in SD , as the meaterial is semi -finished maintained by PP in MRP3.
Thanks in advance
Regards
Ravi.M -
Factory Calendar issue in creation of Sales Order/ Delivery Order
Hi all,
There is one issue. Our user is not able to create Sales Order/ delivery order as he is getting the below error message u201CDate 2010-12-27 lies after the end of Factory calendar F1u201D. But when I checked the plant in customization, the Factory calendar assigned is u201CKRu201D and not u201CF1u201D. So I donu2019t understand why this error message is appearing. But when I checked Factory calendar u201CF1u201D, it was valid only up to 2010 and there are special rules also set. Only few days in the year are working days. Factory Calendar u201CF1u201D description says u201CKOR customers billed on the 25th of every monthu201D
Please advice.
Regards,
BrijeshDear
If F1 is the correct calander , then goto OP03-Calander Maintenece -select the Holoiday Caleneder and extende the Valaidity till 2020 and also Select the Factory Calander do the same till 2020 .Now Goback to main screen of OP03-Plant asisngement -re-assing the same F1 calaneder .
Secondly check the factory calender of the plant in OX10.Then in SPRO > enterprise structure >Definition > logistic execution>define shipping point .Select you shipping point and assgin the proper factory calender
.Goto OVX5 , choose your sales organization, click on details, Detailed information tab - Sales Org Calendar (maintain your factory calendar here not Sale Org Calander )
.Check in VOV8, use the "Propose delivery date" and "Lead time in Days" options to default today's date as the requested delivery date.
Refer : Public holiday dates issue
Regards
JH -
Need to create sale order from the flat file & mail has to be sent
Hi Experts,
I have a requirement to create a sale order from a flat file and once the oder is created, mail has to be sent to customer as well as to internal user with the order details. I want to know how this process can be implemented and what adapters are needed to execute this.
it would be very helpful, if i get an step-by-step procedure.
Points assured for any helpful answers.
Thanks in Advance
JaiHI Jai,
You need to create two interfaces as file will be sending the Sales oreder details that you need to capture in IDOC or RFC and then have to trigger to create the sales order. For this Standard BAPIs are also available.
These RFC or BAPIs will response with Sales order details that you need to divert to Mail adapter with the use of BPM and also have to go for Async to Sync bridge.
File -
>XI (BPM) ---> BAPI/RFC (Request)
MailAdapter <- XI (BPM) <--- BAPI/RFC (Response)
For this refer below links for step by step
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] - File to Mail
/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm - Walk through BPM
/people/siva.maranani/blog/2005/05/22/schedule-your-bpm - Schedule BPM
/people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi - Use of Synch - Asynch bridge in ccBPM
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken] - Use of Synch - Asynch bridge in ccBPM
If you will use IDOC then In IDOC inbound processing you need to trigger for Sales order creation and then have to send the Sales Order generated IDOC as an Outbound to Mail Adapter
Flat file -
> XI ---> IDOC
IDOC -
> XI ---> Mail
This will be bit easy scenario to develope as compare to using BAPI with BPM
/people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping - Any flat file to any Idoc
configuring IDOC-XI-Mail scenario using following web-log:
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/sravya.talanki2/blog/2005/08/18/triggering-e-mails-to-shared-folders-of-sap-is-u - Triggering Email from folder
Thanks
Swarup
Maybe you are looking for
-
Photoshop CC 2014 will not open LR 5 files
Mac OS X Yosemite: I have weird hiccup cropping up and I'm not sure what to do about it. I'm reviewing and editing in LR 5, and when I choose "Edit in" or "command E" Photoshop CC 2014 opens immediately but the file is never actually opens in the pro
-
I must be losing my mind, Integer not having a compareTo method?
import java.util.Comparator; @SuppressWarnings("hiding") public class IntComparator<Integer> implements Comparator<Integer> @Override public int compare(Integer o1, Integer o2) o1.compareTo(o2); Eclipse is claiming that the Integer class does no
-
E71 messaging stops with same message - any ideas?...
I have several hotmail accounts running and stop after approx 7 days with the message below. I have deleted and reassigned works temporarily but problem re occurs. Any ideas how to rectify permanently. No settings have changed. Dear Nokia Messaging c
-
Can I do that on the iPhone 4? I like the convenience of having my email account on my phone, but I don't like that I'm ALWAYS logged in. I'd like to log out from time to time just because of in case my phone is stolen or lost, I don't want someone t
-
Emergency booting, Emergency booting
Stuck cd in superdrive does not allow booting. Is there a way to boot the imac? Snow leopard. I mac 2009.