cancel
Showing results for 
Search instead for 
Did you mean: 

Override DDIC Display Settings

IanStubbings
Active Participant
0 Kudos

Hi

I have a field of type pernr_d that I wish to display as an input field. Currently it displays as a field of 8 0's i.e. 00000000 by default. I do not wish to see these zeros but want to have a totally blank field. Is there an easy way to do this or will I have to map a string field to the output field and then populate the string field from the pernr_d field?

Cheers

Ian

Accepted Solutions (1)

Accepted Solutions (1)

Yashpal
Active Contributor
0 Kudos

Hi ,

see the below code ..

  • REMOVING THE INITIAL I.E zeroes

DATA : LR_NODE_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO ,

ls_properties type wdy_attribute_format_prop,

LR_NODE TYPE REF TO IF_WD_CONTEXT_NODE.

ls_properties-null_as_blank = 'X'.

LR_NODE = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_L_INFO ).

LR_node_info = LR_NODE->get_node_info( ).

LR_node_info->set_attribute_format_props( exporting name = 'Field name'

format_properties = ls_properties ).

Regards

Yash

IanStubbings
Active Participant
0 Kudos

THat's perfect!

Thank you very much, Yashpal.

Ian

Answers (0)