‎2012 May 02 2:14 PM
I have a field in PO at header which isn't standard of sap . I want to use extension. I cant figure it out.
‎2012 May 02 2:38 PM
First read the documentation of the function module parameter EXTENSIONIN.
- I hope you added your ZZfieldname to CI_EKKODB
- Then it is available in structure(s) BAPI_TE_MEPOHEADER(X) which is(are) to be included in EXTENSIONIN parameter (read Example for Filling the ExtensionIn Parameter in 
Customer Enhancement and Modification of BAPIs (CA-BFA)
- read also Note 582221 - FAQ: BAPIs for purchase orders
Regards,
Raymond
‎2012 May 02 2:38 PM
First read the documentation of the function module parameter EXTENSIONIN.
- I hope you added your ZZfieldname to CI_EKKODB
- Then it is available in structure(s) BAPI_TE_MEPOHEADER(X) which is(are) to be included in EXTENSIONIN parameter (read Example for Filling the ExtensionIn Parameter in 
Customer Enhancement and Modification of BAPIs (CA-BFA)
- read also Note 582221 - FAQ: BAPIs for purchase orders
Regards,
Raymond
‎2012 May 02 2:41 PM
I have coded this sample, use as example
DATA: gt_extension_in TYPE TABLE OF bapiparex.
DATA: gs_MEPOHEADER TYPE BAPI_TE_MEPOHEADER,
gs_MEPOHEADERX TYPE BAPI_TE_MEPOHEADERX,
gs_extension_in TYPE bapiparex.
gs_MEPOHEADER-PO_NUMBER = 'pass the po number'.
gs_MEPOHEADER-ZZFIELD = 'pass the zzfield value'. "change the ZZFIELD for your field name
CLEAR gs_extension_in.
gs_extension_in-structure = 'BAPI_TE_MEPOHEADER'.
gs_extension_in-valuepart1 = gs_MEPOHEADER.
APPEND gs_extension_in TO gt_extension_in.
gs_MEPOHEADERX-PO_NUMBER = 'pass the po number'.
gs_MEPOHEADERX-ZZFIELD = 'pass 'X' if you want to add this field'. "change the ZZFIELD for your field name
CLEAR gs_extension_in.
gs_extension_in-structure = 'BAPI_TE_MEPOHEADERX'.
gs_extension_in-valuepart1 = gs_MEPOHEADERX.
APPEND gs_extension_in TO gt_extension_in.
‎2012 May 02 2:47 PM
Raymond.
Thanks zzfieldname not in ci_ekko but it is in ekko_ci but avaible in bapi_te_mepoheader ı think it will solve my problem
Best Regards.
Oldun