How to link Material Document with Sales Order
Hi,
When we receive stock through MFHU transaction it becomes sales order stock. The movement type used to receive these into stock would be 131 for MTS & 131 E for MTO. My question is how link Material Document (MKPF/MSEG) with Sales Order because later using that sales order and line item I want to get the planned order number in SAP from PLAF table.
Thanks & Regards,
Balaji Viswanath.
Hi,
To refer to Sales order you have to go to Purchase order .
Step1 -From MSEG table you can get the EBELN ( PO) EBELP
BWART (Movement Type).
Step2-Now go to EKPO and retrieve all the PO EBELN, LABNR corrresponding
to the PO found the MSEG table.
Step3-Now go to the VBAK for Sales order Header record and compare the field
VBELN = EKPO-LABNR+0(10) and to rerive Sales order item go to VBAP and
copmpare the fields VBELN = EKPO-LABNR+0(10) and
POSNR = EKPO-LABNR+10(5).
Thanks
PK
Similar Messages
-
How to link Down Payment with Sales Order
Hello Experts,
How to link a down payment with sales order.
Regards,
ShazadHello Shazad,
You may check these threads first:
Down Payment Invoice/Request
Re: Down Payment Invoices
Thanks,
Gordon -
How to block material issuing after sales order invoiced?
As the subject mentioned, could be a possible to block material issuing since sales order invoiced, or
in the another words, after the sales order completed?
Or could be a possible to set sales order as closed, and then material issuing related with this sales order are
forbidden?
Thanks in advanced,
Zhou ZhenDear Friend
A sales order is created say order no 10000 and for material X say 10 units this order is delivered and PGIed and invoiced and the payment too has come
That means the order 10000 is closed
Case 1
Now an user goes to VA02 t code and put this order no 10000 and changes the material X qty from 10 to 12 and opens up the whole order once again
This can be controlled by using t code OVAH choosing message class the V4 message no 083 and change from warning to error
Case2
But to avoid the user to add material Y to the existing order say 10000 then i think we have to go for user exit
Because the system doesnot even throw a warning message too in case 2 (according to my knowledge) and allows another line item to be added in the same order
But you can test it if it throws any warning message we can try to convert that error
But in case 2 it is not happening(even warning is not there)
Regards
Raja -
How to change material discription at sales order item level ?
Dear Gurus,
We have some requirement need to change material description at sales order item level , but in system it is in disable mode how to change that into change mode in sales order item level?
Thanks in advance
Regards
VenkatNot possible in SAP Standard.
Instead why not create a Customer Material Info Record in T-Code - VD51?
Alternatively it the requirement to change the Description is only for few Sales Order then create a Text ID & Enter the Description in Text Feild. Then in Smartform program wrie a code which will check for Material Description in the Text first & if not found then take from normal material Description in Sales Order.
But Customer Material info Record seems to be the best solution.
Hope this helps,
Thanks,
Jignesh Mehta -
Company Code Validation of Financial Document with Sales order during Sales
Dears,
We are working on ECC 6.0 version and our requirement is to restrict saving the Sales order if the Company codes in Sales order and Financial document (L/C) when assigning Financial Document in Sales order are different.
With the configuration settings in Foreign Trade, it is possible to restrict this but the system only gives information message if the company codes are different but save the sales order.
Is it possible to restrict the sales order from saving if the Comapany codes are different through SAP standard configuration or do we need to go for any development only.
Looking forward to your suggestions.
Elliah.hi Elliah,
for this task, there are good Userexits. I don't know any customizing for this.
I would do it in the roule of the copying or in the Userexit while saving the invoice. But this is in your point of view ABAP developement.
Hans -
How to link VBREVK table with Sales document tables
Hi Experts,
I have requirement to generate license revenue information which requires tables like VBAK,VBAP.VEDA,VBREVE and VBREVK
Join condition used:
VBAK-sales document -VBAP-Sales document
VBAP-sales document-VEDA-Sales document
VBAP-sales document item-VEDA-sales document item
VBAP-sales document-VBREVE-Sales document
VBAP-sales document item-VBREVE-sales document item
till here i am able to generate correct records
But i have to join VBREVK table to any of the above tables
1.VBREVK is unable to join with VBREVE table
2.Getting duplicate records when joined with VEDA and VBAK
Please let me know correct join condition between VBREVK with any of the above tables to avoid duplicates.
Thank you in advance,
Regards,
narasimha.Hi Isha,
you can make use of Tcode SQVI .
there you can fine the table realtionship.
regards,
Pravin -
Link DMS document to Sales Order
Hello -
Currenlty, our Quality Department manually opens each applicable sales order and manually attaches a required document via the "Extras/Documents" path from within VA02 menu bar. It is extremely time consuming.
I want to know if it is possible to automatically attach a "linked document" to a sales order after it has been saved? I'd like to create/run a batch job that loops through these sales orders, and if applicable, attaches the "linked document". DMS is setup and working and the document that I need to attach is ready. I don't know where I need to put the record of this "link". I can see all of the "links" via CV03N (Object Links/Sales Document Item), but I don't know how they get there.
Any advice or link to documentation would be greatly appreciated.
Thanks,
BryanBenakaraj ES -
A few more questions with BAPI_DOCUMENT_CREATE2.
Here is the FM. Can you assist in helping me establish which parameters I need to provide?
Example:
Sales Order: 2142342 with one line item.
Document:
TYPE: ZQN (DRAW-DOKAR)
DOC: QZ6 (DRAW-DOKNR)
PART: 000 (DRAW-DOKTL)
VER: 00 (DRAW-DOKVR)
CALL FUNCTION 'BAPI_DOCUMENT_CREATE2'
EXPORTING
documentdata = ls_doc
HOSTNAME =
DOCBOMCHANGENUMBER =
DOCBOMVALIDFROM =
DOCBOMREVISIONLEVEL =
CAD_MODE = ' '
PF_FTP_DEST = ' '
PF_HTTP_DEST = ' '
IMPORTING
documenttype = lf_doctype
documentnumber = lf_docnumber
documentpart = lf_docpart
documentversion = lf_docversion
return = ls_return
TABLES
CHARACTERISTICVALUES =
CLASSALLOCATIONS =
DOCUMENTDESCRIPTIONS =
OBJECTLINKS = lt_drad
DOCUMENTSTRUCTURE =
DOCUMENTFILES =
LONGTEXTS =
COMPONENTS =
I see that there is an objectlinks table which I assume is used to create the link between the document and VA02/VA03. The underlying structure for the objectlinks table is BAPI_DOC_DRAD. I'm not clear on what values I need to add to this table when calling the BAPI_DOCUMENT_CREATE2. FM.??
Any advice on how to fill stucture BAPI_DOC_DRAD?
Also, I don't want to create any documents. The document already exists. I just want to establish a link. Can I do that without creating a document that already exists?
Thanks,
Bryan -
Link of contract with sales order
Does anyone know how to link sales order with warranty contract.i want the query or even table name will work.
Check the OKC_K_REL_OBJS table
-
How Variant Configuration data stored with Sales Order
Hi,
I have created Sales Order with Variant Material. I have entered different Characteristic for that materail. I want to make report for these characterisctics and its values, but I am not able to get how these data stored in the system against every sales order.
Please guide me for tables relationships and if there is any Function module to achieve same thing.
Regards
Bhavin ShahUse FM VC_I_GET_CONFIGURATION to read the configuration. Input is field vbap-cuobj.
Regards,
John. -
How to add material characteristics in sales order via BAPI?
Hi all!
I'm trying to use BAPI_SALESORDER_CREATEFROMDAT1 to create a sales order with one item that has some characteristics, but i can't seem to get it work. It creates the salesorder with the item but without characteristics data. Can somebody tell me what could be wrong?
Here's the code:
header-doc_type = 'TA'.
header-sales_org = '3000'.
header-distr_chan = '10'.
header-division = '00'.
items-itm_number = '000010'.
items-material = 'CP-12'.
items-req_qty = '1000'.
APPEND items.
partners-partn_role = 'AG'.
partners-partn_numb = '0000050000'.
APPEND partners.
c_ref-posex = '000010'.
c_ref-config_id = '000001'.
c_ref-root_id = '00000001'.
APPEND c_ref.
c_ins-config_id = '000001'.
c_ins-inst_id = '00000001'.
c_ins-obj_type = 'MARA'.
c_ins-obj_key = 'CP-12'.
c_ins-complete = 'T'.
c_ins-consistent = 'T'.
c_ins-quantity = '0'.
c_ins-quantity_unit = 'ST'.
c_ins-class_type = '300'.
APPEND c_ins.
c_val-config_id = '000001'.
c_val-inst_id = '00000001'.
c_val-charc = 'CP_12_ADD_ON'.
c_val-value = 'F'.
c_val-valcode = '1'.
APPEND c_val.
c_val-charc = 'CP_12_COLOUR'.
c_val-value = 'M'.
APPEND c_val.
c_val-charc = 'CP_12_MODEL'.
c_val-value = 'M'.
APPEND c_val.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT1'
EXPORTING
order_header_in = header
convert_parvw_auart = 'X'
IMPORTING
salesdocument = salesdoc
return = return
TABLES
order_items_in = items
order_partners = partners
order_cfgs_ref = c_ref
order_cfgs_inst = c_ins
order_cfgs_part_of = c_prt
order_cfgs_value = c_valBAPI_SALESORDER_CREATEFROMDAT1
"(obsolete from 4.6 version)
BAPI_SALESORDER_CREATEFROMDAT2
please see the version and change the BAPI
reward points if it is usefull ....
Girish -
How to actual material data in sales order
Hi,
i create an sales order (VA01) with 1 Material (say 300400). Now i can see, that some data (Gross Weight and Net Weight)
are not correct (empty).
Now i go in an new modus to MM02, change this fields and save this material.
Now i go back to the modus of sales order and will actual the data of 300400.
Is this possible? I have not find any way.
Thanks.
regards, DieterHi Dieter,
You will have to maintain the gross and net weight in MM02. Then create a new sale order so that it will reflect.
It will not reflect for the old sale order. Do revert if any doubts. -
SD-how to process material packing before sales order entry?
Hi,Guys,
If materials are packed before sales order is created, like:
materia A, 10 batches was put in one bag,
how to model it in R/3? Handling Unit Management can still be used?
Best regards,
CherieMaybe I should tell the scenario more clearly.
Following is the physical process in a High-tech company:
10 finished goods: A , were produced.Batch is 001.
In the plant, they are packed into one bag. And this bag has a packing lable number:100
now comes the sales order for one bag of material A. Stock worker go to the warehouse to get the packing number:100 to deliver this sales order.
This scenario is different from the standard one using HUM. Because the standard scenario packing the materials when doing order entry,but this one is before order entry. -
Link Material Document generated for material movement due to production
Hello Expert,
I am creating a zreport for Material Consumption during Production. I am assuming Confirmation entry in PP module as a base of this report and linking to Material Movement data in MM Module. But I am not able to link this data from tables.
Can you pls guide me how to link Material Document generated for material movement due to production confirmation entry and actual production confirmation entry.
Thanks
ShailendraHi Shilendra ,
You can create a report with the logic. That all the materials which are created due to backflushing confirmation are created with movement type 131 and the component material are consumed by movement type 261.So you can create the report with this logic.
Dont forget to award Points if it helps.
Lekhram -
How material transfers from sales order to service order
Hi All,
In case of sales order (Debit memo request or quotation) created from service order, material in service order is transferred to sales order via DIP profile.
but in case of,
service order created from sales order how the material flows from sales order to service order.
In customer service module.If Service Order gets created from Sales order, operations & components are transferred to Service order through Service Product assignment in Sales Order.
Service Product will be created in MM01 & this will be linked to Task list in OISD. By assigning this Service Product in Sales Order, Service order will be created automatically with the assigned Task list. -
How to check the analysis of material determination in sales order
hi,
We are trying to create a sale order with material determination. Material determination analysis is on. After switching this on while adding a new line item, in an existing sales order, we are able to do analysis as the system itself takes us to analysis screen. But once the document is saved, we need analysis to be done at material determination for the determined materials , something similar to pricing or account determination analysis.Please help
Regards,
Aparna.Hi,
If you drag the line item a little towards the right side, you will find a filed material entered. The one you see in the material filed on sales order over view screen is the one determined. You can as well double click and see the fields material entered and material determined.
Is there anything else you are expecting to see as part of analysis ?
Regards
Sadhu Kishore
Maybe you are looking for
-
How to make preceding reference mandatory
Hi gurus, could you please help in the following question. It's necessary to make impossible creation of operation (for example Sales order) without reference to a preceding document (another Sales order). There are fields in Definition of Item Categ
-
How to change the value in an Integer object?
Hi, Is it possible to change the value that is contained in an Integer object. I know Integer objects are immutable. So it might not be possible to chage to value in an integer object once its been initalized a value @ the time of construction. Also
-
In Contacts, I don't have any duplicates, but in iMessage contacts on iMac in Mountain Lion, the contacts it provides for a new message are all doubles. Why and how can I fix? I also notice that each contact says iCloud in it twice, but when I go to
-
Designing SSRS 2005 report using matrix
I have created a report using ssrs 2005 and matrix. i have "to company" column group and "from company" row group. i have filter for the report as "select currency type" - local currency (may be diff for diff companies) foreign currency (same for
-
In iOS7 it writes from its own
Sometimes my ipad mini which runs iOS 7.0.3 starts pressing random pieces of the screen from its own!