‎2009 Jan 14 9:41 AM
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
‎2009 Jan 14 5:23 PM
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
‎2009 Jan 14 10:01 AM
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
‎2009 Jan 14 11:24 AM
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
‎2009 Jan 14 11:41 AM
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
‎2009 Jan 14 5:23 PM
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
‎2009 Jan 14 5:40 PM
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
‎2009 Jan 19 5:00 PM
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