Skip to Content
A C

Debugging Delivery Creation

Hello,

I’m trying to debug a delivery creation program from the VA02 menu. The requested delivery date is today’s and the Material Availability Date is in the future. I get the error message that no schedule lines are available for delivery.

I would like to know that which SAP program/form exactly does the check on Material Availability Date and then throws the above error.

Thanks!

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Feb 12, 2014 at 11:44 AM

    Hi Alice,

    First consider the following example:

    0 in stock.

    There is a production order with a finish date in the future. Production Orders are considered in the ATP check via transaction OVZ9. So, lets say we have a production order with finish date = 5th March 2014, CO09 will look like this:

    Now when we create a sales order with a requested delivery date = today (12th Feb), the system cannot confirm as there is no available quantity until 5th March. Therefore, the system will confirm on 5th March:

    If I was to deliver this sales order today, I get the message "No Schedule Lines due for delivery up to the selected date". The "Selected Date" is automatically today's date when you deliver from the menu option in VA02. You have the option of manually entering the date in VL01n.

    The reason you get the error is because todays date is earlier than the material availability date. As per the long text of the message "If this is the case, set the selection date further into the future if you still want to create a delivery for this item." - you can do this in VL01n:

    From debugging viewpoint, the most relevant code is here:

    SAPFV50C FORM LIPS_FUELLEN_AUS_VBEP (Include SAPFV50C_LIPS_FUELLEN_AUS_VBEP)
    ********************************************************************

    LOOP AT XVBEP WHERE VBELN = CVBAK-VBELN AND

    POSNR = CVBAP-POSNR AND

    ( MBDAT LE LV50C-DATBI OR

    TDDAT LE LV50C-DATBI ).

    ********************************************************************

    ^^The LOOP is only true is MBDAT (Material Availability Date) is less than or equal to LV50C-DATBI (Selection Date). Within this loop, LF_DELIVERY_FLAG is set:

    * Flag: at least one schedule line is copied into delivery

    LF_DELIVERY_FLAG = CHARX.

    that goes on to create the delivery. When the LOOP is not true, the system never sets the flag and you get the VL248 message. In the case above, it wont be true as LV50C-DATBI = today (12th) while MBDAT = 5th March.

    Hope this helps.


    Capture.JPG (28.6 kB)
    Capture1.JPG (33.6 kB)
    Capture2.JPG (29.5 kB)
    Capture5.JPG (14.2 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 11, 2014 at 06:01 PM

    Hi Alice

    You can simply note down the error message number and message class. Again try to create delivery but switch on debugger.Breakpoint at-> Message number-> Provide message details...(new debugger) it will stop where error is thrown. Check the call stack for program details

    Nabheet

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 12, 2014 at 06:31 AM

    Hi Alice,

    One of the reasons why the above error comes is that there is no confirmed quantity available on the requested delivery date. Please check if you have some confirmed quantity on the RDD.

    Regards,

    Varun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 12, 2014 at 11:58 AM

    Hi Alice D' Souza ,

    In new debugger set breakpoints at message statement. It will lead you directly there.

    You can check the condition written over there which results into that message.

    Regards,

    Pravin

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 12, 2014 at 12:35 PM

    Hi,

    Note down the error message details and put a break point in new debugger by providing the message details (id,number and type).

    please activate the update debugging as well while debugging because if error occures while updating then it iwll stop or else it willnot stop even though you put breake point at message.

    or try one more method that open message in SE91 tcode then try where used list from there and put break point an debug. some times it will not work(if they are generating dynamic message ).

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.