Updating of delivery dates failed using BAPI_SALESORDER_CREATEFROMDAT2

Hi,
I am trying to create a new sales order using <i>BAPI_SALESORDER_CREATEFROMDAT2</i>.
However, when i enter the following fields (<i>GI_DATE, LOAD_DATE, MS_DATE, TP_DATE</i>) into table structure <i>ORDER_SCHEDULES_IN</i>, the input values are not reflected in the new sales order instead all values are defaulted to the <i>REQ_DATE (first date)</i> field value.
Does anyone has similar problem? Would appreciate some advise. Thanks.

Hi Maggie,
I don't know much about BAPIs myself but I cmae across the following that you may or may not be aware of:
<b>"Method:
SalesOrder.CreateFromDat2
Sales order: Create Sales Order
Functionality
You can use this method to create sales orders.
You must enter at least sales order header data (via ORDER_HEADER_IN structure) and partner data (via the ORDER_PARTNERS table) as input parameters.
Enter the item data via the ORDER_ITEMS_IN table. You can allocate item numbers manually, by filling in the relevant fields, or the system does it, according to the settings for Customizing, by leaving the relevant fields blank.
If you have configurable items, you must enter the configuration data in the ORDER_CFGS_REF, ORDER_CFGS_INST, ORDER_CFGS_PART_OF and ORDER_CFGS_VALUE tables.
Credit cards can be transferred via the BAPICCARD structure, on the one hand, data for card identification, on the other, data for a transaction which has taken place in an external system.
Once you have created the sales order successfully, you will receive the document number (SALESDOCUMENT field). Any errors that may occur will be announced via the RETURN parameter.
If no sales area has been created in the sales order header, then the system creates the sales area from the sold-to party or ship-to party, who has been entered in the partner table. If a clear sales area cannot be created, you will receive a system message, and the sales order will not be created.
Notes
Mandatory entries:
ORDER_HEADER_IN : DOC_TYPE Sales document type
SALES_ORG Sales organization
DISTR_CHAN Distribution channel
DIVISION Division
ORDER_PARTNERS..: PARTN_ROLE Partner role, SP sold-to party
PARTN_NUMB Customer number
ORDER_ITEMS_IN..: MATERIAL Material number
Ship-to party:
If no ship-to party is entered, use the following: Ship-to party =
sold-to party.
Commit control:
The BAPI does not have a database commit. This means that the relevant application must leave the commit, in order that can be carried out on on the database. The BAPI BAPI_TRANSACTION_COMMIT is available for this.
German key words:
The following key words must be entered in German, independantly of
the logon language:
DOC_TYPE Sales document type, for example: TA for standard order
PARTN_ROLE Partner role, for example: WE for ship-to party
Further Information
You can find further information in the OSS. The note 93091 contains general information on the BAPIs in SD."</b>
By reading that all I can suggest, in additon to what Robert has suggested is that perhaps you need to use BAPI..COMMIT? Like I said I'm not really an expert on this but I hope I've helped.
Hafeez

