2015 Dec 20 6:19 PM
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
2015 Dec 21 8:28 AM
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.
2015 Dec 21 11:28 AM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |