‎2010 Jul 15 4:42 PM
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
‎2010 Jul 15 9:49 PM
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:
‎2010 Jul 15 10:24 PM
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
‎2019 Jul 11 12:33 PM
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".