Skip to Content
author's profile photo Former Member
Former Member

SD_SALESDOCUMENT_CREATE required data to get correct schedules data

Hi all!!

I need to create sales documents through this function module. I Entered the following data:

SALES_HEADER_IN: All required data


SALES_SCHEDULES_IN: ITM_NUMBER=000010, REQ_QTY=100, REQ_DATE= 02.12.2008 (today).

I expect that the table SCHEDULE_EX throws the following lines:

ITM_NUMBER=000010, REQ_QTY=100,COMMIT_QTY=49, TP_DATE= 02.12.2008

ITM_NUMBER=000010, REQ_QTY=100,COMMIT_QTY=51, TP_DATE= 02.01.2009

These lines are because 49 units are in stock and 51 are not and they can be delivered one month after.

But after I execute the function I check the SCHEDULE_EX table and I have this:

ITM_NUMBER=000010, REQ_QTY=100,COMMIT_QTY=0, TP_DATE= 02.12.2008

ITM_NUMBER=000010, REQ_QTY=0,COMMIT_QTY=0, TP_DATE= 02.01.2009

Do I have to put more data in the function to accomplish the desired result?

Please help!


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 02, 2008 at 09:51 PM

    are you sure the stock is there? what happens if you go to the sales order in SAP created by the BAPI, and do ATP check there?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      When I save the document through the BAPI and see it from the transaction in R3 it shows the following:

      Item:10 Material: MAT1 Confirmed qty.:0 Mat.av.dt.:02.12.2008

      Item:10 Material: MAT1 Confirmed qty.:100 Mat.av.dt.:02.01.2009

      but when I create other document in R3 with the same data it throws the desired results.

      Please help...

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2008 at 05:20 AM


    • Fill schedule lines

    lt_schedules_in-itm_number = '000010'.

    lt_schedules_in-sched_line = '0001'.

    lt_schedules_in-req_qty = p_menge.

    lt_schedules_in-REQ_DATE = sy-datum.

    APPEND lt_schedules_in.

    • Fill schedule line flags

    lt_schedules_inx-itm_number = '000010'.

    lt_schedules_inx-sched_line = '0001'.

    lt_schedules_inx-updateflag = 'X'.

    lt_schedules_inx-req_qty = 'X'.

    lt_schedules_inx-REQ_DATE = 'X'.

    APPEND lt_schedules_inx.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Miguel,

      did you ever checked the customer you want to make an order for?

      It could be a problem if the customer is locked for delivery or he has

      passt his credit limit.


      Edited by: Tobias Nell on Sep 9, 2009 3:34 PM

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.