ME31k BAPI_CONTRACT_CREATE
Hello gurus,
Can any one help me how to creat contract by using BAPI_CONTRACT_CREATE. I am able to creat the contract by using me31k transaction.
I am passing the same data that i have given in me31k to BAPI_CONTRACT_CREATE. even through the contract is not been created.
Can any one help me out in this issue....
Thanks,
Feroz.
Hi,
It is impossible to know what the cause would be without more information.
There MUST be an error log of some sort, with an error message that gives some idea of what the problem is?
But firstly check the authorisation of the user id being used to run the BAPI. It could be that they don't have the authorisation to create contracts.
But without more info we cannot tell.
Steve B
Similar Messages
-
Net Price not Updating Using BAPI : BAPI_CONTRACT_CREATE
Dear Experts,
I am facing an issue while creating CONTRACT using the bapi: BAPI_CONTRACT_CREATE. I am creating the Contract based on data from my excel sheet. And we are maintaining the INFO RECORDS for the same materials.
In the excel sheet we are providing the NetPrice (NETPR) and creating the Contract. My issue is " instead of taking the Net Price from the excel it is taking the Net Price from Info Records". For Example, if for a Particular material the Net Price in our excel file is 125, after bapi execution, the net price is updating as 100 instead of 125 in Contract Creation( ME31k-ME33K). In the Info Records we are maintaining this net price(100) for that material.
Thanks in Advance for your response.
Regards,
Prasadyou can use BAPI_CONTRACT_CREATEFROMDATA
* Create Contract Order Number [BAPI_CONTRACT_CREATEFROMDATA]
CALL FUNCTION 'BAPI_CONTRACT_CREATEFROMDATA'
EXPORTING
contract_header_in = header
convert = 'X'
IMPORTING
salesdocument = v_order
TABLES
return = t_return
contract_items_in = itab_item
contract_items_inx = itemx
contract_partners = t_partners
contract_conditions_in = t_conds
contract_conditions_inx = t_condsx
contract_data_in = t_contract
contract_text = t_texts. -
How to create Item Services (ME31K) with BAPI_AGREEMENT_MAINTAIN
Hi
I need to create Contracts (Agreements) like ME31K with some BAPI . I know i can use BAPI_AGREEMENT_MAINTAIN .
But , also to cteate the Items ; i need to create Services for each Item .
(Actually i need even to create several conditions , that is Differents Prices for Date ranges, for each Service.)
But i just see the BAPI table IMT_AGREEMENT_ITEMS for create the Agreement Items , but there is not any table for create the Services for each Item.
Does somebody knows if It is possible to create the Services for each Item with this or other BAPI ? Please help.
NOTE. I can not use BAPI_CONTRACT_CREATE because my SAP version.
Regards
FrankDo it by ABAP programming.
Regards -
How to update Service Contract using BAPI/FM for ME31K
Hi ,
I am using BAPI BAPI_CONTRACT_CREATE to create contracts.
It works fine, the only problem i am facing is while updating line item with item category "D' its simply skips the item category and create a item. The item category is blank when i see in transaction ME33K.
When i create it using ME31K transaction with line item item category type "D' its ask me to fill the services also for that line item.
My question is is there any BAPI which i can use to update the Services for item line with item category D.
Thanks
AmarHi Amar,
Not sure if this would help you but you can consider writing different logic (probably a BDC) for item category 'D', and use BAPI for all other cases (if 'D' is the only exception).
BAPI documentaion says:
*External services (planned and unplanned services) are not supported.
Creation of configurations is not supported*
Regards,
Shyam -
ESLH, ESLL, RM06E fields in BAPI_CONTRACT_CREATE
Hi,
I have to create contract using me31k. I checked BAPI_CONTRACT_CREATE for the fields. But I am not able to find the fields which I have in these tables(ESLH, ESLL and RM06E).
ESLH-WAERS
ESLL-KTEXT1
ESLL-MENGE
ESLL-MEINS
ESLL-TBTWR
RM06E-LTEX1.
I need ur help. Or we have any other BAPI for this?
Points will be rewarded
Regards,
Karthickits true..there r few fields which r common, but i have to fill these fields(which i mentioned) also which belongs to service package header and item data. I am not able to find the service package header and item fields.
Message was edited by:
Karthick -
LSMW method for transaction ME31K ( Create contract)
can anybody tell me in which method of LSMW i should use to create contract ( Tcode- ME31K). Is there any direct input method for this or i have to use BAPI_CONTRACT_CREATE?
please answer it in details...
Thnxx in advance..In LSMW,
1st step Maintain Object Attributes. Here you can choose the kind of input method.
For your purpose you can choose Batch input recording and then go for Recording overview.
There you can do your recording for the tx.Similar to your BDC process.
Hope this helps to some extent! -
Hi
Does somebody knows wich BAPI can i use for create contracts like ME31K, i was searching but i see there are mentioned several BAPIS like BAPI_CONTRACT_CREATE , BAPI_AGREEMENT_MAINTAIN , BAPI_PO_CREATE, etc.
Even BAPI_CONTRACT_CREATEFROMDATA was mentioned but i know this one is for VA41 not for ME31K.
Does some body can help me please.
Regards
FrankThanks
Because my SAP version i must use AGREEMENT bapi instead CONTRACT because this last does not exists.
I'm gonna try to make it work.
Thanks a lot.
Regards
Frank -
Hi,
I have a requirement for creating Purchasing contracts through transaction ME31K.
I have found a Bapi for it, 'BAPI_CONTRACT_CREATE'. But i am looking for an IDOC which does this.
If you are aware, pls let me know.
Thanks,
Sneha.hi,
There is no Idoc.
L.Velu -
Hi All,
I have a requirement for upload program and i am trying to use 'BAPI_CONTRACT_CREATE'.
I am always getting the Error Enter GL Account No.
But in the Account Table i have passed the GL account No.
what could have gone wrong...
Pls Help.
Thanks,
Karthik.I tried the BAPI as mentioned
http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-CreatingVendorContractthroughtcodeME31Kwithuseof+BAPI
But this dint work out i am getting the error GL account has to be filled .
Tried with BAPI_CONTRACT_CREATE it worked out..
try to create in ME31k and use the PO no in the BAPI_CONTRACT_GETDETAIL and try to populate in Create bapi...this would work out.
Edited by: karthikeyan sukumar on Oct 10, 2009 7:07 AM -
How to validate long text in me31k( contract creation)
Hi,
I want to validate the long text in creation of contract(T_code - ME31k). In creation it self i want to get the long text for validation. How to get the long text value. For eg. "Release order text' i am giving the value as '10'. While saving the document in ME31k i need to get the long text. Please do the needful.
Thanks
Jag
Moderator Messag: Do not expect the forums to do your work for you.
Edited by: kishan P on Jan 19, 2011 4:33 PMUse Read_text function module.
you need to pass
ID
LANGUAGE
NAME
OBJECT to the function moduel
To find the Text id name language and object these are the following steps. Example: FB02
1. goto FB02, Enter Document number
2. from menuselect Goto>Header-->header Text..... New window will be displayed
3. select the Header Text. here you can see all the text.
4. click on the TEXT (which you want to know the Text id) , then press log ICON (you can find in bottom right of the text window) it looks like a rolled paper.
5. in the Next window you will find Text Name. Text ID, Language. etc...
Regards,
Lalit Mohan Gupta. -
ASSIGN_TYPE_CONFLICT - BAPI_CONTRACT_CREATE
Hi Gurus,
I'm encountering a dump ASSIGN_TYPE_CONFLICT when using BAPI_CONTRACT_CREATE and BAPI_CONTRACT_CHANGE.
The parameters of my BAPI are as follows:
call function 'BAPI_CONTRACT_CREATE'
exporting
header = wa_header
headerx = wa_headerx
testrun = v_testrun
importing
purchasingdocument = v_contract
tables
return = wa_return
item = i_item
itemx = i_itemx.
Can please someone help me regarding my issue in dump?
<<unacceptable promise removed by moderator>>
Please.
Thanks in advance.
Edited by: kishan P on Nov 2, 2010 10:53 AMHi PawanG,
This is how I declared my parameters:
data:
wa_header type bapimeoutheader,
wa_headerx type bapimeoutheaderx,
i_item type bapimeout_t_item,
wa_item type bapimeoutitem,
i_itemx type bapimeout_t_itemx,
wa_itemx type bapimeoutitemx,
v_testrun type bapiflag-bapiflag.
But still I encounter the dump.
Please help.. badly need your help guys.. -
Error in BAPI_CONTRACT_CREATE
Hi,
I'm using FM BAPI_CONTRACT_CREATE and I'm getting the error "Field selection PT5K not defined". Does anyone know what this means and what I should do? Thanks.Hi Rouse,
First check the BAPI Documentation in SE37. it give what are the parameters are mandatory. so that you should pass this data to the parameters.
Refer the below link
[http://abap.wikiprog.com/wiki/BAPI_CONTRACT_CREATE|http://abap.wikiprog.com/wiki/BAPI_CONTRACT_CREATE]
Reward if found helpful.
Regards,
Boobalan Suburaj
Edited by: Boobalan Suburaj on Jun 13, 2008 1:54 PM -
Problem with conditions in creation of contract using BAPI_CONTRACT_CREATE
Hi,
I am using BAPI_CONTRACT_CREATE and it does creates contracts and items, but even I am sending condition information to the BAPI , but it is not create them and I donu2019t even get an error message.
Thanks and Regards,
Pavan MedaThis FM is pretty well documented, make sure all tables are filled in correctly (e.g. ITEM_CONDITION, ITEM_CONDITIONX). Also make sure you actually can enter those conditions in the online transaction - sometime people are trying to push something through that is not supposed to work.
Also search SDN for posts regarding conditions in BAPI_SALESORDER_CREATEFROMDAT2, you might find some similarities. -
Conditions not updated in Contract Creation using BAPI_CONTRACT_CREATE
Hi all,
The conditions for the Contracts does not get updated eventhough the contract is created.
BAPI Used : BAPI_CONTRACT_CREATE
iam using the following code,
conitem_cond_validity-item_no = con_data-ebelp.
conitem_cond_validity-plant = con_data-werks.
CONCATENATE con_headerdata-kdatb6(4) con_headerdata-kdatb3(2) con_headerdata-kdatb+0(2)
INTO conitem_cond_validity-valid_from.
CONCATENATE con_headerdata-kdate6(4) con_headerdata-kdate3(2) con_headerdata-kdate+0(2)
INTO conitem_cond_validity-valid_to.
APPEND conitem_cond_validity.
CLEAR conitem_cond_validity.
the respective conitem_cond_validityx table has been updated with the value 'X'.
conitem_condition-item_no = con_data-ebelp.
conitem_condition-cond_type = kschl_1.
conitem_condition-cond_value = kbetr_1.
conitem_condition-currency = konwa_1.
conitem_condition-cond_unit = kmein_1.
conitem_condition-cond_p_unt = kpein_1.
conitem_condition-numerator = kumza_1.
conitem_condition-denominator = kumne_1.
conitem_condition-change_id = 'I'.
APPEND conitem_condition.
CLEAR conitem_condition.
the respective conitem_conditionx table has been updated with the value 'X'.
Please help to solve the issue.
Thanks and Regards,
RajHi Paromita Roy Chowdhury,
without knowing your exact situation (code), i can see a possible reasons: If it is exactly the 1000th, there may be a field of length 3 used as counter that will overflow when adding 1 to 999.
Regards,
Clemens -
MM Contract(ME31K) Attachment with name of the attachment
Hello Experts,
I am trying to attach documents to the MM contract using the transaction ME31K with attachment document name but I unable to achieve this.
In OAC0/OAC2 we can configure type of document.
And attachment can be done using create->Store business document and drag and drop.
When I see the attachment list I could see only attachment list but I want to maintain the file name as well.
Anyone worked on this scenario?
Please help me.
Regards,
Vadamalai AHello Abijith,
Thanks for your reply.
my create attachment is disabled, how to enable? is there any settings required. What is the difference between Create Attachment and Store Business document(which is enabled now but we couldnt see the file names from attachment list).
Regards,
Vadamalai A
Maybe you are looking for
-
Voice mail password problem, iPhone 5S
I have a 5S, use AT&T for voice mail. Every time I finish listening to a voice mail, I get a pop up asking for my password. I enter the password, but after listening to the next voice mail, I get the pop up again. Happens EVERY time. The popup does n
-
Hp laptop won't turn on at all.
I have no idea what model it is. Where do I find this in the machine. The laptop won't turn on. I have changed the fuse in the plug but the wires are not getting warm. I have no idea. When the battery is in and I try to turn it on the orange light fl
-
Re-attach facebook images with Aperture library items.
I have been publishing subsets of my images to facebook for a while, since way before the integration was built in. I have several facebook photo collections, which now show up in aperture, but there is no connection between the local library image a
-
About message queue in message mapping?
Hi SDNer, I have been read help.sap.com and sdn threads about message queue I hope this thread should be help for all like me. thank you Sha
-
Hi, I'm on a fully updated (inc. latest systemd), networkmanager based, Arch-X86-64/KDE system. The system is connected to the router via eth1 (r8169). After boot, I have no net connection (see below), yet, I do get connected, once I issue the "ip li