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

Adding additional item lines to accounting document

Former Member
0 Likes
2,286

Hi All,

We have a specific requirement for adding additional line items in accounting document while posting from transactions like FB01, FB50 and MIRO.

First we tried the BADI 'ACC_DOCUMENT' but its not triggering from the above Tcodes . It can only be triggered from BAPI.

Then we tried the BTE 1120. But the table parameter T_BSEG, which we used to add custom lines, is replace by L_BSEG,internal table with original lines, after the BTE call.So We could not use these two methods for our requirement.

I  think Substitution is useful only to replace the fields of original lines not to add new lines.

Please suggest a suitable solution for this requirement.

Regards

Suniljith

Hi All,

We have a specific requirement for adding additional line items in accounting document while posting from transactions like FB01, FB50 and MIRO.

First we tried the BADI 'ACC_DOCUMENT' but its not triggering from the above Tcodes . It can only be triggered from BAPI.

Then we tried the BTE 1120. But the table parameter T_BSEG, which we used to add custom lines, is replace by L_BSEG,internal table with original lines, after the BTE call.So We could not use these two methods for our requirement.

I  think Substitution is useful only to replace the fields of original lines not to add new lines.

Please suggest a suitable solution for this requirement.

Regards

Suniljith

2 REPLIES 2
Read only

Former Member
0 Likes
1,272

Hi,

Did you try BADI : AC_DOCUMENT for FB01 and other which has few methods for your purpose.

Method CHANGE_INITIAL might work for you.

Hope this helps.

Read only

Former Member
0 Likes
1,272

hi,

Run a trace in ST05 for all required transactions. In ST05, search for the SXS_ATTR( From this table, You will get to know the BADI's which are called). Identify the common badi and add you code.

Regards,

Naveen Kumar.