BAPI to Change Contract
Hi All,
I have a requirement to change the configuration of contract items in bulk. We have more than 600 contract numbers which contains more than 300 items each. Performing a BDC for VA42 does the requirement by changing the configuration of the contract items, but taking more than 15 minutes for each contract. So pls suggest me if anybody has used any BAPI to change the contract characteristics.
I have used a BAPI FM BAPI_CUSTOMERCONTRACT_CHANGE. I have tried to change the configuration values using this but failed. Can anyone suggest me the procedure to meet my requirement.
Will be thankful for your response.
Rgds
Pavan
Hi Pavan,
Welcome to SDN community!!
Whatever table ur passing to the BAPI, you check the checkbox for those fields in structure.
eg:
whatever fields you pass in CONTRACT_DATA_IN,
mark 'X' for those fields in CONTRACT_DATA_INX.
Same is the case with CONDITIONS_IN and CONDITIONS_INX.
Hope that helps..
Regards,
Tanveer.
Please mark helpful answers
Similar Messages
-
BAPI for changing CONTRACTS.
Hi All,
I want to update the short text for CONTRACTS in table EKPO from filed CDPOS-VALUE_NEW
for this i was using function module BAPI_PO_CHANGE
This Bapi is is succesfully updating the PO it is not updating the contracts....
Please help me with the BAPI to update text in contracts....
Please its very urgent
Thanx in advance,
Amruta.Hi Ajay,
I have done the same .....
REPORT ZTEST1234 .
data : wa_ekpo-ebelp type ekpo-ebelp value '00010'.
parameters :ebeln type ekpo-ebeln.
data : it_poitem type STANDARD TABLE OF BAPIMEPOITEM with HEADER LINE .
data : it_poitem1 type STANDARD TABLE OF BAPIMEPOITEMX WITH HEADER LINE.
data : it_return type STANDARD TABLE OF bapiret2.
it_poitem-PO_ITEM = wa_ekpo-ebelp.
it_poitem-SHORT_TEXT = 'mod'.
APPEND it_poitem.
it_poitem1-PO_ITEM = wa_ekpo-ebelp.
it_poitem1-SHORT_TEXT = 'X'.
APPEND it_poitem1.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = ebeln
POHEADER =
POHEADERX =
POADDRVENDOR =
TESTRUN =
MEMORY_UNCOMPLETE =
MEMORY_COMPLETE =
POEXPIMPHEADER =
POEXPIMPHEADERX =
VERSIONS =
NO_MESSAGING =
NO_MESSAGE_REQ =
NO_AUTHORITY =
NO_PRICE_FROM_PO =
IMPORTING
EXPHEADER =
EXPPOEXPIMPHEADER =
TABLES
RETURN = it_return
POITEM = it_poitem
POITEMX = it_poitem1
POADDRDELIVERY =
POSCHEDULE =
POSCHEDULEX =
POACCOUNT =
POACCOUNTPROFITSEGMENT =
POACCOUNTX =
POCONDHEADER =
POCONDHEADERX =
POCOND =
POCONDX =
POLIMITS =
POCONTRACTLIMITS =
POSERVICES =
POSRVACCESSVALUES =
POSERVICESTEXT =
EXTENSIONIN =
EXTENSIONOUT =
POEXPIMPITEM =
POEXPIMPITEMX =
POTEXTHEADER =
POTEXTITEM =
ALLVERSIONS =
POPARTNER =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ' '
IMPORTING
RETURN =..
This is my code just for updating the text but now the problemis this works with
When ebeln = 45000000017
whose bstyp = F ie PO
but when i do the same for Ebeln = 45000000000
whose bstyp = K ie contracts
it gives me error message that this BAPI cannot be executed for Contracts...
So please help me with the Bapi to change Contracts.
Thanx,
Amruta -
Badi/bapi to change contracts
hi gurus
could you please provide me some function/badi/bapi to change contracts on ISM?
In details I need a function to update the status:
- JHTVKO-XBESTK confirmed
- JHTVKO-XBEARB postprocess
thanks in advance
kind regards
pescaHi,
ISM_AM_CONTRACT - IS-M: BAdI for Contract
ISM_AM_COA_BAPI - IS-M: BAPIs for Contract (BUSISM012 BOR Object) try with this BAPI
regards
Saju.S -
BAPI for Changing Contract (ME32K)
Hi Experts,
I am searching for BAPI which can be used for changing contract (T-Code ME32K). I'd tried to use this BAPI "BAPI_CONTRACT_CHANGE", but it do not have fields by which I can update the Service Line Item also.
Any help would be appreciated.
Thanks and Regards,
Virendra KediaHi,
Using BAPI_CONTRACT_CHANGE ,we cant update service line items.
Instead of that use BAPI_ENTRYSHEET_CREATE to create SE for changes in rates of the contract at the servic level.
Check below link for documentation.
https://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_ENTRYSHEET_CREATE%20with%20mulit-accounting
Regards,
Ravi -
Hi,
Does anybody knows any bapi ( or simple function module ) for changing a MM agreement, by creating new service item(s).
Thanks,
Paulo SousaHi Ferry,
The F.M. ME_UPDATE_AGREEMENT_PO does not have any parameter or table where i can indicate the new service's line(s), so it's certainly not adequate.
About the BAPI_AGREEMENT_MAINTAIN, i've read the documentation and it refers structure parameters that do not exist when i display the F.M.. The documentation also says it should be used to create P.O. with the information from the contract. Do you know if it can also be used only to change one contract ? And do you also know why i cannot see any tabel named PoServices as referred in the documentation ?
Thanks,
Paulo Sousa -
BAPI for changing delivery date and delivery time fields in LIKP table
Hi All,
Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ?
Please tell me experts if exists.
Thank you,
Raghu.try these:
BAPI/FM to update LIKP and VTTK tables
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-for-changing-sales-headertable-likp-662800 -
Error in bapi while changing and add items in transparant table
data : t_poitems type standard table of bapimepoitem,
t_poitemx type standard table of bapimepoitemx,
w_poitems type bapimepoitem,
w_poitemx type bapimepoitemx,
t_return type standard table of bapiret2,
w_return type bapiret2.
loop at t_modify_detail into w_modify_detail-ebeln. * populating changing data
*--&modifying fields
w_poitems-po_item = w_modify_detail-ebelp.
w_poitems-material = w_modify_detail-matnr.
append w_poitems to t_poitems.
w_poitemx-po_item = w_modify_detail-ebelp.
w_poitemx-po_itemx = 'X'.
w_poitems-material = 'X'.
append w_poitemx to t_poitemx.
endloop.
call function 'BAPI_PO_CHANGE'
exporting
purchaseorder = w_header-ebeln
POHEADER =
POHEADERX =
POADDRV
tables
return = t_return
poitem = t_poitems
poitemx = t_poitemx
POADDRDELIVERY =
call function 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT
ERROR IS:
giving error : cl_po_item_handle_mm.................cp
function in which error showing: mepo docitem_getCheck this sample code
http://www.sap-img.com/abap/sample-abap-code-on-bapi-po-change.htm
BAPI PO CHANGE with MENGE
Hope it helps to identify your requirement and fix accordingly.
ashish -
Can u tell me any predefined BAPI for change and creation of Material
Hi,
Can anybody tell me predefined BAPI for change and creation of Materialmasterand Pricing?
Thanks & regards,
Gopianne.you can use the BAPI to BAPI_MATERIAL_SAVEDATA create as well as to change material master.
When changing material master data, you need enter only the material
number.
In the header data, you must select at least one view for which data is
to be created. Depending on the view selected, you must maintain other
required parameters. If you do not enter values for all of the required
parameters, the method is ended with an error message.
The corresponding fields in the tables (such as CLIENTDATA) must first
be supplied with data by the calling program. An indicator must also be
set for each of these fields so that the data is written to the database
by the method. This requires the calling program to supply the
corresponding field with the indicator in a checkbox table (for example,
CLIENTDATAX). Checkbox tables exist for tables that do not contain any
language-dependent texts (MAKT, MLTX), International Article Numbers
(MEAN), or tax classifications (MLAN). Several data records for a
material can be created in these tables.
regards
vivek
reward points if it helps -
Function Module or BAPI for Change Customer Master in Background
Hi,
I would like to ask is there any Function Module or BAPI to change the Customer Master in the Background
Thanks.Hi
Please check the following link
[FM|http://help.sap.com/saphelp_nw04/helpdata/EN/8f/53b67ad30be445b0ccc968d69bc6ff/content.htm]
[FM for BAPI|Is there a BAPI or Function module can create a Customer Master record?]
Hope this link helps you
Regards,
Rajani -
FM or BAPI to change Operation data
Hi,
Is there any BAPI to change operation data? BAPI_ALM_ORDER_MAINTAIN is not useful in my case. I want to use IBAPI_ORDER_OPERATION_CHANGE but not able to get proper documentation for same.Can anyone give me a sample code about how to use IBAPI_ORDER_OPERATION_CHANGE?
My requirement is to tick check box 'Required Splitting' in operation if some conditions are met. I am planning to do this using cuatomer exit. Everything is working fine only i need to know how to use above BAPI. If this doesn't work then as a last option i will go with BDC.
Regards,
KamalHi Kamal,
Unfortunately I can not see any BAPI which changes operation data of a production order.
BAPI_PRODORD_CHANGE is available only for changing header details.
BAPI_ALM_ORDER_MAINTAIN and IBAPI_ORDER_OPERATION_CHANGE are used for changing maintenance or service orders, and not production orders, most probablty this won't work or cause issues.
I'm afraid BDC is the only option in this case.
Regards,
Marcelo Pacheco -
Bapi to change travel expense report
Hi,
I am working on an program to create a travel expense report using the 'BAPI_TRIP_CREATE_FROM_DATA' FM and it is working fine.However,i am unable to change the trip created using this FM.When i use the SAP transaction TRIP,i am able to change the travel expense report created.I am passing the status approved as '3' and account as '1' in the BAPI.Is there any bapi's available to change the travel expense report created?I would appreciate any assistance.
Regards,
Rajiv CDear there is no standard Bapi to change the same, However there is one to delete the same( <b>BAPI_TRIP_DELETE</b>) and then you can create the same.
Why you not trying to write a new BApi to change the Trip ( as standard is not available).
See other reply there is step by step process to write a custom bapi.
Just start you will find it intersting.
rewardif useful.
Amit Singla -
BAPI to change the posting data of invoice document
Hello All,
I need a BAPI to change the posting date of the invoice document (Type : RE, Generated from MIRA transaction). Do let me know if you can across a BAPI to do it.
Thanks,
Siva.BAPI_INCOMINGINVOICE_CHANGE
-
Modification in ML87 upload program to change contract type
Hi Experts.
I need your help regarding ML87 transaction code. I want to change contract type for uploading prog. Currently I am uploading for default contract type XYZ1 and now i want to change it as XY as new default contract so can you tell me the process to make changes for contract type .
Thanks
Regards
Rajas01Hi, use LSMW, Import method - recording
-
Suggest BAPI for change notification IW52
Hi,
Kindly suggest BAPI for change notification IW52.
Regards,
TanayaHow to find function module or Bapi for particular transaction in sap?
If you mean that you need to know what BAPI's a particular tranx uses, which I can only assume that's what you mean, then you should access the code behind the transaction and search for 'CALL'. That normally is the standard method that think that most people use.
Suppose you want to find the bapi for creating a sales order, you usually use transaction VA01 for this.
1. Find out the package of the transaction.
Start Va01 go to system --> status.
Double click on transaction
Package is VA
Open this package in SE80
Open business engineering-->Business object types
Find the BO which sounds the most appropriate
I would suggest BUS2032 Sales Order
Double click.
Open methods.
Find the released method with from data or something similar in the name
, Createfromdat2
Position the cursor in it and click the program button
Scroll down to find the bapi used in this method
With this way you can also find out programs and FM's
2. Start va01 go to system-->status
Double click transaction VA01
Double click on package
Read the application component. (this is SD-SLS Sales)
Then open the transaction BAPI
Sales and distribution>Sales>sales order
createfromdat2
Answer: This is the BAPI for your mentioned transaction code BAPI_GOODSMVT_CREATE.
thanks,
Sankar M -
Bapi for change work center data
HIi All
I need BAPI to change work center data for all categories and work center change transactions .....IR02 ,CNR2,CR02.
Thanks in advance .Hai,
Try the fm CRAP_WORKCENTER_CREATE
BAPI_BUS2054_CHANGE_MULTI
CRAP_WORKCENTER_CREATE
Regards,
Venkat
Maybe you are looking for
-
Receipt Qty in AP invoice does not match with actual receipt qty.
Hello everyone, I am facing an issue in oracle Payables module. When we match invoice with receipt while preparing invoices, Quantity received shown in the Receipt quantity block in invoice window does not match with actual receipt quantity of that i
-
Price List Auto Update based on Last Purchase Price
Dear Expert I have a problem in updating the PriceList at one of my client site . They are making CST purchase Eg. We are entering purchase through Goods Receipt PO item cost 100RS and CST tax 20 RS Then Copy to AP in
-
No gnome in Solaris Express 11?
Hi, I have installled Solaris Express 11 (sol-11-exp-201011-text-x86.iso) on VMWare. After installation I have discovered that there is no GUI. Have I installed incorrect image? Or maybe Sol 11 doesn't have gnome? Regards, Daniel
-
Since upgrade iphone 4 Version 7.0.0,I noticed my WIFI is not conecting very good.It stays in 3G.How can I fix?Thanks
-
Hai Experts Yesterday I got one error message from JDI configuration time. The Error was "Sld (http://otisap03:50200) server exception. User credential are invalid and user is denied access." Then now i open Visual administrator>services->SLD