Creating SD schedule lines in user exit
Hello,
We are automatically creating schedule lines for a certain kind of SD document (scheduling agreement, VA31) in a user exit. We are inserting directly into internal table XVBEP.
Creating those lines works. The values in VBAP and VBEP are exactly the same as if they were created manually, even though the confirmed quantity is only calculated when the document is saved. The requirements show up in MD04 for example.
However, for some reason index table VEPVG is not updated accordingly. Any ideas what we're missing?
Thank you
Roland
Found it myself. We didn't maintain the client field when adding new lines to XVBEP. This didn't matter for database table VBEP, but it did matter for index table VEPVG for some reason...
Similar Messages
-
MRP create more Schedule Lines than target quantity
We already follow the OSS note 83343, we create a Schedule agreeement and validity date is the same as the Source List and Quota arrangement, also the Target Quanity is the same in the quota arrangement in the maximun quantity and Maximun release qty fields.
After maintaining that data, we run the MRP as follow:
Processing key NETCH Net change for total horizon
Create purchase req. 2 Purchase requisitions in opening period
Delivery schedules 3 Schedule lines
Create MRP list 1 MRP list
Planning mode 1 Adapt planning data (normal mode)
Scheduling 1 Basic dates will be determined for plann
After that, still in teh schedule agreement was created more schedule lines that the quantoty is bigger that the target quantity in the sched Agreement.
What else we miss??Thanks for your not help.
That I can investigate is the quota arrenagement is incorrect but for some reason the QA is not working. -
Create a schedule line in sales order using Bapi
Hi Guys,
Here the requirement is automating the process of creating the schedule lines using Bapi.
I am using the bapi BAPI_SALESORDER_CHANGE for the same.
I could able to create a schedule line but the problem is,its not updating the CONFIRMED QUANTITY and COMMITTED QUANTITY on
sales order schedule line tab,its updating ORDER QUANTITY and ROUNDED QUANTITY.
the structures and tables parameters i have updated are:
IMPORT PARAMETERS: SALESDOCUMENT,ORDER_HEADER_INX-UPDATEFLAG= 'U'(change sales order).
TABLES:SCHEDULE_LINES(ITM_NUMBER,REQ_DATE,REQ_QTY,DLV_DATE)
SCHEDULE_LINESX(ITM_NUMBER,UPDATEFLAG='I',REQ_DATE,REQ_QTY,DLV_DATE).
Please help me out if i need to fill up any other parameters or anything am missing out here.
Would appreciate your help.
Thanks in Advance
RamuDear Ramu ,
Any solution to this Issue i have the same Requirement and faceing the very same problem.
Thanks in advance for reply .
Thanks alot.
regards
Prashant Singh -
How to create new schedule lines for existing item programatically using bapi or function module?
Hi,
Check if this link helps you:
http://forumsa.sdn.sap.com/search.jspa?threadID=&q=createschedulelines&objID=f50&dateRange=lastyear&numResults=15&rankBy=10001
Regards,
Swarna Munukoti. -
Which is the PO line level user exit available?
Please advice.HI.
Goto se24 class builder ,
Display the Class Cl_exithandler . There is a function name get_instance, Double click on it and pu a session breakpoint on the function METHOD cl_exithandler=>get_class_name_by_interface
Now run the Transaction, it will be executed in the debugging mode and find the value of the variable... exit_name in it.
You will get the exit name.
regards,
Kapil. -
Backorder scheduling creating multiple schedule lines
Hi,
We have one issue wherein Backorder scheduling is creating multiple schedule lines for the same date.
I would lke to know how to approach this issue, what all needs to be checked in config to prevent it from creating multiple schedule lines.
ThanksRajendra,
You didn't mention what kind of order, but the first things to try are the same regardless.
Use an availability checking type in your material master that uses daily requirements, similar to SAP standard 01. You can review the checking types in OVZ2, use one that has a "Total Sales" entry of B.
You can also change the default confirmation behavior. OVZJ, set Avail check rule to "blank" or B "full delivery" if you are talking about sales orders.
Rgds,
DB49 -
Create dummy schedule line in SO using User-Exit
Hi ,
I have one requirement of adding one dummy schedule line before the normal schedule lines which gets added after ATP check in sales order.
for eg: if for line item 10, system will determine 2 schedule 1 and 2. then i want to add a dummy schedule line before 1.
so it will be like
sch line
1 - Dummy
2 - system generated schedul eline 1.
3 - system generated schedul eline 2.
Please let me know if is there any user excit or any way i can achive this?
Thanks,HI Soni,
What is the meaning of dummy schedule line.
Regards,
Madhu.
Edited by: madhurao123 on Feb 25, 2011 5:26 AM -
Sales Order Line Items User Exit - Credit Management/ Exposure Calculation
Hello Folks
I am looking for a solution to a peculiar problem we have in credit management.
In case of Drop Ship sales order life cycle, the system automatically creates two line items per sales order - one each for Freight and Handling Fees. these are NOT relevant to schedule line delivery, nor are they billed to the customer along with the material billing. The default update rule for credit control area concerned is 12. The system, on finding line items not relevant to schedule line delivery automatically switches from rule 12 to 18. This leads to Open Deliveries field (S067-OLIWW) being updated instead of Open Orders (S066-OEIKW) on saving the sales order.
Once the sales order is billed for the material, the system should logically display net value as zero for the open order (as the 2 lines of fees and freight are not yet billed, the order is still open). But the system considers this figure at SALES DOCUMENT HEADER level and considers the net value as the total value of the sales document (including the material that is already billed).
What I am looking for is if there is an exit available whereby the system considers only those line items whose billing status indicator is "not complete". As such, the net value should be updated to the S067-OLIKW field net of the billed items.
Please advise if there is any such user exit available. Also, is there a way to customize this? We are exploring this at our end, but would appreciate an expert advise. Right advise will be awarded with brownie points
Regards
Mandar BarveVKM1 uses FM SD_ORDER_CREDIT_RELEASE to release orders on credit.
-
ME21N Update Text in Line Item User Exit
Hi, I have created a new PO text item for use in ME21N that I want to populate from document details held in the material master. After entering a material number what user exit do I need to use to update internal tables for display of the document details before they are saved along with the other PO details. I know the tables where the material document details are held. Thanks.
BADI ME_PROCESS_PO_CUST.
Note that this BADI has a number of methods with parameters defined as "Importing" which makes it look like you cannot change data, but some of these parameters are "TYPE REF TO" objects which themselves have methods such as GET_DATA and SET_DATA that actually allow you to access and change the fields.
Search for previous posts including "ME_PROCESS_PO_CUST" - there is sample code in some of them.
In transaction SE19, if you display the BADI then select menu option goto>sample code>display, you will be able to drill down on the PROCESS_ITEM method to some SAP supplied sample code.
This includes the definitions and method calls to get the item data:
DATA: ls_mepoitem TYPE mepoitem.
ls_mepoitem = im_item->get_data( ).
You then just change relevant fields in structure ls_mepoitem and call the set_data method to pass the data back
call method im_item->set_data exporting im_data = ls_mepoitem.
Take care with what you change - SAP does not validate that you have passed back correct / consistant data.
Not sure if the text field you want will be available - you may need to look at further methods of the BADI or of the parameter objects. If you drill down on the objects that the method parameters are defined as TYPE REF TO you will see the methods that are available - the GET_DATA and SET_DATA ones I have mentioned above are only a small part of the options. If there are none dealing with texts at the Header / Line, then you may need to put your code in at the latest method available (once the PO number is allocated) and call the SAVE_TEXT function module to do your update - not 100% way of doing it because standard code may save in update event and have rollback handling.
To use the BADI you will need to create an implementation of it - there is a menu option in SE18 to do this, or you can use SE19.
Andrew -
Scheduling agreement : BADI/User Exit
Hi All,
I need BADI's or User Exit's for Sheduling Agreement (ME31L) during Creation or Change.
I have tried seraching the Forum, the other Help avaliable, the package, the cl_exithandler debugging method & all. I resulted in writing this thread Question. -- Plz help
In scheduling agreement functionality, Certain validations and checks using user exit or BADI during creation of scheduling agreement should be done.
For Ex: a)No two scheduling agreements should exists in system with combination of
(Material & Vendor document type delivery address for the same validity period)
User Exit should check
b)Items with multiple Tax code should not be allowed in the same SA ,i.e. all SA items should have same tax code
c)Items with multiple Material Number should not be allowed in the same SA
Please Help me with providing the User Exit's or BADI's for above similar validations. I can Proceed further with Coding.
Thanks& Regards,
Chaitanya LPlease check these & find the appropriate one.
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into PO
MM06E008 Monitoring of contr. target value in case of release orders
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MM06E011 Activate PReq Block
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
M06E0005 Role determination for release of purchasing documents -
*MRP unable to create Delivery Schedule Lines in MM Scheduling Agreement*
Hi Experts,
I need your help...
The issue is, in-spit of maintaining Source List with an u201CScheduling Agreement with item No.u201D & u201CSource List Usage in MRPu201D as 2 (Record relevant to MRP. Sched. lines generated automatically), MRP run does not generate Schedule Lines, instead PRs are created.
Please help me to understand such behavior and fix the issue as the requirement is to generate Schedule Lines only.
Thanks,
PratapHello
Please check
1) Source List maintained properly in terms of Material # ; plant # ; proper POrg ; Schd Agr # and line item# ; proper validity date & MRP relevant indicator
2) Please also check Quata arrangement if you are using. whether % is maintained correctly against the vendor
3) MD03 , Delivery schedules- should be 3
4) check your planning horizon whether it is NETCH or not
5) check material master -MRP2 view, Procurement type is F- external procurement, schedule margin key if you are using
if everything above is set, then I feel it should work
Also please verify-
lot size, safety stock and the corresponding prod volume for MRP input v/s the stock available in MMBE
example.
MD04, we can see the open del lines.
if SS = 50 , prod volume is 150
1) if MMBE shows 200 then it wont generate any schedule.
2) if MMBE is 180 and your lotsize is 40, then after MD03, you will have a schedule line of 40 (provided if everything is set properly)
Please ensure there are NO open delivery lines . if you find such in MD04, then please close open delivery lines
in calculation of MRP, system considers such open delivery lines are going to receive and no additional schedule line generated even after MRP run
thanks -
MRP not creating some schedule lines
Hello Gurus,
I hava peculiar issue for a Material.which has got dependent requirement from a header materila.
For some reason they want to run MD03 for this partnumber "ABC" . Materila is x type. It has got Valid SA, Valid SOurcelist,Valid QA.It has rounding value of 60, MRP type PD and EX .Not plannig teimw fence RLT is zero, GR time is 1 days .
In MD)4 below u can observe SChedule line is created except for feb 2nd, 03rd,o6, 7th.
QUESTION-1 :In below MD04 report no schedule lines were created for Dep req of feb 2nd, 03rd,o6, 7th.
Question 2:- even when STock is minus 6717 , the schedule line generated is for just 1400 etc
MD04 for "ABC" in Plant
02/01/2012 SafeSt Safety stock 480.000- 47.000-
10/17/2011 OI-SL 0451404013/00030 6.000 41.000-
01/25/2012 DepReq 28299890 4.000- 45.000-
01/31/2012 DepReq 28299889 512.000- 557.000-
02/01/2012 ShipNt 0197672394/0550397074 540.000 17.000-
02/01/2012 DepReq 28299889 600.000- 617.000-
02/02/2012 ShipNt 0197676022/0550397074 900.000 283.000
02/02/2012 DepReq 28299889 300.000- 17.000-
02/03/2012 DepReq 28299889 3,300.000- 3,317.000-
02/06/2012 DepReq 28299889 1,400.000- 4,717.000-
02/07/2012 DepReq 28299889 1,400.000- 6,117.000-
02/08/2012 SchLne 0550397074/00010 1,320.000 4,797.000-
02/08/2012 DepReq 28299889 1,400.000- 6,197.000-
02/09/2012 SchLne 0550397074/00010 1,380.000 4,817.000-
02/09/2012 DepReq 28299889 1,400.000- 6,217.000-
02/10/2012 SchLne 0550397074/00010 1,380.000 4,837.000-
02/10/2012 DepReq 28299889 1,400.000- 6,237.000-
02/13/2012 SchLne 0550397074/00010 1,740.000 4,497.000-
GURUS PLEASE ADVICE
Edited by: HKR on Feb 1, 2012 4:43 PMHello
Please check if there is any rescheduling exception messages near the fixed planning elements.
Notes 71877 and 25388 provides more details about the rescheduling check during the MRP run.
BR
Caetano
Edited by: Caetano Almeida on Feb 1, 2012 12:33 PM -
How to create multiple schedule lines for configurable products
Hi -
We have enabled variant configuration and would like to have multiple scheudule lines created , but it seems that only one line is avaialble, is there any way to configure the use of multiple schedule lines?
Note - we are not using KMAT material types, rather triggering a unique kit compoments within Sales BOM.
We have been able to make the necessary adjustments to allow the creation of the Scheduling agreement and have the BOM explode correctly, but just am not able to trigger multiple sched lines.
thanks
BillYour context node shall contain all these fields like country,city,etc as different attributes.so in your view configuration,add all these fields whatever you require from the AVAILABLE FIELDS section to the DISPLAYED FIELDS section.NOw all these attributes would be added in diff rows.What you need to do is,select the first attribute,lets say COUNTRY,click on this attribute and then on the buttn SHOW FIELD PROPERTIES.Thsi will show you the label name etc.Here you change the label name to NATIONALITY.Also ,it will show you the row no,cloumn span of the field and column span of the label.You need to reduce the column span of the field value.Ie if the column span is from D TO H,reduce it from D TO F.Now goto the next attribute eg CITY and in the same way,goto the attribute properties.Here ,There is a check box SHOW LABEL,uncheck this,and now goto the row no and the cloumn span.Make the row no same as that of the COUNTRY FIELD.The column span should howevrbe statring from where the column span of country field ended.Ie Teh column apsn of counrty field ended at F .So for CITY,the column span should start from G to amybe H.Now this is how you need to accomodate the other fields also in the same row,by changing the row no and column span in the field properties.
Suvidha -
FB60 Line item User exit/BADI/BTE
Hi Guys,
I need a user exit/ BADI/BTE to change the Line item in FB60 transaction. Please let me know ifyou know any enhancment on this. Thanks
Regards,
GaneshHi Dude,
Following are the list of BADIS for FB60 tcode
BADI_FDCB_SUBBAS01
BADI_LAYER
BADI_FDCB_SUBBAS02
PPA_CUST_BADI
BADI_FDCB_SUBBAS03
WRF_PREPAY_INVOICE
BADI_FDCB_SUBBAS04
BADI_FDCB_SUBBAS05
ADDR_LANGU_TO_VERS
ADDR_PRINTFORM_SHORT
BADI_MATN1
For your requirement the releavant badi is PPA_CUST_BADI
Thanks & Regards
Ramakrishna Pathi -
Sales order line item user exit?
Hi Folks,
Can any one of you suggest me an user exit in sales order line item level?
I want something which stops before/ or just after entering the quantity in the item level.
We wanted to set up a issue which deals with rounding profile comming from CMIR record to take from Ship-to rather than standard Sold-to party functionality.
Thanks a TON in advance.
Praveen.Praveen,
Check this post
https://forums.sdn.sap.com/click.jspa?searchID=7098802&messageID=1674246
Regards,
Satish
Maybe you are looking for
-
How do I make a new album in iPhoto for iPad?
Maybe I'm missing something obvious but I can't figure out how to make a new album or event in iPhoto. Is there a key somewhere?
-
Photo Mail doesn't work!! HELP PLEASE!!
Windows 8.1 Elements 11 Windows Live Mail. I've done EVERYTHING under the sun to try and get the mail to work. Will the brightest MVP Tech from Adobe please contact me with the fix. I know that there are millions of computers out there that are a
-
I've lost my iPod whilst cycling in the street, What do I do?
Before cycling, I brought my iPod Touch with me and put it in my hoodie pocket. I was going to listen to music but decided not to and left it in my pocket. Arriving at my destination about 15 minutes later, i notice my pockets empty. I cycle back, fo
-
I have replaced a PXI 4060 card with a PXI 4070 card in a PXI 1042 chassis that I use for resistance measurements. I want to use DAQmx drivers instead of the traditional daq drivers. How can I do this? My controlling software is VB6. I have had is
-
I've bought the season 1 of "The Wire" (7episodes), when I synchronize with my PC, it only charge the first and last episodes and not the 5 episodes in between ??