Schedule line Category CN not defined.

hi all,
I am trying to create sales order using FM BAPI_SALESORDER_CREATEFROMDAT2 in a program.
when i am giving multiple line items i am getting error Schedule line Category CN not defined.
this is happening when there is multiple schedule line items and they have different schedule item category.
if schedule line item category is same for all items it is creating sales orders.
even if there are items having schedule item category 'CN', they are processed correctly. the sales order is getting created. the problem arises only if there are mixed schedule item categories for multiple items.
is there any error in coding or some configuration is missing. I have searched a lot on SDN but did not find any specific solution??
Can anybody provide some help??
Thanks!!

no solution

Similar Messages

  • Schedule line category change

    Hi,
    I am changing itemcategory when shipping type is changed at header level. But for this changed itemcategory schedule line category is not changing. I tried this piece of code in FORM USEREXIT_MOVE_FIELD_TO_VBKD.
    IF SVBEP-TABIX > 0.
      VBEP-ETTYP = 'YT'.
    ENDIF.
    It's going inside the loop. But it's not populating to the screen ?
    Any ideas I tried in FORM USEREXIT_MOVE_FIELD_TO_VBEP. too, but no luck??????

    Hi Subha,
    Please try to code.
    USEREXIT_MOVE_FIELD_TO_VBKD.
      IF SVBEP-TABIX > 0.
        XVBEP-ETTYPP = 'YT'.
        XVBEP-UPDKZ = 'C'.
      ENDIF.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Question on Schedule Line category in Sales Order not relevant to MRP

    Hi experts,
    I want to know whether the sales order having any schedule line category like CP, CN, etc will not be relevant for MRP. In other words, If I do the MRP run for the Sales Order Requiremnt having any Schedule Line Category in particular will not generate any procurement proposals like Planned order/ Purchase Requisitions. Please advice me on the same.
    Regards
    Brijesh

    Dear Brijesh,
    Please find some info related to scheduled lines below,
    The various schedule line categories are controlled in different ways:
    The schedule line AT in inquiries is used only for information.
    No requirements are transferred and no availability check is carried out for the schedule lines BN and CN.
    Requirements are transferred and the availability of the material is checked for the schedule lines BP and CP.
    No stocks are managed for the schedule line categories BT, CT and CX. No goods issue is posted for the categories BT and CT. However, goods issue is posted for CX.
    The schedule line categories BV and CV are controlled in the same manner as the categories BN and CN. However, requirements can be passed on for analysis purposes.
    Goods receipt is posted for the schedule line DN in a returns document.
    The schedule line categories CN, CP, CT, and CV are relevant for delivery; the other schedule line categories are not.
    *Control Elements for Schedule Line Categories
    Different schedule line categories are permitted according to the sales document type and item category you are using. You can use control elements to tailor the schedule line categories to meet the special demands of your installation. You can also define new schedule line categories.
    Hope this helps.
    Thanks
    Murtuza

  • Why schedule line category must needed

    Hello Experts,
    I gone through several threads in the forum but still confused.
    I got the info like...
    It confirms the
    1. confirmed date of delivery
    2. confirmed quantity of del
    3. Availability check
    4. Transfer of requirement
    a.purchase requisition type
    b. delivery block
    c. movment type of goods
    The Schedule line contains the delivery date and quanitity in a slaes document item. This is only a one line explanation for your understanding purpose only.Tcode VOV6.
    Now please kindly explain me with an example without slc what will not happen.
    one Item can have many schedule lines . Why we need many SLC for one item please tell me with example.
    Thanks in advance for all the replies

    Hi,
    If you take a sales order document, it is divided into three parts:
    Header Level information :
    This consist of the overall information of the sales document, for example Net value of the sales order and the like.
    Item level information :
    This consist of information at item level, like Item 1 has a material with a net price so and so, item 2 has another material with another net price and so and so.
    Schedule line information :
    This gives the information of the time a sales order has to be delivered to the customer, to view this select the item you want to view and to the menu under item >> Schedule line. This date is actually calculated from the delivery date in the Sales document.
    Schedule line Agreement :
    Use the T.code VA31 (and choose Scheduleline agreement) : This agreement lets you to predetermine scheduling of different materials with in a given period of time (This is same like the other contracts).
    First enter the material with quantity say for example Material 1 Qty: 100, go to Edit from the menu >> Item >> Schedule line
    There select within the time period defined two dates, say for example on 12: 01: 2005  40 quantity and on 13: 01: 2005 rest 60 (The qty has to be same as the one in the sales order) .
    Once this is done you have created a schedule line agreement.
    Call this agreement in your sales order (with reference) and use them.
    Imp: You will be able to deliver only 40 qty on the 12th and 60 qty on the 13th, even though the sales order is for qty 100
    Best Regards,
    Amit.
    Note: Schedule Line Category is also needed for Movement Type Determination and Availability Check.
    SM30 - Table View - V_TVEPZ -> Assign schedule line categories
    First check the Proposed schdule line category (SchLC)   - double click on the line item
    VOV6 - Maintain the schedule line categories - double click on the line item
    For example, you can control the default returns movement type.
    651 - two steps - with a transfer posting using 453
    653 - one steps - direct post to unrestricted used
    Control the Transaction Flow (tick to activate the function)
    transfer of requirement
    for availability check for sales
    production allocation active

  • Schedule line category - CN

    Hi,
    I'm PP Consultant. I want to know the meaning of Schedule line category CN - No Mat. Planning for sales order line items
    Thanks & Regards,
    Sankaran

    Dear Sankaran
    The items in a sales document are divided into one or more schedule lines. These schedule lines differ from each other with respect to date and quantity.
    Different control elements are also defined for the schedule lines. For example, for some schedule lines, material requirements planning is not carried out; for other schedule lines, it is carried out. Also goods receipt, not goods issue, is posted for a schedule line defined in a returns document.
    The various schedule line categories are controlled in different ways:
    - The schedule line AT in inquiries is used only for information.
    - No requirements are transferred and no availability check is carried out for the schedule lines BN and CN.
    - Requirements are transferred and the availability of the material is checked for the schedule lines BP and CP.
    - No stocks are managed for the schedule line categories BT, CT and CX. No goods issue is posted for the categories BT and CT. However, goods issue is posted for CX.
    - The schedule line categories BV and CV are controlled in the same manner as the categories BN and CN. However, requirements can be passed on for analysis purposes.
    - Goods receipt is posted for the schedule line DN in a returns document.
    - The schedule line categories CN, CP, CT, and CV are relevant for delivery; the other schedule line categories are not.
    thanks
    G. Lakshmipathi

  • Requirment class & Procedure for each schedule line category

    Hi all,
    In requirment class we have a switch on/off indicator for avai check and TOR.In define procedure for schedule line category also we have the same.
    If I dont want the system to carry out availabilty check, I can switch off the indicator in requirment class or at schedule line category.
    My question is why we have these indicators in 2 places.
    It is written we can fine tune these settings at Define procedure for schedule line category settings
    Could anyone explain in details with Business scenarious
    Thanks in advance
    Mano

    Hi,
    1. Availability check at Requirements Class level -
    The requirements class contains all control features for planning such as relevance for
    planning, requirements planning strategy and requirements consumption strategy.
    In addition, it is specified at a global level whether an availability check is to take place for
    the material in the sales and distribution documents on the basis of the ATP quantity
    (ATP = available to promise) and whether requirements are to be passed on.
    2. Availability check at Schedule line category level -
    A finer degree of control can be obtained for sales documents using the schedule line category.
    Replenishment lead time is only included in the check performed on the basis of the
    ATP quantity.
    You can control with the schedule line category whether an availability check and
    transfer of requirements should be carried out in the sales documents.
    Note -
    1. At the global requirements class level, the availability check can only be switched on in combination with the transfer of requirements. At schedule line level, the settings are proposed from the requirements class.
    2. If the availability check is switched on at requirements class level, it can be switched off at schedule line level. However, you cannot switch on the availability check at schedule line level, if it is switched off at requirements class level. You can make this setting at schedule line level. But the system ignores it and the setting for the requirements class applies.
    3. Also, at schedule line level when the availability check is switched on, the transfer of requirements can be switched off. For example, this makes sense for inquiries or sales information.
    4. The settings specific to schedule lines for performing an availability check are only relevant for sales documents. In the shipping documents, the settings from the requirements class and the delivery item category are used. As with the schedule line category, the availability check can be switched off as required in the delivery item category.
    regards
    bhaskar

  • Schedule line number determination - Schedule line category CP(MRP)

    Hello All,
    I want to know on what basis schedule line numbers getting determined.
    Schedule line category: CP-MRP
    Sales order line items getting confirmed based on the Planned order--> production order created through MRP run.
    I have created sales order line item 1 with 100 quantities. for example I created today. RDD also today.
    3 production order created.
    Those production orders confirmation date as below.
    Production order 1 - 60 quantities - 14.04.2014
    Production order 2 - 30 quantities - 16.04.2014
    Production order 3: 10 quantities - 18.02.2014.
    There are four schedule lines for the line item 1.
    All the 4 lines showed as per the confirmation date order.
    But the schedule line numbers are not as per the above order.
    For example,
    Schedule line number   ----- delivery date ----- Confirmed qty
    1.                                         09.04.2014            0
    3.                                         14.04.2014            60
    2                                          16.04.2014           30
    4                                          18.04.2014            10
    On what basis this schedule numbers getting determined? Is there any standard procedure ?
    Why schedule line numbers not inline with the confirmed date?
    Let me know if you need more information.
    Thank you.
    Regards,
    Rakkimuthu C

    Hi,
    Schedule line number is the number that uniquely identifies the schedule line .
    Use When an item has more than one schedule line, the system automatically assigns a unique number to each line. The number is displayed in the details screens for schedule lines.
    Note The schedule line number serves internal purposes and does not, for example, determine the sequence of schedule lines in the overview screen. The schedule lines on the overview screen are sorted by date.
    The schedule line number will get created automatically by the system. I hope this will clarify your doubt. Thanking you.

  • Sales order we have made schedule line category catCN but still reqt coming

    Dear Sir,
    Sub : For sales order 5000060 line 10 we have made schedule line category as CN but still system is giving requirement against this order (while running MRP T code MD50)
    Details:
    One user has made one FG material delivery with PGI without putting the picking quantity. He had put zero picking qty. When we click PGI button System does not allow to do PGI without putting the picking qty but how he could do it we do not know. Now there is no goods issue material document instead one confirmation of service document is there in doc flow .we can not open this document. if we click display by selecting this document in document flow system gives error - NO document created for confirm service/cancel transaction
    All the delivery fields are gray out. Delivery qty is there in this delivery hence at sale order schedule line tab against the schedule line system is showing delivered qty -2.
    Goods movements status is B- partially completed.
    Also system is not allowing to reverse the delivery- it is saying-no data available for this selection criteria. Hence we are not able to do delivery against this item. Hence we have created sale order line item 20 & transferred this stock to line item 20 & did subsequent transactions.
    Now system giving requirement for line item 10 .We have made schedule line category CN still system is giving requirement against delivery number  in T code -MD 50 against sale order line item- there is customer order ,delivery, production order .delivery number never comes in MD50 .it is giving requirement against delivery.
    Kindly let us know how to stop the requirement to generate from this sale order line item
    Also kindly let us know how user could make this & how this might have happened & how to restrict this in future.
    Regards

    Dear Sir,
    When we create a sale order default sch line category is CN after few days (there is a specific reason) we change it to CP & run MRP
    In this case we made the product by doing this but while doing delivery .user did some mistake & did PGI without picking qty in delivery.Now this qty is in delivery but there is no material document that stock has not yet moved .Since there was a problem in the delivery we have trasfered this stock to sale order line item 20.& did further transactions.
    Afte this we did schedule line cat from CP to CN
    But in MD50 system is giving the requirment against sale order ,delivery
    Regards

  • How to use bapi to change so's schedule line category

    dear friends:
       I try to change so's schedule line category using bapi "BAPI_SALESORDER_CHANGE", but it doesn't work,the code is as following:
      T_SCHEDULE_LINES-ITM_NUMBER = ITAB-POSNR.
      T_SCHEDULE_LINES-SCHED_TYPE = ITAB-ETTYP.
      T_SCHEDULE_LINES-SCHED_LINE = '0001'.
      APPEND T_SCHEDULE_LINES.
      T_SCHEDULE_LINESX-ITM_NUMBER = ITAB-POSNR.
      T_SCHEDULE_LINES-SCHED_TYPE = ITAB-ETTYP.
      T_SCHEDULE_LINESX-SCHED_LINE = '0001'.
      T_SCHEDULE_LINESX-UPDATEFLAG = 'U'.
    who can tell me the reason.thanks in advance.

    Hi 
    First try to execute same bapi in test mode and then check thwe respective SO if this work then you have to commint the changes through program, some more help on this topic
    The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

  • Schedule Line Category - sales order

    Hi All,
    I have 2 sales orders with the same material in the item shows 2 different schedule line categories.
    For example:
    Sales order 1 with Item A  - Schedule line category - CB
    Sales order 2 with Item A - Schedule line category - CN
    What could be causing this? Nothing has changed in the material master.
    Any input would be helpful.
    Thanks,
    Meghna

    In both the sales orders--- is the delivering plant is same or not??(pl check)
    Apart from the above suggestions--pl check whether this material has been maintained with different MRP types in different plants.
    Yes it is possible-
    1.a same item can contain two different schedule line categories either in one sales order if maintained in different line items or
    2. In different sales orders...
    If a item has been maintained with two different MRP types in different plants--then different schedule line categories can be determined.
    Pl update us.
    Phanikumar

  • Schedule Line Category change-USER EXIT

    REQUIREMENT:
    When saving a SALES ORDER, Change the schedule line category on the SALES ORDER from CP(Standard Availability Check) to CS(Third Party Processing u2013Trigger Purchase Requisition)
    Initially when we create the SALES ORDER, we have Schedule line category CP to generate schedule lines based on stock availability
    SO Date- 09/14/2010
    Schedule line 0001--- 09/14/2010 --- Confirmed Qty (0) --- Sched Line Categ(CP)
    Schedule line 0002--- 09/16/2010 --- Confirmed Qty (1) --- Sched Line Categ(CP)
    Config Change: We have changed the Schedule line category- CS to turn off Purchase Order Scheduling (Indicator turned off--P.req.del.scheduling)so that when we change the schedule line category, no PO scheduling happens again
    Our requirement is that when saving the sales order, we want to change both the schedule lines item category-0001/0002 from CP to CS
    SO Date- 09/14/2010
    Schedule line 0001--- 09/14/2010 --- Confirmed Qty (0) --- Sched Line Categ(CS)
    Schedule line 0002--- 09/16/2010 --- Confirmed Qty (1) --- Sched Line Categ(CS)
    After saving the order, a Purchase Requisition is generated for the Schedule Line 0002..
    MY QUESTION:
    Is this possible using the BAPI_SALESORDER_CHANGE without changing the dates on the schedule lines or deleting any schedule line
    Thanks
    Kumar

    Hello Kumar,
    Please check the User exit and let us know whether your requirment is met or not.
    #USEREXIT_MOVE_FIELD_TO_VBEP
    Use this user exit to assign values to new fields at the level of the sales document schedule lines.
    The user exit is called up at the end of the FORM routine VBEP_FUELLEN.
    Regards,
    Sarthak

  • Updation Error in Schedule line category using 'BAPI_SALESORDER_CHANGE'

    HI ,
    I am using BAPI_SALESORDER_CHANGE to Update schedule line category for an order.But the issue is...the entries are updated if it is having single schedule line item,but if more than on item it is giving error in Last Record.
    15192625   000200 0001 2.608.596.065               130,000  21.09.2009 ZX CP
    *15192625   000200 0002 2.608.596.065                 0,000  04.02.2010 ZX CP
    *EV1                  335System error: Schedule line 0002 for item 000200 does not exist
    EV4                  219Sales document 0015192625 was not changed
    i have written the code like below:
    loop at i_ma4_etenr.
              i_salesdocument = i_ma4_etenr-vbeln.
             i_order_header_inx-updateflag = 'U'.
            r_schedule_lines-itm_number = i_ma4_etenr-posnr.
            r_schedule_lines-sched_line = i_ma4_etenr-etenr.
            r_schedule_lines-sched_type = i__ma4_etenr-ettyp .
            APPEND r_schedule_lines TO i_schedule_lines.
            CLEAR : r_schedule_linesx.
            r_schedule_linesx-itm_number = i_y16v_ma4_etenr-posnr.
            r_schedule_linesx-sched_line = i_y16v_ma4_etenr-etenr.
            r_schedule_linesx-updateflag = 'U'.
            r_schedule_linesx-sched_type = 'X'.
            APPEND r_schedule_linesx TO i_schedule_linesx.
    endloop.
            CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
              EXPORTING
                salesdocument               = i_salesdocument
                order_header_inx            = i_order_header_inx
              TABLES
                return                      = i_return
                schedule_lines              = i_schedule_lines
                schedule_linesx             = i_schedule_linesx.
    Thanks in Advance,
    Sateesh Kumar.

    Hi,
    As you are facing error , so check wheather in VA02 schedule line fields have been uploaded or not initially.
    If they are not uploaded then you will be facing the error.
    Otherwise check:
    Did you pass the X fields for the schedule lines properly. As you are changing only the schedule lines, Just pass the SCHEDULE_LINES , SCHEDULE_LINESX Internal tables.
    Please also check whether anything is passed to ORDER_ITEM_INX- UPDATE field. it should be blank.
    May it helps you.
    Regards,
    DS.

  • Credit exposure and the Schedule line category

    Hi,
    I have a problem in credit exposure update in FD33.When I use the schedule line category xx which has req/Assembly marked in schedule line category settings is updating the sales order values in Fd33 even if the sales order (while creating) is blocked due to credit.
    Whereas I use the schedule line category YY which has req/Assembly not marked in schedule line category settings is not updating the sales order values in Fd33  if the sales order(while creating) is blocked due to credit.
    Is this the standard behavior? If so Why.
    Regards
    Babu

    Hi Babu,
    Yes, this is a standard behavior.
    Please refer to note 393304.
    If the flag "transfer of requirements" is not set, that means that credit-blocked order won´t update credit values.        
    In this document has a complete explanation regarding this proceeding.
    I hope it can help you.
    regards
    Ruy Castro

  • Maintain schedule line Category

    Hello,
    Could you please advise on following:
    Example:
    I have a delivery date for example 06.08.2012 and choose the Schedule line cat. Y1 the delivery date in purchase req remains the same 06.08.2012, but when i choose Y2 the date is becoming 05.08.2012.
    I have checked the schedule line category definition T-Code: VOV6 for Y2 the P.req.del.sched (Purchase requisition with delivery scheduling) is selected.
    Could you please advise if this is a reason and how the date is calculated. I mean were are the setting. I thing there should be somwhere one day and zero but cannot find it.
    Regard.
    M.

    Hello,
    The problem I have is that when i change the schedule line categorry from Y1 to Y2 or create the SO with schedule line category Y2 the delivery date in PR which is created while creating SO (Purchase-To-Order SO) is
    one day back.
    Example:  schedule line cat Y1
    Delivery date in SO is 06.07.2012  delivery date in PR 06.07.2012 fine for me.
    But
    schedule line cat Y2
    Delivery date in SO is 06.07.2012 delivery date in PR is 05.07.2012 one way back, not fine for me, I would like it to be the same like it is in Y1 so 06.07.2012 not 05.07.2012.
    Can you advise where are the settings ??
    Thank you in advance
    if you need more information please let me know.
    m.

  • Changing Schedule Line Category after checking Item availability

    Hi Expert,
       I would like to change the schedule line category according to the result of item availability check, i.e. change to another self defined schedule line category in case confirmed qty < order qty.
       Could any one please suggest where I can implement this logic? Which user-exit is required to modify? Thanks a lot!

    hi,
    U can change the SCH line category manually in sales order
    Menu path:
    Spro-->Img> sd> sales -> sales documents>sch lines-> assign sh line categories---->
    here find ur current combination
    eg:
    ITem cat+ MRP TYPE= SCH LINE CAT + MANUAL SCH LINE CAT
    <b>TAN + ND=CN+---<u><i><b>here u give teh sch lien cate u want</b></i></u>----</b>
    this will aloow u changing sch line cat manually in sales order
    regards,
    Arun prasad

Maybe you are looking for

  • IPod 4th Gen will no longer connect to my home wifi, what can I do?

    This problem started recently, I would arrive home, take my iPod off airplane mode (and yes, wifi did turn on) but my iPod would just not connect to my home wifi. I went to wifi>choose a network and manually selected my network but when I did, it wou

  • Why do i get a BOBJ prompt in xcelsius with my live office feed

    dear all, the situation ... i have an excel document, with a live office feed. the data feed is assigned a specific user from the sap ecc backend system. i have this excel live office saved locally on my c drive. i can open it up, and hit the refresh

  • SAP PI 7.1. Splitting XMl file after 998 rows.

    I need to split the XML file for FI interface after 998 rows. How I can use File content conversion with XML file at sender adapter? Please suggest me a solution.

  • Sort by name separates upper/lower case

    Since upgrading from Mountain Lion to Mavericks (10.9.4), I've noticed that I am no longer able to sort files by name and get one list in alphabetical order. I now get two, as Mavericks seems to be sorting out files beginning first with uppercase let

  • MIME Settings Don't Work

    Hi, Since I've bought my Mac, I've had no problems playing flash content on websites with the quicktime plugin. However, for some reason, recently whenever I go to any websites with flash content, a quicktime symbol will showup with a question mark a