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_po_create1-extension

Former Member
0 Likes
3,209

I have a field in PO at header which isn't standard of sap . I want to use extension. I cant figure it out.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,612

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

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,613

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

Read only

0 Likes
2,612

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.

Read only

0 Likes
2,612

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