cancel
Showing results for 
Search instead for 
Did you mean: 

Inserting value for Zfield in BP

Former Member
0 Kudos

Hi Experts,

I have acreated a Zfield in BP transaction using EWB and now i face the problem in inserting the value into the field.

The fucntion modules accepts the value but it is not committing the value into the zfields.

Iam using the function modules:

BUPA_CENTRAL_CI_GET_DETAIL and

BUPA_CENTRAL_CI_CHANGE

My code looks like this:

data : ls_bus000_eew1 type bus000_eew,

ls_bus000_eew1_x type bus000_eew_x,

lv_customer_guid type but000-partner_guid,

CALL FUNCTION 'BUPA_CENTRAL_CI_GET_DETAIL'

EXPORTING

IV_PARTNER = tab_partner_x-upi

  • IV_PARTNER_GUID =

IMPORTING

ES_BUS000_EEW = ls_BUS000_EEW1

ET_RETURN = lt_return

ls_bus000_eew1-partnr_guid = lv_customer_guid.

ls_bus000_eew1-zzunit = tab_partner_x-unit.

ls_bus000_eew1_x-partnr_guid = lv_customer_guid.

ls_bus000_eew1_x-zzunit = 'X'.

call function 'BUPA_CENTRAL_CI_CHANGE'

exporting

is_bus000_eew = ls_bus000_eew1

is_bus000_eew_x = ls_bus000_eew1_x

iv_xsave = 'X'

importing

et_return = et_return1.

call function 'BAPI_TRANSACTION_COMMIT'

exporting

wait = 'X'

importing

return = l_return.

Can some one pls suggest what am missing in the code and what else i need to do.

Thanks in advance

Regards,

Sundar

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sundar!

I think that it is not necesary create a function module.

In the EEWB u have to assign a check table for this zfield. Once it is finished the wizard, u can set the values in a zview (values and description) generate only for this, and later in the matchcode of the BP will appear these values..

I hope it helps.

Regards,

Mon

Former Member
0 Kudos

Hi Mon,

Thanks for the reply. In my program it is not a matchcode value. The data is fetched and displayed in the zfield from another ztable based on some condition. This zfield data varies. Its just a text field without a matchcode.

I need to display the data in the Zfield automatically when ever the BP is created through the load program.So thats why iam using the said function modules.

Thanks & Regards,

Sundar

Former Member
0 Kudos

Hi Sundar,

If i have understood right, you want to display some value in your Z_ field based on some condition in transaction BP.

Why dont you use the BADI generated by EEWB? Refer to the method CRM_CUSTOMER_H_SET_SCREEN and use FM CRM_INTLAY_PUT_DATA and transfer the values to the screen structure (generated by EEWB). This will place your value in the Z_ field, so that when you click SAVE, your value gets saved to database.

Regards,

Karthik.

Former Member
0 Kudos

Hi Karthik,

Thanks. Can you give your email id . So i can let you know in detail wat iam doing.

Regards,

Sundar

Former Member
0 Kudos

Hi Sundar,

Its a best practice to post your query here on SDN so that you can get a better solution from someone else also. Others who come across the same situation will also get benefitted.

Regards,

Karthik.

Former Member
0 Kudos

Hi Karthik,

My requirement is that iam creating the BP's using a report program. Iam not using the BP transaction to create the business partner. In the report program i use some condition to fetch the value for the Zfield and then i need to set that value to the zfield.

Am not using the Badi for validating and also am not manually creating and saving the BP. So question of no Badi's.

Regards,

Sundar