Sales Order and Purchase Order Linking
This functionality exists in the B1 client but is currently not available via the DI API. Please add this to the list of changes that should be completed with the product. Currently in the API you can base many documents on other documents but for some reason it does not allow you to base a purchase order on a sales order.
Hi,
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
Similar Messages
-
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 -
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 -
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 -
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. -
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 -
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 -
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 -
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 Sales Order and Purchase Order - MRP Pegging - Give Feedback
Oracle Apps Version - 11.5.10.2
Mfg - Discreate manufacturing module along with P2P and OTC..No Projects Module.
Soft Pegging enabled on Items..
Hi Guru,
we have created a SQL to link SO and PO using MRP_Full_Pegging Table,what are issues you see with this logic..would it always give me correct mapping between SO and PO
SELECT
mgr.inventory_item_id Item_ID,
mtl.segment1 Item,
ohll.order_number SO_Number,
--mr.disposition_id,
mr.compile_designator MRP_Plan,
--mipo.line_id,
--poll.line_location_id,
pohll.segment1 P0_Number,
mtl.description Item_Description
FROM
mrp_gross_requirements mgr,
MRP_SCHEDULE_DATES msd,
mtl_sales_orders mso,
oe_order_headers_all ohll,
mrp_recommendations mr,
mrp_item_purchase_orders mipo,
po_line_locations_all poll,
PO_HEADERS_ALL pohll,
mtl_system_items_b mtl
WHERE
msd.mps_transaction_id = mgr.DISPOSITION_ID
and msd.inventory_item_id = mgr.inventory_item_id
and mtl.inventory_item_id = mgr.inventory_item_id
and msd.source_sales_order_Id = mso.sales_order_id
and mso.segment1=ohll.order_number
and msd.organization_id = XXX -- pl use you inv org id
and mr.disposition_id=mipo.transaction_id
And mipo.line_id=poll.po_line_id
and poll.po_header_id = pohll.po_header_id
and mr.inventory_item_id = mtl.inventory_item_id
and mr.compile_designator like '%XXX%' -- pl use MRP plan name
and rownum <100 -- just to limit result set
Order By ohll.order_number desc;
Appreciate your feedback and inputs to make necessary corrections to make it accurate and complete.
thank you.I tried writing the query to find the supply and demand details in ASCP Planning.
In our scenario we created a sales order '5110416.AT PROJECT.ORDER ENTRY(6.1)' and launch the plan. It has created the plan order and after releasing it has created the internal requisition and then Internal sales order. But the supply sales order number is not populated in order_number column of msc_supplies.
Please help me if I am missing some thing. Just for your info I have run the plan again and then also its not updated. Below is the query which I have written. This is very critical for me. Please advice.
SELECT
MS.ORDER_NUMBER,MS.ORDER_TYPE,MS.ORDER_LINE_NUMBER,MD.SALES_ORDER_LINE_ID,MD.ORDER_NUMBER
FROM
MSC_SUPPLIES MS,
MSC_FULL_PEGGING MFP,
MSC_DEMANDS MD
WHERE 1=1
AND MS.TRANSACTION_ID=MFP.TRANSACTION_ID
AND MD.DEMAND_ID=MFP.DEMAND_ID
AND MD.ORDER_NUMBER='5110416.AT PROJECT.ORDER ENTRY(6.1)'
Thanks in advance.
Regards
RV
Maybe you are looking for
-
Specify initial page following mod_osso login for JSP application?
I'm developing a JSP application that is stand-alone from Portal, but that is protected via mod_osso. (What's the proper term for this - its sort of a Partner application, really an External application, but not registered w/ Portal at all...) Follow
-
Help, I am killing myself trying to do this and I need help ASAP
I need help with this program it has to act like a cash register. The user will input an items price and then their payment. It will tell you the change and then tell you what kinda of change to use, see example below: Use JOptionPane to take inputs
-
Picking up JAR files from JSP's
I have a web application with some JAR files that live under the WEB-INF/lib directory. My understanding of webservers (Tomcat, Weblogic, Dynamo, Orion, Resin) is that files under WEB-INF/lib will be picked up on the servlet CLASSPATH. Using iAS 6 SP
-
Trouble with Ipod Touch - synchronizing
Hello, i've some problems with my ipod touch. When it was given to me i synchronized it in a computer of a friend and she put all her musics on my ipod. Then i installed itunes on my personal computer and every time i try to synchronize (in the mean
-
I've successfully ported a Labview application onto a windows based tablet, but the biggest issue I'm facing is the size of the controls on the UI. Some, like buttons are no issue, but others, like numerical edit controls, are. I can make the font bi