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

Extension in BAPI_ACC_DOCUMENT_CHECK

Former Member
0 Likes
718

Hi,

I want to add four fields in bapi_acc_document_check. That bapi has extension also.If any one used that extension , please let me know ho w to use that extension.

thanks in advance

3 REPLIES 3
Read only

alpesh_saparia3
Active Contributor
0 Likes
631

Hi,

To know how to use BAPI_ACC_DOCUMENT_CHECK, there is sample coding available in program ACC_BAPI_TEST_DOCUMENT.

There sample code for Extension is given. based on that code you will get the idea how to use extension part.

Read only

Former Member
0 Likes
631

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

Read only

Former Member
0 Likes
631

Inputs please..