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: 

FI substitution on complete document level for field bseg-bewar

Former Member
0 Kudos

Hello

before I did the following to make the BSEG-BEWAR field substitutable for callup point 3, proceed as follows:

With an ABAP/4 program or SE!6N, DELETED the following entry in GB01 BOOLCLASS CLASSTYPE BCLTAB BCLFIELD BEXCLUDE 015 S BSEG * X

With an ABAP/4 program or SE16N, INSERT ED the following entry in GB01 BOOLCLASS CLASSTYPE BCLTAB BCLFIELD BEXCLUDE 015 S BSEG BEWAR

I would like to program the following.

check in bool_data-bseg that only 1 transaction type (bewar) or no transaction type is used in all line items. If 0 no action. If 1 transaction type then copy the transaction type to the other line items. If more than 1 transaction type then give an error message that only 1 transaction type should be used.

ABAP Code would be starting as follows:

LOOP AT bool_data-bseg INTO bseg

...

ENDLOOP

if u2026

b_result=false.

end if.

Please give some hints!

1 ACCEPTED SOLUTION

ThomasZloch
Active Contributor
0 Kudos

A word of caution first, tampering with the GB01 entries is considered a modification, if you run into problems later on, SAP will offer expensive consulting, but no free support.

This logic seems to be straightforward, your local ABAPer can probably do this for you.

Thomas

2 REPLIES 2

ThomasZloch
Active Contributor
0 Kudos

A word of caution first, tampering with the GB01 entries is considered a modification, if you run into problems later on, SAP will offer expensive consulting, but no free support.

This logic seems to be straightforward, your local ABAPer can probably do this for you.

Thomas

Former Member
0 Kudos

code written