Application Development 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: 

How to pass BUSINESS AREA in structure EXTENSION1 in BAPI_ACC_DOCUMENT_POST

Former Member
0 Kudos
710

Dear All,

I'm doing one upload program with BAPI_ACC_DOCUMENT_POST.

Here when I do Tax calculation, I need to pass the value for Business Area in the structure ACCOUNTTAX. But the field is not available.

Is there any way to pass Business Area (GSBER) value to the structure EXTENSION1?

Points will be rewarded for the correct solution immediately.

Moreover I'm in pressure to complete this object. Please help me.

Thanks & Regards,

Neeraj

1 REPLY 1

varma_narayana
Active Contributor
0 Kudos
152

Hi Neeraj...

These are the Steps:

2. Defining the BAPI table extensions (Structure in SE11)

The naming convention for BAPI table extensions is BAPI_TE_<table_name>.

This step is only necessary if you plan to think about underlying SAP tables for the BAPI that the customers can sensibly enhance with their own fields and existing fields. If so, use transaction SE11 to create a BAPI table extension as a structure for every SAP table that can be sensibly extended. The following guidelines have to be observed when creating BAPI table extensions:

In your case Table BSEG for field GSBER.

Name of BAPI Extesion structure : ZBAPI_TE_BSEG

Components

BUKRS

BELNR

GJAHR

BUZEI

GSBER

Assign the Data elements same as BSEG table and activate this structure.

Note: The structure of the BAPI table extension must contain all the identified key fields of the table to which the BAPI table extension relates. The table extension does not contain any other fields except the key fields.

Further details you can find in this Link

http://help.sap.com/saphelp_46c/helpdata/en/c3/4099a68b8911d396b70004ac96334b/content.htm

<b>Reward if Helpful.</b>