Skip to Content
avatar image
Former Member

'F4IF_INT_TABLE_VALUE_REQUEST

HI,

I am writing the value request help for one field which is selection screen.

I am able to populate the Values in the help screen , i want the texts for values . I am writinf belwo.

it_loekz-loekz = 'S'.

append it_loekz.

clear it_loekz.

it_loekz-loekz = 'L'.

append it_loekz.

clear it_loekz.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

RETFIELD = 'LOEKZ'

DYNPPROG = SY-REPID

DYNPNR = SY-DYNNR

DYNPROFIELD = LW_FIELD_NAME

VALUE_ORG = 'S'

TABLES

VALUE_TAB = it_loekz.

I want the Vales like below

S Locked

L Deleted

regards,

Ajay reddy

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 17, 2008 at 01:50 PM

    try like this

    it_loekz-loekz = 'S'.

    it_loekz-text1 = 'locked'

    append it_loekz.

    clear it_loekz.

    it_loekz-loekz = 'L'.

    it_loekz-text2 = 'deleted'

    append it_loekz.

    clear it_loekz.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2008 at 01:56 PM

    Hi Reddy,

    You are clearing the records because of which values might not populate. Try using refresh keyword.

    Cheers!!

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      HI balu,

      Thanks you interest on my requiremt.

      it is report . On selection scree, I am able to populate the values , but we need desc of that value also.

      S LOCKED

      L DELETED.

      regards,

      Ajay

  • avatar image
    Former Member
    Oct 17, 2008 at 02:43 PM

    Hi,

    not exactly the way you wanted by using the funtion , but I did it another way :

    REPORT  Z_F4_HELP                               .
    
    parameter p_loekz(1) type c.
    
    data : begin of it_loekz occurs 0,
      l_loekz like ekpo-loekz,
      text(10) type c,
      end of it_loekz.
    data : lw_field_name type DYNFNAM.
    
    data gv_choice like sy-tabix.
    
    at selection-screen on value-request for p_loekz.
    
    LW_FIELD_NAME = 'P_LOEKZ'.
    
    it_loekz-l_loekz = 'S'.
    it_loekz-text = ' Locked'.
    append it_loekz.
    clear it_loekz.
    
    it_loekz-l_loekz = 'L'.
    it_loekz-text = ' Deleted'.
    append it_loekz.
    clear it_loekz.
    
        CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
          EXPORTING
            endpos_col   = 30
            endpos_row   = 5
            startpos_col = 20
            startpos_row = 5
            titletext    = 'Select a Deletion indicator'
          IMPORTING
            choise       = gv_choice
          TABLES
            valuetab     = it_loekz
          EXCEPTIONS
            break_off    = 1
            OTHERS       = 2.
    
       READ TABLE it_loekz INDEX gv_choice.
       p_loekz = it_loekz-l_loekz.
    

    regards,

    Advait

    Add comment
    10|10000 characters needed characters exceeded