Similar Messages

  • Using BAPI_SALESORDER_CHANGE to update the delivery date

    Hi All-
    I am using BAPI_SALESORDER_CHANGE, to update the delivery date on the schedule lines...If I have 2 lines of schedule, needs to be updated the second one ETENR '0002'...
    Bapi returns message that successfully processed, when I go back and look at Sales order, I don't se any changes on schedule line..
    I am pssing into BAPI, sales doc and schedule line with the delivery date and the flag 'U'..and also I am using BAPI commit...
    But, let me know if I am missing something and also let me know is it possible to change schedule delivery date or not?
    Thanks,
    Sony
    Please try to use a meaningful subject.
    Edited by: Rob Burbank on Feb 25, 2009 2:08 PM

    give a meaningful title to ur thread, so that, people get u back quickly. Just tip that, try to do ur requirement online, then Observe How the system is behaving....thanq

  • Master data loads Request not updated to any data target using delta

    When checking the PSA the request updated ICON has red triangle and the mouse over says
    "Request not updated to any data target using delta".
    I am doing full loads for text data and both full and delta's loads for Attributes. This is BI 7.0 system but the loads are still from 3.1.  DTP has not been implemented yet. The system was just upgraded in July.  I am unable to schedule deletes from the PSA for successful loads.  However, I think the data is updating to the info objects.  My Info package has the selection to PSA then in the InfoObject package by package.  
    How do I schedule the deletes from PSA and why does the Request updated show red but the monitor for the info package show green?
    Edited by: Joe Mallorey on Jan 27, 2009 5:46 PM

    Hi shikha,
    The load has not failed but I am unable to delete the load from the PSA.
    If you do a manage on the Data Source or go to PSA from RSA1 the first column has the green gear icon instead of a green check mark I have red triangle the mouse over says "request not updated to any data target using delta" The data has loaded to info object. I am trying to schedule deletes from the PSA and using the option to "delete only successfully booked/updated requests" So how do I get the request updated column to show a green check mark so my deletes will Process? This is for master data only. My transactions load fine and delete properly according to my settings.
    Thanks for the reply.
    Regards,
    JoeM

  • Sales Orders Report - Requested Delivery date fails.

    Hello,
    If a customer orders Item A Quantity 10 with a requested delivery date as 10.09.2008
    In sales orders under Schedule line tab it will be displayed as below if schedule line fails
    Delivery date Order Qty Rounded Qty Confirmed Qty
    10.09.2008     10     10     0
    20.09.2008     0     0     10
    Customers get the goods not on his requested delivery date but some time later.
    My requirement is I need to get the list of sales orders (like as we get the list of incomplete sales orders in V.02) where the requested delivery date fails and confirms next delivery date.
    Is there any such standard report available???
    Thanks in advance.
    Regards,
    Vamsi

    Hi
    This is not available as a standard report. Consult your ABAPer to develop a Zreport. The system will compare the requested delivery date and the schedule line date and if the delivery date in the schedule line doesn't match with the requested delivery date, those schedule lines along with the details of the material, sales order number etc., will be displayed in the report. You have to give the ABAPer the details like..how the input screen should be, how the output screen should be and the proper logic for obtaining the required output.
    Thanks,
    Ravi

  • Load status in PSA "Request not updated to any data target using delta"

    Hi,
    I need to delete the Unwanted request from PSA with status u201CRequest not updated to any data target using deltau201D
    There are lot of requests are there in PSA but some of them loaded with status
    u201CRequest updated in Data targetu201D u2013 I donu2019t want delete this requests.
    Others u201CRequest not updated to any data target using deltau201D  -- need to delete
    We are deleting manually every week end.
    Is there any program or tables which can delete automatically unwanted u201C Request not updated to any data target using deltau201D requests from PSA.
    Thanks for your help in Advance,
    Raj.

    Hi Rajesh,
    You may create a simple process chain, where you could include the variant "Delete PSA Request".At the bottom of this variant maintenace screen you would find options exactly matching your requirements.It's a very simple option and should not take you more than 5 minutes.
    Best Regards,
    Bansi.

  • Request not updated to any data target using delta

    I am on BI 70 using 70 DataSource.  I executed InfoPackage in full update, then ran DTP in full mode.  There is only 1 data target.  The requests were successfully updated in the target DSO.  However, when I checked the datasource PSA, the requests were showing u201CRequest not updated to any data target using deltau201D with red triangle. 
    My questions are:
    1.  Is this normal?
    2.  I need to do more full loads.  When I run DTP (in full mode) again, will it re-load those PSA requests (the ones already in DSO) to the same data target?
    Thank you.
    Rebecca

    Hi Rebecca,
    To answer your questions
    1. Yes. This is normal.
    2. Yes. When you run DTP in Full Mode again, this PSA request (along with any other subsequent loads you might have done to PSA)  would be re-loaded to the same data target .
    If this is not required you can set the DTP to delta mode. This ensures that the PSA request is updated to data target only once.
    Hope this helps!
    - Meera

  • PSA showing Request not updated to any data target using delta

    Hi BWers,
    I am very new to SAP and have a IDES installed with BW. I am trying to do a simple data load from a flat file. I have managed to create a InfoPackage, but when I schedule it and then go into the data source -> manage and look at the screen :
    Requests for PSA /BIC/Bxxxx
    I see the Request updated having a Red triangle with an exclamation mark in it and it says
    "Request not updated to any data target using delta"
    Wondering if someone can help me resolve this so that I can further create a DTP and load the data into the InfoObject.
    Thanks for all your help.
    Manish

    Reg : Delta Load : Production Data
    Current Scenario :
    we have existing system pulling data from 0CO_OM_WBS_6 ,ZPS_0CO_OM_NWA_2
    Structure underlying infocube:
    2 Data Sources >> 1DSO >>1 Infocube .
    Usually the Data is loaded in delta format on daily basis using process chains.
    For last one month the delta is not picking properly :
    Example :
    A WBS Element is created 2 years back and it open and getting its update into BW ,
    latest amount or cost incurred for the WBS Element is not picked for certain WBS only :
    I have Tried Giving a Full Infopack load to the DSO , but as DataStructure was migrated from 3.5 to 7 landscape :
    its showing this error:
    Request not updated to any data target using delta,
    i went and created DTP which didnt help much Because latest isnt caputered .
    if i goto RSA1old and find the full req and trigger it ,it says inti overlapping ,
    how to over come this as this is a production issue
    Obaid : pls help me on this issue , any others expert pls help

  • How system updating the delivery dates in sale order schedule line

    Hello
    i created a sales order with 2 line items. For the first line item the confirmed delivery date in the schedule line is 06.02.2012 and for the second line item the confirmed delivery date in the schedule line is 14.02.2012 . Both the line items are third party items and the PR created against the line items in the sales order .
    We created the PO with reference to the PR of the SO and we find there are different delivery dates coming in the PO document for the 2 line items . For the first line item the delivery date is coming as 14.11.2011 and for the second line item in the PO , the delivery date coming as 11.11.2011 . Firstly we are not understanding from where the delivery dates are picking in the PO.
    Secondly , once we saved the Purchase order and once we come back to the sales order , the schedule line dates are getting changed automatically in the sales order . For the first line item in the sales order the delivery date is changing to 22.11.2011 and for the second line item in the sales order the delivery date is changing to 22.11.2011.
    Now my question , is from where the delivery dates are updating in the Purchase order and once we save the purchase order how the delivery dates in the schedule line are getting changed .

    Now my question , is from where the delivery dates are updating in the Purchase order and once we save the purchase order how the delivery dates in the schedule line are getting changed .
    For third party processing, the delivery dates are updated in the purchase order based on the settings in the field Planned delivery time in the MRP2 view of the material master(defined in purchase info record in t.code ME11/ME12) and purchasing processing time defined in t.code OMEW. This means, since the date of PO created, it will take the days mentioned in the planned delivery time field and purchasing processing times to determine the delivery date, which will be copied into the sales order as delivery date. In your case, the purchase order delivery date is not copied into the sales order, hence you may need to check OSS note. How the PO is handled? Any confirmation control functionality is used?
    Regards,

  • Update PR delivery date via CN22

    Hi all,
    I'm looking for a way to change the PR delivery date from CN22.
    I managed to update via IW32 using user exit 'EXIT_SAPLCOZF_002', but couldnt find an equivalent exit for CN22. Have also tested using BAPI_REQUISITION_CHANGE but it locks the screen if it's in display mode.
    Appreciate your advice soonest.
    Thanks in advance.
    Kartini

    Hi Kartini,
    Finding BADI's for transaction codes, here is a ABAPcode,
    *& Report Z_FIND_USEREXIT *
    REPORT z_find_userexit NO STANDARD PAGE HEADING.
    *& Enter the transaction code that you want to search through in order
    *& to find which Standard SAP User Exits exists.
    *& Tables
    TABLES : tstc, "SAP Transaction Codes
    tadir, "Directory of Repository Objects
    modsapt, "SAP Enhancements - Short Texts
    modact, "Modifications
    trdir, "System table TRDIR
    tfdir, "Function Module
    enlfdir, "Additional Attributes for Function Modules
    tstct. "Transaction Code Texts
    *& Variables
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    *& Selection Screen Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECTION-SCREEN SKIP.
    SELECTION-SCREEN END OF BLOCK a01.
    *& Start of main program
    START-OF-SELECTION.
    Validate Transaction Code
    SELECT SINGLE * FROM tstc
    WHERE tcode EQ p_tcode.
    Find Repository Objects for transaction code
    IF sy-subrc EQ 0.
    SELECT SINGLE * FROM tadir
    WHERE pgmid = 'R3TR'
    AND object = 'PROG'
    AND obj_name = tstc-pgmna.
    MOVE : tadir-devclass TO v_devclass.
    IF sy-subrc NE 0.
    SELECT SINGLE * FROM trdir
    WHERE name = tstc-pgmna.
    IF trdir-subc EQ 'F'.
    SELECT SINGLE * FROM tfdir
    WHERE pname = tstc-pgmna.
    SELECT SINGLE * FROM enlfdir
    WHERE funcname = tfdir-funcname.
    SELECT SINGLE * FROM tadir
    WHERE pgmid = 'R3TR'
    AND object = 'FUGR'
    AND obj_name = enlfdir-area.
    MOVE : tadir-devclass TO v_devclass.
    ENDIF.
    ENDIF.
    Find SAP Modifactions
    SELECT * FROM tadir
    INTO TABLE jtab
    WHERE pgmid = 'R3TR'
    AND object = 'SMOD'
    AND devclass = v_devclass.
    SELECT SINGLE * FROM tstct
    WHERE sprsl EQ sy-langu
    AND tcode EQ p_tcode.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) p_tcode,
    45(50) tstct-ttext.
    SKIP.
    IF NOT jtab[] IS INITIAL.
    WRITE:/(95) sy-uline.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 sy-vline,
    2 'Exit Name',
    21 sy-vline ,
    22 'Description',
    95 sy-vline.
    WRITE:/(95) sy-uline.
    LOOP AT jtab.
    SELECT SINGLE * FROM modsapt
    WHERE sprsl = sy-langu AND
    name = jtab-obj_name.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    WRITE:/1 sy-vline,
    2 jtab-obj_name HOTSPOT ON,
    21 sy-vline ,
    22 modsapt-modtext,
    95 sy-vline.
    ENDLOOP.
    WRITE:/(95) sy-uline.
    DESCRIBE TABLE jtab.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No of Exits:' , sy-tfill.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(95) 'No User Exit exists'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(95) 'Transaction Code Does Not Exist'.
    ENDIF.
    Take the user to SMOD for the Exit that was selected.
    AT LINE-SELECTION.
    GET CURSOR FIELD field1.
    CHECK field1(4) EQ 'JTAB'.
    SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    Try with this, hope it will meets ur requirement.
    Regards
    Arani Bhaskar

  • Update of delivery date on purchase order line

    Hi,
    Is it possible that the delivery date in the purchase order is automatically updated. When the required delivery date changes in the sales order when there is a link between the two?
    If yes, how?

    Thank You!
    My problem is solved regarding DELIVERY_DATE but I am getting new problem .
    I am getting error message
    "Control indicators for controlling area UPS do not exist"
    when I use BAPI BAPI_PO_CREATE1 . 'UPS' is the new controlling area that in which I am creating the Purchase order.
    Please suggest me some solution.
    Thanks,
    Sonali.

  • PO Delivery date change using IDOC type "PORDCR101"

    Hi All,
    I am trying to create a PO using idoc type "PORDCR101". Everything is fine, PO is getting created. But the problem is that, even if I pass delivery date at item level system is automatically changing delivery date to future date (some of the PO's have delivery date in past and they need to be created as it is).
    I am populating all the required fields (PO_ITEM, SCHED_LINE, DEL_DATCAT_EXT, DELIVERY_DATE, QUANTITY, STAT_DATE) in both the segements "E1BPMEPOSCHEDULE" and "E1BPMEPOSCHEDULEX" (in this segement with X). It's updating the quantity exactly with what I am passing, but it's not considering delivery date. But when I am creating PO manually using ME21N I am able to set delivery date to past date.
    E1BPMEPOSCHEDULE
    PO_ITEM=20
    SCHED_LINE=0001
    DEL_DATCAT_EXT=1
    DELIVERY_DATE=20060509
    QUANTITY=101584
    STAT_DATE=20060509
    E1BPMEPOSCHEDULEX
    PO_ITEM=20
    SCHED_LINE=0001
    PO_ITEMX     =X
    SCHED_LINEX=X
    DEL_DATCAT_EXT=X
    DELIVERY_DATE=X
    QUANTITY=X
    The funny part is IDOC is not even thowing a warning message for this...
    Any idea what I am missing???
    Thanks for your time.
    Paul
    null

    Ok, I got the answer. For delivery date category (DEL_DATCAT_EXT) we should not be passing 1, but we have to convert it into 'D' (And relevant format for others).

  • MD04- show delivery date when using a GR processing time

    Hi all,
    If you have a planned delivery time as well as a GR processing time on the material master- is there a way of showing the actual delivery date (from the PO) and not the total lead time (planned delivery date + GR processing date)?
    Thanks in advance.
    J

    I think that there's a button on the bottom of MD04 labeled "GR" and switches to "AV", that you can use exactly for that, switching between the two types of lead time.
    Regards,
    Mario

  • Updating Outbound Delivery Bill-to Using SD_PARTNER_UPDATE

    Hi everyone,
    I have a requirement to update the outbound delivery partners, specifically Bill-to and Payer.
    The customer system version is 4.6c, so the BAPI to update the delivery found in 4.7 onwards is out of the question for now.
    I found a function module SD_PARTNER_UPDATE, however I am having difficulty in making it work, even with the COMMIT statement.
    Does anyone have any experience in using the function module, and can you provide at least an idea on how to populate and properly use it?
    Thanks in advance.

    A better option would be to use a break point on this FM while creating a sales order. That way you will know how standard uses this FM.
    Thanks,
    Vikram.M

  • Update Operation to SAP Failed using BDC Model

    Hi All,
    I am working in Duet Enterprise 1.0 development in SharePoint. At SAP front Query, Read and Update operations have been developed and the corresponding WSDL and Endpoint URLs are generated.
    I need to use these WSDL and Endpoint urls and perform Update operation in SharePoint. For this I need to pass the parameters POSCLKey, CorrelationID, ReleaseCode and PONumber for the update operation.
    I have written the following code:
     using (new Microsoft.SharePoint.SPServiceContextScope(SPServiceContext.GetContext(site)))
    BdcService service =
    SPFarm.Local.Services.GetValue<BdcService>();
                            IMetadataCatalog
    catalog = service.GetDatabaseBackedMetadataCatalog(SPServiceContext.Current);
    //IEntity entity = catalog.GetEntity(ConfigurationManager.AppSettings["NameSpace"], ConfigurationManager.AppSettings["EntityName"]);
    IEntity entity = catalog.GetEntity("http://bccplmoss:9999",
    "Purchase Order V1");
    foreach (KeyValuePair<string,
    IMethod> methods in entity.GetMethods())
    ILobSystemInstance LobSysteminstance = entity.GetLobSystem().GetLobSystemInstances()[0].Value;
    IFieldCollection fieldCollection = entity.GetUpdaterView("UpdatePO").Fields;
    IMethodInstance methodInstance = entity.GetMethodInstance("UpdatePO",
    MethodInstanceType.Updater);
    string Relcode = "V1";
    //string[] parameters = { "1022_7400000011_ZPURCHASE_ORDER_HEADER_SPI_SERV_160", "7400000011", Relcode };
    Identity identity = new
    Identity("1022_7400000011_ZPURCHASE_ORDER_HEADER_SPI_SERV_160");
    IMethodInstance methodinstance = methods.Value.GetMethodInstances()[methods.Key];
                               IEntityInstance
    entityinstance = null;
    entityinstance = entity.FindSpecific(identity, LobSysteminstance);
                                entityinstance.Update();
    Error Details Are:
    Error Occurred in the following line:
    entityinstance = entity.FindSpecific(identity, LobSysteminstance);
    Error Description:  The shim execution failed unexpectedly - The incoming policy could not be validated. For more information, please see the event log..
    Is there any Alternate Method to update the data into SAP through BDC model? Please suggest me at the earliest.
    Thanks & Regards,
    Murali Krishna Tatoju
    Best Regards, Murali Krishna Tatoju SAP Duet Developer

    Hi all,
    Now we are able to pass all the required input data to the update operation
    and no errors exist for this operation. But when we execute the update operation, the PO is not getting updated at SAP. But same operation
    is working fine from DUET-ABAP. As a test, we executed this operation from DUET ABAP front and generated the log (/iwfnd/view_log) log
    has been generated. The same operation when we executed from Sharepoint and when we looked into 14-hive logs, nothing has got generated
    for update operation. 
    Note: when executed this update operation from SharePoint, in /iwfnd/view_log, no logs generated for updated operation.
    Please suggest me a way so that I can sort out this issue.
    Best Regards, Murali Krishna Tatoju SAP Duet Developer

  • Data not updating in table ,data transfered using DTW

    Hi Everybody,
    I had transfered data using DTW, it shows that data imported,but it not updated, that means it not shows in database.
    So please so me any solution to this.
    Regards,
    Srinivas

    Hi suda,
    I am giving he detailes of the BusinessObject
    BusinessObject =oUserLanguages
    template=oUserLanguages.csv
    i had copied the oUserLanguage.csv file and entered data into it and saved it(comma deliminated)
    steps:
    1.i had selected oUserlanguage object from list.
    2.i had selected source file (oUserLanguage.csv )
    3.the data properly matched and data is displayed when source tab is pressed. and ields are properly matched.
    4.three check boxes are checked.
    5.i had seen the message you are sucessfully specified required information for imporing data
    6.in lost step it shows like below
    Total:  2 business object(s)
    2 business object(s) imported successfully
    0 business object(s) not imported
    0 business object(s) updated successfully
    0 business object(s) not updated
    7.in log files status shows succeeded
    But I had cheked the languages , the data imported not shown.
    Regards
    srinivas

Maybe you are looking for

  • PO creation wrt PR only

    I want to make PR creation madatory for PO creation; PO shall always be created when a PR exists for it. Is there any std functionality or development is required. Thanx, Suz

  • Need help w Adobe Acrobat 9 Pro reinstall from CS4 Master Collection disks.

    Hi all, I'm hoping that you can help me with something. This bug is costing me tons of time and frustration, so whoever can give me a walkthrough, step by step, of what to do, will be my favorite person of the year. I have Adobe Acrobat 9 Pro that I

  • Can't activate the COMPARE function for object DNL_CUST_TVAST for Adapter

    Hello I've applier OSS note 866824 to enable the exchange of the sales area flag deletion. I had to do the initial download for the customizing object DNL_CUST_TVAST but it failed because the no intial load was permitted as the data distribution was

  • New project photos won't display.

    I imported some vacation photos into Aperture Version 3.1.3 yesterday. They were imported directly into a new project I created  After importing I could view the images and edit and delete.  12 hours later the project appears blank in that no thumbna

  • Error in  VT01N

    Hi all, In Tcode: VT01N, after  shipment completion activity i saved the doc and system gives an error "Post Goods Issue" is not allowed (HU 145) Message no. BS007 after this systemresets the shipment completion Any inputs chidambaram