Delivery Date Format in PO !!!

Hi Friends ,
I am uploading the delivery date from an input file to create a PO using BAPI_PO_CREATE1 . Before the BAPI call i see in t_poschedule-delivery_date = 08012006.This is the correct date which needs to be uploaded in PO . 
But after the BAPI call the t_poschedule-delivery_date = 06/23/2006.
Can you please advise why this is happening ??
Thank you

Here you go Dude...!!!
<b>FYI</b>
<b><u>OSS Note # 858316</u></b>
<b>BAPI_PO_CREATE1: Incorrect delivery date</b>
Symptom
You create a purchase order using the BAPI_PO_CREATE1 function module or the CreateFromData1 method of the PurchaseOrder business object (BUS2012). When you do this, you transfer the delivery date and/or the statistical delivery date in the schedule lines using the internal display YYYYMMDD, where Y stands for the year, M for the month and D for the day.
The system may issue one of the following messages during the processing of the data
ME 039
Delivery date is in the past
or error message ME 078
Delivery date outside period covered by factory calendar
Other terms
BUS2012, POSCHEDULE, DELIVERY_DATE, STAT_DATE, EEIND, EKET, ME078, ME039, EME078, EME039
Reason and Prerequisites
The problem is caused by a program error.
Solution
Implement the program correction.
The following logic applies for the conversion of the delivery date:
1. If the delivery date is transferred in the internal display (YYYYMMDD), the BAPI converts the delivery date automatically.
2. If the delivery date is transferred with . or - or / , then there is no conversion, since these are external date formatting characters.
3. If the delivery date is transferred in the internal display and the date category is also transferred (for example W or 2 for the week date), then the date is not converted.
Hope this’ll give you idea!!
<b>Pl... award the points.</b>
Good luck
Thanks
Saquib Khan
"Some are wise and some are otherwise"

