Skip to Content
author's profile photo Former Member
Former Member

Override DDIC Display Settings

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 04, 2007 at 08:59 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.