Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_CONTRACT_CREATE with extensionin

devrajsingh
Active Participant
0 Likes
2,644

Hi Friends,

I am working BAPI_CONTRACT_CREATE with extension in where I need to add data related to one custom field into the BAPI.

This field is related to Item level and When I have check the extension table then I have found the below structure

STRUCTURE

VALUEPART1

VALUEPART2

VALUEPART3

VALUEPART4

I have gone through the BAPI documentation and found the structure needs to be used for item should be

BAPI_TE_MEOUTITEM

BAPI_TE_MEOUTITEMX

When I checked the structure BAPI_TE_MEOUTITEM then I can find my custom field exist in the structure but my issue is here that how should I pass the value in this Extension..

i.e. for ex my custom field is XYZ = 0020 and I need to pass this through the extension table then how should I assign the value.

Regards

Dev

3 REPLIES 3
Read only

Jelena_Perfiljeva
Active Contributor
0 Likes
1,397

You need to fill in the structure name in the first field and then all the values (in sequence) in the rest of the fields. You don't enter 'XYZ' anywhere, only the field value (don't forget leading zeroes etc.).

This has already discussed many times, please use search. Here is one example, just from the top of the list:

Read only

0 Likes
1,397

Hi Jelena,

Thanks for replying ....

Actually I got ur point and per your suggestion I need to do like below

1 - Assign Structure field to first field which is BAPI_TE_MEOUTITEM & BAPI_TE_MEOUTITEMX

and there when I have checked my Zfield exist. but in these structures one SAP field also exist called Item number

So should I also provide the value for Item number in 2nd field VALUEPART1 = 00010value of xyz field?

or I Just should provide my custom value?

Regards

Dev

Solved

Yes we need to pass the standard filed value too ..

Edited by: Dev on Jul 15, 2010 6:11 PM

Read only

0 Likes
1,397

Hello,

I followed the sequence for the Valuepart after the structure but I get the error:

Key "0020" from "EXTENSIONIN" is not available in table "CTRACPARTNERDETAIL".