Below code displays given Table Field Information i.e. Description of Field information.
It will be useful before start using the fields in report or classes.
static void ShyamJob4getFieldInformation(Args _args)
{
SysDictTable sysDictTable;
SysDictField sysDictField;
TableId tableId = tableNum(SalesTable); //Table Name
int i;
;
sysDictTable = new sysDictTable(tableId);
for (i= 1; i <= sysDictTable.fieldCnt(); i++)
{
sysDictField = new sysDictField(tableId, sysDictTable.fieldCnt2Id(i));
info(strFmt("%1 | %2 | %3 | %4", sysDictField.name(), sysDictField.label(), sysDictField.help(),sysDictField.mandatory()));
}
}
It will be useful before start using the fields in report or classes.
static void ShyamJob4getFieldInformation(Args _args)
{
SysDictTable sysDictTable;
SysDictField sysDictField;
TableId tableId = tableNum(SalesTable); //Table Name
int i;
;
sysDictTable = new sysDictTable(tableId);
for (i= 1; i <= sysDictTable.fieldCnt(); i++)
{
sysDictField = new sysDictField(tableId, sysDictTable.fieldCnt2Id(i));
info(strFmt("%1 | %2 | %3 | %4", sysDictField.name(), sysDictField.label(), sysDictField.help(),sysDictField.mandatory()));
}
}
Comments
Post a Comment