B1WS Create order from draft

We use B1WS to create drafts in the SAP system. Within SAP it is possible to create orders out of the drafts. Is it possible to create orders out of drafts over the webservice interface, too? Could you please give me an example?

Hi Sven,
it should be something like :
svcDraft.DraftsService myDraftSvc = new svcDraft.DraftsService();
svcDraft.MsgHeader oHeader = new svcDraft.MsgHeader();
oHeader.SessionID = SessionID;
oHeader.ServiceName = svcDraft.MsgHeaderServiceName.DraftsService;
oHeader.ServiceNameSpecified = true;
svcDraft.DocumentParams oDraftParams = new svcDraft.DocumentParams();
oDraftParams.DocEntry = DraftDocEntry;
oDraftParams.DocEntrySpecified = true;
myDraftSvc.MsgHeaderValue = oHeader;
myDraftSvc.GetByParams(oDraftParams);
myDraftSvc.SaveDraftToDocument();
untested
regards,
Maik

Similar Messages

  • Error while creating order from notification

    Dear Experts,
    I am getting error (No material number transferred(Message no. M3752))  when creating order from R3 notification. the material number not copied from screen to VIQMEL. This is only in few times, not all times. when i debug this, in VIQMEL-FEKNZ = X(Error Records Exist).
    This is only for R3 notification. Also not in all times.
    What is the problem?

    Thanks, I am creating notification thru IW21. form IW22 i am creating order. while creating is gives above error. in this case MATNR not saving in QMEL. even when i am saving in IW22 it's not saving. when i am creating order from IW22 it gives above ror. but it gives error some times only, not all the times. for the same equipment i created so many. some four times only i am getting this.

  • Create order from quote in background

    Is there a badi or FM in CRM that anyone knows of that can be called from a program to create a follow up order from a quote?
    Thanks.
    Cathy

    I found an FM that will work.  CRM_AUC_ORDER_CREATE_WITH_REF
    Eventhough it's for auctions, it creates a follow up order from my quote, just fine.

  • ECC allow to create order from fully referenced Quate/Cont with Warning mes

    Hi,
    Problem- System shall allow to create as many sales order from the fully referenced quatation or contract with " WARNING MESSAGE".
    i.e Let say I have a quatation of 100 Q. in ECC.
    I want to create 15 sales order of 10 quantity each with the reference of above mentioned quatation of 100 Quantity. But the moment i reached to reference target quantity (100) is committed then system shall still allow me  to create sales order but with Warning message. Warning message could be like "Taget quantity is already committed" from the quatation #. But system should not stop me to create more sales order from that quatation of 100 quantity.
    Looking forward your valuable inputs in this context. Appreciate  your effort and time

    Hi,
    This is a standard functionality in SAP.
    Go to your Quotation to Sales order copy control IMG setting. Tx: VTAA
    There select your relevant Copy control, go in to Item Level with the relevant Item Category.
    Check whether you have maintained below settings.
    Pos./neg. quantity = +
    Update document flow = X
    Check the "Completion Rule" specified in the item Category IMG Setting as well.
    Then system will through a message, once your quotation quantity is reached.
    Best regards,
    Anupa

  • Populating real Purchase Order from Draft

    Hey All.
    Our users have a requirement to create draft purchase orders with no line items. I wrote the following code to create a real PO based on the draft PO and add some line items to the real PO. (only partial code posted)
    SAPbobsCOM.Documents oDraft;
    oDraft = (SAPbobsCOM.Documents this.SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts);
    if (oDraft.GetByKey(Int32.Parse(selectPO)))
         SAPbobsCOM.Items myItem = this.LoadSAPMasterItem(currentItemCode);
         //Build the purchase order document
         poDoc.DocDate = oDraft.DocDate;
         poDoc.DocDueDate = oDraft.DocDueDate;
         poDoc.CardCode = oDraft.CardCode;
    returnVal = poDoc.Update();
    //Then I remove the draft document
    The problem I have is how do I get my real purchase order to carry forward all of the header information and UDF information the user entered into the draft PO? Do I have to manually set these field by field? Please tell me there is a better way.
    Thanks

    Hi Curtis,
    As far as I know you have to set the field properties for every field. You can only omit certain fields if it is a base/target document type. Like when you create a purchase invoice from a purchase order, but not with drafts.
    Hope it helps,
    Adele

  • Standard function- create order from contract.

    Hi Experts,
    Is there any standard function module which create a followup sales order(TA) for sales contract (QCTR).
    Regards,
    Rahul

    Hi,
       The release order means the PO item created with reference to the contract item. There can be multiple items in the PO in which some items can be with reference to contract - these items eventually becomes the release orders and other items can be without reference to contract.
       In short, you can add multiple items in PO where some items can be with reference to contract item and some are not. This is standard behavior.
    Regards,
    AKPT

  • Create a notification order from IW22 versus IW28

    When I create a notification order from a notification from IW28, I click the "Create Order" button and it takes me into IW34 where I can enter the Order Type.
    When I go into the notification(IW22) from IW28 and click create order from IW22, the popup only shows me "PLanning plant" and "Main work center".  When I continue I get an error stating that the order type is not maintained.
    Is there somewhere in the IMG where I need to put order type on the popup to create a notification order from IW22?
    Please let me know if this is confusing.
    Thanks
    Jayden

    Hi Jayden,
    if you use for every notification type exactely one order type, you should define this in IMG in step "Order Type by Notification Type (goto Maintenance and Service Processing / Maintenance and Service Notification / Notification Creation / Notification Types / Assign Notification Types to Order Types.
    I've checked your problem in our system and all things runs well, from IW22 the same like IW28.
    One question: If you called IW28 you get a list with notifications, right? Why do you open as first the notification and create than the order? The easy way is to create the order direct from list by mark the notification and click on button "Order" (with the blank paper) in Top of the screen.
    Jens

  • Creating maintenance order from enhancement IMRC001

    Hi
    I am trying to create a maintenance order from the customer exit EXIT_SAPLIMR0_001 inside enhancement IMRC001. For order creation i have invoked the BAPIs  BAPI_ALM_ORDER_MAINTAIN and bapi_transaction_commit subsequently to write changes to the database. But once the control returns from main program I receive an express message which states
    Update was terminated
    System ID....   ECD
    Client.......   400
    User.....   SSEN
    Transaction..   CO11N
    Update key...   48DCDEE6DD6E01AFE1008000093362E1
    Generated....   15.10.2008, 09:11:42
    Completed....   15.10.2008, 09:11:43
    Error Info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
    Can any of you help me on this. I am doubtful on commiting from a include; but in the doc for this enhancement it is mentioned that we can create order from it. Is there any other way to do this?
    Thanks in advance
    Sudip

    udip,
    I think there's some sample code with this user-exit..
    Have a look at that, it may give some pointers...
    Also try without the BAPI_TRANSACTION_COMMIT.
    PeteA

  • Create Purchasing Order from Purchasing Requisition

    Hi,
    I need to create in a report a Purchasing Order from Purchasing Requisition. I have seen the Bapi BAPI_PO_CREATE; Can I create order from requisition without fill all field and only 
    the requisition and ther obligatory field?
    Thanks
    Francesco

    Hi
    Try out what all parameters are obligatory in case of Purchase Requsition using the FM - 'BAPI_REQUISITION_CREATE' in R/3 back-end..
    and then try creating PO using 'BAPI_PO_CREATE1' or 'BAPI_PO_CREATE' Function modules.
    Also try creating P Req manually using ME51N / ME51 Transactions and debug the process to get further details, if any.
    Regards
    - Atul

  • Replication of Sales Order from SAP ECC to SAP CRM

    Hi,
    The scenario I am working on is breifly as under:
    Telesales will create sales order directly in ECC. The sales order created in ECC will be replicated in CRM. I have some queries and request guidance:
    1. The same sales order type will be used by ECC for creating orders from telesales, as well as regular sales orders in ECC. I need to replicate only sales orders created by telesales. Please guide how to achieve the scenario requirement.
    2. There are many 'Z' Partner function in ECC in sales order, some of them are mandatory and others are optional. During replication, if the 'Z' partner functions are not created and maintained in CRM, what will be the impact? Will the sales order replicate or no. Impact in sales order replication of mandatory partner function and optional partner function not available in CRM.
    3. Impact of 'Y' and 'Z' condition type (optional) not maintained / imported from ECC to CRM in sales orders.
    Regards,
    Rajesh

    1. In R3AC1 set filter according to your needs for object SALESORDER. There are quite a few fields on which you can set filter.
    2. Partner functions will not affest replication. Replication is more strict from CRM to ERP hen viceversa. Also you said that optinal partner functons will be missing, so there is no reason that problems should accore. But of course standard sold-to party and shi-to party should be provided for pricing reasons.
    3. Should reprsent not problem, but pricing procedures must be synchronized between both systems.

  • Attaching a PDF document to an order from Web

    Hi,
    We have a requirement to attached a PDF document to an order in SAP from a web front end (its a custom web application written in cold fusion). We currently create orders from this web application which talks to SAP via XI. I know that using the "Services For Object" option in SAP GUI we can upload external document. Is there a BAPI that can be used to send the document from WEB to be added as an attachment on the order?
    Any response will be greatly appreciated.
    Thanks,
    Paresh

    Hi Tom,
    ArchiveLink is a service integrated in the SAP Web Application Server for linking archived documents and the application documents entered in the SAP system.
    Linking documents according to content guarantees long term easy access to the documents. From the screen of the application document, you can directly display the stored document that is associated with it. You can also use attributes to search for documents. This replaces time consuming processes such as making copies of originals, searching for procedure-related information, etc.
    There would definitely be content repository which will be connected to SAP through archivelink. Pls confirm the same with Basis.
    You can look at the customizing through
    IMG->SAP Web Application Server -> Basis Services -> ArchiveLink
    Also pls refer to:
    http://help.sap.com/saphelp_47x200/helpdata/en/16/56a539a908455de10000000a114084/frameset.htm
    Pls award if helpful.
    Reg
    Sachin

  • Workflow Item not created while processing draft PO from SOCO

    Dear SAP SRM Experts,
    In SRM 7.0, I've a scenario where I create a PO draft in sourcing.
    In the 3step of the GAF, I've the option to
    1. Edit the PO and order it.
    2. Directly process the PO draft to create a PO..
    While in case one the WF item is created with status awaiting approval, in the second case (when I directly process the draft) the workflow item is not created but the status is still 'Awaiting Approval' !!.
    Use of PC workflow is done and the PO is not auto approved.
    Any pointer regarding this would be very helpful.
    The call stack is way different between the first step and second.
    My understanding is if there is some error in the follow on PO, the work item would not be created. But the SC in soco is similar and while in first case it does create the workitem in second case it doesn't.
    When does the decision to create workflow item is decided in second case?
    Thanks.
    Shushant

    Hi Guys,
    Thanks for your inputs.
    The problem has been identified. The error is because  the vendors are deleted completly from the system. And those were  earlier used in shopping cart as preffered vendor. Thats why the system is throwing the error message. 
    As we can not process this SC further we want to delete this SC (line item).  But again while deleting the SC the system is throwing the error message . "Business partner xxxxxxxxxxxxxxxxxxxxxxxx not found."  Thus its not allowing us to delete the SC.
    Do you have any ideas how we can delete the SC line items, or  SC ?  Any FM ?
    Thank you,

  • Error determining posting period(infostructure S008,Variant Z2,RC3) while creating Sales orders from Inbound IDOCS

    Hello,
    I am getting this Error message"error determining posting period(infostructure S008,Variant Z2,RC3)" while creating Sales order from Inbound Idocs in the IDOC,which is affecting sales order creation.
    While viewing this Info structure S008, I could see no records have been maintained. Wanted to know the reasons behind this Hard error?
    Is it something related to Date Field used in the Update Rules for this Infostructure which is causing this posting period error?
    Appreciate your inputs on this.
    Thanks and Regards
    Mohammed Roshan

    Thank you Jelena,I checked the Ship. Delivery dates in the IDOC which are for Current Fiscal Year- 20140703 and 20140711,Could there be any other reason for this error?
    Could it be an issue with e Update rule in this Infostructire S008
    Secondly when we try change the update rule thru MC25 for this Infostructure S008,It gives a message"
    "Maintenance of SAP standard updates not allowed"
    Kindly advice
    Thanks and Regards
    Mohammed Roshan

  • Create multiple sales orders from single service notification?

    Is it possible to create multiple sales orders from a single notification (IW51)? 
    We currently create sales orders directly within transaction IW51 (Create Service Notification).  We kick off the sales order creation by pressing the "SALES ORD." button in the notification screen.  We're now interested in creating a 2nd Sales Order which would tie directly to the same Service Notification.  This is so that we can have the second order assigned to a different account assignment WBS (there are two different parties doing work on the service notification).
    I assume you would have to go to VA01 to create the Sales Order, but am not sure how to tie it directly to the service notification from here.  I treied to do a create with reference, but there is no ability to create with reference to a service notification.
    Do I have to create a second service notification for the 2nd Sales Order for this to work?  I want to avoid doing this if at all possible.
    I'm running SAP R/3 Enterprise
    Thanks for your help!

    Hi,
    go to vtaa- copy controls for sales document to sales document.
    select your combination of order and quotation go to item level. There select value 0(zero) in field positive/negative negative.
    No need to change update document flow.
    After setting zero in copy control that be told on above. create order with respective to the quotation.
    After saving the order.
    go to document flow to see the status in between quotation and order.
    If you placed setting right, then u certainly observe for quotation status will be open. so you can create no. of sales order with respect to that quotation..
    Have a good day..

  • Creating Sales Orders from Quantity Contract - ORDERS05 IDOC

    Hi,
    I have created a Quantity Contract in ECC. Now I want sales orders to be created w.r.t to the Contract through ORDERS05.
    Can anyone suggest which IDOC Segment and Qualf i have to populate to achive the same.
    Also say once I am able to achive the creation of Release Orders from the Contract through ORDERS05. If I surpass the Qty of the Contract . The IDOC should be have a field for notifying the same.
    REgards,
    BInayak

    Hello Binayak
    You  may use the following segment and fields for reference data:
    Segment: E2EDK02
    Fields:
    QUALF : IDOC qualifier reference document - I think for contracts this is '001'.
    BELNR : IDOC document number
    POSNR : Item number
    As per a flag to indicate that the contract quantity is surpassed, I doubt there will be anything like that becasue is an Idoc is before you created the order and how will the system know you have surpassed until an order is entered?
    I think you need to use 'completion rule' and copy control 'update document flow' features to work on this.
    Hope this helps.

