Application Development and Automation 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: 
Read only

error message.

Former Member
0 Likes
987

Hi experts..

I am working inmodul pool programming.

I have 9 to 10 Input/output fields on one screen.

And i am gining error messages for their validations. but if i give error message, then those fields are getting disabled.

so i have to close that window and again have to execute thet program each and every time..

How is it possible, that after giving error message thode fields should be enabled.

plz help me out.

thanks in advance..

6 REPLIES 6
Read only

former_member404244
Active Contributor
0 Likes
942

Hi,

Use the below command.

CHAIN..

ENDCHAIN..

Regards,

Nagaraj

Read only

faisalatsap
Active Contributor
0 Likes
942

Hi,

Please do like in the following Code,

PROCESS AFTER INPUT.
  CHAIN.
    FIELD: tf_cust_id,  " Your Fields Name here.
            tf_cust_region,
            tf_cust_s_name,
            tf_cust_l_name,
            rb_gotos1_g1,
            rb_gotos2_g1,
            tf_rb_2,
            tf_rb_1.
    MODULE user_command_0001.
  ENDCHAIN.

Hope will solve out , Please Use Meaningful Subject for you Quarry Next Time

Please Reply if any issue

Kind Regards,

Faisal

Read only

Former Member
0 Likes
942

hi,

can you please check this link..it is very useful for your requirement

http://help.sap.com/erp2005_ehp_03/helpdata/EN/9f/dbaa4735c111d1829f0000e829fbfe/frameset.htm

Thanksa nd regards

Durga.K

Read only

Former Member
0 Likes
942

You can complete your requirement in two ways:

  • You can use Leave list-processing statement after your message statement.

LEAVE LIST-PROCESSING.
  • You can also use the following syntax in messages.

Message <name> <type> <id> display like 'E'
  • you can use the type as W and then it will go to the screen again.

Thanks & Regards,

Lalit Mohan Gupta.

Read only

Former Member
0 Likes
942

Hi,

I am not sure if you can use events here, If you can use then try to write the Screen validations in

AT selection screen.

AT SELECTION-SCREEN.
  PERFORM screen_valid.

Else you can try with another method.

SELECT GUID_PRGEN  "Primary Key as GUID in "RAW" Format
         GUID_PR     "Primary Key as GUID in "RAW" Format
         ATTR20A     "SUBSTANCE ID
         ATTR05A     "Materail Type
         ATTR10A     "Materail Group
         ATTR05B     "Sub-Family
         ATTR05C     "SPEC BUS + DG1K902190
         FROM /SAPSLL/PRGEN
         INTO TABLE T_PRGEN
         WHERE ATTR20A IN S_AT20A
           AND ATTR05A IN S_ATR5A " +DG1K902168
           AND ATTR05C IN S_ATR5C. " + DG1K902190

  IF T_PRGEN IS INITIAL.
    MESSAGE : I007(ZMSSG) WITH 'Data not available for this entry'.
    STOP.
  ENDIF.

Use STOP, this will surely work.

Regards,

Kittu

Edited by: Kittu on Feb 24, 2009 11:53 AM

Read only

Former Member
0 Likes
942

Hi,

Use CHAIN....END CHAIN construct.

It will enable the fields which are in CHAIN....END CHAIN.

Regards,

Anil