05-02-2005 8:23 PM
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?
05-03-2005 7:12 AM
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
05-03-2005 7:12 AM
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
05-04-2005 2:16 PM
Yes Andreas, this is available in 4.0B and is exactly what I needed. Thanks for your help!
06-29-2005 2:46 PM
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?
06-29-2005 3:09 PM
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
05-06-2009 7:19 AM
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
03-22-2011 7:15 PM
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 =.
03-22-2011 9:02 PM
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