on 07-07-2006 1:05 PM
Hi,
We are implementing SRM 4.0 extended classic scenario.
I have created a custom field ("Z" field) at item level and included the field in the following includes.
INCL_EEW_PD_ITEM_CSF_SC
INCL_EEW_PD_ITEM_CSF_PO
INCL_EEW_PD_ITEM_CSF_CONF
INCL_EEW_PD_ITEM_CSF
I have implemented badi BBP_ECS_PO_OUT_BADI and written the following code in method BBP_B46B_PO_OUTBOUND:
gs_cust-refobject = 'POITEM'.
gs_cust-fieldname = 'Zfield'.
gs_cust-REFFIELD1 = 'PO_ITEM'.
gs_cust-REFVAL1 = ls_item-Zfield.
gs_cust-container = ls_item-Zfield.
gs_cust-type = 'C'.
modify ct_bapi_customer_fields from gs_cust transporting refobject reffield1 refval1 container type where fieldname = gs_cust-fieldname.
In R/3 I have maintained the mapping of the SRM field in table bbp_cufmap with the field in EKPO table. I have also created the field in EKPO table in R/3.
The problem is that the values of the Zfield are not passed from SRM to R/3.
Please help.
Thanks,
Mick
Hello,
Are you using bapi_po_create1 ?
In this case you have to maintain the structure CI_EKPODBX in addition to CI_EKPODB. It just have to contain a field named as your customer field (like in CI_EKPODB) and with reference type BAPIUPDATE.
Rgds,
Pierre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It depends on the R/3 release.
You can test activating the generation of test data for bapi_po_create and bapi_po_create1 to be sure (check note 866460 for this): it consist in report FBGENDAT , some explaination stands in the source code.
you also can start maintaining the X structure if you find it in MEPOITEM_DATAX.
Rgds,
Pierre
Thanks Pierre.
Is there any other approach? as I am not able to change the parameters in SU01 as suggested in note 866460. Also the mapping in the table bbp_cufmap in R/3 is
doc_type = PO
Key = S
CUF Field = <name of field in SRM>
R/3 field = <ame of field in R/3>
Also this is working for custom fields at header level and standard fields at item level but not for custom fields at item level.
What do I need to do to transfer custom fields at item level from SRM to R/3.
Thanks,
Mick
Hi Mick,
try the following:
gs_cust-refobject = 'POITEM'.
gs_cust-fieldname = 'ZFIELD'.
gs_cust-REFFIELD1 = 'PO_ITEM'.
gs_cust-REFVAL1 = ls_item-number_int.
gs_cust-container = ls_item-Zfield.
gs_cust-type = 'C'.
If you have created the corresponding R/3 customer field, you just have to define the mapping in table BBP_CUFMAP:
DOC_TYPE = PO
KEY_TYPE = Z
CUF_FIELD = ZFIELD
R3_FIELD = Z...
See my previous replies in those threads:
Rgds
Christophe
PS: please reward points for helpful answers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.