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: 

Access to GL Field Status Group Settings

Former Member
0 Kudos

In 4.0B, transaction FS03 - Display GL Account, I enter an account number and a company code and hit enter. On the next screen, I hit the Next Screen Button(F8). Near the bottom on the screen is field 'Field Status Group'.

Now use menu path EXTRAS-->Field Status Screen. I get a list of groups and I double click on group 'Payment transactions'.

The second field on the next screen is called 'Value date' and it has radio button 'Req.Entry' set.

From looking at the F1 help on 'Field Status Group', it mentions that 'The field status when you create a document also depends on the posting key'.

So now my question. Given that I have the account number, company code and posting key, how can I retrieve the data that tells me that 'Value date' is a required entry from my ABAP program?

1 ACCEPTED SOLUTION

andreas_mann3
Active Contributor
0 Kudos

Hi Charles,

i've a possible solution for you (but i dont' no, if

fm stated below is available under 4.0B)


        CALL FUNCTION 'FI_FIELD_SELECTION_DETERMINE'
             EXPORTING
                  i_bschl     = pcode
                  i_bukrs     = company
                  i_saknr     = account
             IMPORTING
                  e_faus1     = faus1
                  e_faus2     = faus2
             EXCEPTIONS
                  customizing = 1
                  OTHERS      = 2.
* at pos. 6  = value date !
        kz_valut = faus1+5(1).
        IF kz_valut <> '-'. "not suppressed  (= optional / required)
          MOVE xbkpf-bldat TO xbseg-valut.
        ENDIF.

hope that helps

Andreas

7 REPLIES 7

andreas_mann3
Active Contributor
0 Kudos

Hi Charles,

i've a possible solution for you (but i dont' no, if

fm stated below is available under 4.0B)


        CALL FUNCTION 'FI_FIELD_SELECTION_DETERMINE'
             EXPORTING
                  i_bschl     = pcode
                  i_bukrs     = company
                  i_saknr     = account
             IMPORTING
                  e_faus1     = faus1
                  e_faus2     = faus2
             EXCEPTIONS
                  customizing = 1
                  OTHERS      = 2.
* at pos. 6  = value date !
        kz_valut = faus1+5(1).
        IF kz_valut <> '-'. "not suppressed  (= optional / required)
          MOVE xbkpf-bldat TO xbseg-valut.
        ENDIF.

hope that helps

Andreas

0 Kudos

Yes Andreas, this is available in 4.0B and is exactly what I needed. Thanks for your help!

rt50896
Participant
0 Kudos

for 4.6C,can I also use this function to get GL acct. field status group's value? If yes,how to know which element belong to surpress,required or optional?

0 Kudos

Hi Regina,

1)yes fm is for 4.6 C too.

2) signs from output:

. = optional

+ = required

- = suppressed

3) ...which element belong …?

-> trial and error

Regards Andreas

Former Member
0 Kudos

Hi Andreas,

but can you tell me how you have decided that 6th position field is value date?

how to determine the positions of fields? it is maintained somewhere?(in any table).

Regards,

Mrunal

Former Member
0 Kudos

Hello,

About this questions:

but can you tell me how you have decided that 6th position field is value date?

how to determine the positions of fields? it is maintained somewhere?(in any table).

...which element belong …?

-> trial and error

This is the only way to know this?

I am using FM 'PREPARE_FIELD_SELECT_STRING' inside it in field FAUSTAB[] apparently there is the mapping of the fields, my other questions is, always is the same field matching from the data retrieved from FI_FIELD_SELECTION_DETERMINE and the field status group?

w_faus1 = faus1.

w_faus1+90(50) = faus2.

CALL FUNCTION 'PREPARE_FIELD_SELECT_STRING'

EXPORTING

incoming_string = w_faus1

string_id = 'SKB1-FAUS1 '

text1 = 'xxx'

text2 = 'xxx'.

  • TEXT3 = ' '

  • XCHANGE = ' '

  • XNODISP = ' '

  • IMPORTING

  • ACTTYP =

  • OUTGOING_STRING =

  • XCHANGE =.

Former Member
0 Kudos

This is a very useful FM:

http://webcache.googleusercontent.com/search?q=cache:ZBBWmqiVNjAJ:www.4abp.com/pages/en/home/code-ex...SAPABAP+kontierungsblock_ermitteln&cd=6&hl=es&ct=clnk&gl=mx&source=www.google.com.mx