FM for linking deleted sales order and accounting document
Hi there,
I have this scenario:
-I create a sales order and make a certain amount of downpayment.
-At the save of the order, an accounting document is created in BSEG table with reference to this order (BSEG-VBEL2).
-I delete the order that I created in step 1.
-The accounting document still exists in BSEG.
Question:
A direct select on BSEG with vbel2, takes a very long time.
Can anyone suggest a way to improve the performance, or does anyone know of a Fuction Module that I can use?
Thanks,
Deepti
Hi,
Con't you use alternative table, Example insted BSEG use BSID and create a index on VBEL2 to improve the performance..
Regards,
Srinivasa M
Similar Messages
-
Urgent Request! FM to link deleted sales order and accounting doc
Hi there,
I have this scenario:
-I create a sales order and make a certain amount of downpayment.
-At the save of the order, an accounting document is created in BSEG table with reference to this order (BSEG-VBEL2).
-I delete the order that I created in step 1.
-The accounting document still exists in BSEG.
Question:
A direct select on BSEG with vbel2, takes a very long time.
ie. SELECT SINGLE belnr gjahr wrbtr pswsl saknr FROM bseg
INTO CORRESPONDING FIELDS OF ls_bseg
WHERE vbel2 EQ ls_event_sale_del-vbeln. "#EC CI_NOFIELD
Can anyone suggest a way to improve the performance, or does anyone know of a Fuction Module that I can use?
Thanks,
DeeptiArghhhh! You are right.
I would do it like this. Find the document in the BSEG table. Then check it in the BKPF table - there are headers for posting documents. Write down the ATWYP field's value and check the AWKEY value (probably it will be the Order's number).
Then you can search for the posting document in the BKPF table using the AWTYP and AWKEY fields. There is an index on these fields so it should go quite fast.
Rgds
Mat -
Regarding creating a LOOSE LINK between Sales Order and Vehicle
Hi,
Does anyone has any idea on how to establish a LOOSE LINK between Sales Order and Vehicle using BAPI_VEHICLE_CREATE or any other Function module.
Any help will be highly appreciated and rewarded.
Kind Regards,
TanujaDear Kumar,
Strategy - 40
Consumption of PIR (not Redution)
1) the first point in strategy in 40 is, incoming sales order consumes PIR
2 )both sales order and PIR takes place in MRP planning run
2) this is where it is in mostly used in many indutries
just a small example how this strategy works
1) creat PIR for ur FERT- 100Nos
2) check in MD04- u will get PIR (VSF) as 100
3) now creat sales order for 120 for same month
4 )run MRP for that particular FERT
5) check the result in MD04, here ur PIR gets vanishied and an plan order will be generated for 120 Nos.
Regards
kumar
Edited by: kumar kumar on Jul 22, 2009 8:29 AM -
Link between Sales order and Credit master sheet
Hi,
Plz explain the link between sales order and credit master sheet.
Thanks and regards
CSRHi,
Credit master is related to Customer.
Credit limit will be assigned to a customer by using the T.Code FD32.
Credit control area will be assigned to a customer.
You can the credit control area for a customer in the table "KNVV".
Goto the T.Code "FD32".Enter your customer number and credit control area.Select the status tab.
Here you can maintain the credit limit.If you leave blank means the limit is 0.00.
Next thing is goto the T.Code "OVAK".
Select your sales order.Maintain the "Credit limit check" for your order type.
Goto the T.Code "OVA8".Select your valid combination.Here,you can activate either the static or dynamic credit limit checks.
If you create the sales order by using the customer,initially the system will check for the credit limit.If it is 0.00 and credit check functionality is activatd in the above specified T.Codes,then creditcheck will happen and order will be blocked for releasing of credit by using the T.Code "VKM3".Authorised persons have to release this credit block.Suppose,you have maintained this credit limit as "1000Rs/-" and you are creating the order of value "550Rs/-",then your order will not be blocked even though the credit check functionality is activated for your order type.
In this way,sales order is in turn related to credit master.
Regards,
Krishna. -
Availability check on storages in sales order and delivery documents
Hi all,
I'm verifying if it's possible to find a standard or a custom solution for this type of problem:
I have a scenario in which there are more storages relevant for MRP (ex. 01, 02, 03, 04), and, in if I check availability in sales order or delivery (using checking rules "A" or "B") with setting which considering storages location inspection in availability check control, system check if there's stock available on all these storages.
I'm trying to verify if it's possible to consider only some on these storages (ex. 01 and 03 only) in sales order and delivery documents availablity check.
I know that in sales order storage location field is normally filled only using exit, but i don't know if it's possible to do, using a user exit, check availability considering only some storages and not all. At delivery level i have tried to use stock strategy, but this functionality don't have consequences on availability check, also if it's relevant during good issue phase.
Any suggestion will be appreciated.
Regards
GianpaoloHi Gianpaolo,
We had some issues with availability check on a Customer Site.
I don't remember right now if we had to exclude storage locations from MRP to take them out from ATP, but I guess Shiva is 100% correct.
At the end, what was done was to always "force" a unique storage location in the sales order item, which will be the storage location used for shipping of the delivery of course.
If you use WM in your plant, then you will have no problem in having a unique storage location, so no problem.
Anyway you are correct in your analysis, if the Storage location is not informed in the sales order item, then all the plant stock is taken in account for ATP.
Best Regards,
Franck
Freelance Logistics SAP Consultant -
Variant configuration statistics of sales order and billing document
Is there any transaction that allow me to get statistics from the sales orders and billing document for configurable materials ? (like VA05) better if using the values of the characteristics that make up the positions of order.
Thera are any information from "Sales Information System" using LIS?
Thanks.Hi,
With LIS, we'll find different infostructures.
See this link to configure LIS reports :
http://help.sap.com/saphelp_47x200/helpdata/en/c1/375723449a11d188fe0000e8322f96/frameset.htm
Using many infostructures before to see sales analysis.
Another solution :
In sales order (by user exit), copy characteristics in new fields in VBAP.
Then, you can use these fields in VA05 (add user exit) or new ABAP report.
Regards,
Lionel -
Sales order and billing document fields
what are the fields for sales order and billing document dates?
Hi
Couldnt really get the exact requirement:
1. If Billing Dates are to be extracted from Sales Documents, we can do that by extracting field <b>FKDAT</b> from table <b>VBKD</b>.
2. If it is Billing Document creation date, extract from VBRK-ERDAT with below condition.
select vbrp~vbeln vbrp posnr vbrp~aubel
vbrp~aupos vbrk~erdat into table itab
from vbrp as a
inner join vbrk as b
on vbrp~vbeln = vbrk~vbeln
where vbrp~aubel in s_vbeln. "Sales Documents
Hope this gives you some idea.
Kind Regards
Eswar -
Regresion test flow of Sales order and billing document to CO-PA
Hi
In the regresion test we need to test the sales order and billing documents values are flown to CO-PA are not.
May i know the transaction codes to test this scenario
Best regards
ThomasHi
1. Your sales ordre will have a pricing procedure in it.. Pricing procedure has condition typess. for revenues and discounts. Did you assign cond types in KE4I to your value field?
2. Also, if your pricing procedure has cond type VPRS, this will contain the COGS.... Assign VPRS also to a value field in KE4I
3. Check If you did the settings in COPA for
a. Select Valuation Strategy 001 in KE4U
In DETAILS tab: Assign it to Appl = KE, Check Mat Cstng, and Qty Field = ABSMG
In Assignment tab: Assigning 001 to Point of valuation 01 and Record Type = F
b. Creating a costing key in KE40
Check : Transfer Std cost estimate
Period indicator =Current Cost estimate acc to entry in mat master
c. assigning costing key to material types in KE4J or KEPC and
d. assigning Cost Comp Structure to Value field in KE4R
Regards
Ajay M -
Link between inv. number and accounting document number
Hi Frnds,
When i receive a partial receipt (of an invoice) from a customer, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?Hello,
Try to prepare query based on tables BSIK, BSAK and BSEG. (Transaction code SQVI)
Regards,
Ravi -
Link between invoice number and accounting document number
Hi Frnds,
When i receive a partial receipt (of an invoice) from a customer, i am getting the link between invoice number and accounting document number from a table (BSEG), but when i am receiving the final settlement amount from the customer, i m not getting the link between the inv. no. and accounting document number. Can anyone tell me how can i get the same?hi
try these tcodes
FBL5N
FB02
regards -
Sales order and billing document modify log
Dear Gurus,
I would like to know if there are any standard report with Sales order and billing document modifies by a user.
I know that you can see modifies by going to VA03/VF03 -> Environment -> Changes. But this report is too poor.
Thanks in advance.
Best regards.
JuanTcode AUT10 is the best one Here, maintain From-To date and TCode and execute.
thanks
G. Lakshmipathi -
Link between sales order and purchase order
plz explain the link between the sales order and purchase request
Hi Javed,
Their are 2 scenario for this.
1) You create a sales order and the system automatically creates a PR and then you convert to PO.This is third party sales.In PO account assignment the sales order number is directly copied to the PR And PO.
2) You create a PO wrt to SO .The goods received will be reserved for that SO. third party PO Vendor will directly deliver the goods to customer.The delivery address is copied from sales order.
Techincally
EKKN table you have sales order and Item fields (VBELN and POSNR)
using these fields search for the deliveries in LIPS table
EKKN-VBELN = LIPS-VGBEL and
EKKN-POSNR = LIPS-VGPOS
Edited by: Raj on Jun 19, 2008 6:58 PM -
Linking Between Sales Order And Purchase ORder
Dear Gurus,
How to link the Sales Order Number and Purchase Order Number. I know the Sales Order Number and I need the tables from which I can know the Purchase Order Numbers for that Sales Order Number.
Points will be awarded.
Thanks,
RaviHi,
Goto Table Mseg-kdauf is sales order no.
get mseg-ebeln is purchase order.
Or u can do the following code.
from sales order no VBELN get VBFA-VBELV.
SELECT SINGLE vbeln FROM likp
INTO l_delno
WHERE vbeln = vbfa-vbelv.
SELECT SINGLE ebeln
INTO l_sono
FROM ekbe
WHERE belnr = l_delno
AND bewtp = 'L' .
L_DELNO IS PURCHASE ORDER.
If it is helpfull pls reward it.
Regards
Srimanta -
DMS Link witlh Sales order and Material master
Hi, all
here is my?
Can we link DMS to both sales order and material master, for service feedback of a product from customer.
rgds
benhi
you can link the objects through object link in dms.
go to tcode dc10 select the documnet type, click on define object link. click on new entry, select VBAP object for sales order and MARA for material master.
thanks ,
regards,
nitin
award point if useful -
Delete Sales order and Purchase Order
Hello Experts,
Scenario 1: I would like to delete a Purchase Order using PORDCH03 idoc. I tried passing 'X', 'Y' and also 'D' to the deletion indicator at the header level, but the purchase order is not getting deleted. Can you let me know how can I delete an purchase order using IDOC.
Scenario 2: I would also like to delete a Sales order using ORDER05? Is this possible? I mean deleting Sales order. I do not want to update the reason for rejection, but I want to completly get rid of the sales order from the database.
Appreciate your help.
Thanks,
Suresh GantiHello Rob,
I am able to set the deletion indicator for the purchase order and it works fine. But for Sales orders we are using ORDERS05 and want to delete the Sales order. I was able to delete the line item, but not the whole order.
As you know we can delete the whole order using the BAPI.
sd_head_x_ls-updateflag = 'D'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = vbeln_lv
order_header_inx = sd_head_x_ls.
I want to achieve the same functionality using ORDERS05 IDOC.
Thanks,
Suresh Ganti
Maybe you are looking for
-
My partner and I share the powerbook and I use my iPad, Though we each log in with separate accounts all my pics and music are in both libraries . Can I isolate accounts from iCloud ?
-
Problem Updating 1st Gen Nano software from 1.2 to 1.3
Try this as a separate thread... I have a first gen nano with software version 1.2 (from the 6-28-06 update) and when I plug it into my usb port, i tunes 7.0.1.8 launches to sync. This is as it should be; however this action gives a prompt to update
-
Does any one can guide how to lock particular App with password?
Does any one can guide how to lock particular App with password?
-
I can't install Photoshop Elements 8 (using a disc)
I know that my computer is working fine because other discs work, but when I put this disc in, nothing happens. I called support and they referred me to Tech Support. I am still not having any luck reaching anyone there!! I spent a lot of money on
-
Macbook pro shuts down during reboot after flat battery
Hi, I have a macbook pro (early 2011) And it went flat two nights ago whilst watching a movie. It was plugged in but I've been having charger issues. Anyway, now that it's fully charged, whenever i turn it on it gets to the apple logo with a progress