‎2008 Jul 21 10:00 AM
Hi All,
This is pushparaj.
can anyone help me to how to use extension parameters in BAPI with simple example.
I do need how to populate data to table with line type "BAPIPAREX"?
What is the purpouse of customer exit provided in BAPI?
‎2008 Jul 21 11:54 AM
Hi Pushparaj,
This is the enhancement concept of BAPI. For details refer to this link :
http://help.sap.com/saphelp_45b/helpdata/en/3e/0e1089c24611d1ad09080009b0fb56/content.htm
<removed_by_moderator>
Thanx & Rgds
Edited by: Julius Bussche on Jul 27, 2008 4:42 PM
‎2008 Jul 27 5:21 PM
Hi Gurus
I am using the extension parameters of BAPI to load some customized fields for the object-BUILDING in REAL ESTATE MODULE using LSMW-BAPI.
Here's the code-
*Target Field: E1BPPAREX-VALUEPART1 Data part of BAPI extension paramet
DATA:
lt_extension_in TYPE TABLE OF bapiparex,
ls_extension_in TYPE bapiparex,
ls_ci_data TYPE rebd_building_ci.
ls_ci_data-zgisx = hsouthernwater-zgisx.
ls_ci_data-zgisy = hsouthernwater-zgisy.
ls_ci_data-zdeed = hsouthernwater-zdeed.
ls_ci_data-zland = hsouthernwater-zland.
ls_ci_data-zsite = hsouthernwater-zsite.
ls_extension_in-structure = 'CI_DATA'.
ls_extension_in-valuepart1 = ls_ci_data.
CALL METHOD cl_abap_container_utilities=>fill_container_c
EXPORTING
im_value = ls_ci_data
IMPORTING
ex_container = ls_extension_in-valuepart1
EXCEPTIONS
OTHERS = 0.
e1bpparex-valuepart1 = ls_extension_in-valuepart1.
I AM GETTING THE ERROR IN THE LINE-
ls_extension_in-valuepart1 = ls_ci_data.
SAYING THAT
ls_extension_in-valuepart1 and ls_ci_data. are mutually not convertible
I have written the same code for 3 objects in RE-The code was working fine in those objects.But in object- building i am getting this error..
Anyone out there please help me regarding this..
Thanks in advance
‎2008 Jul 28 7:23 AM
Hi shivendra,
welcome to sdn....
try coomenting the line
ls_extension_in-valuepart1 = ls_ci_data
thanks
karthik
‎2008 Jul 28 6:19 AM
‎2008 Jul 28 7:05 AM
Hi,
Try to open new thread with your problem.
you may find some answers.
‎2008 Jul 28 7:17 AM
HI pushparaj,
Extension parameters
You can create extension parameters to enable customers to enhance the functionality of BAPIs without making modifications. For information about extension parameters see Customer Enhancement Concept for BAPIs.
for ur second question see this links
http://alento.wordpress.com/2006/08/18/dynamic-column-for-alv-report-using-time-bucket-in-apo-dp/
http://www.sapfans.com/forums/viewtopic.php?t=64958&highlight=bapipocreate1customfield
for ur third question
This customer exit is only required when the BAPI has an ExtensionIn parameter. ...
see this links
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
thanks
karthik
happy solving
‎2008 Jul 28 7:49 AM
Karthik,
Thanks for the reply..
But if i comment that line it will not populate the data in valuepart1 field of the extension structure.
Wat is the probable reason for this error??