Skip to Content
author's profile photo
Former Member

FI substitution on complete document level for field bseg-bewar

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!

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Posted on Mar 18, 2011 at 02:50 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on May 03, 2011 at 02:15 PM

    code written

    Add comment
    10|10000 characters needed characters exceeded