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

Similar Messages

  • Change Schedule Line category through user exit - Issue with transfer of requirements

    Dear All,
    There is a user exit in Sales Order program MV45AZZ - PREPARE_TO_SAVE . It is currently being used to implement code to change schedule line category based on the status of the sales order.
    When Blocked , category is set to ZP, and when Released then it is set to CP.
    Now, when we change ZP to CP manually through VA02, I am able to see the requirements transferred in tcode MD50.
    The problem is, when user changes status of sales order from blocked to released, the userexit changes categories from ZP to CP, but the requirements are not transferred ( cannot see it in MD50 ).
    I tried searching the SCN, tried googling it, its been a week now and I havent found any clear solution.
    So, far what I understood is Availability Check needs to be carried out again. But I am not clear how to trigger it again.
    Are there any indicators that need to be set or any internal tables to be updated or any FM to call or any other user exit to place the code in.

    ?? Any suggestion friends ?

  • 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

  • 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

  • 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

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

  • Change schedule line category

    HI,
    I wonder if somebody can give an idea of how to change schedule line category of non-stock products by order type.
    Thanks,

    Hi,
    Did you check the userexit FORM userexit_move_field_to_vbep in the include MV45AFZZ
    Thanks,
    Naren.

  • 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

  • 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

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

  • Showing non-MRP relevant Schedule Line category in MD04

    We have a business requirement to show Quotations of non-MRP relevant schedule line category in MD04. We are at an initial stage of design. Is it possible to use any of the user-exits (during MD04 opening) that we can use to display such elements ? We were unable to find any workaround with the Select Filter option.

    Hi,
    You might need to use program: SDRQCR21 to delete those faulty SO which appear in MD04. You may go to tcode:SA38 to run the program.
    You may refer to my printscreen below for better understanding if you wish to.
    Thanks.
    Edited by: Lakshmipathi on Oct 26, 2010 8:57 AM
    You have already been warned in the past not to paste your blogs in this forum and still you ignored our requests.  Your name has been referred to the concerned forum panel for their action
    Edited by: Lakshmipathi on Oct 26, 2010 3:45 PM

  • Sale order -Schedule line category

    Dear Friends
    I have made schedule line category for one of the sale order type as CN .When sale order will get created it will have schedule line category as CN as a default.This was the requirement of the company.When we want the requirement from the sale order any body having the authorisation of VA02  can go to sale order in change mode(va02) & can change the schedule line category from CN to CP.
    Now the requirement is that we want to restrict the user having the authorisation of Va02 from changing the schedule line category from CN to CP.Only authorised person shall be allowed to change the shechedule line category from CN to CP.
    Can we lock this ??
    Regards
    Abaso Patil
    +91 9967578237

    Dear Abaso,
    You may try with "Staus Profile" for Schedule Line Category in Sales Order with
    T. Code: BS02/ OIBS
    As soon as, your Sales Order will be created the same will be blocked with Status as "NR - Not Released". Only the appropriate person with authorization in to his user-profile will able to "R - Release" the same.
    I think, this must ful-fill your requirement.
    Best Regards,
    Amit.

  • 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

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

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

Maybe you are looking for

  • Multiple Price options while creation of PO

    Hi SAP Gurus,                    The client requirement is that to have multiple price options at the time of creation of PO.can we achieve this through standard SAP, if not any workarounds OR any development needed?If it is development please provid

  • IPad doesn't recognize MacBook on network

    Good morning. I use my iPad through Airport as a Verizon Wireless hotspot to use my MacBook Pro to work online.  This morning, howver, the iPad doesn't show up in the network list (although other, unassociated networks do) even when it's plugged dire

  • Exchange 2010 - Method to send e-mail when the WAN IP is dynamic

    Hello, I am writing due to the fact that I cannot send e-mail from my Exchange 2010 Server to my Yahoo! address for testing. When trying to do so, I get the following error message: mta1106.mail.gq1.yahoo.com gave this error: Mail from xxx.xxx.xxx.xx

  • How to convert MMYYYY to 0FISCPER format

    Hi, I would like to know how can I convert the following format, MMYYYY from a flat file into 0FISCPER format. What conversion routine, routine or formula should I use? BTW, this is an ASCII file and not CSV. Thanks!

  • Sharing 1 monitor, keyboard and mouse

    I have a brand new macbook (bought March 1, 2007). I additionally own a Dell tower running Windows XP. Is it possible to have the macbook and Dell PC share 1 monitor, keyboard and mouse via a KVM switch? How do I do it? What cables do I need? MacBook