BAPI_AGREEMENT_MAINTAIN -Change an item in an agreement
Hello,
I found a bapi for changing agreements (BAPI_AGREEMENT_MAINTAIN), but I don't know how to use it.
For example, if I want to change the SHORT_TEXT in the item data. Does anyone know which structures and fields I exactly need to fill to change an item in an agreement?
I found an earlier post on this BAPI, but that person chose to edit via batch input.
Thanks in advance.
Minda
I have the same problem, Can you send me how to use it.
thank
Similar Messages
-
Printing of changed line item in scheduling agreement smart form.
Hi experts,
I am facing problem in printing of changed line item in schedule agreement.
can any body tell me how to find the line item has been changed through programming?what is the procedure to fetch the data for new line item.its
very urgent for me.
Please help me in this regard.
Priti ShrivastavaHi
with the help of T180-TRTYP field you know if that doc has been changed or created.
If it is not equal to H it is changed. H means created.
pass the TCODE of Sched Agreement and check this field.
You can use the CDHDR and CDPOS table s to get the changed values of new item.
Reward points if useful
Regards
Anji
Message was edited by:
Anji Reddy Vangala -
Unable to change the item category in existing Scheduling Agreement
HI,
I have a schedule agreement where there are already list of line items but saved without the appropriate item category field in all of the line items. Now I see that the Item category column is greyed out & unable to edit or change thru ME32 T.code.
I am already aware that deleting the item codes & adding again with resolve the issue. But when try to delete, those codes shows that they have GR & PO not completed one.
My question is :
Is there a way to edit/change the Item category field without deleting the item?
Whethere is it possible to do it in bulk update for group of items in SA?
If it is possible, pls provide how to do it with steps.
Kindly advice.
Thanks. in advance!
-UmeshPlease try using MASS tcode with object BUS2013
or MEMASSSA
Its a direct table update where you can select the Table Item and Field Item category and input the document number to change the value os item category and try with one sample data then do it in mass.
Before cahngin the item categry Please make sure all the dependancies are met then nly the system will allow you to save.
Refer for Mass upload function it is common for all
[Mass update|http://www.sapkshare.com/user/image/mass-maintenance---mm17.pdf]
Edited by: Karthik on Jul 29, 2011 2:44 PM -
Excise base amount is not changing as per the scheduling agreement
Sub: in migo excise base amount is not changing as per the scheduling agreement type LP ( time dependent ).
I have created the scheduling agreement type LP with time dependent.
I have maintained the price value in two validated period i.e
01/07/08 to 31/07/08 price is 100 rs.
01/08/08 to 31/08/08 price is 200 rs.
I have maintained the delivery schedule on
15/07/08 of quantity 1 nos.
When I am doing the goods receipts for the scheduling agreement on
Document date I am giving 15/07/08.
Posting date I am giving 15/07/08.
I am giving the posting date in the excise also 15/07/08.
After item ok.
When I will the excise base value it is taking 200 and also excise duty is also calculating on 200.
When I will post the document
The stock account and GR/IR account is taking 100 only
And excise duty is posting for rs: 200 only
Why the excise base value is not changing as per the validity period.
What setting I have to do the change the excise base value as per the validity date maintained in the time dependent .
regards
jrpdear sir
doc date and posting date i have given 15/07/08 and also excise posting date i have given 15/07/08,
but excise base value it is taking Rs:200 .
in inforecord price date category 5-goods recepit date i have given
yes i ahve changed the excise base value it will post , if i will not change the excise base value i will post rs:200 only and GR/IR clearing account will post Rs100 only.
why the excise base value will not take based on the time dependent.
regards
JRP -
Change document items (CDPOS)
hello boss
how to use these tables CDPOS and CDHDR , in that i had given the document no as sceduling agreement no but i didnot get result,
in that table waht is that object value and change doc object what is that
kindly tell me what is the use of table , how to enter in that table, what were ans we were expect from these table?Hi
CDHDR - Change Document Header table
CDPOS - Change Document Item table
Document number is the change document number, which you see when you goto display changes for any document or master data
To use this table you will need to know the document object. Document object a name give to various objects like PO, Material master etc. And object value is the number of you PO or scheduling agreement.
You can search by just entering scheduling agreement number in object value....but the search will take large time as index will not be accessed.
From this header table you wil get change document number. This number you take to CDPOS and then you will get the details of the changes done.
Hope this helps.
Regards,
Vishal -
To change the text of outline-agreement
Hi Experts,
Im using BAPI_CONTRACT_CHANGE function module to change outline agreement.When im executing this im getting the dump.Will you explain me how to use this fm to change the item text of outline-agreement.Will you please give the list of mandatory fields for this function-module.IMPORTING
*" VALUE(PURCHASINGDOCUMENT) TYPE BAPIMEOUTHEADER-NUMBER
*" VALUE(HEADER) TYPE BAPIMEOUTHEADER OPTIONAL
*" VALUE(HEADERX) TYPE BAPIMEOUTHEADERX OPTIONAL
*" VALUE(VENDOR_ADDRESS) TYPE BAPIMEOUTADDRVENDOR OPTIONAL
*" VALUE(TESTRUN) TYPE BAPIFLAG-BAPIFLAG OPTIONAL
*" VALUE(TECHNICAL_DATA) TYPE BAPIMEOUTTECH OPTIONAL
*" EXPORTING
*" VALUE(EXP_HEADER) TYPE BAPIMEOUTHEADER
*" TABLES
*" ITEM STRUCTURE BAPIMEOUTITEM OPTIONAL
*" ITEMX STRUCTURE BAPIMEOUTITEMX OPTIONAL
*" ACCOUNT STRUCTURE BAPIMEOUTACCOUNT OPTIONAL
*" ACCOUNTPROFITSEGMENT STRUCTURE BAPIMEOUTPROFITSEGMENT OPTIONAL
*" ACCOUNTX STRUCTURE BAPIMEOUTACCOUNTX OPTIONAL
*" DELIVERY_ADDRESS STRUCTURE BAPIMEOUTADDRDELIVERY OPTIONAL
*" ITEM_COND_VALIDITY STRUCTURE BAPIMEOUTVALIDITY OPTIONAL
*" ITEM_COND_VALIDITYX STRUCTURE BAPIMEOUTVALIDITYX OPTIONAL
*" ITEM_CONDITION STRUCTURE BAPIMEOUTCONDITION OPTIONAL
*" ITEM_CONDITIONX STRUCTURE BAPIMEOUTCONDITIONX OPTIONAL
*" ITEM_COND_SCALE_VALUE STRUCTURE BAPIMEOUTITEMSCALEVAL OPTIONAL
*" ITEM_COND_SCALE_QUAN STRUCTURE BAPIMEOUTITEMSCALEQUAN OPTIONAL
*" ITEM_TEXT STRUCTURE BAPIMEOUTITEMTEXT OPTIONAL
*" HEADER_TEXT STRUCTURE BAPIMEOUTTEXT OPTIONAL
*" HEAD_COND_VALIDITY STRUCTURE BAPIMEOUTHEADVALIDITY OPTIONAL
*" HEAD_COND_VALIDITYX STRUCTURE BAPIMEOUTHEADVALIDITYX OPTIONAL
*" HEAD_CONDITION STRUCTURE BAPIMEOUTHEADERCOND OPTIONAL
*" HEAD_CONDITIONX STRUCTURE BAPIMEOUTHEADERCONDX OPTIONAL
*" HEAD_COND_SCALE_VAL STRUCTURE BAPIMEOUTSCALEVALUE OPTIONAL
*" HEAD_COND_SCALE_QUAN STRUCTURE BAPIMEOUTSCALE OPTIONAL
*" PARTNER STRUCTURE BAPIMEOUTPARTNER OPTIONAL
*" PARTNERX STRUCTURE BAPIMEOUTPARTNERX OPTIONAL
*" RELEASE_DOCU STRUCTURE BAPIMEOUTRELEASEINFO OPTIONAL
*" EXTENSIONIN STRUCTURE BAPIPAREX OPTIONAL
*" EXTENSIONOUT STRUCTURE BAPIPAREX OPTIONAL
*" RETURN STRUCTURE BAPIRET2 OPTIONAL
FU BAPI_CONTRACT_CHANGE
Short Text
BAPI to Change a Purchase Contract
Functionality
BAPI for changing a purchase contract.
Notes
Master conditions
When creating outline agreements, you can specify only one period per variable key. This means that just one period can be specified for the document header (i.e. condition table A019). The same applies to each item (i.e. condition table A016) and to each item/plant combination (i.e. condition table A068).
You can use any periods. However they must not overlap for a variable key.
When conditions are changed, new condition records are nevertheless written.
Because volume rebate conditions are not taken into account in outline agreements, they are not processed.
No subitems (e.g. inclusive/exclusive bonus quantities, display, etc.) are taken into account.
The control key for quality management in procurement (EKPO-SSQSS) and the certificate category (EKPO-ZGTYP) are only taken into account to a certain extent. These two items of information are copied from the reference contract or material master, but cannot be changed; neither are any checks carried out for these two fields.
The revision level (EKPO-REVLV) cannot be changed because various quality management routines were not implemented.
Version management (Document Change Management) is not supported.
External services (planned or unplanned) are not supported.
The creation or changing of configurations is not supported.
Further information
When a purchase contract is changed (activity 02), the following authorization objects are checked:
M_RAHM_BSA Document type in contract
M_RAHM_EKG Purchasing group in contract
M_RAHM_EKO Purchasing organization in contract
M_RAHM_WRK Plant in contract
Parameters
PURCHASINGDOCUMENT
HEADER
HEADERX
VENDOR_ADDRESS
TESTRUN
TECHNICAL_DATA
EXP_HEADER
ITEM
ITEMX
ACCOUNT
ACCOUNTPROFITSEGMENT
ACCOUNTX
DELIVERY_ADDRESS
ITEM_COND_VALIDITY
ITEM_COND_VALIDITYX
ITEM_CONDITION
ITEM_CONDITIONX
ITEM_COND_SCALE_VALUE
ITEM_COND_SCALE_QUAN
ITEM_TEXT
HEADER_TEXT
HEAD_COND_VALIDITY
HEAD_COND_VALIDITYX
HEAD_CONDITION
HEAD_CONDITIONX
HEAD_COND_SCALE_VAL
HEAD_COND_SCALE_QUAN
PARTNER
PARTNERX
RELEASE_DOCU
EXTENSIONIN
EXTENSIONOUT
RETURN
Exceptions
Function Group
<b>rewards point for helpful answer.</b> -
Change of Item Categoy in Sales Order - AFS
Hi Gurus,
I am working on AFS. In the sales order for which delivery has not been created, system is not allowing to change the item category. From TAN to TAQ.
I have maintained the Manual item category in VOV4. Still the item category field in sales order is in grey mode.
Please let me now how to make it editable.
Regards,
Naren DevHi Naren,
Can you please check if that item has any associated Purchase Requisitions?
Standars SAP does allow change of item category if alternative item categories are configured and subsequent document are not yet created.
Thank you
Chaitanya -
How to control Changing of item category in sales order Manually
Hello Gurus,
How to restrict manual changing of item category in sales order?
Reason for it:
When ever they want to give some free goods to customer , they are changing Item category in Standard Sales order at item level then deliverying free goods to customer
looking for your inputs
Thanks in advance
Regards
VenkatHello,
There are two possible ways:
1. In Item Caterogy Determination remove the Manual Item Categories so that system will determine the Item Category only from defined options.
2. Use T-SHDO - create Screen Variant & make the item Category Feild as Display only.
Hope this helps..
Thanks,
Jignesh Mehta -
Copy line items from Master Agreement to SubAgreement
Dear all,
As a requirement, we need to create a dummy line item at master agreement and subagreement level to be able to publish them to ERP without need
to complete line items (they are completed in ERP via a development).
We have created master agreement templates with a dummy line item but at subagreement level, templates are not available.
What we are trying to develop is a script on post_create at agreement level to copy line items from Master Agreement to SubAgreement. We are able to get Master Agreement line items and copy them to the SubAgreement, but the subagreement is not created. This is the code we are using:
import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeIfc;
import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanIfc;
import com.sap.odp.api.doccommon.masterdata.ValueListTypeIBeanHomeIfc;
import com.sap.odp.api.doccommon.masterdata.ValueListTypeIBeanIfc;
import com.sap.eso.api.contracts.ContractIBeanHomeIfc;
Mst_agreementBean = doc.getParentIBean();
lineItemCollectionSub = doc.getLineItems();
lineItemCollection = Mst_agreementBean.getLineItems();
collectionsize = lineItemCollection.size();
colln = Mst_agreementBean.getCollectionMetadata("MA_LINEITEMS").get(Mst_agreementBean);
colln2 = doc.getCollectionMetadata("MA_LINEITEMS").get(doc)
newProject = Mst_agreementBean.getIBeanHomeIfc().createFromAnother(Mst_agreementBean);
newMember = colln.get(1);
// Get Values Line Item
assCat = newMember.getAcctAssignCategory();
actLimP = newMember.getActualLimitPercent();
delAdCity = newMember.getDeliveryAddressCity();
delAdCount = newMember.getDeliveryAddressCountryRef();
delAdDist = newMember.getDeliveryAddressDistrict();
//... (all fields included in the script)
// Create Line
newMember2 = newMember;
AgreementHome = IBeanHomeLocator.lookup(session, doc.getObjectReference());
AgreementHome.upgradeToEdit(doc);
// Set Values
newMember2.setAcctAssignCategory(assCat);
newMember2.setActualLimitPercent(actLimP);
newMember2.setDeliveryAddressCity(delAdCity);
newMember2.setDeliveryAddressCountryRef(delAdCount);
newMember2.setDeliveryAddressDistrict(delAdDist);
//... (all fields included in the script)
try{
colln2.add(newMember2);
AgreementHome.save(doc);
AgreementHome.downgradeToView(doc);
collectionbean = colln2.get(0);
logInfo("Value of collectionbeanSub " + collectionbean );
}catch (ApplicationException e){
logInfo("Error " + e.getClass() + ". " + e.getMessage());
When we try to create an Agreement under a Master Agreement (clicking Add on Agreement tab), following error message is shown related to the line in blue:
Facility=local4;sessionid=4e73bb8e73304d6284816f93f4e04522a7c387b; tenantid=#tenant.ecb#;username=LUGUELL; exception=Sourced file: inline evaluation of: ``// ** import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : Method Invocation AgreementHome.save : at Line: 164 : in file: inline evaluation of: ``// ** import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : AgreementHome .save ( doc )
Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.eso.contracts.ContractTypeBo.getVendorVisible()
of a null object returned from com.sap.eso.contracts.ContractCommonBo.getTypeBo()
;stacktrace=Sourced file: inline evaluation of: ``// *JLA* import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : Method Invocation AgreementHome.save : at Line: 164 : in file: inline evaluation of: ``// *JLA* import com.sap.odp.api.doccommon.masterdata.ValueListValueIBeanHomeI ... '' : AgreementHome .save ( doc )
Target exception: java.lang.NullPointerException: while trying to invoke the method com.sap.eso.contracts.ContractTypeBo.getVendorVisible()
of a null object returned from com.sap.eso.contracts.ContractCommonBo.getTypeBo()
Any ideas what is causing the error? What are we missing on our code to copy line items?
Many thanks,
Marc Romagosa
Message was edited by: Marc Romagosa de RibaWe managed to create a line item at VALIDATE script, but not at POST_CREATE. Either it is a bug or it is not possible at POST_CREATE script.
-
We migrated a server (ldap and file serving) to some new machines, which have new names. We've got all of the login and file sharing functionality working on the new machines, but wherever we have a mount of a share in the Login Items for a user, we can't get the old machine out of the Login Items. It's not fatal, but it does make login take a lot longer because it has to fail first.
We can mount the share from the new server, and save THAT in a NEW Login Item just fine -- it's just that when you click on the old defunct one the minus sign is greyed out, and the mouseover says "You cannot change this item because it's managed by your system administrator." There is a yellow triangle next to the item in the list. Went into the user's ~/Library/Preferences/com.apple.loginitems.plist and it's not in the file. The /Library/Preferences don't have anything that looks like a plist of the right name.
Where do I find it and how do I get rid of it?In response to ManishBhatt94's post today, I may have some information that may be useful to you. I called Microsoft's 800-642-7676 and spoke with a technical representative with questions pertaining to my particular issue. I also have friend that has the
same issue with her computer running windows 8. A representative from my ISP told me how to go into 1)Tools, 2)Internet Options, 3)Connections, 4)LAN settings and uncheck the proxy settings box. However after restarting or shutting down my computer it reappears.
It will also reappears while I play games on Facebook not allowing me continue until I go back into the proxy settings in LAN and uncheck the box AGAIN and AGAIN. A local owner of a computer repair shop told my friend that it was a virus. After speaking with
Microsoft today I was told the same thing/it was more than likely a virus on my personal PC at home. As most people likely do, I use wireless internet in my home on the affected computer. Solution; as suggested by Microsoft rep was to have the virus
professionally removed either by someone or to use their remote service for a fee of $149 which comes with several guarantees and does not require you to re-install software or documents. I hope that my response was of some help to you. I also kept trying
to fix this problem but wasted a lot of time. He also suggested to Google the proxy problem to see if ANYONE has any alternatives to fixing this problem!
-
Deriving/ change the item category from handling unit
Hi SAP GURUS,
In vl01n I want to derive the item category based on the handling unit. Hnadling unit is derived from the payment terms.
Please let me know the required configuration or the development for this.
Thanksi need ur help regarding the Sales order item category redetermination.
we are having two item categories YNAE and YNAG and it contain schedule line categories CP and CB ( i.e for item category YNAE schedule line category is CP and
for item category YNAG schedule line category is CB), for YNAG Purchase Requisition is automatically created becz of functional setting on save and it is working fine.
For every line item in sales order line item level item category YNAE will be determined by default as per functional settings.
Now my requirement is that, if sales order line item doesn't contain 100% confirmed quantity, than i needs to change the default line item category YNAE to YNAG
which i am trying to do it in USEREXIT_PRICING_PREPARE_TKOMP becz in this exit i am getting the values in XVBAP and XVBEP and it is working fine .
But schedule line category is not getting redetermined automatically what i mean is, if i change the item category to YNAG from YNAE in user exit corresponding schedule line category CB of YNAG is getting determined automatically at the schedule line level and if ichange the schedule line categories in XVBEP in exit USEREXIT_PRICING_PREPARE_TKOMP, changes are reflecting at the schedule line level but Purchase requisation is not getting created for schedule on SAVE and its delivary dates are also not getting determined properly. If press the option ATP check at the schedule line level than very things will getting corrected in the order.
i am using UPDKZ = U in both xvbap and xvbep for changes
I feel that i am not doing this in proper way, do u have any idea about how to redetermine item category. please let me know if u have any idea .
Regards,
Vaddepally Manoj -
How to change Service Item using BAPI_ENTRYSHEET_CREATE.
Hi All,
There's a requirement for me to upload/ Create Entry Sheet using BAPI_ENTRYSHEET_CREATE from the source file.
The Header was given to me but the Service Item, they would like the flexibility to change the existing lines that was adopted from ML81N.
Eg of the file.
Header given:-
PO NO
Po Item
Short Text
Ext Entry Sheet No
Service Location
Period Start
Period End ....n so on
Service Item given:-
Service Line (Extrow)
Service Order Qty (Memge)
Ext Service No (EXTSRVNO)
The objective of this file is
1) Create Service Entry Sheet (using Header)
2) Adopt the Service Item
3) Change Service Item (using Service Item)
Could anyone guide me how to do it? If Using BAPI_ENTRYSHEET_CREATE...is actually creating it with full details of the upload file. but given to me, t requrement is they would like to create n change the item.
Appreciates your help.
Thank you.
Regards,
Sheena WeeHi ,
If you are trying to test the FM through TCode SE37 then it will not give you the desired output.Do one thing create a test program and there you call the FM with your data.I hope in this way you can solve the issue.
Regards,
Sarbajit. -
Change in Item category in Sales order
Hi,
We have one requirement to change the quantity in the Billing document
our requirement goes like this,
Order was created with 10 Qty and PGI also done with 10qty, But physically customer receives 9 qty and Billing done with 10qty.
Now customers will not accept for the Billing and Business has to change the quantity in the Billing without reversig PGI
As per the legal regulations, we cannot reverse the PGI and change the quantity in Billing
But as per the standard, we cannot change the ITEM category in the sales order once the subsequent document is created.
can you please let me know is there any solution to change the Item category in the sales order using User exit of any other way
regards,
santoshSince I was handling similar scenarios quite frequently when I was in domain, from my experience, I can share the same.
It is known to customer also that billing cannot be changed once it is generated. Hence, the client can request the customer to either deduct the amount to that extent while releasing the payment against that billing document or the client can give one number extra or credit in the subsequent shipment. Any customer will accept for this.
Meanwhile, I also dont understand why you want to change the item category after billing and what you would like to achieve over this. If the above options is not acceptable to client, then the best approach would be generating a credit note straightaway against that billing document and set right the records.
thanks
G. Lakshmipathi -
Change Schedule line in Scheduling agreement by function.
I want to know that is enalbe to change schedule line in Scheduling agreement by function( 'BAPI' or Standard function).
I known that is possible by BDC.
But I have to change many records. So I want to know faster method.
Please let me know what function enbale that.
Thank you for your interest.Hi..
The Scheduling agreement is one which is created runing MRP not VA31.
I know that is two transaction data in SAP.
One is Sales Data other one is Purchasing Data.
This is second one.
Thank you your response. -
Changing the item categories of Sales order in web IC
Hi experts,
We are working on CRM 5.0 with Web IC
We have a scenario where we need to change the item categories of some of the items in sales order.
But in a standard sales order I cant see the item categories of line items in WebIC.
Now the issue are
1. How to make the item categories available in web ic?
2. Is there any standard config to do this or we have to go for development ?
3.Is it possible to change the itemcategories in Web IC?
Can any body suggest me with suitable solution
Points shall be rewarded for sure
Regards,
MadhuHi,
you dont change the item category at the header level. The item category will be changed at the item level and the code to do this is
lv_entity_items->set_property( EXPORTING iv_attr_name = 'ITM_TYPE' iv_value = lv_itemcat ).
here lv_entity_items is one of the entity in the collection for AdminI . lv_itemcat is the value you want your item category to be set to.
hope this helps.
Reward useful answers.
Regards,
S Sarma.
Maybe you are looking for
-
Hi, I have tried to "finalize project" at least 5 times now - and everytime, the porgress bar does it thing as normal. Then, at the I end I always get the above message. Any one have any ideas re why and how to fix? Many thanks, Giorni
-
How to developer reports ?
Post Author: alrmd CA Forum: Crystal Reports I have CR XI, and i have developed some reports, but i can only run and refresh data in my own pc, because the Viewer software can not do that, so i want to ask, what do i need to do in order the users can
-
Infotype 0041 - Date type field in display mode always
Hi All, Please help in find out solution for the below enhancement In infotype 0041 we have date type and date field. We need to make the date type field to be display mode always. Thanks for your help in advance. Thanks, Karthikeyan
-
Can I use the 10402 oledb provider to connect to an 8i database?
I have a win2008 x64 server with the oracle 92 client installed, and I installed the 10402 client and oledb provider. I need to connect to an 8i database. Is this possible? If so, how do I setup my environment to make this work? Thanks, OracleNewb
-
Hi, We've created two classes in a package and created a jar file. Then we imported the JAR into the a namespace as an Imported Archive. In our UDF we imported the package. But when we test the map we get the following exception. <b>bad class file: /