Maybe you are looking for

  • InterfaceDetermination did not yield any actual interface - Error

    Hello All, We are working on a synchronous interface integrating with the third party. On executing the inbound interface (Third Party to SAP ECC), third party system receives the error as stated below com.sap.engine.interfaces.messaging.api.exceptio

  • How to add attributes NetConnectionStatus and NetConnectionID to Win32_NetworkAdapter Hardware Class

    We are trying to run SCCM (CM2012 R2) reports that show devices with an active network connection. I know that there is a WMI class, Win32_NetworkAdapter, that has the attribute NetConnectionStatus, which if it has a value of 2 means it has an active

  • Is my Power Mac G5 with 2 x GHz that cost nearly £2000 now finished.

    My Power Mac G5 has 8Gb of ram with 2 x GHz processors and runs like a dream. I mainly use it to record music for Television. The man in the Mac shop told me I can't upgrade my system to Snow Leopard. That's not very good is it. However I'm sure the

  • Combo with condition in matrix

    Hi, Let me understand how provide the combo listing with previous columns condition in matrix. Assume,  I have the matrix with  5 columns, I have filled the Ist column with combo(doquery option), second column just I am filling the description field

  • Javaw.exe

    Hi, Since we have upgraded to SP14, after working for 1/2 hour in XI(mapping and testing), my computer become very slow.  If I look at the processes under task manager, I can see that javaw.exe is taking all the memory.  What is wrong with SP14? java