Schedule line category defalut value in Inquiry

Hi All
I need to poulate default value ' Z2 'for schdule line category in Inquiry for specific document types . I am able to populate default value in inqurily . i am using MV45AFZZ.  But as per requirement if user manually changed the schedule line category then the changed value should remain and not default value Z2.
If i change the Z2 value to some other ,after that it is immediately coming again Z2.  the changed value is not coming in XVBEP.
Is there any way to hold the changes in same exit..
Thanks

Hi
Before passing u r value to the Field. Check if has any value if so do not pass the value.
LOOP AT XVBEP.
    IF XVBEP-ETTYP IS INITIAL.
         XVBEP-ETTYP = 'Z2'.
    ENDIF.
ENDLOOP.
Write this in Save_document_prepare.
regards,
Raghu

Similar Messages

  • User exit for va01 to validate the value for schedule line category

    Hi All,
    Pls tell me which user exit i used for to validate schedule line category for tcode VA01 .suppose i have two value in scedule line category CP and CN. but when user enter CP it will show warning message that CN is default or pls enter valied value.How to do in user exit.
    Nitin K

    Hi Nitin
         Try userexit_move_field_to_vbep in MV45AFZZ
             or userexit_check_vbep in MV45ZAFZB.
           check vbep-ettyp for the schedule line category and write the logic.
    Kuntal

  • 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

  • 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

  • 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 determination

    Hello All,
    I have a requirement to determine the schedule line category based on the item category, I know that this can be handled through the customization, but the problem that I have right now is,  for my item category I have two schedule categories, I have to get the supplying plant and the deleivery plant and then need to determine the schedule line category.
    So as per the requirement whenever the I change the schedule line category also the purchase requistion screen gets modified and in the Purchase requisition screen we give the supplying plant and get back to the schedule line tab we need to see the new value in the schedule line category.
    Please help me out with your valuable suggestions.
    BR
    Sudhakar

    Hello all,
    I was not able to find out any exit to get the my required details, but as i am working ECC 7.10, I have created an enhancement point  in the program FV45EFEP_VBEP_FUELLEN in the from Routine VBEP_FUELLEN_VBEP, in this form routine I have created an implicit Enhancement point and based on the item category with the conditions I was able to determine the Shedule line category, and after this the system take cares to get the required details into the next screens.
    Thanks a lot.

  • Default schedule line category

    Hey Gurus,
    Is there a way to default the schedule line category by material?  How does this value get defaulted when a schedule line is created?  Is this tied to the item category?  If so, how do I assign a default schedule line category to the item category?
    Sincerely,
    Nina

    Nina,
    Your questiont is exactly the contrary.
    1. Schedule line is defaulted based on MRP Type and not bymaterial
    2. Item category   +  MRP Type (Material master)  = Schedule line Category
           TAN                       ND       =    CN
           TAN                       PD       =    CP
           KBN                      ND       =     E0
           KEN                      ND       =     C0
           KAN                      ND       =     F0
           KRN                      ND       =     D0
    after this assignment when you run a normal process the Schedule line category appears by default in your order screen. (Go to Item Details screen, Choose schedule line tab, scroll horizontally you can find schedule line category appearing)
    3. Yes, we should assign schedule line to item category For Ex. In case of consignment item category we have KBN - E1 or E0, KEN - c1 or c0, KAN - F1 or F0, KRN - we
    4, First we can either use Existing Schedule line category or create your own schedule line category by pressing "New Entries". Tcode VOV6
    5. Then we need to assign this schedule categories to item category and MRP type. Tcode VOV5
    Note: we can assign three Manual schedule line categories to overwrite default prposed by the system.
    NOTE: Schedule line category checks whether TOR (Transfer of requirement), Availability Check should be carried out, whether PR should be generated or not.
    These configuration depends and changes according to your business requirements.
    Regards
    Sathya

  • What is the significance of Schedule line category

    Pls let me know the role of Schedule line category in SD at various levels like documents etc

    Hi Prem,
    Schedule line Category is used to provide different control options for the items throughout the sales process. By defining a schedule line category, we
    determine which schedule lines are actually relevant for Delivery. We must activate the relevant delivery indicator if we want the goods to be physically delivered.
    We can activate a delivery block in the schedule line category, this block is then automatically set at the
    schedule line level in the sales document.
    In the schedule line category we set the movement type to control which changes to quantities and values are posted to inventory accounting.
    regards,
    Raj

  • 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.

  • 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

  • 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

  • Account assignment in schedule line category for third party sale

    in settings for schedule line category CS -for third party sales, in the field Account Assignment category we assign X-all auxiliary account assignment.
    what is the purpose and reason for using account assignment category in third party and at what point of time this comes into picture in third party sales process

    Hi Sudha A,
            Procureement against customer requirement will be booked against cost or expense account. So when creating PO, this account assignment category is determination factor for respective G/L accounts in MM.
    - Account assignment category will have general modification assigned. in MM account determinatoin OBYC settings-
    Valuation group code(this needs to be confirmed) + General Modification + valuation class determines G/L account.
    This is how G/L account will be displayed in PO - item level - account assignment tab.
    To see the settings in account assignment category - check the help of the field & choose customization & observe in details.
    Hope it clears,
    Regards,
    Reazuddin MD

  • 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.

Maybe you are looking for

  • Captivate to create web site?

    I'm considering using Captivate to create a web site. Has anyone done this with success? If so, I'd love to hear about any learnings or caveats you may have. Thanks.

  • Flash files in a container

    Hello I hope someone can guide me in the right direction. I am producing a cd in Flash. I want my flash files to play inside of a container/frame. The container will be viewed as a red bar at the top and bottom of the flash, containing my play, pause

  • Setting cookie path for JSESSIONID cookie for admin console

              We've run into a strange problem with the JSESSIONID cookie created for the weblogic           console application clashing with the JSESSIONID cookie created for our application.           We've set the path to application JSESSIONID cooki

  • I Can't stop weblogic server in bea workspace studio

    Hi, I can't stop weblogic server with eclipse stop button (just throw me a timeout), only can I do is killing the java.exe process or run stopWeblogic.exe. How can i solve this bug?? Thanks a lot. Edited by: user3023949 on 27-mar-2009 5:59

  • No create Plant button at the Set "Delivery Completed" Indicator" config

    Dear Gurus, I would like to do the configuration to set the Delivery Completed indicator. Therefore, I went to the following menupath: SPRO -> Materials Management -> Inventory Management and Physical inventory -> Goods Receipt -> Set "Delivery Compl