Skip to Content
avatar image
Former Member

Change Type of Screen Element in Report Program

Okay guys, I have been struggling with this the whole day.. someone please help me.

I have a selection screen defined in the selecton-screen of a report program

select-options : so_matnr for mara-matnr,
                 so_ebeln for ekpo-ebeln,
                 so_ebelp for ekpo-ebelp.

Now if I go to SE51 and give the program name and the screen number as 1000 (Default screen for report)

Now go to tab "Element List" --> "General Attributes"

in the column "Type of screen element" everything is considered as "I/O".

 
*Name*                 *Type of Screen Element*
----------------------------------------------------------------------
%_SO_MATNR_%_APP_%-TEXT	        I/O
%_SO_MATNR_%_APP_%-OPTI_PUSH	I/O
SO_MATNR-LOW	I/O
%_SO_MATNR_%_APP_%-TO_TEXT	I/O
SO_MATNR-HIGH	I/O
%_SO_MATNR_%_APP_%-VALU_PUSH	Push
%_SO_EBELN_%_APP_%-TEXT	I/O
%_SO_EBELN_%_APP_%-OPTI_PUSH	I/O
SO_EBELN-LOW	I/O
%_SO_EBELN_%_APP_%-TO_TEXT	I/O
SO_EBELN-HIGH	I/O
%_SO_EBELN_%_APP_%-VALU_PUSH	Push
%_SO_EBELP_%_APP_%-TEXT	I/O
%_SO_EBELP_%_APP_%-OPTI_PUSH	I/O
SO_EBELP-LOW	I/O
%_SO_EBELP_%_APP_%-TO_TEXT	I/O
SO_EBELP-HIGH	I/O

Now, my requirement is that I need to do something at the loop at screen to change the 'I/O' to 'Text' for all the %TEXT% screen fields. Exactly behave like text labels in the dialog program

Now, I don't want to write a dialog program to achieve this. Is there any thing i can do in the report program to achieve it.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Oct 17, 2008 at 07:34 PM

    Hello,

    See this:

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2008 at 07:40 PM

    Well the Screen-INPUT is already set to '0' for all the %text%. I did this before.. and it does not solve my problem. Let me be more elaborative.

    When the users use WEBGUI, every tab button moves to the next input field for all the dialog programs because they are set as LABEL but for all the report screens the tabs move to the text fields. so to get to the next input field the user needs to press the tab twice. Hope you got what i am trying to say.

    Edited by: sap newbie sap on Oct 17, 2008 9:40 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2008 at 07:44 PM

    Hello,

    Try something like this:

    INITIALIZATION.
    
    
    loop at screen.
    
      if screen-name eq <your field>
        screen-input = 0.
        modify screen.
      endif.
    
    endloop.
    
    

    The important thing is to do it on INITIALIZATION event

    Gabriel P.-

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 17, 2008 at 08:05 PM

    sorry wrong clicked as answered..Still unanswered

    Add comment
    10|10000 characters needed characters exceeded