Hello guys,
I'm trying to build a list for several fields when creating a document to see what status (obligatory, disabled, etc.) the field got in several field status groups.
So the result should look like:
Field Status Variant Field Status Group Field Status 0000 PH01 ZUONR Obligatory 0000 PH02 ZUONR Disabled 0001 PH01 ZUONR Obligatory 0001 PH03 ZUONR Optional
So I was doing some research here how to get this and I think I almost made it but some final information are not that clear at the moment.
(1) I read table T004F for getting the pattern of field status group with help of field status variant of company code (T001) and field status group of account (SKB1).
(2) Then I'm doing convert routine for '+.*' pattern and then know which field position got which status.
(3) Then I'm trying to match the status with the fields with help of tables TMODF, TMODG, TMODO, TMODP and TMODU, but I am not quite sure how to make it.
E.g. with help of tables TMODO and TMODP I can find the information which field is which position but it is only about the description of the field, not the technical fieldname. So I also got table TMODU with the technical fieldnames, but there I got several information for one field depending on account type (vendor, account, customer, ...). So which is the right one? Always account even if it is reconciliation account for vendor? And which is the right FAUNA field information? Always 'SKB1-FAUS1' or where do I know which one to take?
The other way I tried is with function FI_GET_FIELD_SELECTION_STRING to get the pattern. This one depends on posting key to get the pattern. So where is the difference between this one and the manual select in table T004F without posting key?
Thanks a lot for your help! :-)
Regards
Michael