on 09-12-2006 11:23 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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.
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
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.