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

chain endchain

Former Member
0 Likes
844

i have done some validations for PO t-code me21. using mm06e005. iam facing problem if any error message comes from user exit then sceen will be in display mode. i need screen to be editable to correct wrong entries in me21.

i want to know where to use chain endchain? shall use it same user exits or ? please explain me where to add chain.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
802

Hi,

CHAIN ENDCHAIN is used in the Screen of the transaction. It is not used in the exits.

Regards,

Atish

Hi,

CHAIN ENDCHAIN is used in the Screen of the transaction. It is not used in the exits.

Regards,

Atish

6 REPLIES 6
Read only

Former Member
0 Likes
803

Hi,

CHAIN ENDCHAIN is used in the Screen of the transaction. It is not used in the exits.

Regards,

Atish

Read only

0 Likes
802

Hi Atish

then what is the solution. we cont include in standard SAP scrrens?

i need screen editable.

Read only

0 Likes
802

Hi,

Instead of giving the error message display it as message of type I.

Regards,

Atish

Read only

0 Likes
802

but client not accepting this. if you give warning or eoorr message they can save with wrong values also know so they need it error message and screen editable.

is there any way to do screen editable?

Read only

Former Member
0 Likes
802

hi,

For example if there are 10 fields in the screen and for 5 fields whenever the user enters wrong values

u like to give some error message.

You can declare that fields in the chain enchain so that only those fields will be input enabled

and all other fields will disabled.

<b>You can do this in PAI</b>

CHAIN.
FIELD chk_connobj.
FIELD chk_inst.
FIELD chk_devloc.
FIELD ehaud-haus.
FIELD eanl-anlage.
MODULE modify_screenfields.
ENDCHAIN.
 
*&---------------------------------------------------------------------*
*& Module modify_screenfields INPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
 
MODULE modify_screenfields INPUT.
CLEAR okcode.
okcode = sy-ucomm.
CASE okcode.
WHEN 'ENTER' OR 'EXECUTE'.
 
IF chk_connobj IS INITIAL AND chk_inst EQ c_x AND
chk_devloc EQ c_x.
IF ehaud-haus IS INITIAL.
SET CURSOR FIELD 'EHAUD-HAUS'.
MESSAGE e000(zo_spa) WITH text-017. " Enter Connection obj
ELSE.
PERFORM conn_obj_check.
ENDIF.
ENDIF.
 
ENDMODULE. " modify_screenfields INPUT

Rgds

Reshma

Read only

Former Member
0 Likes
802

Hi,

The Chain endchain method is a way of input checks in dialog modules.

Suppose you have input fields f1, f2 , f3 etc.

If you write the foll. st,

CHAIN.

FIELD: <f1>, <f 2>,...

MODULE <mod1>.

FIELD: <g1>, <g 2>,...

MODULE <mod2>.

...

ENDCHAIN.

When this command is used, all of the fields on the screen that belong to the processing chain (all of the fields listed in the field statements) are made ready for input again. Other fields are not ready for input. Whenever the MODULE statement appears within a processing chain, even if there is only one FIELD attached to it, all of the fields in the chain (not only the affected field) are made ready for input again, allowing the user to enter new values. If the fields in the processing chain are only checked once, the PAI processing continues directly after the FIELD statement, and the preceding modules are not called again.

Check the below link..

http://help.sap.com/saphelp_47x200/helpdata/en/d1/801ca2454211d189710000e8322d00/frameset.htm

Regards