Add price conditions in sales order and purchase orders
Hi,
I need add five price conditions in a sales order, and a purchase order.
I need filled KOMV table, however, i don't found the user-exits appropiated (example: the exit EXIT_SAPLMEKO_002 haven't parameter KOMV),
Regards,
Quite a few years ago I did something like this in sales orders... found the code in my notes, here it is.
I used USEREXIT_PRICING_PREPARE_TKOMP in include RV60AFZZ.
* Check if this condition record exists already
read table xkomv with key kschl = c_condition_name
kherk = 'C' "(depending on the task)
kposn = vbap-posnr.
if syst-subrc ne 0. "condition wasn't added yet
clear xkomv.
xkomv-kschl = c_condition_type.
xkomv-kbetr = condition_amount.
call function 'PRICING_CHECK'
exporting
comm_head_i = tkomk
comm_item_i = tkomp
komv_i = xkomv
preliminary = 'X'
importing
comm_head_e = tkomk
comm_item_e = tkomp
komv_e = xkomv.
xkomv-KWERT = xkomv-kbetr.
append xkomv.
endif.
Keep in mind that I haven't used this logic for years, so you'll have to test if it still works, but it worked for me back then.
If I'd have to do this now, I'd probably try to find a suitable enhancement point though...
Similar Messages
-
Standard program for unbilled sales orders and purchase order items
Can anyone advice, is there any standard program which gives the unbilled sales order and purchase order items.
Hi,
Use the T.Code VA05/VA05n for list of all the sales order s which are open.
Take T.Code:VA05N
Select the option "Open Sales Orders".
Execute.
It will give you all the orders which are open.
The standard program for this is:"SD_SALES_ORDERS_VIEW".
The same you can also get by using the T.Code VF04.
In this if your scenario is "Order related",then select the option "Order related".
Else if it is "Delivery related",then select "Delivery-related".
Execute.
The standatd program for this is:"SDBILLDL".
T.Code:VF05/VF05n is for list of billing documents.
Regards,
Krishna.
Note:Pls search the forum. -
Sales text and Purchase Order Text
Hi,
in what tables are stored Sales text and Purchase Order Text of the material master ?
Best RegardsHi
All long text is stored in STXH and STXL.
Object is MATERIAL.
Text-Id for basic data text is GRUN
Text-Id for purchase order text is BEST
For sales order text it is text object MVKE with text-id 0001
Go to SE37 function builder. Enter READ_TEXT and do a single test ( F8 )
Enter your parameters and execute. Example below.
NAME is a comibation of materialnumber (00000000008000000)WITH leading zeros
if numeric and sales org (1000) plus distribution channel (10)
Import parameters - Value
CLIENT - 010
ID - 0001
LANGUAGE - E
NAME - 000000000008000000100010
OBJECT - MVKE
ARCHIVE_HANDLE - 0
LOCAL_CAT
Just for future reference with regards to getting text id's etc.
eg: PO texts.
--> Go into the material master PO text
--> Double click into the required text.
--> Click the "GO TO" menu option.
--> click Header.
and all the info you need is there.
Thanks.. -
Sales Order and Purchase Order linkage in tables for third party orders
Hi all ,
For third party process order s
In which table can I find the Sales order and Purchase Order linkage .
thanks
ksrHi Sridhar ,
Refer Table EKKN for PO and SO Linkage.
Table EBKN for PR and SO Linkage.
Regards
Ramesh Ch -
Uploading sales text and Purchase order text for material master
Hi,
I have created, material master with LSMW byt not updated SALES TEXT and Purchase order text with LSMW now i want to uplaod the sales and po text for material master can you give some link or ref. code to upload the text i have near 1000 items for which i want to uplaod text when i have done the recording with SHDB i have not found filed in recording.
regards,
zafarHi,
I have made the code in se38
as below but still it is not working
REPORT ZTEST_TEXT.
data: headerl like thead occurs 0 with header line.
data itab3 like tline occurs 0 with header line.
headerl-tdobject = 'MATERIAL'.
headerl-tdname = '00000000000LSMW123'. "(Material : 000000000300000560, Sorg : 0001, Dist channel: 01)
headerl-tdid = 'BEST'.
headerl-tdspras = 'E'.
append headerl.
move '*' to itab3-tdformat.
move 'Testing PO text' to itab3-tdline.
append itab3.
call function 'SAVE_TEXT'
exporting
header = headerl
insert = ' '
savemode_direct = ' '
tables
lines = itab3
exceptions
id = 1
language = 2
name = 3
object = 4
others = 5.
IF SY-SUBRC = 0.
CALL FUNCTION 'COMMIT_TEXT'
EXPORTING
OBJECT = headerl-tdobject
NAME = headerl-tdname.
ENDIF.
break-point.
regards,
zafar -
How to download material sales text and purchase order text information
Here is situation:
goto MM03 transaction,
Take any material -- and select below views
1. sales text
2. purchase order text
i have to write the download program with the sales text and purchasing text information of all the materials.
could you pls tell me in which table I will get all the above sales text and purchase order text infrmation.
I think it will store in standard text. I checked STXH table also for getting information text object, text id, text name, language, etc.
If anybody knows .. please share.
Thanks in advance.
Regards
RaghuDeclare internal tables as follows: - An example
TYPES: BEGIN OF TY_PO_LINES,
INCLUDE STRUCTURE TLINE.
END OF TY_PO_LINES,
TY_PO_LINES_T TYPE STANDARD TABLE OF TY_PO_LINES.
TYPES: BEGIN OF TY_PO_TEXT,
TDOBJECT TYPE TDOBJECT
TDNAME TYPE TDOBNAME,
TDID TYPE TDID,
SPRAS TYPE SPRAS,
TDLINES TYPE TY_PO_LINES OCCURS 0,
END OF TY_PO_TEXT,
PO_TEXT_T TYPE STANDARD TABLE OF TY_PO_TEXT.
DATA: PO_TEXT TYPE TY_PO_TEXT_T
PO text:
Looping at your internal table which consists of PO number,
SELECT TDID TDSPRAS FROM STXH INTO A INTERNAL TABLE say PO_TEXT
TDOBJECT = EKKO "PO Header Text
TDNAME = PO NUMBER
SELECT TDID TDSPRAS FROM STXH INTO A INTERNAL TABLE say PO_TEXT
TDOBJECT = EKPO "PO line item text
TDNAME = PO NUMBER
ENDLOOP
Looping at PO_TEXT
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = PO_TEXT-TDID
LANGUAGE = PO_TEXT-TDSPRAS
NAME = PO_TEXT-TDNAME
OBJECT = PO_TEXT-TDOBJECT
TABLES
LINES = PO_TEXT-TDLINES
ENDLOOP
Follow the same above logic for material with suitable TDID you need to extract
Hope this helps,
SKJ -
Relationship between a Sales Order and Purchase Order
Dear All,
Can we create a relationship between a Sales Order and Purchase Order.? If yes, then how can we do that.
or how can we relate supply and demand..
Please update...
many thanks in advance...It's easy
refere to my blog for complete Query between
OM - Req and POs.
http://eoracleapps.blogspot.com/2009/04/oracle-order-to-cash-queries.html -
hi gurus,
I want to cancel order and purchase order.i am doing Third party returns process.So where can i can cancle these both any transaction code exits ..
sureshDear Suresh,
you have to set the deletion indicator into the purchase order first (transaction ME22N). After this you can reject the sales order item (transaction VA02), then the purchase requisition will get the deletion indicator automatically. If you have already the purchase order created then you cannot delete the sales order item anymore. You can only reject it if the purchase order contains the deletion indicator. The process is described in detail in the note 549972.
I hope, this info helps you a little bit further.
Kind regards,
Akmal Vakhidov
Development Support SD, SAP, Walldorf/Germany -
How to bifurcate production order and purchase order
hi all,
is it possible to bifurcate all open production order and purchase order quantity of items.
ex:i have one item like ffp001 it is showing 100 order quantity.but i want only open purchase quantity.i checked (item master data-->righ click--->Avail to promise) its showing open production and purchase quantity.so i need only open purchase quantity.
Plz tell me the process of Bifurcation of open orders.
thanks&Regards,
P.PratapHi,
By default there is no option , as a workaround you can use below method,
Create 2 warehouse , for example Purchase , Production
When ever you create purchase order use "Purchase" warehouse, Use production warehouse in production
In the "Available to Promise" Report you have warehouse filter option.
Using this filter you achieve can achieve your requirement.
OR
Right click "Filter Table"
Document -> Start with-> PO
Now you can see only PO
Refer below image -
Differemce between PROCESS ORDER,PLANNED ORDER AND PURCHASE ORDER??
what is th edifference between PROCESS ORDER,PLANNED ORDER AND PURCHASE ORDER ??? can any one explain with some examples?
n.bhardwaj
[email protected]Process Order:
Process order / Production order are activities within a business, where the production planning team team creates to absorb costs / evaluate costs / and check against planned figures. There would integration between MM/FI/PP to create such orders and process.
Planned Order:
A request created in the planning run for a plant to trigger the procurement of a plant material for a certain quantity for a specific date.
Purchase Order:
A request or instruction from a purchasing organization to a vendor (external supplier) or a plant to deliver a quantity of material or to perform services at a certain point in time.
Regards
AK -
Need help to find out link between process order and purchase order.
Hi All,
Need help to find out link between process order and purchase order.
We have purchase order, we can find out associated process order in MD09 (No Purchase Requisition found in Purchase order). When I tired to replicate this scenario with same material in system but not able to do.
Please suggest me what needs to check to get purchase order link to process order.. (this is not subcontracting )
Edited by: SAP PQ on Sep 26, 2011 5:24 PM
Thanks,
SAP PQ
Edited by: SAP PQ on Sep 26, 2011 5:24 PMMD09 is pegging. In SAP pegging is dynamic, meaning that there's no fixed link between purchase order and process order in your case.
This is why you did not get the same result when you tried again later.
Such a link can exist only if you do direct procurement for the order. -
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 -
Add customer fields in Shopping cart and purchase order
Hi,
I have to add fields(moder of transport, country origin, country destination and more) in Shopping cart and purchase order in SRM system and remotle i have to update the same data in R/3 System.
could you please guide how to add the fields in screen.
regards
ShakeerHi
We have done this type of requirement several times in our previous SRM Implementations.
<b>You need to create an Append Structure in the Standard Structure to create the custom fields in your case.</b>
<u>Refer this link below for details.</u>
http://help.sap.com/saphelp_47x200/helpdata/en/cf/21eb61446011d189700000e8322d00/frameset.htm
<b>Define the fields of the append structure. You can proceed as when creating a normal structure with two restrictions (see Creating Structures).
The fields of an append structure must lie in the customer namespace, that is the field names must begin with ZZ or YY. This prevents conflicts with fields inserted in the table by SAP.</b>
http://help.sap.com/saphelp_srm50/helpdata/en/5b/c9df3b6ac34b44e10000000a114084/frameset.htm
http://help.sap.com/saphelp_srm50/helpdata/en/28/857a1867b52e4f8472c5d49209a675/frameset.htm
<u>BBP_CUF_BADI_2 BADI will be used to control the properties (hide/unhide, input/output enable or disable) for those customer fields you created in the above append structures.
BBP_DOC_CHANGE_BADI for defaulting or modifying the customer field contents, incase required.
BBP_DOC_CHECK_BADI for issuing customer messages for the customer field contents (incase data is entered incorrectly) , incase required.</u>
Let me know incase you face any issues.
Regards
- Atul -
Learner question on sales order and purchase order
dear SDN,
I am a bit confuse about PO and Sales Order.
My understanding is a Sales order is a contract from customer to sales organization.
But a PO is also something like that am i right?
I learnt that to create a Sales order you need the customer number and PO number.
So, am i right to say that a Sales order is created by the sales organization after receiving the PO raised and issue by the customer?
So they are basically the same thing but created by different parties?
Is my understanding correct?
Best regards
MZIn Other words,
Lets consider we as a vendor to our customer.
our customer will place an order with us, requiring some materials and for his reference within his company he will refer a number which is called as purchase order. ( this PO number will be a reference for our activities like payment request etc. with our customer).
the Sales order is a copy of our internal tracking information, for the requirement raised by our customer. so with in our company we will refer this SO number while if we need to communicate something to the customer we will refer with his PO number as he may not be aware of our internal numbering system.
This should not be confused with the Sales Order & the Purchase Order within our SAP system.
Sales Order - Relation with the customer & company. (outgoing materials for a company normally)
Purchase Order - Relation between vendor & company ( incoming materials for a company normally).
Rgds
Ilango -
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
Maybe you are looking for
-
Open iviews in new window from detailed navigation context menu function
hello, when we click in the detail navigation menu and in the context menu (because many of ours users are used to right click to open a link in a new window on the internet) on the functionnality "open in new window", the start page is always displa
-
Hi experts, my problem in the alv grid is when i subtract the amount its coming diffrent. like 221,397,000 - 1,000 = 221,396,000 but here its coming it as 22,139,699,000. as its subtracting by (dot) .1000 . so wat might b the problem & hw
-
I can not even get onto Verizon Chat to obtain help. We are out of service due to storms and would like an ETA of services being restored. The closest city would be Chico
-
Open the new jsp page in new browser
Hi All, I have the requirement to open the new jsp page in the new browser when will we click on the link in my parent page.Is it possible with golink?If yes please give me an example otherwise please suggest me how to do this. I'm using jdev 11.1.1.
-
How to link layers in After Effect by script?
Hi! Is it possible to link one layer to another in After Effect by script? I would build the custom effect with parameter like "Gradient Wipe" have: Gradient Layer. The idea is: this connection is independent from the layer number. That mean any laye