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

BAPI_ACC_GL_POSTING_POST

Former Member
0 Likes
1,638

Hi guys,

I have to create a document number. and it's done but not with tax items.

So I fill the user exit in the bapi_acc_gl_posting_post like this :

loop at extension.

l_index = sy-tabix.

*// field2 is the tax field

t_accit-mwskz = extension-field2.

if t_accit-mwskz ne space.

t_accit-xmwst = 'X'.

endif.

modify t_accit index l_index transporting mwskz xmwst.

endloop.

then normally I should get the tax items created in the document number, but it's not the case.

Is there any one who can help me for this?.

thanks

Mohamed

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
910

max,

can you please describe me step by step how to configure the exit for 'BAPI_ACC_DOCUMENT_POST'?

when you see product do you mean project that I already created in CMOD

for EXIT_SAPLACC4_001 ?

thanks a lot for you help?

Mohamed

6 REPLIES 6
Read only

Former Member
0 Likes
910

Hi

Try to use BAPI_ACC_DOCUMENT_POST instead of BAPI_ACC_GL_POSTING_POST: it can move the taxt item without to use the user-exit.

Max

Read only

Former Member
0 Likes
910

thanks you for your quick response.

But I will need the 2 fields above :

bschl for posting key

and ZLSPR Payment Block Key

right now I pass them to t_extension too, by field3 and field4. how can I do it with BAPI_ACCT_DOCUMENT_POST.

thanks

Read only

0 Likes
910

Hi

U can use the extension in the BAPI_ACCT_DOCUMENT_POST too, but instead of use the user-exit EXIT_SAPLACC4_001, u need to use the BTE RWBAPI01.

To active the BTE RWBAPI01 u need:

- A copy the std funcion SAMPLE_INTERFACE_RWBAPI01 in a new one

- Active a your own product by trx BF24

- Assign your product and fm to the BTE RWBAPI01 by trx BF44

In your new fm u have to insert the same code you have in EXIT_SAPLACC4_001.

P.s.: U can use the trx FIBF instead of BF24 and BF44

Max

Read only

Former Member
0 Likes
911

max,

can you please describe me step by step how to configure the exit for 'BAPI_ACC_DOCUMENT_POST'?

when you see product do you mean project that I already created in CMOD

for EXIT_SAPLACC4_001 ?

thanks a lot for you help?

Mohamed

Read only

0 Likes
910

Hi

No, I don't.

Product is just only a code, an hit to be entried in table TBE24, u can update it by trx BF24.

In this way u can create an id to group your BTE.

BAPI_ACC_DOCUMENT_POST is like BAPI_ACC_GL_POSTING_POST, only it can post every kind of accounting document (BAPI_ACC_GL_POSTING_POST can post a document with G/L items only).

So if you use BAPI_ACC_DOCUMENT_POST, u need to use the parameter ACCOUNTGL and ACCOUNTTAX in order to transfer g/l item and tax data.

Max

Read only

Former Member
0 Likes
910

Hi Max,

please can you tell me how to fill the t_tax type table of BAPIACTX09, for having the item tax line.

any code will by helpful .

thanks.

Mohamed