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
Similar Messages
-
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
KumarHello 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 -
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. -
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 -
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 ?
-
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. -
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.
RegardsDear 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 - 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,
MeghnaIn 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. -
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
SudhakarHello 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. -
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..
ThanksHi
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 -
Schedule line category CN is inconsistent with the MRP type
Guys,
I am running into an issue here..
I have change the MRP type of articles from ND (no planning) to PD (MRP)
Now when I try to change sales oders on this articles (VA02), I get error message saying that the Schedule line category CN is inconsistent with the MRP type
Does that make sense to any of you and what is/are the remedies
KR - LoïDear
When you have created SO at that time the MRP type was ND so based on that System has picked the Schedule line category CN which is No mat.planning. Create new SO this problem will not come. Based on Strategy & PD schedule line category will come as mat. planning.
Regards
ABhijit Gautam -
Schedule Line Category for MTS material
Hi All,
I am working on the MTS (make to stock) scenario. The MRP type being used is VM - Automatic reorder point planning" as the client wants the system to calculate the reorder point dependng upon the consumption.
I have used MP30 to calculate the reorder point. As far as the sales order is concerned, when I enter the MTS material & check the schedule line category determined is "CV - consumption MRP".
I check ed in VOV6 & CV is not relevant for Transfer of requirement & Availability check. I changed CV to CP & now the system is carrying out the availability check & transfer of requirement.
Have I done the right thing, will the system record the consumption of the particular material? In the material master I have used W in the period indicator & used forecast type as "G".
Is the shcedule line CP correct ot wormg.? Please also explain me what is the use of schedule line "CV".
With best regards,
Niyaz Sayyed.Dear Niyaz Sayyed
The schedule line categories BV and CV are Consumption based MRP and controlled in the same manner as the categories BN and CN. However, requirements can be passed on for analysis purposes.
For more information on this, check this help link
[Consumption-Based Planning |http://help.sap.com/saphelp_47x200/helpdata/en/f4/7d255644af11d182b40000e829fbfe/frameset.htm]
thanks
G. Lakshmipathi -
Schedule line category is in grey mode
Hi All,
Schedule line category is in grey mode at the time of sales order creation inspite of assigning other schedule line category as manual sc.category in schedule line determination.
I am also not able to change in change mode.
Earlier i was able to change the schedule line category in sales order but not now.
Please help
Regards
Jitendra SinghHi,
Manual schedule linemay not be maintained in the schedule categories assignment
Goto VOV5 - Assign schedule line categories
Select your Item categories + MRP type + schlc + (Maintain ) Manual schedule line categories
now try creating new sales order, now it will allow you to enter manual schedule line which is maintained in your entry.
Regards
Senya
Maybe you are looking for
-
Help with Upgrade report in FI
Hey All Gurus, Im in a thick soup here. I am trying to do something like this - if you see the selection screen i have rep and super rep, when a user enters a rep value --- it should use the same value to pull all open items for the super rep as well
-
LaserJet CP1025NW Color Printer - Weird cranking noise when printing or rotating carousel
Just out the package today, the first time turning on the printer, during all print jobs and when rotating the cartridges, the carousel is making a weird cranking noise coming from the left side of the printer. I understand that this printer does mak
-
I have an IPOD Classic with purchased music and I want to sync it with a different PC but I get the message your device is synced with another PC. How do I resolve this issue? I don't have the previous PC.
-
Starting iTunes 11 with the option key does not allow me to link my ipad with Remote
I am using my Macbook Pro as a pure music server with a 2TB external USB 3 HD where all my music resides in a single folder. Yet when I start iTunes by holding the option key (to allow iTunes to see the 2TB folder and not import all my music), the D
-
How to compile in Java Source???
Hello, I'm studying a way to compile java files to class files in the java source. I have use the sun.tools.javac.Main to do this, but I have noticed that it aint recomended to use. I also wan't to get the possible errors from the compiler (if java f