Sales order with 2 different series

hello everyone,
can anyone help me out in my following query:
I have a sales order with 2 different series: Design and Marketing
i am creating a sales order with design series and sending it for approval and once approved i am adding it ,similarly  i iam creating sales order with marketing series.
Now is it possible  unless and until i don't add my sales order with design series, system don't allow me to add sales order with marketing series.
Regards,
Meghana

Hello
try It In   SP_transaction Notification
if @object_type = '112' and @transaction_type = N'A'
begin
IF EXISTS (select * from ODRF WHERE DocStatus = 'O' or ObjType = '17' OR Series in( Select Series from ODRF where DocEntry = @list_of_cols_val_tab_del) AND DOCENTRY = @list_of_cols_val_tab_del )
begin
set @error = 1
set @error_message = 'You Can create SO because another Document in pending'
end
end----
Edited by: Manvendra Singh Niranjan on May 7, 2011 7:29 PM

Similar Messages

  • Sales Order with item different division

    Hi,
    Is it possible to create a sale order with reference to contract with items which are referencing to different division?
    That means i have a sales order with header division as 01 but i have 2 item with division 01 and 02.
    Then to have the popup of the "open outline agreement" screen even if the contract division is different from the contract in the sales order?
    Thanks.

    Hi,
    Go to VoV8 for pop up message u select Outling agrement and select the required one for ur requirment
    On/off switch for messages about outline agreements
    Procedure
        Set an indicator here if you want to receive a message informing you of
        open contracts when you create a sales document. Depending on the
        indicator you select, a search is carried out for open contracts in the
        sales document at the header level for the customer or at item level
        using the material number.
    Use
        You can set the following indicators:
        o   No indicator: do not check
        o   A: check at header level
        o   B: check at item level
    If u give me ur mail id i'll send along with the screen shots.
    Regards,
    Murthy

  • Creating Sales Order with reference to Quotation from different Sales Area

    Hi,
    I would like to inform you that our customer (GE ENERGY OC) from Europe have a requirement where they want to create sales orders with reference to quotation that is from different sales area. Standard SAP functionality doesn't allow this feature, hence requesting your help to give me an update in this regard.
    Please treat this as urgent as they have to do business cutover where they are in the process of completing open sales orders.
    Thanks
    Ashfaq
    Mobile: +91-98857-07558
    E-Mail: [email protected]

    Hi RadhaKrishna,
    In standard system it is not possible to create sales order from a quotation whose sales are is different.
    However I think this is possible by using some user exit in sales order. I have never tried this.
    Regards
    srini

  • Sales order with refernce to contracts in different sales area

    Hi Gurus,
    I am creating a sales order with reference to a contract.I am making sales order sold-to-party as release order.
    so my Contract sold-to-party and the sales order sold-to-party are different but both belong to same sales area. In the above case i am able to create sales order.
    In other case though my Contract sold-to-party and the sales order sold-to-party are different but if they both belong to different sales area, i am unable to create a sales order.It says no contracts exits for sold-to-party.
    i made both the customers as partners .
    <b><POINTS OFFER REMOVED BY MODERATOR></b>.

    Hi,
    Could you please let us know why are you opening multiple threads in different forums for the same question?
    You have already created another thread in ABAP General
    creating sales order with reference to contracts
    Please refrain from using "Any guidance on this is fully rewarded with points."
    <b>Please read the rules of engagement before posting.</b>
    Posting multiple threads for same question in different/same forums and making point offers are not encouraged on the forum.
    Thank you

  • Sales order with different divsions...

    Dear All,
    I am creating a sales order with one sales area (1000-01-01),  materials are 3 different divisions (01.02.03), but in all SIS reports system is updating with only one division i.e 01. But, I want to know the sales report for all the divisions.
    What all are the settings need to be done.
    Note: I tried by using common division also (00), but facing the same problem.
    Could any one plz suggest me.
    Regards,
    Ramu

    Hi
    If the header division and item division are different the system can react in various ways
    If you make some entry in check division in VOV8 depending on the control that you have set the system will react
    Assuming that if you maintain check division in VOV8 BLANK and if the item division is ticked the system will not accept your order as the header div and item div differs
    Assuming that if you maintain check division in VOV8 BLANK and if the item division is not ticked Then you should have a SH defined in the material divisions sales area
    E.g
    1000,10,01 say this is ordering sales area customer is X
    Say three materials A in Div 01,B in div 02 and C in div 03
    Now your order for material A is no problem as the header div and item div are same both 01 and 01
    Now your order for material B then there is problem as the header div 01 and item div 02 differs
    In this case if you want to save the order then there should be a ship to party in sales area 1000,10,02 who is assigned to this customer X (SP) in the sales area 1000,10,01 or alternatively you have to extend this customer X who is in sales area 1000,10,01 to sales area 1000,10,02 also in XD01
    Same is the case for material C
    To do smooth processing of your sales order check div should be BLANK in VOV8
    Item div not to be ticked in VOV8
    CMR should be extended to all sales areas
    It is better to leave item div unticked and check div blank then the header div and item div are allowed to vary in sales orders and remember to tick business data at item category so that at item level also bothe can vary
    Common div will not work in your case as it will not check the MMR as the division is a field in MMR not an organizational unt
    In VOR2 itself you can see it is for conditions and customers only
    The same is the qn of Mr.Pankaj a few days back and i remember your post regarding my answer
    What is exactly the problem you have?
    Regards
    Raja

  • Sales order with different Distribution channels

    Hi experts,
    how can i create a sales order with different distribution channels.
    I mean item level 10 = one distribution channel.
    Item level 20 = another distribution channel.
    also in Item level 30 also.... is it posible .?? how can i create ??
    because we have the material in different distribution channel in differen plant with different price ..
    Thanksin Advance,
    Anthyodaya.

    Hi Anthyodaya,
    As already answered by others, the distribution channel is only on header level(VBAK), so it is not possble to have different distribution channels in one sales order.
    Could you please consider using different division?
    Item division could be different than header.
    Go->item->Sales B->Division
    Hope it helps.
    Best regards,
    Smile

  • Sales Order with different sold to party & ship to party

    Hi experts,
    We have one sold to party customer code DE0009 .  There is no other ship to party code assigned with this customer in the masters. but still user can make Sales order with Sold to party DE0009 & another ship to  party code ( DN0020 ) which is not assigned.
    Ideally , system should restrict it .
    Please guide us how to control.
    Regards,
    ( Rajneesh Gulati )

    Hello Rajneesh Gulati,
    Ship-to party doesn't have to be assigned to the sold-to party in the master data.
    You can kindly refer to Note 380507 which can provides you with more info.
    Best regards,
    Miri Shimony
    Solution Management
    Globalization Services

  • Creating sales order with reference to contracts

    Hi Gurus,
    I am creating a sales order with reference to a contract.I am making sales order sold-to-party as release order.
    so my Contract sold-to-party and the sales order sold-to-party are different but both belong to same sales area. In the above case i am able to create sales order.
    In other case though my Contract sold-to-party and the sales order sold-to-party are different but if they both belong to different sales area, i am unable to create a sales order.It says no contracts exits for sold-to-party.
    i made both the customers as partners .
    Any guidance on this is fully rewarded with points.

    Each and everytime your both SOLD-TO should be in same sales area.
    Enhance the  Contract sold-to-party's customers sales area specific data in XD02 so, it could come in to sales area of the Order's Sold-to-party.
    Regards,
    Naimesh Patel

  • 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
    Venkat

    Hello 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

  • Sales order with reference to sales order

    Hi,
       I need to create a sales order with reference another sales order using bapi CreateFromDat2.  Please note, Sales Ord. Dist. channel, Div, sold-to to of the new order are different from original order.   I gave reference order in field order_header_in-REFDOCTYPE .  I am getting following error when I perform single test " FB Call: insufficient parameters.  Can any of you tell me how to overcome this issue.  And is it possible to create an order refering to another Saler order with different Sales Ord, Dist. channel, Division, sold-to ?
    <b><REMOVED BY MODERATOR></b>
    Cheers
    Sudhaker
    Message was edited by:
            Alvaro Tejada Galindo

    There is an OSS note <a href="https://service.sap.com/sap/support/notes/370988">Note 370988 - BAPIs in SD: Creation with reference</a>
    <i><b>Symptom</b>
    This note describes the problems of the 'Create with reference' function when using BAPIs to create sales documents.
    If you are working online, you can use this function module to create a sales document with reference to an existing sales document or a billing document (for example, a debit or credit memo request) according to fixed rules. The rules for transferring information from the source document to the target document are defined in the copying control on header and item level. The creation with reference permits an item selection.
    When you use BAPIs in SD, a function of this type is not fully available. A reference is only possible for a quantity contract, so that the target quantity of the contract can be reduced by the order quantity of the sales document. Furthermore, the document flow is also updated.
    As an alternative to 'Create with reference' in Transaction VA01, two variants are provided for solving the 'Create with reference' problem in the BAPI.
          1. Create a '1:1 ' - that is, a document copy of a sales document (customer quotation, order) with 'BAPI_SALESDOCUMENT_COPY'. At this point, you cannot create the 1:1 copy of either a billing document or a delivery.
          2. Create a sales document that refers to an existing document with 'BAPISDORDER_GETDETAILEDLIST' and 'BAPI_SALESORDER_CREATEFROMDAT2'.
    <b>Other terms</b>
    BAPI_SALESDOCUMENT_COPY, BAPI_SALESORDER_CHANGE, BAPI_CUSTOMERINQUIRY_CHANGE, BAPI_CUSTOMERQUOTATION_CHANGE, BAPI_SALESORDER_CREATEFROMDAT1, BAPI_SALESORDER_CREATEFROMDAT2, BAPI_SALESORDER_CREATEFROMDATA, BAPISDORDER_GETDETAILEDLIST
    <b>Reason and Prerequisites</b>
    As of yet, no method exists for creating a sales document that refers to an existing document.
    Solution
    For solution No. 1
          1. Create the documents using the BAPI_SALESDOCUMENT_COPY function module. However, this only permits a 1:1 copy without factoring out individual items.
          2. After you have created the document copy, you can use a change BAPI to edit this copy.
    For solution No. 2
          1. Collect the data for the reference document (for example a customer quotation) with the 'BAPISDORDER_GETDETAILEDLIST' function module. In the example code, focus exclusively on the partners, items, schedule lines and conditions.
          2. Prepare the Data. Execute the 'copying control' manually. This way, you decide which values are to be transferred.
          3. Create the sales document using the 'BAPI_SALESORDER_CREATEFROMDAT2' function module by transferring the prepared data.
          4. Finally, you must remove a COMMIT WORK so that the sales document can be written into the database.
    An example of solution 2 is attached as a text file. You are allowed to select items and quantities for example, if you use input parameters. If there are no entries, then transfer 1:1 from the reference document. When you enter the 'condition type' parameter, you can determine whether conditions are copied or recalculated ('G' for transferring from the preceding document; 'B' or ' ' for re-determining, and 'C' for re-determining with transfer of the manual elements).</i>
    Sample : <a href="https://websmp108.sap-ag.de/~sapidb/012003146900000486112004E/BAPI_COPY_WITH_REF.txt">ZZ_MS_BAPI_COPY</a>
    Regards

  • How to generate one invoice for a sales order with product returns

    Hi All,
    I have a sales order that has been delivered and goods issue posted. Now the customer returns some of the product and I generated a Return using VA01 - document type RE, generated a returns delivery and posted a goods return.
    I need to generate an invoice that will only consider the quantities that were not returned.
    I have checked the sales process pertaining to returns, but all I have found consider generating a Credit Memo.
    Is there a way to generate an invoice that will only invoice the quantities that were not returned? Say I sold 10 pcs, and 2 were returned, so I want to invoice 8.
    Many thanks in advance.
    Oscar

    Hi Sandeep, Jyotsana, Goutham. Thank you all for your time and your replies.
    What is happenning here is that there is a vendor-client relationship where there is a constant flow of purchase orders, and the orders are large.
    I understand that it is standard SAP procedure, but in this case, it is not the most efficient. I have two alternatives the way I see it:
    1. Post the invoices according to SAP Standard, and then the Credit Memo.
    2. Reverse the Purchase Order.
    There are disadvantages with both alternatives:
    1. I get much more paperwork than I really need.
    2. When I get the returns, the delivery, picking and goods issue have been posted, and I would have to reverse all that. Not a very good Idea I think, especially if I have a purchase order with 150 different materials and I get a return of 2 items of one material.
    Again, thanks for your replies. From what you have told me I am thinking that what I'll need is to implement a User Exit or Badi.
    Best Regards,
    Oscar

  • Create a purchase order linked to sale order with DI

    Hello all,
    I tried to create a purchase order based on a sale order with the DI but I get an error message "the business partner selected in base document is different than the target document"
    As you understand, this is normal to have a different business partner. So my question is : is it possible to create with the DI a purchase order linked to a sale order or is this a missing functionality ?
    Thank you
    Sebastien

    Hi sébastien,
       oDoc.Lines.ItemCode = "A00001"
        oDoc.Lines.Quantity = 1
        oDoc.Lines.BaseType = 17
        oDoc.Lines.BaseEntry = 213
    A Purchase document's BaseType can only be a Purchase document itself.
    A Sales document's BaseType can only be a Sales documento itself.
    To create a Purchase Order based on a Sales Order you must go through each row of the Sales Order and copy the values (ItemCode, Quantity, Discounts, VatGroup, etc.) to the Purchase Order.  And remember the VATCode used in a Sales document cannot be the same as the one used in a Purchase document.
    Best Regards,
    Vítor Vieira

  • One sales order with two bill to party at the document header

    Hello to all
    We have the following issue: create one sales order with two bill to party and only one payer. The reason is that the materials are paid with the same customer(only one account document) but we need to print two invoices one by each bill to party and each invoice printed with its own invoice number)
    We are thinking in one development due to the key users won´t create different line items or create different sales order.
    The process will be the following:
    1-Create the sales order with one payer and two bill to party or a new bussiness partner(you can use only one bill to party in each customer)
    2-Invoice the sales order. The system will create only one account document because there is only one payer but the system will create two printed documents with the invoice.
    So if someone had the same requeriments, any help will be appreciated.
    Thanks in advance.

    Pablo,
    You intend to create one invoice (one payer) but 2 different document print layouts.
    That should work. But, you have stated 'printed with its own invoice number'.... does this mean you need 2 distinct document numbers in the system? That will not be possible.
    An alterantive is to create a Proforma invoice and a regular invoice and send it to the 2 parties involved.
    Ashutosh

  • Partial DEL to single sales order with diff storage loc. in single DEL

    Hi SAP gurus,
    I have created a sales order with single line item of 100 Qty,
    Now i want to create single delivery with two different line item with different STORAGE LOCATION as per the availabiliy criteri with those different storage location of the same or different palnt.
    i had tried to create single delivery by manually putting second line item with different storage location,but i want this to be automatic by the system.
    In case of any clarification kindy revert back to me.
    Regards,
    Ujjawal

    Hi Ujjawal,
    Yes its possible only if the plant is the same.
    But storage location needs to be enter in the order manually. if you have different storage locations for the items in the order and system will allow you to create a single delivery.
    I hope it will help you.
    Regards,
    SK
    Edited by: Mastan Shaik on Jul 22, 2010 7:41 AM

  • Update Sales Order with Text-Line and without regular Lines

    Hello Experts,
    i have a problem to update a Sales Order with no Item-Lines but with one Text-Lines or one Sub-Total-Lines.
    I get only the Error "The specified resource name can not be found in the image file", the %temp% are delete.
    i have testet with Methode: #updateDocWithSubDeletion, #Synchronnous Update, #Synchronous Insert with fallback to Update (i was desperate)
    my Scenario look like this:
    my Payload:
    i have allready testet with the part AdminInfo und QueryParams with the same Error.
    <Payload id="atom6" Role="X">
        <Documents xmlns="">
            <row>
                <DocNum>227780</DocNum>
                <DocType>dDocument_Items</DocType>
                <HandWritten>tNO</HandWritten>
                <Printed>psNo</Printed>
                <DocDate>20150423</DocDate>
                <DocDueDate>20150423</DocDueDate>
                <CardCode>61052</CardCode>
                <CardName>Durchlauf</CardName>
                <DocCurrency>EUR</DocCurrency>
                <DocRate>1.000000</DocRate>
                <DocTotal>0.000000</DocTotal>
                <Reference1>227780</Reference1>
                <JournalMemo>Kundenaufträge - 61052</JournalMemo>
                <PaymentGroupCode>-1</PaymentGroupCode>
                <DocTime>0819</DocTime>
                <SalesPersonCode>2</SalesPersonCode>
                <TransportationCode>-1</TransportationCode>
                <Confirmed>tYES</Confirmed>
                <SummeryType>dNoSummary</SummeryType>
                <ContactPersonCode>0</ContactPersonCode>
                <ShowSCN>tNO</ShowSCN>
                <Series>5</Series>
                <TaxDate>20150423</TaxDate>
                <PartialSupply>tYES</PartialSupply>
                <DocObjectCode>17</DocObjectCode>
                <DiscountPercent>0.000000</DiscountPercent>
                <DocTotalFc>0.000000</DocTotalFc>
                <RevisionPo>tNO</RevisionPo>
                <RequriedDate>20150423</RequriedDate>
                <CancelDate>20150523</CancelDate>
                <BlockDunning>tNO</BlockDunning>
                <Pick>tNO</Pick>
                <PaymentMethod/>
                <PaymentBlock>tNO</PaymentBlock>
                <MaximumCashDiscount>tNO</MaximumCashDiscount>
                <WareHouseUpdateType>dwh_CustomerOrders</WareHouseUpdateType>
                <Rounding>tNO</Rounding>
                <DeferredTax>tNO</DeferredTax>
                <NumberOfInstallments>1</NumberOfInstallments>
                <ApplyTaxOnFirstInstallment>tNO</ApplyTaxOnFirstInstallment>
                <DocumentSubType>bod_None</DocumentSubType>
                <Address2/>
                <UseShpdGoodsAct>tNO</UseShpdGoodsAct>
                <IsPayToBank>tNO</IsPayToBank>
                <DownPayment>0.000000</DownPayment>
                <ReserveInvoice>tNO</ReserveInvoice>
                <LanguageCode>9</LanguageCode>
                <SequenceModel>0</SequenceModel>
                <UseCorrectionVATGroup>tNO</UseCorrectionVATGroup>
                <DownPaymentAmount>0.000000</DownPaymentAmount>
                <DownPaymentPercentage>0.000000</DownPaymentPercentage>
                <DownPaymentType>dptInvoice</DownPaymentType>
                <DownPaymentAmountSC>0.000000</DownPaymentAmountSC>
                <DownPaymentAmountFC>0.000000</DownPaymentAmountFC>
                <VatPercent>0.000000</VatPercent>
                <ServiceGrossProfitPercent>0.000000</ServiceGrossProfitPercent>
                <OpeningRemarks/>
                <ClosingRemarks/>
                <RoundingDiffAmount>0.000000</RoundingDiffAmount>
                <ControlAccount>1200</ControlAccount>
                <InsuranceOperation347>tNO</InsuranceOperation347>
                <ArchiveNonremovableSalesQuotation>tNO</ArchiveNonremovableSalesQuotation>
                <ExtraMonth>0</ExtraMonth>
                <ExtraDays>30</ExtraDays>
                <CashDiscountDateOffset>0</CashDiscountDateOffset>
                <StartFrom>pdt_None</StartFrom>
                <NTSApproved>tNO</NTSApproved>
                <EDocGenerationType>edocNotRelevant</EDocGenerationType>
                <DownPaymentStatus>so_Open</DownPaymentStatus>
                <GroupHandWritten>tNO</GroupHandWritten>
                <CreateOnlineQuotation>tNO</CreateOnlineQuotation>           
            </row>
        </Documents>
        <Document_SpecialLines xmlns="">
            <row>
                <AfterLineNumber>-1</AfterLineNumber>
                <LineType>dslt_Subtotal</LineType>
                <LineText>Zwischensumme</LineText>
            </row>
        </Document_SpecialLines>
        <Document_Lines xmlns="">
            <row>
                <ItemCode>108044</ItemCode>
                <Quantity>0.01</Quantity>
                <FreeText/>
            </row>
        </Document_Lines>
        <TaxExtension xmlns="">
            <row>
                <NetWeight>0.000000</NetWeight>
                <GrossWeight>0.000000</GrossWeight>
                <StreetS/>
                <BlockS/>
                <BuildingS/>
                <CityS/>
                <ZipCodeS/>
                <CountyS/>
                <StateS/>
                <CountryS/>
                <BuildingB/>
            </row>
        </TaxExtension>
    </Payload>
    when I insert a new row with an ItemCode , it works
    Thanks and Best Regards
    Ronny

    Hi,
    why don't you create a simple scenario to export B1 Sales Order to XML File?
    Maintain the SalesOrder via B1 client UI and check the result in XML as exported to file.
    In the Sales Order xml file you can easily see how "AfterLineNumber" needs to be filled in segment "Document_SpecialLines" to achieve what you've entered via B1 client.
    Normally the LineNum for B1 Documents starts counting with 0 and if you need to add a subtotal line after a regular item row, the "AfterLineNumber" value should be 0.
    Best regards
    Bastian

