BAPI or FM for Sales Scheduling Agreement
Hi ABAPers,
I need to transfer the Sales Scheduling Agreement (T-code: VA31) data into SAP. I am sure that it is not possible by LSMW and BDC methods as I have to upload Header and Item texts for the scheduling agreement.
So, I am trying to find any BAPI or FM to create the same.
Any helps regarding this would be appreciated.
Thanks in advance,
Asif Ali Khan
You can use BAPI-BAPI_SCHEDULE_MAINTAIN
Short Text
Maintenance of Scheduling Agreement Delivery Schedule Lines
Functionality
The BAPI_SCHEDULE_MAINTAIN is used to create or change scheduling agreement delivery schedule lines.
Further information
The parameter PURCHASEDOCUMENT and the scheduling (delivery schedule line) data in POSCHEDULE and POSCHEDULEX are to be passed on to the interface. These three parameters are defined as mandatory.
Hope this helps.
Regards
Vinayak
Similar Messages
-
Bapi to change the sales schedule agreements VA32
Hi Experts,
is there any bapi or Function moduel availble to change the Sales schedule agrements in VA32 ?
Please do the needful.Hi Gopi,
Bapi which you had given, i believe is to update the billing data.
see. i have one field called customer group (KDGRP) which is in KNVV table which is present in the sales view of a customer master (XD02). i have to change that field using a BAPI.
Thanks for your warm input but still my requirement is the above, if i get the answer for the above req. it would be gr8.
Thanks,
-Rajesh. -
I- doc for creation/updation of Sales Scheduling Agreement
Hi,
Could anybody tell me details regarding the idoc details, for Sales Scheduling Agreement Creation & its updation.
Need the - Process code, Message type , Basic type & other details
Will the Idoc type be of DELORD. We will be getting the flatI file from the client for the creation of Scheduling Agreements
Appreciate the help
ThanksFor Automotive Suppliers, and SD scheduling agreement types 'LZ', etc.
Normally, the users create the SD Scheduling Agreement using VA31 first.
Then the Idocs, which are processed through IDOC_INPUT_DELINS_START, simply update the SA.
One SA may continue to be updated by EDI releases for many months.
On an 'LZ' type SA, there is a tab for Forecast Delivery schedules and a tab for JIT Delivery schedules.
At the simple level, which tab gets updated is controlled by the value in E1EDP10-SCREL.
For inbound 830 / DELFOR / VDA4905 transmissions, usually map SCREL = '03' which updates the Forecast Delivery Schedule.
For inbound 862 / DELJIT / VDA4915 transmissions, usually map SCREL = '02', which updates the JIT Delivery Schedule.
The search criteria in the search box you see on VA32 are similar to the key Idoc fields which are used to find the SA which needs to be updated.
Hopefully the users have access to transaction EMFOR to monitor the inbound Idocs and reprocess if necessary. (This is easier than workflow or WE02/BD87)
From EMFOR, Idocs in status 51 can often be processed in foreground. This is the quick way to figure out why you are getting a status 51. But I suspect it's because the SA was not created first. -
Hi,
In transportation lanes, we can got to sales scheduling agreements using menu path Goto>sales scheduling agreements
I understand that the Scheduling agreements on R/3 become external procurement relationships and transportation lanes in APO.
I am wondering what this extra sales scheduling agreements are??
Thanks.Got the answer:
[sap help|http://help.sap.com/saphelp_scm50/helpdata/en/3e/dfaf376ed96c21e10000009b38f8cf/frameset.htm]
n the SAP R/3 system, the business relationship between a plant (supplier) and a customer is stored as a sales scheduling agreement. If you have transferred these sales scheduling agreement from Sales and Distribution (SD) to SAP APO, the system automatically generates sales scheduling agreements there. At the same time, the system creates a transportation lane from the plant to the customer. The sales scheduling agreement and transportation lane are assigned to each other.
For more information, see:
Structure linkRelease Management for Sales Scheduling Agreements
Edited by: Visu Venkat on Aug 5, 2008 5:52 PM -
BAPI for creating sales scheduling agreement
Hi All,
I have a scenario where i need to create a sales scheduling agreement using VA31. I have tried using a function module "SD_SALESDOCUMENT_CREATE". I am able to create the document by inserting the correct data in "SALES_HEADER_IN", "SALES_ITEMS_IN", "SALES_PARTNERS" and using the update flag as " I ".
When I try to insert data in "SALES_SCHEDULES_IN" the function module returns error message "No schedule line category could be determined during quantity adjustment".
please provide help in finding out the right procedure for creating the scheduling agreement with schedule lines data.
Regards.
AnuragHi,
Did you shown this to your functional team.
Regards,
Madhu.
Edited by: madhurao123 on Nov 21, 2011 3:29 PM -
BAPI for creating scheduling agreement with reference to Contract agreement
Hi All ,
Can anyone please suggest if there is any BAPI for creating scheduling agreement with reference to the contract agreement number.
Thanks for your help.
VadivukkarasiHi,
Check this BAPI <b>BAPI_AGREEMENT_MAINTAIN.</b>
check these
BAPI_CUSTSCHEDULAGREE_CONFDELV Customer Sched. Agreement: Confirmation of Delivery; Document Flow Upd
BAPI_SALES_DEL_SCHEDULE_CREATE BAPI for creation of releases in scheduling agreements
Regards -
Bapi for customer scheduling agreement
hi ,
please tell a bapi for customer scheduling agreement(va31).
Thanks,
sridharHi Reddy ,
what happend ? u told that u got the BAPI ?
i already seen that FM ,Do one thing ? search for COMMIT WORK in VA31 program , i think u will get some idea.
regards
Prabhu
Message was edited by: Prabhu Peram -
Change Schedule Lines values for Each Item for a Scheduling Agreement ?
Hii
I want to change the Schedule Line Schedule Qty for Each Line item for a
Scheduling Agreement .
I cannot use BAPI_PO_CHANGE as this is for PO only and gives error for
a scheduling agreement.
I am on 4.6c so i SAP does not have BAPI_AGREEMENT_MAINTAIN .
Please help me out on using a BAPI or FM to do this.
Regards
GauravHi,
isn't the Schedule Line a special case of SALES order that might be changed with a BAPI_SALESORDER_MAINTAIN.... If ther is no BAPI for this in your system, you might create new contracts with reference to existing ones using BAPI_CONTRACT_CREATEFROMDATA.
Regards,
Clemens -
Problem updating Volume in Sales Scheduling Agreement
Hi gurus,
we have problem with Sales Scheduling Agreement. It's about volume of material. First, I create a Scheduling Agreement for material A, what is 100 CCM of volume in its register master material. I create several forecast delivery schedule. After, I modify by other reasons the volume of material A in master material to 200 CCM. What is the problem? The problem is when system creates the deliveries for Scheduling Agreement, the packaging is did in base 100 CCM of volume and not is for 200 CCM.
Besides of this, after if modify volume in master material I will add new forecast delivery schedules, the volume is calculated based in old volume factor: 100 CCM.
We don't understand this behaviour in system.
Thank you!!!!Hi,
The reason is, the link of updating automatically from material master data to sales SA is broken!
You should double check the volume at item level in Sales SA, enter the sales SA, select menu>Goto>Item-->Shipping, see the value of field "Volume", whether it's 200 CCM, or not? I think it should still be 100 CCM, change it to 200 CCM, that will be okay!
Good luck
Z.T -
Delivery from sales scheduling agreement with one item per schedule line
Hi all,
I have a sales scheduling agreement where the same part number has 3 different JIT schedule lines and I need to create a delivery with 3 item lines: every item line of the delivery has to be referred to one schedule line of the scheduling agreement.
When I create the delivery with transaction VL10E it has only one item line and its quantity is the sum of the 3 schedule lines of the sales scheduling agreement.
I've tried to change the customizing of the User Role, choosing the Split Schedule Line = 2 ("One item per schedule line") but the delivery is created again with only one item line.
How can I solve this issue?
Thanks in advance for replyDear Alex
The SAP standard behaviour is that all schedule items with delivery date in the past have to be rescheduled anyway to one date and are combined therefore.
Partially this behaviour can be influenced in VL10* by 2 parameters in
the user role : Split per sched.line and Rule (delivery qty).
Please find below informations about these different parameters
"Split per sched.line propose you 3 Rule for creating one delivery item
per schedule line. In a delivery list in item view with multiple
schedule lines, you can decide for the same document item whether you
want to generate one delivery item per schedule line or whether you want
to deliver the cumulated quantity of the last schedule lines selected.
About rule for delivery quantity, the following rules are currently
implemented:
1. No cumulation
The open schedule line quantity to be delivered is the quantity at which
the list line is delivered.
2. Sum of all open schedule line quantities to be delivered that fall
before the chronologically latest date in the to field (following the
Deliv. creation date field) of the selection criteria.
3. Sum of all open schedule line quantities to be delivered whose
delivery creation date falls within the selection time frame (between
the dates in the Deliv. creation date and to fields, respectively),
making the calculation of the quantity to be delivered consistent with
selection criteria. However, calculationof the quantities delivered with
the order's schedule line quantities is not affected."
Hope this helps.
Regards
Tonia -
Sales scheduling agreements and subsequent sales orders in MD04
We would like to use sales scheduling agreements. For planification purposes, we need that forecast delivery schedule quantities in the agreement, appear in MD04 transaction, so corresponding schedule line type has flag "Transfer of requirements" active. In customizing for the agreement type, subsequent documents are sales orders, not deliveries, as we need always to have a sales order. We need that when creating subsequent sales order by reference to the scheduling agreement, quantity required related to the agreement is reduced. Or, at least, when this subsequent sales order is delivered.
Example: In the agreement we can have 1000 KG and 2000 KG as forecast, for different dates. If a sales order of 800 KG is created, then we will get a new line of 800 KG in MD04. Required quantity related to the agreement, should be changed from 1000 to 200.
Another option would be that subsequent sales order and delivery don't appear in MD04 (so requested quantity is not increased) and then, when the goods issue is posted, the available quantity is reduced and also the quantity required related to the agreement. I know how to make that sales order item is not relevant for MD04 using flag "Transfer of requirements" for the sales order schedule item type, but I don't know how to make that delivery doesn't appear.
Edited by: CH Spain on Dec 28, 2007 1:08 PMHi
In the given logic include another comment
If zfield value = 01, then allow creation of subsequent document.
If zfield value # 01, then subsequent document creation should not be allowed.
If AUART = Z sales document types then allow creation of subsequent document
If VKORG (Sales organisation) =1000 then allow creation of subsequent document
If VTWEG (Distribution channel) = 01then allow creation of subsequent document
If SPART (Division) = 01then allow creation of subsequent document
It wont affect if you change the copy control requirement routine,but instead of changing the copy control requirement routine
use the user exit at sales order level only.
Regards
Srinath -
MD04 - How to create a requirement in MD04 for a scheduling agreement
Hi,
Pls advice How to create a requirement in MD04 for a scheduling agreement. pls mention the steps and t codes.
thanks in advance.Hi Prajit,
Sales people will create sales scheduling greements through VA31 T-Code (normally for finished products).In that they define forecast schedules as well as JIT schedules.After creation, these will be appeared in MD04 screen as requirement for that finish material.
In MRP run,system will create procurement elements (planned orders for example) for these requirements.
Regards,
Raja. -
Hi,
I had few queries regarding Sales scheduling agreement.
I have gone though few forum discussions and also SAP help documentation however was not able to have clear understanding and have below queries.
1. I understand that purpose of sales scheduling agreement is to provide information on customer requirement with exact quantity and dates.
What is the difference between Sales scheduling agreement and PIR, Contract or scheduling agreement?
2. If I CIF a sales scheduling agreement will it create a Transportation lane between customer and the plant?
3. When a sales scheduling agreement is CIFed to APO will it create requirement in the form of sales order as per schedule lines?
4. Can I use Sales scheduling agreement in CTM planning, what are the limitations?
Experts please help me on the above queries.
Thanks,
Sanjog MishrikotkarYou can use standard functionality Billing Plan in SD.
If it is Fixed Billing scheduling then go for Periodic Billing Plan.
Else for Flexible Billing scheduling or milestone, then go for Milestone Billing plan.
Regards
JP -
Sales Scheduling Agreement Close status
Hello,
Can you please help me to how to close the Sales Scheduling Agreements and also, there are some schedules pendng in Forecast.
Regards
KishanrajYou can use standard functionality Billing Plan in SD.
If it is Fixed Billing scheduling then go for Periodic Billing Plan.
Else for Flexible Billing scheduling or milestone, then go for Milestone Billing plan.
Regards
JP -
Bapi to update miro considering schedule agreement also
hi experts,
Is any bapi to update miro considering schedule agreement also
Moderator message: please do more research before asking, show what you have done yourself when asking.
Edited by: Thomas Zloch on Jul 8, 2011 10:48 AMHi,
Check BAPI_SAG_CHANGE function module.
KR Jaideep,
Maybe you are looking for
-
Hi I have a report that I need to display only the latest created on date of a document, some documents have 10 created on dates and some have less. Is it possible to create a condition on a characteristic, like the TOP N=1? Any suggestions? This are
-
Hi SDNs, Currently my client has been maintaing order related billing for repair orders now he wants delivery related billing instead of order related billing.If i will change the settings to delivery related billing what will be the effects for curr
-
I have several CC subscriptions and want to cancel one. How do I tell what subscription is attached to what computer? I can't find any place to match up a serial number or any kind of ID.
-
Hi Folks, I want to know the list of all tables in my DB2 database, based on the parameter "Large RIDs" which I can see in the transaction DBACOCKPIT. If I have to see it manually, I have a mammoth task of doing it once for every table. Are there a
-
I have two problems. Yesterday I knew something was wrong with my itouch because it would light up and then go off for no reason. I went to check it and my touch screen wouldn't react. I couldn't slide my unlock bar. When I hit the power button at th