Schedule Line info from SD_ORDER_CREATE_WWW
We use the SD_ORDER_CREATE_WWW to simulate an order before creating it. However, this is not returning the schedule lines infomration. For the same material and quantity if I try to create an order in VA01 it gives me multiple schedule lines but when I use the the WWW or BAPI_SALESORDER_CREATEFROMDAT1 I am not getting any schedule lines. I see SAP notes about fixing this issue in earlier versions and I see the correct code so I know it should work . Any ideas on how to get this working ?
Thanks,
Anu
Anybody that can help me????
Similar Messages
-
Link between Delivery schedule line counter from PO and the material docume
Dear Gurus,
I have one PO with single line item having delivery schedule -
Material 1 -
delivery schedule 01.01.2009 2000
01.03.2009 5000
I have received quantity against this Po
I want to know where I can find the link between Delivery schedule line counter from PO and the material document
Best regards
SarThere is no link from the MAterial document line item (Table Mseg) to the PO Schedule Line (EKET).
If this is for Evaluating an on time delivery or GR, you may consider the following approach.
PO details Po Date QTY
Sch1 01Jun2009 200
SCH2 08Jun2009 100
GR Details
GR1 01Jun2009 180
GR2 07Jun2009 110
GR3 09Jun2009 10
Calculate a *** total qty for the PO Line.
PO details Po Date CUMUL QTY
Sch1 01Jun2009 200
SCH2 08Jun2009 300
Calculate a *** total qty for the ontime GR.
PO details Po Date CUMUL PO QTY CUMUL GR on time
Sch1 01Jun2009 200 180
SCH2 08Jun2009 300 290 (180+110) the 3rd GR was too late
Evaluate the PO SChedule Lines as follows:
Po SCL qty + CUMUL GR QTY - CUMUL PO QTY = ADJ GR ON Time Qty
SCH1 01Jun2009
200 + 180 - 200 = 180 on time for 01Jun2009 date ( 90% fill rate)
SCH2 08Jun2009
100 + 290 - 300 = 90 on time for 08Jun2009 date (90 % fill rate) the first 20 of the GR on 07Jun2009 went to fill the late, early date.
Best of luck !
SCH2 100 +290 - 300 = 90 on time for 07Jun2009 date -
Schedule lines tranfer from R/3 to SUS in a MM-SUS scenario
Hi SRM gurus,
We are working on the MM-SUS scenario where the scheduling agreement is created in the backend R/3 system. Delivery schedule lines are generated in the backend and transfered to the SUS thru. ME9E transaction for sending the delivery schedule to the SUS.
We have a confirmation control key which guides us in SUS to create an ASN in the backend.
Though there is a confirmation control key exist in the SA for that particular line item, when the ASN is sent from SUS to XI to R/3. There is an idoc error in the R/3 which says that there is no confirmation control key though it is there for the line item which is transfered to SUS.
Now Pls. answer my questions :
1) Will ME9E transfer the total lines in the SA or the schedule lines with the delivery schedules only ?
2) Is it possible to resend the same schedule line ( with the updated delivery schedule) to the SUS as per the standard scenario?
3) In the SUS how do we findout the materials corresponding to that particular delivery schedule line. Because in SUS the reference is only the scheduling agreement number as we could not see any scheduline line item.
Pls. suggest.
We are working on SRM(SUS) 5.0 with ECC6.0 as the backend.
Best regards,
Sridhar.i have seen the code --> where the FM is called for creation of SAR in SRM.
that is FM
BBP_SAPXML1_SUSPO_CREATE_IN --> in this --> search for this
Call API
IF ls_header-description EQ 'DELINS'.
CALL FUNCTION 'BBP_API_SUSPO_CRT'
EXPORTING
is_header = ls_header
it_item = lt_item
it_attach = lt_attach
it_partner = lt_partner
it_longtext = lt_longtext
it_tax = lt_tax
it_limit = lt_limit
it_sdln = lt_sdln
IMPORTING
es_header = ls_header_e
this one creates ---> the SAR in SRM.
and also i have seen further --> there is no place where any BADI is also called.
i am afraid it is not possible to control what you want using BADI.
only --> difference between --> New document and the old document is
the Indicator --> C for create
U for update.
And Also if you can see the XML message for the updated document --> you can see all the lines in the XML message.
Not the added lines... -
BAPI FOR Deleting a Schedule Line Item from EKES and EKET tables
Dear All,
I would like to for deleting one of the line item from EKES (Po Confirmation ) and the respective line item from the EKET(PO Schedule Line Item Table).
Assume that am allowing the user to select the lineitem from zprogram screen and collecting the PO and Its LIne Item details in an internal table.
Can i Use
<b>BAPI_PO_Change</b> , if so , can anybody tell me the steps to follow to use this bapi for deleting the PO lineItems, since i m going to try BAPI for First time.
pls help me out
Message was edited by: Raja K.PHi raja ,
loop at iekko1.
w_index = sy-tabix.
item-po_item = itemx-po_item = iekko1-ebelp.
item-quantity = iekko1-mng01.
itemx-quantity = iekko1-mng01.
if iekko1-wamng = iekko1-wemng.
itemx-no_more_gr = item-no_more_gr = 'X'.
else.
itemx-no_more_gr = item-no_more_gr = ''.
endif.
append item.
append itemx.
clear return[].
call function 'BAPI_PO_CHANGE'
exporting
purchaseorder = iekko1-ebeln
tables
return = return
poitem = item
poitemx = itemx.
if return[] is initial.
commit work and wait.
call function 'DEQUEUE_ALL'.
search for deletion fields which u have to mark 'X'.
before calling this BAPi u have to lock the PO by using ENQUEUE.
<b>
FU BAPI_PO_CHANGE
Text
Change purchase order
Functionality
Function module BAPI_PO_CHANGE enables you to change purchase orders. The Change method uses the technology behind the online transaction ME22N.
Alternatively, the IDoc type PORDCH1 is available. The data from this IDoc populates the interface parameters of the function module BAPI_PO_CHANGE.
Functionality in Detail
Authorization
When you create (activity 02) an Enjoy purchase order, the following authorization objects are checked:
M_BEST_BSA (document type in PO)
M_BEST_EKG (purchasing group in PO)
M_BEST_EKO (purchasing organization in PO)
M_BEST_WRK (plant in PO)
Controlling adoption of field values via X bar
For most tables, you can use your own parameters in the associated X bar (e.g. PoItemX) to determine whether fields are to be set initial, values inserted via the interface, or default values adopted from Customizing or master records, etc. (for example, it is not mandatory to adopt the material group from an underlying requisition - you can change it with the BAPI).
Transfer
Purchase order number
The PurchaseOrder field uniquely identifies a purchase order. This field must be populated in order to carry out the Change method.
Header data
The header data of the Enjoy purchase order is transferred in table PoHeader.
Item data
The item data of the Enjoy purchase order is stored in the tables PoItem (general item data). Changes regarding quantity and delivery date are to be made in the table PoSchedule.
Use the table PoAccount to change the account assignment information.
Services and limits
Changes to existing items cannot be carried out with the Change method. It is only possible to create new items.
Conditions
Conditions are transferred in the table PoCond; header conditions in the table PoCondHeader. A new price determination process can be initiated via the parameter CALCTYPE in the table PoItem.
Vendor and delivery address
The vendor address in the table PoAddrVendor and the delivery address in the table PoAddrDelivery can only be replaced by another address number that already exists in the system (table ADRC). Changes to address details can only be made using the method BAPI_ADDRESSORG_CHANGE.
Partner roles
You can change all partners except the partner role "vendor" via the table PoPartner.
Export/import data
Export/import data can be specified per item in the table PoExpImpItem. Foreign trade data can only be transferred as default data for new items. Changes to the export/import data of existing items are not possible.
Texts
Header and item texts can be transferred in the tables PoTextHeader and PoTextItem. Texts for services are imported in the table PoServicesText. Texts can only be replaced completely.
Version Management
You can make use of the Version Management facility via the table AllVersions.
Return
If the PO was changed successfully, the header and item tables are populated with the information from the PO.
Return messages
Messages are returned in the parameter Return. This also contains information as to whether interface data has been wrongly or probably wrongly (heuristical interface check) populated. If a PO has been successfully created, the PO number is also placed in the return table with the appropriate message.
Restrictions
With this function module, it is not possible to:
Create subcontracting components (you can only use existing ones)
Create configurations (you can only use existing ones)
Change message records (table NAST) and additional message data (this data can only be determined via the message determination facility (Customizing))
Attach documents to the purchase order
Change foreign trade data
Change service data
Change or reexplode BOMs
A firewall prevents the manipulation of data that is not changeable in Purchasing according to the business logic of the purchase order (e.g. PO number, vendor, etc.).
PO items with an invoicing plan cannot be created or changed using the BAPIs
In this connection, please refer to current information in Note 197958.
To change addresses with numbers from Business Address Services (cantral address management), please use the function module BAPI_ADDRESSORG_CHANGE.
To change variant configurations, please use the function module BAPI_UI_CHANGE. More information is available in the BAPI Explorer under the Logistics General node.
In the case of changes that are to be made via the BAPI_PO_CHANGE, a firewall first checks whether the relevant fields are changeable. This approach follows that of the online transaction. Here it is not possible to change the vendor or the document type, for example.
Example
Example of changes made to a purchase order with:
1. Change in header data
2. Change in item
3. Change in delivery schedule
4. Change in account assignment
5. Change in conditions
6. Change in partners
Parameter: PURCHASEORDER 4500049596
Parameter: POHEADER
PMNTTRMS = 0002
PUR_GROUP = 002
Parameter: POHEADERX
PMNTTRMS = X
PUR_GROUP = X
Parameter: POITEM
PO_ITEM = 00001
CONF_CTRL = 0001
Parameter: POITEMX
PO_ITEM = 00001
PO_ITEMX = X
CONF_CTRL = X
Parameter: POSCHEDULE
PO_ITEM = 00001
SCHED_LINE = 0001
QUANTITY = 10.000
PO_ITEM = 00001
SCHED_LINE = 0003
DELETE_IND = X
Parameter: POSCHEDULEX
PO_ITEM = 00001
SCHED_LINE = 0001
PO_ITEMX = X
SCHED_LINEX = X
QUANTITY = X
PO_ITEM = 00001
SCHED_LINE = 0003
PO_ITEMX = X
SCHED_LINEX = X
DELETE_IND = X
Parameter: POACCOUNT
PO_ITEM = 00001
SERIAL_NO = 01
GL_ACCOUNT = 0000400020
Parameter: POACCOUNTX
PO_ITEM = 00001
SERIAL_NO = 01
PO_ITEMX = X
SERIAL_NOX = X
GL_ACCOUNT = X
Parameter: POCOND
ITM_NUMBER = 000001
COND_TYPE = RA02
COND_VALUE = 2.110000000
CURRENCY = %
CHANGE_ID = U
Parameter: POCONDX
ITM_NUMBER = 000001
COND_ST_NO = 001
ITM_NUMBERX = X
COND_ST_NOX = X
COND_TYPE = X
COND_VALUE = X
CURRENCY = X
CHANGE_ID = X
Parameter: POPARTNER
PARTNERDESC = GS
LANGU = EN
BUSPARTNO = 0000001000
Help in the Case of Problems
1. Note 197958 lists answers to frequently asked questions (FAQs). (Note 499626 contains answers to FAQs relating to External Services Management.)
2. If you have detected an error in the function of a BAPI, kindly create a reproducible example in the test data directory in the Function Builder (transaction code SE37). Note 375886 tells you how to do this.
3. If the problem persists, please create a Customer Problem Message for the componente MM-PUR-PO-BAPI, and document the reproducible example where necessary.
Customer Enhancements
The following user exits (function modules) are available for the BAPI BAPI_PO_CREATE1:
EXIT_SAPL2012_001 (at start of BAPI)
EXIT_SAPL2012_003 (at end of BAPI)
The following user exits (function modules) are available for the BAPI BAPI BAPI_PO_CHANGE:
EXIT_SAPL2012_002 (at start of BAPI)
EXIT_SAPL2012_004 (at end of BAPI)
These exits belong to the enhancement SAPL2012 (see also transaction codes SMOD and CMOD).
There is also the option of populating customer-specific fields for header, item, or account assignment data via the parameter EXTENSIONIN.
Further Information
1. Note 197958 contains up-to-date information on the purchase order BAPIs.
2. If you test the BAPIs BAPI_PO_CREATE1 or BAPI_PO_CHANGE in the Function Builder (transaction code SE37), no database updates will be carried out. If you need this function, please take a look at Note 420646.
3. The BAPI BAPI_PO_GETDETAIL serves to read the details of a purchase order. The BAPI cannot read all details (e.g. conditions). However, you can use the BAPI BAPI_PO_CHANGE for this purpose if only the document number is populated and the initiator has change authorizations for purchase orders.
4. Frequently used BAPIs for purchase orders are BAPI_PO_CREATE, BAPI_PO_CREATE1, BAPI_PO_CHANGE, BAPI_PO_GETDETAIL, BAPI_PO_GETITEMS, BAPI_PO_GETITEMSREL, and BAPI_PO_GETRELINFO.
5. For more information on purchase orders, refer to the SAP library (under MM Purchasing -> Purchase Orders) or the Help for the Enjoy Purchase Order, or choose the path Tools -> ABAP Workbench -> Overview -> BAPI Explorer from the SAP menu.
Parameters
PURCHASEORDER
POHEADER
POHEADERX
POADDRVENDOR
TESTRUN
MEMORY_UNCOMPLETE
MEMORY_COMPLETE
POEXPIMPHEADER
POEXPIMPHEADERX
VERSIONS
NO_MESSAGING
NO_MESSAGE_REQ
NO_AUTHORITY
NO_PRICE_FROM_PO
EXPHEADER
EXPPOEXPIMPHEADER
RETURN
POITEM
POITEMX
POADDRDELIVERY
POSCHEDULE
POSCHEDULEX
POACCOUNT
POACCOUNTPROFITSEGMENT
POACCOUNTX
POCONDHEADER
POCONDHEADERX
POCOND
POCONDX
POLIMITS
POCONTRACTLIMITS
POSERVICES
POSRVACCESSVALUES
POSERVICESTEXT
EXTENSIONIN
EXTENSIONOUT
POEXPIMPITEM
POEXPIMPITEMX
POTEXTHEADER
POTEXTITEM
ALLVERSIONS
POPARTNER
Exceptions
Function Group
2012
</b>
regards
prabhu
Message was edited by: Prabhu Peram -
Automatic schedule lines creation from PR
Hi,
We have a scheduling agreement for certain material
We have maintained a Automatic PO tick in Material master as well as in vendor master
We have also maintained purchasing info fo records and source list
Now we have created a manual PR.
And when we are running the T code ME59 system is creating the PO.
Is it possible to generate schedule lines (automatically through ME59) against a scheduling agreement instead of creating a new PO?
Regards,Hello,
The transaction ME59 does not select the purchase requisitions assigned to a scheduling agreement. The reason for this is that the Scheduling agreement itself is equivalent to a purchase order. For a purchase requisition assigned to a scheduling agreement, you have to create a delivery schedule only and not a purchase order. Automatic conversion program currently does not handle creation of delivery schedules.
Please use ME58 instead.
br,Gabor -
Schedule line info on Internet Sales sales order
Hi
We have ISA setup in CRM. The backend is ECC 6.0.
I am able to create a Sales Order in Internet Sales. I want to know how we can display schedule line information. By default I do not see schedule line information being displayed on a sales order screen. Please provide information or note on how schedule line information can be displayed on a sales order in CRM internet sales.
ThanksVickie,
If you are using MTO scenario then when you run the MRP for the material, it will create a planned order for that sales order based on the dates calculated from the sales order schedule line (Shipping tab)...
So now when you convert the planned order to production order, all the sales order details will get copied.
try and revert back.
Swapnil -
Schedule line different from days accepted by customer calendar
Hi,
When trying to create order for a customer using fcustomer calendar (receiving days = monday), and proposing delivery date for example on a wednesday, it compares a warning messagge that says that next possible goods receving date is the subsequent monday.
If you ignore it, the date in the schedule line remains unchanged (programmed delivery on wednesday).
System uses APO,in the case it runs instead it proposes the nearest monday to the requested date, and no problem with that.
The problem remains on those cases where APO doesn't run.
Any ideas on how to make automatic acquisition of the proposed date of the warning messagge and insert it in schedule line?
User-exit is necessary?
Thanks,
GiuseppeAnybody that can help me????
-
Schedule Lines deletion from Scheduling agreement
Hello all
There is a requirement of mass changes deletion of existing Schedlue lines from Schedling agreement ( from around 800 Scheduling agreement).
SAP version is 4.7(Which doesnt have MEMASSSA-std t-code for mass maintenance of scheduling agreement).
Please advise, how these can be deleted in bulk.
Thanks & Regards
RajeshHi
Go to table :SE16 :
Enter :EKET
download to the excel file do the correction then upload the file to to the table.
Please check with your SAP ABAP team and with your Client
(or)
do it manuallly .go to me38 enter the sch.agreement no and delete the qty and save . it is time consuming
it willl take a day or Two.
This is the best solution
Regards
Ganesh -
Provide - Steps To generate schedule lines from MRP
Dear All
Please provide me with the steps (in details) involved to create the schedule lines automatically from MRP.
Early help would be appreciated.
Regards
Rahul BhardwajHi Rahul,
1) MM02 OR MM01- Maintain MRP data in material master- Purchasing and MRP1 view --> e.g.MRP type,lot size etc. in MRP veiw
& JIT schedule indicator in purchasing view (other data /mfr.data)
2) ME01 - Maintain source list for the material (Use in MRP planning to be 2 -schedule lines generation thru'MRP
3) ME11 - Info.record is must for the material and vendor combination.
4) ME31L - Create schedule agreement
5) ME35L - Release schedule agreement
6) ME9L - Message output
7) MD61- Create Planned independent reqt.for the material
8) MD03 - Run the MRP( single level-single item)
( You can check the result in MD04--- Schedule lines to be seen)
9) ME84- Create SA release
10) ME9L - Message output ( Scheudes to be printed & dispayed).
Regards
Venkat -
Need to fetch Schedule Line information into CRM from R/3
Hi Experts,
I need to get the Schedule Line Info into CRM system before an order is created.
Is there any standard function module in R/3 to fetch this information for a specified Material and Quantity.
If not, the database table where this schedule line information is being stored would help.
Regards,
Kris.Hello all,
does this Function Module work also for Configurable Material? We currently face the issue that we replicate a quote from CRM to ECC and the confirmed date for the Scheduled Lines do not get populated due to a limitation. It seems, that currently it is not supported to get back the confirmed date for sub-line items that come from a configurable product.
The FM Module you mentioned seem like a good workaround?!?
Please advise!
Marc -
Provide -- the steps involve (in detail) to create schedule lines from MRP
Dear All
Please provide me with the steps (in details) involved to create the schedule lines automatically from MRP.
Early help would be appreciated.
Regards
Rahul BhardwajHi,
1. In Material Master --> Purchasing View --> maintain the Tick for Scource list.
2. Create th Scheduling Agreement. (valid)
3. Maintain the Source list with the Scheduling Agreement and MRP indicator as 2.
4. MRP Control Parameters - Delivery Schedules - 3 (Schedule Lines).
After MRP Run, system will create the Sched. Lines for you..
For your earlier questions also please check these points..
Regards,
Siva -
Schedule Line and Delivery Link
Hi,
I need to get schedule line info and its related delivery info. I am unable to link schedule lines ( VBEP- ETENR) to its related delivery. Is there a way to do this ?
Ex: Order 1, item 1 has 2 schedule lines 1 & 2 with delivery # 11 and 22.
From VBFA I get 2 deliveries for item 1 but unable to link sch. line 1 to 11 and sch.line 2 to 22.
SAP does this. Can anyone help on this. How does SAP provide info in doc flow of order where it links sch. line to delivery.
Thanks !Hi,
Delivered quantity at the schedule line is calculated with function module RV_SCHEDULE_CHECK_DELIVERIES. You have to feed it with document flow from sales order to delivery (FVBFA), schedule lines (FVBEP), status (FVBUP), and sales order item (FVBAP) to get the vsmng filled in FVBEP.
Also please check the following FM.
SD_VBEP_ARRAY_READ_VBELN
SD_VBEP_READ_WITH_POSNR
SD_VBEP_READ_WITH_VBELN
SD_VBEP_SELECT
SD_VBEP_SINGLE_READ
It will return VSMNG value(s) in table parameter (table strucuture VBEPVB).
Hope this will help.
Regards,
Ferry Lianto -
PR created after MRP run, instead of schedule line
Dear all,
I want to create schedule lines automatically from the planning run, for raw material. I have maintained info record, scheduling agreement, quota arrangements and also the source list.
For the raw material, safety stock of 1000 nos. has been maintained. The current stock of the material is 0.
After MRP run, based on the upper level PIRs, schedule lines are generated properly. But, against the safety stock of 1000, a PR is generated.
I donot want a PR to be generated.
Please suggest a solution.
Thanks in advance,
Shrenik
Edited by: Shrenik on Mar 8, 2008 4:17 PMDear all,
I checked an found that the schedule agreement date does not have any effect. Even if the requirement date falls outside the date range, i am able to create schedule lines.
I also found that if i maintained GR processing time, then always a PR is created. If GR processing time is 0, then only schedule line is created. Moreover, planned delivery time does not have any effect on the calculations, even if it is 10 days, 20 days or 900 days.
Can someone please clarify all these? How are these times taken into account?
Thanks in advance,
Shrenik
Edited by: Shrenik on Mar 9, 2008 3:04 PM -
Interesting and an imporatant issue at sales order schedule line.
hi all,
interesting and an imporatant issue at sales order schedule line.
i created a sales order with 10 qty.and the system proposed a two schedule lines.
let's say to order created date is 27.11.2008.and the requested delivery date is 27.11.2008.
but the stock is not available today then the system proposed two more schedule lines apart from the 27.11.2008.so now there are three schedule lines like below.
schedule line date Material availabilyt date delivery date
27.10.2008 with zero quantity.
28.10.2008 with 5 qty. 28.10.2008 29.10.2008
02.10.2008 with 5 qty. 02.10.2008 03.10.2008
now the delivery and pgi already for the schedule line 28.10.2008.
then when i run the availability check on 01.11.2008 system is over writing the material vailability date as today at the scheduleline number two.
now i can able to view only two schedule lines only.
schedule line date Material availabilyt date delivery date
28.10.2008 with 5 qty. 01.11.2008 29.10.2008
02.10.2008 with 5 qty. 01.11.2008 02.11.2008
now my concern when we reschedule the avalability check it should notchange the Material availability date of the schedule line which i already delivered.
Regards,
sheshukumarcan any one repsond for this.....
-
Hi All,
While writing an ABAP report which requires to identify the OPEN SALES ORDER SCHEDULE LINES.
The requirement is to identify the Open Sales Order Schedule Lines for a particular month (user Processing month in the selection screen). Here the Schedules line item could have been delivered already. If it is not Billed then it is OPEN schedule line.
Can anyone help me to understand the logic which I need to apply to identify only the Open sales order schedule lines.
I am using the following tables:
VBAK,VBAP,VBUK,VBUP,VBEP. Is there any other table which I need to use? I am trying to avoid using table VBFA due to performance issues.
Any suggestions.
Thanks
Sadhu Kishoreu need to do for open billing items then
make use of this sequence
give the input of sales orders in table VBUK
at header level
join of VBAK and VBUK
and check the fields GBSTK ne "C" and FKSTK ne "C" implies open .
FKSTK is for billing status..
all the open orders with open billing status can be fetched .
taking these Open Orders now fetch the entries at item level
Now for these do the same at item level from VBAP and VBUP .
In order to check the open items in schedule line fetch from VBEP for the same line items .
regards,
vijay
Maybe you are looking for
-
Logical database PCH,Extended Object ID
When using logical database PCH.I found Object structure has a component REALO means extended object id. Can somebody give a example to show the actual meaning of extended object id? thanks. Edited by: Lanmbor Yang on May 30, 2008 8:40 AM
-
I was able to download the current version of FireFox but when I tried to install, I got a message that FireFox is not compatible with my current os. What else should I consider or try doing to get FireFox to work?
-
RSA3 - 2LIS_11_VAHDR
Hello, I have a record that posted into BW a long time ago. It is sales document 10000181. It is from datasource 2LIS_11_VAHDR. I go to RSA 3 and use that sales document as a selection criteria against datasource 2LIS_11_VAHDR. I do not get any res
-
XI CTS+ Error: Software component version missing
We have CTS+ set-up on our XI systems but there appears to be a problem when importing a transport into the target system. From the transport log on the ABAP side, the error that we're getting is: class java.rmi.RemoteException: com.sap.aii.utilxi.mi
-
Adobe Air Aplication descriptor could not be found for this application
Can You Please help me it s so importan i downloaded program and it required adobe air i downloaded it then it says aplication descriptor could not be found for this application