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

Listbox

My listbox is able to retrieve the values that but it appeared like this as this link showed.

http://img301.imageshack.us/img301/8139/screenrs6.png

As shown, there is a spacing before my value 1.

When I put a break point at this line of code's it_itab you give me:

APPEND wa_itab TO it_itab.

I got this values as shown as this link http://img301.imageshack.us/img301/8175/screen2ju2.png

There is extra row added with a space in front of my value 1. How am I suppose to get rid of the spacing?

Here are my codes:

-


TYPE-POOLS : vrm.

DATA:wa_itab TYPE vrm_value,

it_itab TYPE vrm_values.

select distinct PROGRAM_ID into wa_itab from ZPROGRAM_TABLE.

APPEND wa_itab TO it_itab.

endselect.

START-OF-SELECTION.

CALL SCREEN 1000.

MODULE STATUS_1000 OUTPUT.

SET PF-STATUS 'SCREEN_1000'.

SET TITLEBAR 'TITLE_1000'.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

ID = 'ZDROPDOWNLIST'

VALUES = it_itab.

ENDMODULE. "STATUS_1000 OUTPUT

-


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 04:35 AM

    Hello

    Please try this code and see whether is works,

    -


    TYPE-POOLS : vrm.

    DATA:wa_itab TYPE vrm_value,

    it_itab TYPE vrm_values.

    select distinct PROGRAM_ID into wa_itab from ZPROGRAM_TABLE.

    Condense wa_itab-key no-gaps.

    Condense wa_itab-TEXT no-gaps.

    APPEND wa_itab TO it_itab.

    endselect.

    START-OF-SELECTION.

    CALL SCREEN 1000.

    MODULE STATUS_1000 OUTPUT.

    SET PF-STATUS 'SCREEN_1000'.

    SET TITLEBAR 'TITLE_1000'.

    CALL FUNCTION 'VRM_SET_VALUES'

    EXPORTING

    ID = 'ZDROPDOWNLIST'

    VALUES = it_itab.

    ENDMODULE. "STATUS_1000 OUTPUT

    -


    Regards

    Ranganath

    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.