Similar Messages

  • Delivery Date error while creating/uploading POs using LSMW

    Hi,
    I am facing problem in creating POs using LSMW. I am using direct input method with standard object 0085 for PO upload. But I am facing problem because of delivery date in the PO. There are basically two errors that I am getting:
    1) When the delivery date format is DDMMYYYY in the fileto be uploaded, the error that i get is "Please enter a valid delivery date"(Message No..ME 077)
    2) When the delivery date format is YYYYMMDD in the file to be uploaded, the error that i get isFor the K4 fiscal year variant, no period is defined for   .  .(Mesage no. F5 275)
    Please let me know how to rectify these errors.
    Thanks in advance.....

    Hi,
    You need to rectify the issue by applying attached corrections in SAP Note 1094336 - Error message F5 275 if requirement date is deleted.
    Summary
    Symptom
    The "Requirement date" field (EBAN-BADAT) was set to changeable in the the field selection. If the "Requirement date" field is deleted for a purchase requisition item, the system issues error message F5275 "For the xxx fiscal year variant, no period is defined for 00.00.0000".
    You can leave the process only with /n.
    Other terms
    BADAT, requirement date, F5 275, EF5275, E F5 275
    Reason and Prerequisites
    Usability
    Solution
    Implement the program corrections.
    Regards,
    Sandesh Sawant

  • Scheduling Agreement –delivery date in month format -  MD04

    Dear experts,
    Scheduling Agreement, forecast delivery schedule.
    When I enter a delivery date in month format, the system, during processing, automatically checks the factory calendar and proposes the first valid working day as the delivery date. ( Yes. I know it is a SAP standard )
    My requirement is automatically checks by the system  the last  working day as the delivery date.
    Could you tell me what are the settings i need to check to resolve this issue?
    Thanks in advance
    artur

    As pointed out already above you need to use a periodic lot sizing procedure.
    Use Lot sizing procedure P, Lot size indicator K and Scheduling =2
    As per your requirement, you need to create a calendar using MD25 with Months (Workdays) as a calculation rule with 1 as the period in the box provided.
    After a MRP run the delivery date would point to the last day of the month.
    But the requirement is a bit surprising as say for a requirement on the 1st of the month you will have the delivery showing up on the last day of the same month. Under what circumstances do you have this requirement as a valid one in your business case?

  • Automatic Delivery Date Calc with Formatted Search

    Hi,
    I'm trying to have the delivery date on purchase orders automatically calculated by using document date plus a value from the business partner master data (avragelate) which we are using as shipping time.
    What I have as my query is the following:
    Select $[$46.0.1]+t0.[avragelate] from ocrd t0 where $[$4.0.1]=t0.[cardcode]
    This is however returning an internal error when it runs.
    I have the formatted search set to run this query when the document date changes.
    Any ideas?
    Thanks,
    Michael

    Where are you linking this Formatted Search and how did you try to execute this?
    I don't generally post code before testing as I value the solution I provide and its importance to you...
    I had tested this and it worked just fine. 
    You should save this query and link this to the Delivery Date on the PO screen.
    I see you are a new member to the SDK forums.  If time permits please read through this link to know about the recognition program.. https://www.sdn.sap.com/irj/sdn/crphelp#section19
    Please let me know
    Suda

  • Formatted search: Query to get Delivery Date +30 in Newly created column

    Hi Experts,
    Becuase my client do not use serial numbers but wants to still see the date the 'Warranty Ending Date' on a Sales Order, I created an extra column in the Sales Order Lines named 'Warranty Ends'.
    Now I want to populate the Delivery Date +30 on the Sales Order.... I'm stumped - I don't know where to begin with this query and I'm sure it is not that complicated.
    Any help would be greatly appreciated.
    Thanks!
    Marli

    Did you try the sql function DATEADD? 
    Here's a link to the MSDN help text on it:
    http://msdn.microsoft.com/en-us/library/aa258267(SQL.80).aspx

  • Formatted Search Query on Delivery Date

    Hi Experts,
    I have another query that I have trouble with.
    On the Sales Order Delivery Date, the Client needs this to populate the 'Posting date +3, when the UDF ORDR.U_Type is '1'.
    When it is '2' it must  populate the 'Posting date +5.
    When it is '3' it must  populate the 'Posting date +0.
    I have started with the following, but found some errors:
    SELECT CASE WHEN $[ORDR.U_Type] = '1' THEN $[$10.0.date]+3 ELSE
    WHEN $[ORDR.U_Type] = '2' THEN $[$10.0.date]+5
    Any help would be appreciated.
    Marli

    Try this:
    SELECT CASE $[ORDR.U_Type] WHEN '1' THEN DateADD(dd,3,$[$10.0.date])
    WHEN '2' THEN DateADD(dd, 5,$[$10.0.date])
    ELSE $[$10.0.date]
    END

  • Delivery date time format in when logged in German

    Hi All,
    I have a case statement for the 3 types of deliverydateformat: DeliveryDateTime , DeliveryYearWeek and DeliveryYearMonth.
    the format for these 3 types are 'D', 'W' and 'M'.
    I have separate processing for these 3 types in the case statement.
    When logged in German, the formats are different from 'D' , 'W' and 'M'.. Hence my case statements are not executed.
    Please let me know if there is some conversion routine for these DeliveryDateFormat.
    Many Thanks,
    Srilakshmi B

    If your coding was copied from MV45AI0R_RV45A-KEDATU_EINGABE
    everything should be OK
    For special date-format issues check function CONVERT_DATE_TO_INTERNAL

  • Report: PO with delivery date

    Hi friends,
    I want to see the purchase orders for which the delivery date is over but item is not supplied yet. Is there any standard report for this?

    Hi
    in SE16
    use table EKET
    U will get desired report as per requirement
    If u want modify report as per need..Go to setting>Format list>choose fields
    I hope u will get required info by this report
    Award point if usefull ans.
    Vishal...

  • MRP Out Put  Schedule lines date format to month

    Hi Friends,
    I am working on SAP4.7 Version.
    I have maintained all the relavent MRP datas in material master.
    Like MRP type - PD,
    Lot Size- MB ( Monthly Lot size).
    I have created planned independent requirement in MD61 monthly wise for that material.
    I have given Schedule agreement number in Source in List with MRP indicator - 2.
    I am running MRP for a material with MD02 with MRP parameter Delivery schedules -3 (Schedule lines) .
    The MRP running succesfully and creating delivery Lines with delivery dates.
    But the requirement by the client is..
    The delivery lines should be generated in month wise.
    How to convert the schedule lines generated in day format to Month format in MRP run out put?
    While creating schedule lines with ME38. we have option to select the day format / month format/ week wise?
    But the MRP out put always generated in date wise?
    Any one knows what changes i should make?
    Guide me ..
    Thanks & Best Regards
    Giri

    Hai Boss
              Can you throw some light , how you set default mrp indicator month wise with the help of ABAPER.
    My client requirement also same like you. Yours is month, mine is week. Pl help me out.
    regards
    ssp

  • How to calculate delivery date

    Hello,
    I'm trying to use a formatted search in a Sales Order to calculate the delivery date per row.
    I found the following that could be my answer, but not sure how to proceed:
    DATEADD (datepart, number, date)
    Based on the item information on tab 'Planning' field Lead Time (OITM.LeadTime) I want to calculate the document date plus the Lead Time (or should I create a UDF?).
    I did created the following query:
    DATEADD(day, $[OITM.LeadTime], $[$10.0.DATE])
    When running the query I get the following:
    DATEADD(day, N'', CONVERT(DATETIME, '20080325', 112))
    As you can see it didn't fill the 'number' with the leadtime information (which is 3 in my case).
    And I receive the following error:
    1). [Microsoft][SQL Native Client][SQL Server] Incorrect syntax near 'day'. 2).[Microsoft][SQL Native Client][SQL Server] Statement 'User-Defined Values'(CSHS) (s) could not be prepared.
    How can I my result?
    Regards,
    Petronella

    This seems to work.
    SELECT DATEADD(day, (SELECT LeadTime FROM OITM WHERE ItemCode = $[$38.1.0]), $[$10.0.DATE])
    Regards,
    Douglas

  • Default category of delivery date in schedule lines

    Hi,
    When i enter transaction ME38, select an item and click on delivery schedule to input schedule lines,
    by default i can see 'M' in field category of delivery date.
    'M' is displayed in all the records, whether a sch line exists or not.
    In another system of mine, when i try to enter sch lines thru ME38, by default all records show blank in category of delivery date.
    I want to change the default category of delivery date as 'D' or want to keep it blank , but not 'M'.
    How can i change this???
    Regards,
    Sneha
    Points will be awarded for helpful answers *

    Hi w1n,
    following is the setting in my system.
    EN     C     5     Calendar format
    EN     D     1     Day format
    EN     K     2     Planning calender
    EN     M     3     MONTH FORMAT
    EN     P     4     Period format
    EN     W     2     Week Format
    Still it is showing me M as default in all the lines.
    M                 06.2008                  32      R01.06.2008     
    M                 06.2008                  24      R01.06.2008     
    M                 06.2008                  24      R01.06.2008     
    M                                                                  
    M                                                                  
    M                                                                  
    Can u pls help me out ???
    Regards,

  • Date format in PO printing.

    We developed a abap program, I copy the form MEDRUCK to a new form ZMEDRUCK, in ZMEDRUCK, I want to display the PO date and delivery date.
    All of these date is in format MM/DD/YYYY.
    Now the buyers want see the delivery date in the format DD.MMM.YYYY, for example, 15.Feb.2007. I inserted a command SET DATE MASK = 'DD.MMM.YYYY' in main window, when I print it in ME22N, I can see the PO date has been changed to format DD.MMM.YYYY, but the delivery date is still in format MM/DD/YYYY, so I inserted the command SET DATE MASK = 'DD.MMM.YYYY'  to the line before the the date display, the problem can not bed solved.
    BTW, the delivery date fields is PEKKO-LFDAT, RM06P-LFDAT and DC_EINDT (generated by the report from field EKET-EINDT).
    Best Regards,
    Slash Jiang

    Hi,
    From what i understand the field RM06P-LFDAT is giving the isuue.
    I had a similar problem in PO printout with scheduled quantity RM06P-PRMG1. The issue was that, the quantity was getting displayed as 2,000 for 2.00. The basis guy told me that, it can be altered via configuration, but for form printouts the configuration won't take effect.
    I got that solved by running a sepearte query in a subroutine and fetching the concerend value from the table into a variable i defined. 
    I would advise u to test the same.
    Regads,
    Roshan

  • Invalid date format causes system to crash

    Hello experts. I'm not sure where to even start looking to resolve this problem.
    In the shopping cart if a user changes the delivery date to an incorrect format it causes the system to hang. For example if the user enters a date in the past such as 03/01/2006 the correct error msg is returned.  However, if they enter an invalid format like <b>0/28/2006, 0328/2006</b> a pop-up box with the "invalid date" msg continuously appears. Even after pressing "ok" it pops up over and over again.
    The only way out is to terminate the application. Any help will be appreciated. Thank you

    Hi Jocelyne,
    SP contains a lot of notes including the one you want.
    If you do not want to test back all impacts generated by all the notes you do not want, you have to use option 2 which corrects only the bug you have now.
    Kind regards
    Yann

  • Getting Delivery Date of an item on Purchase to appear in Sales Order form

    Hi Experts
    Can you tell me if and how it might be possible to get the future delivery date of an item on a purchase order to appear at the row level in Sales Orders for an item which is out of stock?  I assume it will need some type of formatted search to pull the information out of the Purchase Order system or is there some standard SAP B1 functionality which I am not aware of?
    Thanks
    Jon

    Hi
    It is very difficult to get that date in sales order coz too many conditions involve in the querry.
    Ashish Gupte

  • Date selection and date format in MSSQL

    i have to make a select transaction with a microsoft SQL db. I have to select the entry in a given range of time. So i've made my little form with the datepicker of jquery. The datetime field in the database has this output:
    Jan 1 2014 12:00:00:000AM
    This is the format of the jquery datepicker:
    {dateFormat: 'M dd yy'}
    WHen i receive the GET call (but i've tested even with a POST and the output is the same)from the form i add the hours to the date (I'm using Zend framework 1.12):
    $startdate= $this->getRequest()->getParam('datepicker');
    $startdate= $startdate." 12:00:00:000AM";
    $enddate= $this->getRequest()->getParam('datepicker1');
    $enddate= $enddate." 12:00:00:000AM";
    But it probably is not the right one as my select query:
    SELECT [Document No_],[Sell-to Customer No_],[Planned Delivery Date],[Description],[Description 2] FROM dbo.SyncroPlanningTable WHERE CAST([Planned Delivery Date] as datetime)>='".$startdate."' AND CAST([Planned Delivery Date] as datetime)<='".$enddate."' ORDER BY [Planned Delivery Date] ASC
    doesn't give any output. What am I doing wrong?

    >>Jan 1 2014 12:00:00:000AM
    I am not sure(I am also not so good in Zend,but still would like to give it a shot), should the format be like this?
    Jan 1 2014 12:00:00.000 AM
    Also SQL stores the date in the format YYYY-MM-DD hh:mm:ss.fff(2014-02-12 21:41:00.293). So I think, if you pass the date in that format your query would work fine
    Satheesh
    My Blog |
    How to ask questions in technical forum

Maybe you are looking for

  • Sending email using IMAP through SMTP Port 587

    Hi, I have been sending Mail Merged email to people in organizations that I am active in, using IMAP embedded in StarOffice 5.2 (on Windows 98 Second Edition). This worked fine until a few weeks ago when I received an error message stating that AOL,

  • ITunes 6 - cleaning out duplicates and triplicates?

    Sorry if this has been covered before. I am using iTunes 6.0.4 (3) and I am still a newbie to the Mac OSX and iTunes. I am slightly irritated that all of the entries in my iTunes library are dublicates or triplicates. Is there any way I can change th

  • Inventory Cycle Analysis?

    I need to run an ABC report on inventory.  Is there some sort of inventory cycle analysis report that can tell me item turnover? Thanks!

  • SO document flow not updated with PR no created

    Hi All, A Purchase Requisitions is created from SO for a line item, i can see the PR generated in report ME5A but not in document flow. Is it a standard behavior or i'm missing something ?? Regards Abhilash

  • Travel Expenses (CATS) - cProjects 4.0

    Once an internal order is created, the resource(s) assigned to the task(s) can capture effort in CATS which, after approval, flow back to cProjects and get populated with the 'Confirmed' field of the Additional Data tab (for tasks). The resource woul