Order should be copied with reference to other order
Hi Friends,
We have two order types zext and zexm. Zext should be always created with reference to zexm. we done this through copy controls.Both are sales orders.Now our requirement is
suppose we done a sales order 100001000 of type zexm. untill it is delivery done ie pgi has been done zext is not allowed to be copied from zexm. so please tell me how to do this.
Thank you so much for all the replies.
Hello,
Yes.... this can'e be achieved through any config setting, but can be achieved through the cupying requirements. In the copy control of sales documents to sales documents you need to maintian a requirement for the same. Talk to your ABAP consultant with a detailed requirement, he may be able to help you.
Prase
Similar Messages
-
BAPI SALES ORDER & Copy with reference
Hello,
I'm creating sales order copied with reference to an invoice. My problem is that the data item is empty. When I create the sales order manually and use the option 'Create with reference' and choose an invoice, the sales order is created with all data item. I don't know how I can get to copy the data item from the invoice in the new sales order. The code that I'm using is the following:
DATA: order_header_in LIKE bapisdhd1,
order_partners LIKE bapiparnr OCCURS 0 WITH HEADER LINE,
order_text LIKE bapisdtext OCCURS 0 WITH HEADER LINE,
order_header_inx LIKE bapisdhd1x,
order_item_in LIKE bapisditm OCCURS 0 WITH HEADER LINE,
order_schedules_in LIKE bapischdl OCCURS 0 WITH HEADER LINE,
order_conditions_in LIKE bapicond OCCURS 0 WITH HEADER LINE,
extensionin LIKE bapiparex OCCURS 0 WITH HEADER LINE,
partneraddresses LIKE bapiaddr1 OCCURS 0 WITH HEADER LINE,
order_cfgs_ref like BAPICUCFG occurs 0 with header line.
DATA: salesdocument LIKE bapivbeln-vbeln.
DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
order_header_in-doc_type = 'ZA09'.
order_header_in-sales_org = '1700'.
order_header_in-distr_chan = '01'.
order_header_in-division = '01'.
order_header_in-BILL_DATE = '20060701'.
order_header_in-ref_doc = '0900000019'.
order_header_in-refdoc_cat = 'M'.
*order_header_in-REF_DOC_L_LONG = '0900000019'.
order_header_in-purch_no_c ='prueba'.
*order_header_in-ord_reason = '003'.
*order_header_in-pmnttrms = '0002'.
*order_header_in-sales_off = '2800'.
order_header_in-ref_doc_l = 'FACTURA ES'.
*order_header_in-fix_val_dy = '20060701'.
*order_header_in-currency = 'USD'.
*order_header_in-exchg_rate = '1.2'.
order_partners-partn_role = 'AG'.
order_partners-partn_numb = '0000000001'.
order_partners-langu = 'EN'.
order_partners-name = 'El corte aleman'.
order_partners-country = 'ES'.
APPEND order_partners.
order_partners-partn_role = 'RE'.
order_partners-partn_numb = 'ARR000'.
order_partners-addr_link = '0000030044'.
APPEND order_partners.
CALL FUNCTION 'ADDR_GET_COMPLETE_ALL_TYPES'
EXPORTING
addrnumber = order_partners-addr_link
PERSNUMBER =
address_object_type = '1'
IV_CURRENT_COMM_DATA = 'X'
IMPORTING
ADDR1_COMPLETE =
ADDR2_COMPLETE =
ADDR3_COMPLETE =
ADDR1_COMPLETE_BAPI = partneraddresses
ADDR2_COMPLETE_BAPI =
ADDR3_COMPLETE_BAPI =
EXCEPTIONS
PARAMETER_ERROR = 1
ADDRESS_NOT_EXIST = 2
PERSON_NOT_EXIST = 3
INTERNAL_ERROR = 4
OTHERS = 5
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
data: vl_texto(40) value 'NUEVOOOOO'.
partneraddresses-name = vl_texto. clear vl_texto.
partneraddresses-name_2 = vl_texto.
partneraddresses-name_3 = vl_texto.
partneraddresses-name_4 = vl_texto.
partneraddresses-langu = 'E'.
APPEND partneraddresses.
DATA: vl_cantidad LIKE bapisditm-target_qty.
vl_cantidad = 1.
order_item_in-itm_number = 10.
order_item_in-material = 'HONORARIOS'.
order_item_in-ref_doc = '0900000019'.
order_item_in-ref_doc_it = 10.
order_item_in-ref_doc_ca = 'M'.
APPEND order_item_in.
order_schedules_in-itm_number = 10.
order_schedules_in-req_qty = vl_cantidad.
APPEND order_schedules_in.
order_text-text_id = 'Z001'.
order_text-ITM_NUMBER = ''.
order_text-langu = 'EN'.
order_text-text_line = 'Hola, CARACOLAcola'.
APPEND order_text.
order_text-text_id = 'Z001'.
order_text-langu = 'EN'.
order_text-text_line = 'Adios caracol'.
APPEND order_text.
order_text-itm_number = '000010'.
order_text-text_id = '0001'.
order_text-langu = 'EN'.
order_text-text_line = 'Hola, POSICIÓN'.
APPEND order_text.
extensionin-structure = 'BAPE_VBAK'.
extensionin-valuepart1 = ' BCL 7'.
APPEND extensionin.
order_cfgs_ref-posex = '10'.
order_cfgs_ref-config_id = '10'.
order_cfgs_ref-root_id = '00000001'.
append order_cfgs_ref.
CALL FUNCTION 'ZBAPI_SALESORDER_CREATEFROMDT2'
EXPORTING
SALESDOCUMENTIN = salesdocument
order_header_in = order_header_in
ORDER_HEADER_INX = order_header_inx
SENDER =
BINARY_RELATIONSHIPTYPE =
INT_NUMBER_ASSIGNMENT =
BEHAVE_WHEN_ERROR =
LOGIC_SWITCH =
TESTRUN =
CONVERT = ' '
IMPORTING
salesdocument = salesdocument
TABLES
return = return
order_items_in = order_item_in
ORDER_ITEMS_INX =
order_partners = order_partners
order_schedules_in = order_schedules_in
ORDER_SCHEDULES_INX =
order_conditions_in = order_conditions_in
ORDER_CONDITIONS_INX =
ORDER_CFGS_REF = order_cfgs_ref
ORDER_CFGS_INST =
ORDER_CFGS_PART_OF =
ORDER_CFGS_VALUE =
ORDER_CFGS_BLOB =
ORDER_CFGS_VK =
ORDER_CFGS_REFINST =
ORDER_CCARD =
order_text = order_text
ORDER_KEYS =
extensionin = extensionin
partneraddresses = partneraddresses
PERFORM report TABLES return.
*DATA: salesdocument LIKE bapivbeln-vbeln.
*DATA: return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
*refresh return.
*CALL FUNCTION 'BAPI_SALESDOCUMENT_COPY'
EXPORTING
salesdocument = '0400000191'
documenttype = 'ZA04'
TESTRUN = ' '
IMPORTING
SALESDOCUMENT_EX = salesdocument
TABLES
RETURN = return
*PERFORM report TABLES return.
*write: / salesdocument.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
*& Form report
text
-->P_MENSAJE text
FORM report TABLES p_mensaje STRUCTURE bapiret2.
DATA: vl_mensaje TYPE string.
LOOP AT return.
CLEAR vl_mensaje.
MESSAGE ID return-id
TYPE return-type
NUMBER return-number
INTO vl_mensaje
WITH return-message_v1
return-message_v2
return-message_v3
return-message_v4.
WRITE: / vl_mensaje.
ENDLOOP.
ENDFORM. " reportHi Manuel,
There are some function modules which is there to copy the order details. I am not sure about the function module name. But you can search in SE37. But bapi for creating the sales order does not have the functionality of copying the data from one document to another document.
You can try using this function module.
BAPI_SALESDOCUMENT_COPY
Data will be copied based on the copy control routines that is set between the two document types.
Thanks,
Arun -
Order creation with reference to other order in B2B shop
Hi Experts,
In our project we have a B2B scenario in internet sales where we have to create a order (Item category TANN) with reference to other existing order (item category TAN) . How can we do that?
We have both transaction types in transaction group which was assigned to the webshop.
Thanks in advanceHi Rao,
You are right. CRM 5.0 ISA allows multiple transaction types per webshop. But there is no followup transaction cpacity is build into the webshop. One alternate way to achieve this functionality is to create an order template using one transaction type and then use the second order type to create a followup from the template. Other alternate approach is to quotation to order follow-up process, where you choose one transaction type as quotation and then create the order using a followup for the quotation.
<b>Do not forget to reward if it helps,</b>
Regards,
Paul Kondaveeti -
Req Deliv. Date required on order create VA01 Copy with Reference to Quote
When creating an order with reference to a quote, the screen allows Req Deliv Date entry. I would like to make this field mandatory on the window 'Create with Reference'. Program is SAPLV45C and the screen is not certain: could be 0100, 0301, 0302, 0303, 0900.
Have been looking at maintenance via SE51, but not sure if any of the element characteristics translate into 'required' so user is unable to click "Copy" if the date is without a value.
Thank you.It is possible by changing the SAP standard.
You can change the special attirbutes (Tick the checkbox in Req. field) in elements list of each screen which you have mentioned through SE51 transcation
Regards,
Udayasankar Rajagopalan -
Error while copy with reference of quotation to Sales Order
Dear All
I am creating the sales order with reference to quotation . while , doing so , I get an error of
Customer not maintained in Distribution channel - 'D1' .
The Quotaion is having following structure
Sales Organisation -- AAAA
Distribution Channel - S7
Division - D3
But while copy the error erupts notifying to create the customer master for division 'D1' . If created of division D1 then the sales order is created with reference of quotation.
Kindly guide.
AVSPerhaps the configuration settings have been changed (to make D1 the reference division for D3 for master data ) since the quotation was originally created.
-
Copy with reference to Customer Master
Hi experts,
If the user creates customer master(XD01) with reference to another customer master then system should not copy all the fields say Name and contact number. How can I restrict this in SAP.
Can any body helps???
Thanks!!!
PoornaHi.
Normally when we copy existing customer to a new customer we use XD01 with reference and we don't select the items we don't want to copy or we delete the value when we are copying.
But if you want user to have a feature through which when ever they create a new customer using the existing customer they should not copy the recon a/c for Ex, than you have to create a Z transaction by copying the orignial XD01 and have your restrictions coded there..
Regards -
Hi,
When I create a sales order with reference to a Quote, the pricing condition types are duplicating. Same is happening when subsequent documents like Billing, credit memo request and credit memo are created. Particularly, the condition types are doubled/tripled/.... in the subsequent documents. Because of this, pricing net value is calculated wrong. For example, freight charges getting added twice. I searched the forum and found similar issue was discussed at Condition types - Doubling UP raised by forum member Sridhar Vijjhalwar, however there is no solution added in it.
Has any other member came across this issue and resolved?
I have checked the access sequence and exclusive indicators are checked. Copy controls are also checked, looked good and I tested by adding copying type D/G. Checked OSS note also and found one OSS note 1459807 - Invoice has missing/incorrect conditions when created from a sales order.
but it is not solving the problem either. Issue also elevated to SAP for their investigation. Our system is SAP ECC 6.0 - EHP6.
Quote Pricing:
Sales order Pricing:
I appreciate any pointers to resolve the issue.
Regards,what was the scenario, and how did you replicate?
It is a configuration for a new project (France country), however we found that the same issue popping up for existing business processes also. As for replicating, we just tried the same procedures, the issue is found in subsequent documents.
If you have observed one notable thing is - all the condition types which duplicated were Z Conditions, and the standard conditions were never duplicated at least in my case.
In our case even standard condition types like MWST, SKTO, GRWR, VPRS also shows duplicating.
if you can throw about the business process?
As you have mentioned order created with reference to quote was only the straight forward scenario?
I tested other scenario also, like creating a sales order, then delivery and then billing. In this case in billing document, the condition types are duplicating. If I create a credit memo request against the billing document, then it further duplicating.
I am not sure what is causing this. I initially thought it may be copy control settings pertaining to the new project, however other business documents also has the same issue. Other business are using different document types.
Thanks for your follow-up.
Regards, -
Does anyone know why this happens or where it is controlled? When I create a sales order using the Create with Reference button on the Initial Screen, my order uses the pricing procedure of the copied document. But when I create a sales order using the Create with Reference found in the Sales Document drop down menu on the order Overview Header screen, my order uses the pricing procedure assigned to the new order type. Is there somewhere I can make them both work the same way? Big points to anyone who knows this answer. Laurie
HI Laurie,
The explanation is as below
first when you copy from the reference order or quotation, the pricing is also copies from the reference document.
the settinngs that determine this are set in VTAA t code and the pricing option at item level there.
when you add a document from the second option of header and then reference, the system has already determined the
pricing procedure and it only adds the incremental items to the exisitng sales order
for the scenario described , i assume that you have different pricing procedures set for both the documents
hope this helps
Thanks
akasha -
Numbers hangs on documents with references to other sheets
When I made the first edit (only) on a Numbers document that has references to other sheets in that document, Numbers hangs for about 2 minutes. (This problem doesn't happen on documents without references.) This has been true for some time and I hoped the newest Numbers version would fix it. But, alas. (Numbers 2.1)
If you change the formula to have a reference to Sheet1, column B will act like column D.I saw an answer that says the sort is practically a
copy.
"Sorting formulas is essentially the same as copying formulas. If a formula goes from row 2 to row 4 and that would be the same as if the formula were copied from row 2 to row 4 then there is not problem with the formulas. if copying the formulas would result
in different results the sort would not work as desired."
Although, when investigating this solution manually, a problem manifested in Column E. But I think as far as the actual Excel behavior, this (copy) is a better explanation than the cell being cut.
I speculate that the programers made Excel short-circuit (i.e. not move) when the formula is specified as a local cell.
I don't see an answer, but
this documentation alludes to differing behavior based on formula results:
"Check to see if the values returned by a formula have changed If the data that you have sorted contains one or more formulas, the return values of those formulas might change when the worksheet is recalculated. In
this case, make sure that you reapply the sort to get up-to-date results."
It looks like you're keen to the behavior, so now you should be more proficient to use the types of references for differing situations. -
Creation of new material with reference to other material
Hi All,
I have requirement where i have to create new selling unit material with reference to the given material.
Now, can any buddy suggest which FM or BADI i have to use to read BOM and ROUTING info of reference material and same to create BOM and ROUTING for new material.
Doing this with BDC after reading data directally from tables is one option, But i am looking for any BADI or Fm which will serve the purpose.
Thanks in Advance,
RahulHi,
... but if you prefer FM, then you can use BAPI_MATERIAL_MAINTAINDATA_RT or BAPI_MATERIAL_SAVEDATA, depending if you are using Retail or not. BDC is usually not possible for all views - which you would need for complete creation.
Regards,
Christian -
PI 7.1: Importing a wsdl file with references to other xsd files
Hi Experts,
I am trying to import a wsdl file that has got references to other xsd files. When i do this with SOAP UI, i can get the full message structure for the other xsd files. But when i try to import the same wsdl in the ESR, i only get to the messages and not the referenced xsd.
Any ideas!
Thank you in Advance,
DannyHi,
First convert your main WSDL in to XSD,use Stylus or any XML editors to convert the same,thecn check the genarated XSD refering sun XSD tsrutures.then zip the all xsd in to one File and import in PI,then select you main xsd in the folder,and select root element.
Normally withour converting in to XSD only if you group al import it in to PI,it wil work.
or
if you have some good knowledge about XSD then convert WSDL in to XSD and remove referece tags and include XSD content of sub xsds in to main XSD,and validate that one,and imnprt one XSD.
Regards,
Raj -
Sub-Asset creation with reference to other asset
Hello
Due to company code merger, we are doing inter-company asset transfers.
For that we are first creating new assets in transferee company code with reference to existing assets in transferor company code via AS01.
Currently I am facing issue that the newly created asset in the transferee company code is always created with asset sub-number 0 even if the transferor asset is having sub number. This is because system automatically generates asset no and sub number as zero
Any idea how can we create a new asset with exactly same asset sub-number as transferor companyu2019s asset data.
If you have any pointers in this context, request you to share the same at the earliest.
Thanking you in anticipation
ArtiHello Everybody
I could manage to resolve it by changing OAOA config
Regards,
Arti -
Craete Sales Order with reference to Schedule Agreement
Dear All,
I want to create a sales order with reference to a schedule agreement.
Purpose:
In case of quantity shortages in delivery of the schedule agreement line item (Doc type - ZDS), customer want to send a replacement for the balance.
This replacement is send using a new sales order (Doc type - ZREP). So the requirement is to refer the schedule agreement to keep the link between initial schedule agreement & the replacement order.
I have maintain the relevant copy controls as well. (ZDS to ZREP)
I have 2 type of item categories used in the schedule agreement (ZDS).
LPN - this is for the normal delivery, billing. (Billing relevance - A in the Item category)
ZPN - this is just to do the manufacturing. No delivery billing is done using this type. (Have Billing Relevance -BLANK)
So when I try to create a Sales order w.r.t. Schedule agreement, only lines with ZPN shows me in the copying dialog.
But I want to copy lines with LPN, not lines with ZPN.
Any idea how to solve this?
Thanks a lot !Thanks you very much for all replies !!!
Dear Raj/Ankur,
This replacement is due to quality issue in the initial sent material.
So I'm sending the same material I sent earlier from the schedule agreement LI. Only difference is to capture the replacement, I use sales order type ZREP (VA01) other than schedule agreement.
To give you more info on this,
They use Item category ZPN to produce semi-finished goods & keep it ready for that customer. Once customer asked it with specific color, they do color it & deliver & bill. To do delivery & billing they use Item category LPN.
Therefore each Scheduel agreement, they have one line with ZPN - only to production.
one or more LI's with LPN - to do subsequent delivery & billing for that customer.
So replacement should be created with reference to the LI with LPN. Because my initial delivery happened from that LI.
Everything is in place as you have mentioned.
I have maintained copy controls from ZDS to ZREP
I have copy controls from Item Category LPN to my normal order Item category.
I have schedule line copy control as well.
Am I missing anything??
And there is no issue with my Item category group & material master Item category group as well. -
VA01: Sales order with reference to order
Hello,
I'm trying to create sales order with reference to other sales order with tcode VA01.
Original sales order has 2 items with same MATNR and MATKL
Example:
000001 MAT1 LLL
000002 MAT1 LLL
When we create a sales order with reference the system throw the following message:
Item 000001 exists already; the entry will be ignored (V1338).
Why dont the system copy the exact number of items although they are iqual?
Is there any option in configuration to control this behavior?
I thank you in advance.
Mario.Hello Jignesh,
I've tried to perform the changes as you said, but the system trows a short dump.
PERFORM_PARAMETER_MISSING, excepction: CX_SY_DYN_CALL_PARAM_MISSING
A PERFORM was used to call the routine "BEDINGUNG_PRUEFEN_303" of the program
"SAPLV45C".
The current call contains 0 actual parameter(s),
but the routine "BEDINGUNG_PRUEFEN_303" expects 1 parameters.
I image that's because we are giving a position routine at header level.
Do you have aby other sugestion: I tried to use the same routine that i had (001) and Mark Complete Reference but i didnt worked.
I thank you in advance.
Mário. -
Sales order with reference to Contract and another sales order
Hi Gurus,
I would like your suggestions on one of the business requirement i have.
We are creating a new EDI interface with few of our customers to create sales orders. While creating sales orders, it should validate if there are any open contracts available and if yes, then the sales order should be created with reference to it. so far good but there are chances that sold to party on the contract could be different from sold to party on the EDI order sent by customer (customer can have more than one sold to party on their system). IDOC's are failing in this scenario and not able to create a sales order since sold to partys are not matching. I need your help.
Can we do some thing in customer master to handle this scenario?
or
Create a new sales doc type (YEDI or some thing) and create sales order from IDOC without reference to contract. Business will look into all YEDI order and create the actual sales order out of it but the challenge here is i cannot refer contract to the actual sales order or YEDI order.
Is it possible to create sales order with ref to a contract and another sales order?
Please help
Thanks
VenkatHello Venkat
What is the linkage between sold to party of contract and sold to party of order..If customer has more than one sold to party.
Why don't you use customer hierarchy....link all sold to party of a customer to hierarchy node.for example...you create a hierarchy node 1000 and assigned customers 2000 and 3000 to it.you have contract for 2000..so when you create a sales order for 3000 check in knvh table it's customer hierarchy 1000 and get all sold tos assigned to hierarchy...which is 2000....check if contract exist for sold to's..If yes then create order with reference.
Let us know if it works for you.
Thanks
Amit Gupta
Maybe you are looking for
-
Requisition- Purchase order-receipts-invoices
Hi, We are trying to create a report..where we want to track activity right from requisition level..the problem we are facing is ..we want to display requisitions which do not have a purchase order created and display purchase order which might not h
-
Contact Form not working using Godaddy's gdform.php
I am using Godaddy's gdform.php for the contact page, but for some reason, upon submit it sends to 404 page. Also the site will not open in IE. Weird, it works well in Firefox, Chrome or anything else. Can someone please help me? Thank you, http://ww
-
Better service on the dock?
This isn't so much a problem, I just was wondering why? I live in a high rise building, right next to another high rise. I don't get great service in my apartment, usualy 1 bar at the most. When I put my phone on the dock, however, my service shoots
-
Problem: who has the focus when a comp lost the focus
I've a JPanel with textfields. When I loose the focus of the textfield I validate the input. So far so good. When I click outside the panel the validation shouldn't be made. But I can't add Listeners to all the other panels, because it should be dyna
-
Recently edited a short to 24min.in FCPX.It is 1920x1080 24fps.It is large and I want to send on dvd for film festival submissions.How should I compress in Compressor to have the best quality and get it all on a dvd.I realize I won't get HD,but I nee