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

problem in enabling fields in a subscreen calling from a report

Hi All,

I had report..

After output is displayed i had put one push button on the application tool bar...

Once that button clicks it should call a screen.

I acheived this by calling a subscreen in a report as shown below.....

SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN.
SELECT-OPTIONS: material FOR mara-matnr.
PARAMETERS:kunnr TYPE kna1-kunnr .
SELECTION-SCREEN END OF SCREEN 0101.

I created a sub screen area in screen no 100 and wrote corresponding logic to handle subscreen..

If user did not enter kunnr and material i am throwing error message after displaying error message fields(material and kunr) are disabled..

I need to enable the fields of both material and kunnr after displaying error message so that user can enter again.

How to acheive this..

Regards

Ram

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 28, 2012 at 06:37 AM

    u can make those fields(Select-options and parameters ) as obligatory.

    user cant proceed with Entering Some data into those fields.

    or if above does not suits you.

    AT SELECTION-SCREEN.

    IF MATERIAL OR KUNNR IS IN ITIAL.

    MESSAGE 'Your Error Msg' type 'E'." use of this event will enable the user to fill data at selection screen again.

    "use you can use these set of statements also.

    *message ' Your Error Msg' type 'S' display like 'E'.

    *Return.

    ENDIF.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 28, 2012 at 06:33 AM

    Put you select -option and parameter in a BLOCK and send the message in the PAI of this block (AT SELECTION-SCREEN ON BLOCK) so every fields of the block will be ready for input again when error or warning messages are raised.

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Raymond...

      It is giving error like 'All blocks must be concluded before SELECTION-SCREEN BEGIN/END OF SCREEN'.

      I wrote like this...

      SELECTION-SCREEN BEGIN OF BLOCK b.
      SELECTION-SCREEN BEGIN OF SCREEN 0101 AS SUBSCREEN.
      SELECT-OPTIONS: material FOR mara-matnr.
      PARAMETERS:awcode TYPE kna1-kunnr .
      SELECTION-SCREEN END OF SCREEN 0101.
      SELECTION-SCREEN end OF BLOCK b.

      Regards

      Ram

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.