Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Module function to set values in infotype

Former Member
0 Likes
639

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.

3 REPLIES 3
Read only

Former Member
0 Likes
575

Please refer this thread, it might help you

http://scn.sap.com/thread/1907299

Read only

0 Likes
575

I can't use xpad and infotype is standard. I can enhnace the infotype, but I want try other alternatives.

Read only

Former Member
0 Likes
575

Any idea?

If for a list box is possible, for a simple field should be more easy...