Determining Open Contract Quantities
Hi Experts,
I have the below scenario,
A quantity contract is created, for example 10 quantities for a particualr material.
An order is created based on the contract for 2 quantities. Therfore now the open quantity in the contract is 8.
Is there a table from which I can determine the open quantites. Currently I am use the status overview button on the contracts to see the open quantities. But as we have to transmit this value to another connected system, i am trying to understand how open quantities can be determined. ( via a table or by sequence of steps which can be programmed), Or is there any standard report from which I can get these values.
Thanks for the help.
Regards,
Santosh
Edited by: Santosh Durai MC on Sep 27, 2011 11:27 AM
Dear Santosh Durai MC,
You can find the open contract quantities in standard table "VBAP"
Go to se16n and give VBAP table and enter the contract document in "VBELN" and ececute, then you can find the target quantity in "ZMENG"
As you know this target quantity only appears for contract documents, you can't find this target quantity for release orders.
If you want to know the order quantity fallow the above procedure, instead of giving contract number give the release order document number in "VBELN".
Then you can find the order quantity in (KWMENG), this is the quantity what release order has been created.
If you want to give logic to ABAPER (ZMENG-KWMENG=Open contract quantity)
Please revert if any clarifications
Thanks&Regards
Raghavnedra.k
Similar Messages
-
Enhancement of Popup window of Open contracts during Sale Order Creation.
Hi,
I have a requirement as follows.
1. During creation of Sales Order we are getting a pop up window with the list of open Contracts.
Currently there are following fields in that popup.
1. Doc Num, 2. Doc Type 3. Valid From 4. Valid To.
Now my requirement is to add one more value (Document Description) in this. Please help me if any one did simillar enhancement.Transaction Code - VA01 Create Sales Order
Exit Name Description
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
No of Exits: 15
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Rewards if useful.........
Minal -
List of open contracts/sales orders
Hi friends ,
Can we generate a report based on partner function?
Say i have a additional partner function other than SP/SH/BP/PY....i have a customer(AAA)who carries SP/SH/BP/PY functions and sells the material to his customer(Y).If i add customer(Y) as a partner function in the customer master of AAA,can i generate the open contract or total sales for that customer based on the partner function Y?
Thanks
IvyHi ! Ivy
I guess there is a option.
Try this out. Use the menu path IMG> Sales & Distribution> Sales> Lists> Set updating of partner index
In the resulting screen, click on 'New Entries' make entries 0 - for sales orders and 4 - for contracts as transaction group. Under the column 'partner function' ener the partner function for which you want the report and save your entries.
Now when you go for executing your report, click on the push button 'Partner functions' ( Say in VA05) , you will have the option for selecting the new partner functions , select and execute your report.
Provide your feedback.
Regards,
PATHIK -
Enter G/L account error while uploading open contracts using lsmw
Hi Experts,
I have a flat file for Open Contracts.While trying to upload using LSMW -BAPI method(BUS2014), it is throwing error as 'Enter G/L account' though G/L is present in the flat file.I have done with the mapping in the 5th step.
Checked all the configuration settings of G/L.everything is fine. Not getting where is it going wrong.
please help me out.I've tried regarding Helmut's advise and it works.
10 points (if i was a thread owner) -
Function Module to calculate Open Contract Quantity
Hi All,
Is there a function module to calculate Open Contract Quantity?
Thanks.Hi Ravi,
Thanks for the reply.
For this FM, i need to pass the Sales Doc Number. Is there an FM where i can pass the contract number?
Best regards,
Sindy -
How to determine the contract header's valid period...
1. How to determine the service contract header's start date, end date, when related muliple items with different start date and end date?
i.e., what is the different between the header's valid period and item valid period?
For example:
Sold to A has 5 items, which has different contract line item start date and end date, e.g.,
item 2: 2010.9-2011.9
item 3: 2011.4-2012.4
As for combined the all item bolonged to sold to A to one contract, so the item should have different contract start date and end date.
However, how to determine the contract header's start date and end date?
2. Another question is: When process service contract data migration from legance to CRM, how to design the above scenario logic?
Thanks in advance,Sent again, to wait the answer....
-
Hi Friends,
Is there any std trcode for getting the open contracts (SD)...or ABAP query is required to generate the report for the same.
Thanks
IvyHello,
Use the transaction code VA45 and select the radio button "OPEN CONTRACTS".
REWARD POINTS IF HELPFUL
Regards
Sai -
Open contract - remaining quantity report?
Hello,
I need to find a report which will show open contract quantity. T-code: VA45, VA46 has no such data. There are only information about open contracts, but I can not find data about remaining contract quantity.
Do you know any t-code or program?
Best regards,
Maciej K.Hi,
It looks there is no standard report that can show the open contract quantity.
In our business, we developed an ABAP query and I used logical database table VAV.
Couple of Z-fields were introduced to find the total release quantity (for quantity contract) and total released value (for value contract).
To find the total released value a function module CALL FUNCTION 'SD_READ_CALL_OFF_VALUE' was used. To find the released quantity, a query was used to fetch information from VBFA table like below;
SELECT SINGLE SUM( rfmng )
INTO ZRELEASEDQUANTITY
FROM vbfa
WHERE vbelv = vbak-vbeln
AND posnv = vbap-posnr
AND vbtyp_n = 'C'.
If the above two values are known, then you can subtract these fields from target quantity (VBAP-ZMENG) and target value (VBAP-ZWERT) fields to find the open quanity and value details.
Regards -
Source Determination for contracts via ME25
Hi All,
We are using ME25 to create PO's. During source determination, a
contract that is valid on the delivery date but not on the current date
is not suggested as a possible source of supply though it has been
maintained in the source list.
We know that this is programmed this way.Check is always carried on the
basis of current date. Though the delivery date falls within the
contract validity date, the system does not suggest the contract as a
source since the validity of that contract has not yet started or it is
not matching with the current date.
But we want the system to suggest the contracts as a source of supply,
though the validity of the contract has not yet started. we want the
system to suggest the contracts which are not valid on current date(but
valid on a particular delivery date) also.
SAP notes 44368 and 427864 suggest that this can be achieved.The note
427864 also tells that "selection with a date other than the current
date could lead to problems (for example in case of MRP runs).With the
corrections of Note 44368 you can solve the problem".
It also says as below:
"The attached correction instruction solves the problem described in
this note. However, these corrections might lead to other problems.
Therefore these corrections are not implemented in the standard system."
It says it might lead to other problems also. But it didn't mention the
exact problems.It would be great if you can list out the MRP run and
other problems and suggest us.
We want this functionality. One more note 116464 is also related to
this. Suggest us which are the notes to be applied. We are currently
using SAP 4.7 Version.
Thanks in advance.
Warm regards,
Shankar Goud.Hi,
I am not sure that there will be any problems by changing this if you do it the way that the note indicates. I would suggest that SAP are quite right to effectively say "We have designed our system to use the current date, if you want to use anything else then you MAY have problems" (because effectively this is what they are saying).
It is a heavily integrated system and changes like this can cause unforeseen problems, but if you are going to test it thoroughly then it SHOULD be OK.
I would agree with SAP in that it is far better to NOT make this change, but if you really need to do this as part of your business process then you may have no other choice.
Have you thought of bringing the date of the contracts forward to the current date when they are created and controlling their use by setting the source list dates to the dates you want them to be used? This may not work and it too is a scary change but it might be worth having a play with it in your sandbox system (also set the source list as mandatory on the material master if you want to stop manual POs from being allocated too early).
So I guess I am saying go ahead if you have to but beware the warnings (even though they may be unfounded).
Steve B -
Track Contract number from CITT (PR for Open Contract)
Dear Gurrus,
I raised a PR for open contract. Our procurement department do all things (Bidding , Tech / Financial evaluation etc.)
They are authorized to select 01 vendor & made open contract against vendor.
How do we track Contract number against PR.Hi,
i am solving the same issue but i am not able to obtain any value in parameter BLN. I try to make standard substitution in GGB1 and i would replace some value in reversing from reversed document.
My substitution exit is like:
FORM u302 CHANGING bseg-bewar.
DATA: i_belnr_orig TYPE bseg-belnr.
CLEAR i_belnr_orig.
GET PARAMETER ID 'BLN' FIELD i_belnr_orig.
SELECT SINGLE bewar INTO bseg-bewar FROM bseg
WHERE bukrs = bseg-bukrs
AND belnr = i_belnr_orig
AND gjahr = bseg-gjahr
AND buzei = bseg-buzei.
ENDFORM. "U302
THANKS -
Open Contract conversion recording problem?
Hi ABAPers,
I am facing problem in recording the transaction me31k. I am not knowing where to stop what all the screens to record.
If I am entering the material details then go to conditions and then to scale and save there. I am getting a recording. But this doesn't work as is when multiple conditions and multiple scales exists for a material and if many materials exist under one contract. So if some body has sample code for this. please provide me that.
Points will be awarded to all who could give good solutions. thanks in advance.well this BAPI is useful for creating contracts in SD, but I am creating Contracts in MM,i.e Open Contracts.
-
Sub: Close open Contract
Dear Friends,
Contract is for 175 quantities. OR (with ref to Contract) is for 100 quantities. Status of contract is Open. Can I make the status of contract Completed even with 75 quantities open? I want to make status of a particular contract & not all the contracts. Therefore I don't want to make Completion Rule C for KMN. Moreover the Reason for Rejection tab in Contract is coming grey in VA02. Kindly help.
Thank you.Hi,
Va02 is used for changing the sales order not the contract.
This can be done by using VA42 T.Code.
Goto VA42 T.Code.
Enter your contract number.
Enter.
Maintain the reason for rejection in the overview screen.
Save.
Regards,
Krishna. -
No-determination of Contract account in sales order
Hi All,
I have created a Business Partner and created a contract account for the same, but while creating sales order for the same BP, system is asking for contract account, and not allowing me to enter the same in line item,
giving an error message and exit from the screen.
help will be appriciated,
thanks in advance,
Kapoor NHi Dewang,
I have Copied the message pls check,
I have assigned 3 Conract accounts to this business partner but system shows me a warning message, "no contract account found" when i goto item--> Billing Document tab at that time system gives me the below mentioned error.
thanks for your help in advance,
Kapoor
Contract does not exist
Message no. E9011
Diagnosis
You have specified a record that does not exist in the database.
System Response
If you created the specified record in a previous workstep, the update process is not yet completed. Or, the process may have been canceled.
Procedure
In the case of an update process still being carried out, wait until the update of the desired record is completed.
In the case of a canceled update process, determine the reason for termination.
It is also possible that you have entered data incorrectly. Check your entry. -
To add a comment, please log in or register on the top of this page and choose Reply. Please write your comment in English.
You can also go back to the SAP help page.Hi PePe,
First of all, thanks for the response.
The question of copy control according to me does not arise; since the contract is not being determined itself. Once the same is determined; I think only then the question of copying arises.
Also had copy control been an issue; then even on entering the item I think contracts would not have been determined. Even though the determination is set to D (which is header and item reference object) still the contracts are being determined only on entering an item in the service order.
Regards,
DP -
Message determination for contracts(Purchase)
Hi ,
I have to recieve the automatic email of contract to buyer , I have created a
condition table with
1)Doctype/Buyer code(Purch group)
2)Assigned table to acess seq
3) Assigned acess sequence to message type
4) Maintained message determination .
I had used transaction NACE and selected application type EV and maintained condition records for Message type with medium 5 and partner as OA .
Now when I create contract , I dont see the message type automatic in the contract and when entered manually , it gives me error saying partner not maintained .
Can anyone suggest me .
Thanks ,First of all check your vendor has the OA partner function and then go to SPRO-MM-Purchiasng-Messages- output control- prtner role per message type- define partner role for outline agreement
here you have to define for OA partner function then only it will allow you.
. You must maintain an e-mail address in the address in the vendor master.
2. The same applies to your own user master. You also have to specify an e-mail address there in order to identify the sender.
Note that it is not possible to change the e-mail address of the vendor via the SAP purchase order transaction (ME21N, ME22N, and so on). The system only uses the e-mail address of the vendor that is maintained in the vendor master!
3. For the output type for default values, a communication strategy needs to be maintained in the Customizing that supports the e-mail. You can find the definition of the communication strategy in the Customizing via the following path: (SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy). As a default, communication strategy CS01 is delivered. This already contains the necessary entry for the external communication. Bear in mind that without a suitable communication strategy it is not possible to communicate with a partner via Medium 5 (external sending).
4. Use the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.
5. In the condition records for the output type (for example, Transaction MN04), use medium '5' (External send).
6. You can use Transaction SCOT to trigger the output manually. The prerequisite for a correct sending is that the node is set correctly. This is not described here, but it must have already been carried out.
7. To be able to display, for example, the e-mail in Outlook, enter PDF as the format in the node.
For more details, check out the OSS note :191470
Maybe you are looking for
-
Apple pro speakers specs?
can anyone tell me the specifications of the apple pro speakers (the clear round things)? im having to upgrade from them and wanted to get something with at least the same output as these great little speakers so would love to know the specs to match
-
Contribute CS4 - Can you schedule Publishing?
Dear Community, Is it possible to schedule publishing on Contribute CS4? I'd like to apply some changes to my website and have Contribute CS4 publish them automatically at the end of the day, 5pm for example, rather than having to publish manually. I
-
Deny logins not coming from approved IP src...
If there's an artical on this, please direct me to it. I have a requirement to control which IP is given opportunity to authenticate to my VPN 3000-series concentrator. I also have RADIUS available, if that can be used in any way, using vendor-specif
-
Hi, I recently had to reinstall my OS because system was not working.. I can go on internet etc but when I tried to run itunes it did not work so I uninstalled and then tried to download itunes from the apple web site and it says 'cant create file' I
-
PLEASE HELP FAST :dbms_sql.parse, insufficient privileges
DBMS_SQL.PARSE statement When Executed from a call within a package, I get the message insufficient privileges. I tried executing it from the user-schema from the owner and from an other user. When executed from within a sql-statement there is no pro