Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the use of CHAIN and ENDCHAIN statement?

Answer Posted / saurabh shrivastava

If the validation has to be done for more than one field the
those fields are included between chanin and endchain.
Ex
In PAI if you want to validate group of fields put in
chain and End chain statement .


You can declare fields in the chain enchain .


CHAIN.
FIELD chk_ABC.
FIELD chk_DEF.
FIELD chk_GHI.
FIELD CHK-JKL.
MODULE CHK_screenfields.
ENDCHAIN.


MODULE CHK_screenfields INPUT.
CLEAR okcode.
okcode = sy-ucomm.
CASE okcode.
WHEN 'ENTER' OR 'EXECUTE'.

IF chk_ABC IS INITIAL AND chk_DEF IS INITIAL AND CHK_GHI
IS INITIAL .
MESSAGE e000(zo_spa) WITH text-017. " Enter VALUES'
ELSE.
.....
ENDIF.
ENDIF.

ENDMODULE. " modify_screenfields INPUT

Is This Answer Correct ?    26 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between abap memory and sap memory?

1127


What is the difference between refresh and free statements?

1175


Difference between .Include and .append?

1237


What is partner selection?

1072


How do you Export a session ?

1885


How can we create callable modules of program code within one abap/4 program? : abap modularization

1034


What functions does a data dictionary perform ?

1022


what is the difference between Blocked ALV and interactive ALV?

2363


How can you display frames (horizontal and vertical lines) in lists?

1102


What are the advantages of logical databases?

1053


What is a badi?

1001


How do you set up background jobs in sap? What are the steps?

992


Does the bdc-insert function allow multiple transactions to be processed by sap? : abap bdc

1160


how do you transport lsmw data from one system to another?

1120


Explain lsmw?

1073