Maybe you are looking for

  • Why does my Macbook Pro go to sleep randomnly?

    My Macbook Pro with a 2.5 GHz intel core i5 and 4GB 1600 MHz DDR3 Memory, just goes to sleep randomnly for no reason at all, i was just doing some work when my macbook just suddenly goes to sleep, there is no magnets around, only the ethernet cable i

  • Why to open Block only with Dense dimension Member ???

    Hi All, I want to understand the logic behind opening the block with dense member. Generally we open the block with member of dense dimension by fixing the sparse members e.g. below considering C1, P1,Working,Actual are members of sparse dimension cu

  • Grainy photos in iOS8

    Since downloading iOS8 (big mistake) onto my iPad the photos taken with the camera are terrible quality, very grainy.  With iOS7 they were lovely and clear.  Having most of the problems everyone else is having also.

  • Acrobat pro won't quit

    my iMac fails to shut down, hangs on acrobat's failure to quit. how do i fix?  i have uninstalled in the past but then creative suite does not recognize that it is gone - therefor won't let me install a new copy. can't remember how i reset the CS upd

  • Error in FI Posting coming in J2IUN

    Dear All, We carried forwarded the GL balances from fiscal year 2008 to 2009.In J2IUN, we are utilising from 06.03.2009 to 31.03.2009 currently.system giving error "Error in FI posting" Please help me Thanks, Dharmveer