BAPI_CONTRACT_CREATE
Hi,
I'm using FM BAPI_CONTRACT_CREATE to create a contract.
After the ECC6.0 EHP5 support pack implementation the customer fields in EKKO are not populated after using this BAPI.
This data was transfered in EXTENSIOIN structure, and was working fine in the previous version.
What can we do to solve this ?
Best Regards,
Nuno
It´s solved.
The structure BAPI_TE_MEOUTHEADER needs to be filled.
Many Thanks,
Nuno
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. -
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 -
Passing Header Data in BAPI_CONTRACT_CREATE from BODS
Hi all,
I am new to BODS.
I am trying to create contract using BAPI_Contract_Create from BO-Data Services XI 3.2 to ECC 6.0.
In the New Function Call, while defining the "Input Parameters" for Header (and HeaderX), I can only select single column. Actually I should be able to pass multiple values for header data. For example fields like company code, document type, vendor etc. are mandatory entries.
Please let me know how to pass multiple values in the header data provided as varchar (10) in BODS.
Thanks,
Pradeep KumarThanks for the reply.
Following are the steps that I have performed:
1) I have created tables with required contract data.
2) Then data flow is created with contract table as input to the query.
3) In the query, I have added the new function call and selected BAPI_CONTRACT_CREATE as function name.
4) I am stuck at the next screen "Define Input Parameter(s)": I don't see any individual fields like company code, doc tyep etc. I just see single field as "Header".
5) To check the field details under "Header", I used the path SAP_Repo->Functions-> BAPI_CONTRACT_CREATE. On the schema screen under Input Parameters, 'Header' has type varchar (10) whereas 'Item' is a table with various columns.
Please let me know how to pass data in 'Input Parameters' for header contract data.
Regards,
Pradeep Kumar -
Badi for Z-Fields updating using BAPI_CONTRACT_CREATE
Hi Experts,
I need badi name required for updating Custom fields in contract while creating purchase contract.
I am using BAPI_CONTRACT_CREATE for creating contract.
Thanks & Regards,
Sushant singh1. did you pass your z-fields to BAPI_CONTRACT_CREATE
using EXTENSIONIN strucutre?
2. put break-point into your BADI and check if program stops there....
reards,darek -
Update VAT registration number by use BAPI BAPI_CONTRACT_CREATE
Hi,Experts!
I have a problem when I use BAPI BAPI_CONTRACT_CREATE to Create contract ,
I need to fill in the field EKKO-stceg(VAT registration number),but can't find any parameter in that BAPI.
please help!Hi Mf,
Yes there is no field for vat no in this bapi.Please check with extension parameter.
Regards,
Madhu. -
Vendor sub-range use in BAPI_CONTRACT_CREATE
Hi to all,
We are assigning vendor sub-range to "data retention levels partner" in the partner section on contract create (ME31). It is in standard functionality and we need to do same assignments in BAPI_CONTRACT_CREATE. But we could not find a field that could use for vendor sub-range assignmet on partner.
Could anyone who has faced same experience help me please.
Best Regards
Hakan TürkkanI just need to assign vendor sub-range in the BAPI_CONTRACT_CREATE.
-
Query Regarding BAPI_CONTRACT_CREATE
Hello All,
I need to create contracts by uploading data from a flat file. I am trying to use the BAPI_CONTRACT_CREATE FM to do the same, but there seems to be an issue here. When I am filling the header and items and passing the same to the FM the output return table is giving me errors like the Purchase organization and purchase group are blank, when I debug the program it seems that the header is getting cleared inside the BAPI, am I missing something ? The parameters rhat I am filling are HEADER,PURCHASINGDOCUMENT,RETURN,ITEM,ITEMX.
Please suggest if any one has faced a similiar kind of problem.
Thanksa nd Regards,
SachinSachin,
You need to make sure that you also populate the structure HEADERX with an 'X' against all fields that are populated otherwise the BAPI will assume that the fields in the structure HEADER are blank.
That should, in theory, fix your problem.
Cheers,
Neil. -
BAPI_CONTRACT_CREATE and custom fields
Hi experts,
I'm using the BAPI "BAPI_CONTRACT_CREATE" to create a new contract, but I don't know how to fill the custom fields in the EKKO and EKPO table.
Can you give me some informations about this question?
Thanks and regardsHi,
Hope the following threads will help you regarding your problem.
Re: Creating Contract from Quotation
Thanks.
Nitesh -
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 -
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 -
Appending customer field for BAPI_CONTRACT_CREATE
Hello.
I'm trying to append customer field to the table EKPO using BAPI called "BAPI_CONTRACT_CREATE ".
I have created a structure and included it into append structure of EKPO.
Can anyone tell me what I should do next?
Regards,
Tomoko SakamotoHello Tomoko
The BAPI has a TABLES parameter EXTENSIONIN having the following documentation:
FU BAPI_CONTRACT_CREATE EXTENSIONIN
Short Text
ExtensionIn
Description
With the parameters ExtensionIn and ExtensionOut, it is possible to
enhance the interface of a BAPI without modification to achieve the
automatic processing of customer-specific data.
The data is passed on in a table. The format of the individual data
records of this table is determined via the structure BAPIPAREX. This
structure contains several data record fields (VALUEPART1, VALUEPART2
etc.) and a field for the name of an auxiliary structure (STRUCTURE).
Because per data record the data is written piecewise consecutively to
the data record fields available for the purpose, an auxiliary structure
is needed for the interpretation of the data.
In the event that an SAP database table is to be enhanced by additional
fields, BAPI table extensions are especially suitable as auxiliary
structures. A BAPI table extension can either be already predefined by
SAP or created by the customer. Examples of auxiliary structures and
BAPI table extensions can be found at the following points:
o Description of the various customer enhancement options
o Enhancement of BAPI based on existing SAP database tables
o Enhancement of BAPI through incorporation of additional customers'
own database tables
o Enhancement of BAPI by import data that does not show up the
database level
Note that only fields of the data type CHAR and similar data types may
be used in the BAPI parameter ExtensionIn/ExtensionOut.
If the customer Include contains deviating parameters, the configurable
message ME 887 is invoked. However, the data is not adopted in the
target structure from the container.
Default
The auxiliary structures have been defined as follows:
o Header data:
- BAPI_TE_MEOUTHEADER
- BAPI_TE_MEOUTHEADERX
o Item data:
- BAPI_TE_MEOUTITEM
- BAPI_TE_MEOUTITEMX
o Account assignment data:
- BAPI_TE_MEOUTACCOUNT
- BAPI_TE_MEOUTACCOUNTX
Function Module
BAPI_CONTRACT_CREATE
You need to define and structure the values passed by this EXTENSIONIN parameter in a specific way in order to achieve your goal. For more details please refer to:
[Customer Enhancement and Modification of BAPIs (CA-BFA)|http://help.sap.com/saphelp_nw70/helpdata/EN/6b/3f6d016d0711d396a50004ac96334b/content.htm]
Regards
Uwe
Maybe you are looking for
-
What is the best photo paper 4'x6' for HP Officejet Pro 8500A Plus e-All-in-one Printer?
1.-HP Officejet Pro 8500A Plus e-All-in-One Printer 2.-OS: Windows 7-64 3.-No error messages 4.-No changes have been made 5.-I have been printing in my with old "hp premium plus glossyphoto paper" and getting very dark photos and too much wasted ink
-
Why cannot I open NEF files from a Nikon D600 with Photoshop CS5?
When I try to open raw NEF files from a Nikon D600 with Photoshop CS5 I get: "Could not complete your request because the file appears to be from a camera model which is not supported by the installed version of Camera Raw" Nikon D600, however, is am
-
Setting up independant dual-head configuration in the usual way?
I'm preparing to set up a dual monitor system pretty soon using an ATI Radeon card. I went through the wiki and read what the ATI page has to say: Independent dual-headed setups can be configured the usual way The problem is that it gives no indicati
-
Hello All With the given need from the market to manage license compliance proactively - the givven toolsets from MS SCCM 2012 should be capable of handling the given complexity. (reference 27 processes out of SAM ISO 19.770-1:2012 Where can I find t
-
Exporting schematic from Multisim to Cadence Allegro
Greetings, My company owns a copy of Allegro and Multisim. I'm having a bit of a hard time convincing the powers-that-be that we need another SPICE/schematic capture and/or PCB layout program. Does anyone have a method for getting schematics, hopefu