Skip to Content
0
Former Member
Jul 12, 2012 at 09:07 AM

Module function to set values in infotype

29 Views

Hi.

I used to use this module function to set default values in list box of infoypes (in HRPAD00INFTY BAdI implementation):

ls_item-key = '001'.

ls_item-text = '001'.

append ls_item to lt_items.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = 'P0001-ANSVH'

values = lt_items

EXCEPTIONS

id_illegal_name = 1.

The result is this:

But if P0001-ANSVH not is a list box, the field doesn't set with any value.

How I can do it? I need do it in the BAdI and with a module function, if it exist (I shouldn't use the XPAD alternatives).

Thanks in advance.

Attachments

func.JPG (6.3 kB)