Application Development 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: 

parameter

Former Member
0 Kudos
264

Hi ,

parameters : pa_prid type tsp03d-padest . " short name of output device .

when i press F4 then it is displaying list of printers available with the following fields

Printer name , short name of output device , device type .

If i select any record in this F4 , then obviously short name would be selecting in this parameter .

However my requirement is it should display printer name beside short name

ex : short name: E51 printer name : printer in bangalore site

E51 printer in bangalore

printer name should be in display mode only

how we can do this ??

Thanks in adv

Varma

1 ACCEPTED SOLUTION

Former Member
0 Kudos
185
Hi try this,  <b>and modify accordingly</b>

  REPORT YCHATEST.

TABLES: TTXIT.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(6) V_TEXT FOR FIELD P_TEXTID.
PARAMETERS: P_TEXTID TYPE TTXIT-TDID.

SELECTION-SCREEN COMMENT 13(35) V_TEXT1.
SELECTION-SCREEN END OF LINE.

INITIALIZATION.
  V_TEXT = 'TextID'.
  V_TEXT1 = ' '.

AT SELECTION-SCREEN OUTPUT.
  IF NOT P_TEXTID IS INITIAL.

    SELECT SINGLE * FROM TTXIT
    WHERE TDSPRAS = SY-LANGU
    AND TDOBJECT = 'TEXT'
    AND TDID = P_TEXTID.

    IF SY-SUBRC = 0.
      V_TEXT1 = TTXIT-TDTEXT.
    ENDIF.

  ENDIF.

Message was edited by:

Chandrasekhar Jagarlamudi

2 REPLIES 2

Former Member
0 Kudos
185

can you try with

parameters : pa_prid type tsp03d-name.

regards

shiba dutta

Former Member
0 Kudos
186
Hi try this,  <b>and modify accordingly</b>

  REPORT YCHATEST.

TABLES: TTXIT.

SELECTION-SCREEN BEGIN OF LINE.

SELECTION-SCREEN COMMENT 1(6) V_TEXT FOR FIELD P_TEXTID.
PARAMETERS: P_TEXTID TYPE TTXIT-TDID.

SELECTION-SCREEN COMMENT 13(35) V_TEXT1.
SELECTION-SCREEN END OF LINE.

INITIALIZATION.
  V_TEXT = 'TextID'.
  V_TEXT1 = ' '.

AT SELECTION-SCREEN OUTPUT.
  IF NOT P_TEXTID IS INITIAL.

    SELECT SINGLE * FROM TTXIT
    WHERE TDSPRAS = SY-LANGU
    AND TDOBJECT = 'TEXT'
    AND TDID = P_TEXTID.

    IF SY-SUBRC = 0.
      V_TEXT1 = TTXIT-TDTEXT.
    ENDIF.

  ENDIF.

Message was edited by:

Chandrasekhar Jagarlamudi