You are on page 1of 12

c 


 
  
 

c       
 
  
  
     

 
 


Subbu
P

   
  
 


 

 

    
   



 !



       

c
Do the val at on n the CcDCc stmt
Regars
Subraman an


arener
B

   
  
 


 

 

   "# 
  

"

 !



     $%%

  
 

! "       
#  
   


 
 


mural r shna


   
  
 


 

 

   # 
  #"





       

aren


Use F D f el name MODU  MODU 



Pls Mar f useful

 !

nsay
coare
# 

  # 
  #


  
 
 
 


 !

 



   

    

c  you just nee to put a val at on moule n the P n the screen
flow log c eg f your f el s zzz-f el  use a statement n the P l e
th s:
F D ZZZ-F D MODU  V D 
F D 
or to only process con t onally use
F D ZZZ-F D MODU  V D 
F D O PU
or
F D ZZZ-F D MODU  V D 
F D O
RUS 
f your moule then generates an error message th s f el w ll be
h ghl ghte for act on
f you have several f els you nee to cha n them eg ZZZ-F D an
ZZZ-F D2:
Cc
F D: ZZZ-F D  ZZZ-F D2
MODU  V D 
F DS O Cc-PU " (or O
Cc-RUS 
DCc


Satya
Pr ya
Vep

   
  
 

 


 

  # 
  



       

c arener
U nee to o the val at on n P event of the screen as below :

PROCSS F R PU 
MODU  user
comman
 
*** nput chec for f el cvp number

 !

F D : cvp
no $      
MODU  show
cv
esc
n the moule ef n t on s as follows :
MODU  show
cv
esc PU 
ws
rep  = sy-cprog
ws
num = ' '

ynf els-f elname = 'CVP


O'
PPD
ynf els
C FUC O 'DYP
V US
RD'
POR 
yname = ws
rep 
ynumb = ws
num
B S
ynpf els =
ynf els
CP OS
nval 
abapworarea =
nval 
ynprof el = 2
nval 
ynproname =
nval 
ynpronummer = 4
nval 
request = 5
no
f elescr pt on = 6
nval 
parameter = 7
unef n
error = 8
ouble
convers on = 9
stepl
not
foun = 
O cRS = 
F sy-subrc  
RD B 
ynf els W c KY f elname = 'CVP
O'
F sy-subrc  
cvp
no =
ynf els-f elvalue
DF
DF
%%%%%%%%%%%&  
f cvp
no = ' '
message e(zocm w th 'Wrong ntry'  ''() 
* en f
DMODU  " show
cv
esc PU
Please o rewar helpful answers


op
arenra

   
  
 


 !

 

# 

 

  # 
  



       

n the P


moule chec
ata
select s ngle * from <table>
where <tablef el> = <screenf el-value>
f sy-subrc = 
else
message ( w th '<ScreenF el-Value> oes not ex t'
en f
enmoule
n the flow log c for the screen wr te as
cha n
f el : <screenf el>
moule chec
ata
encha n
Regars
op


Jayanth
Jayara

   
  
 


# 

 


   
  

 !



       

c


n P
F D f elname MODU  val ate
MODU  val ate PU 
o the val at on here
DMODU  "Val ate PU


Sh ba
Prasa
Du

   
  
 

 

  

  # 





       

 !

   

n P you have to val ate the f el


F D f MODU  m O RUS 
th ngs n sqare bracet are opt onal []
n abap e tor t w ll show
MODU  m nput
<o val at on coe>
DMODU 
regars
sh ba utta

Conditional Module Calls


$    &   &   '  ( &  )' &'' !  ' & * ) &+
, ) - ' !. *' &       )!  / 0  &     
&  &   %!  ' 12345   ' ) '' 0542  +6 & !
&    % '  *    ** +7      & &' !   & ' 
   *!   &  !) '  '&  & ) '% % +

Conditions for Single Screen Fields


6 &  '0     !& )' &  &    %!  ' *
  

)  

05428*9123458 9103:;
5<35$:;=>03:+
:'   '- ' *
^

)   ** &

103:
:'    &   ! *' * &  -   ' '     -  +:'     
-       %!' !  *' * $& * &'& * ?  *   &
* +5-  *'    '     -   *' & '     -  '     
& +@1
5<35$: '  ' '  ' &  ' & +A

^

1
5<35$:
:'   8 9   !&  *'  '     '   ' * +:'  &  
& )' '   - )   .   -  ) ''  -    . &  !  ' 
   -  +
0   ' 1
5<35$:&      '  '!*  *B  B+) 
  ' *
)      '  *    -    & '   

^
^
^
^
^

:'    % 


5:5
>02@$C  A+
:'    % ,1422:
744:
$7:01+++3$0C
  &    * &  % * 
1=>03:
:'    &  *'  '   B=B ' * &'&  *' * ' 
* ''  %   ' $&   +D' '  *    '  
' =   - +=% '-  /     *  ' 103:&   +

:' *&  *' 0542  * &       !)' !  12345+

Conditions for Multiple Screen Fields


:   '     0     !& )'  -  & *   & 
&   ! & %  ' &  ' * ) & *  &   &' +6  *   &   
&' *
)
7,0+
+++
527,0+
 * ) &  % ) 7,0527,0%    &   &' +:' *  ' 
- 0542   & %  &%   ' &   +
7,0+
05428*98*9+++
123458 917,0>03:;7,0>
5<35$:+
05428 98 9+++
123458 917,0>03:;7,0>
5<35$:+
+++
527,0+
:'   17,0>03:17,0>
5<35$:) / / '   103:1

5<35$:'!  *   -  * +:'  .&   ''    & )'  -  
  *' *     &   0542  ) ' ' &'  ' &   +$ 8 9
& )'    *' * 8* 9 ' &   +8 9 & )'    *' * 8* 9 
8  9 ' &   +
D '  &   &' ! && %    -  0542  ) '12345   
 &   *   * ) ' ' &' 
7,0+
05428*98*9+++
05428*9123458 9103:;
5<35$:;=>03:
;7,0>03:;7,0>
5<35$:+
123458 917,0>03:;7,0>
5<35$:+
527,0+
:'   8 9 & )' & * 8*9 '  & * &   *   -  * +
8 9 & )'    *' * 8* 9 8*9 ' &   +0*!  '   1
7,0>03: 17,0>
5<35$:) '05428*9' &       '    &' 
  8 98 9 % '& +

0& )'  !  !&    - & %   *& *   ) '   
   &   &' *  &'& %  &   **    * ) '  +
:' *&  *' 0542  * &       !)' !   &   
&' +D '  &   &' & *      ' 0542  +
 &   &'   '-  ' *& * ' 0542$  '' !&  +:'  
 & %  '  &  -  !&' &/+

Calling Modules after Cursor Selection


6 & & *!'  '    !% &  *' &        & & 
 +:  '  '   
123458 9:73
$1
>$5457:01+
:'   8 9 & )'  - ' *& &   *'  &  7$) '*& ! $+0*
!  '     %   ' *& &  7$ *& / !+:'      
'    % >& &/+
:'    &  '  ( &  )' &'  && ' * ) &+0  %!'   &
&' &/+2   * & *  '    )' &'   *  %!' 0542
  +:' *& &    ! ' $6>371 ' 1EF7125*  ** & +6 
&  & %  ' 12345  ) '' 0542  
05428*9123458 9:73
$1
>$5457:01+
*   '  * 
7,0+
05428*98*9+++
123458 9:73
$1
>$5457:01+
527,0+
:'   8 9   !&  *' &         * 8*9   
* 8* 9 '  &   &' +6 &  ! !'      * +
:' & ' &'! *'  **  & %   *
^
^
^

)

0*12345+++:73
$1
>$5457:01    . & ')& %  ) '0542
  ) ' 0542   . & +
0*    0542   ' & * '  & * 8*9  !' * 
    . & +
0*  ) ' 0542 &&  ' &   !'      . & +

0   -)' ' '    &&) ' 7,0+++527,0% &/  +

7      & 

1C
251F26
1F1F7120:01+

2:1EF712540E5$6>371
03:@A03:@A03:@A
42@A+
744$7
55+
1234500:F$7
55F13:3:+
$5:>$::3$G$::3$FG+
5212345+
12345775403:+
45H5
1C
+
5212345+
1234573
$1
03:+
C5:73
$1
054242+
5$$C50"""@7:
0AD0:,:5I:>42+
5212345+
1234512345F03:+
5$$C50"""@7:
0AD0:,:5I:>+
5212345+
1234512345F03:+
5$$C50"""@7:
0AD0:,:5I:>+
5212345+
1234512345F=03:+
5$$C50"""@7:
0AD0:,:5I:>03:+
5212345+
12345703:+
5$$C50"""@7:
0AD0:,:5I:>GG+
5212345+
12345703:+
5$$C50"""@7:
0AD0:,:5I:>GG:5I:>#GG+
5212345+
:'  .& @ & ! *  A* &    *+0'' *

)   ! 


:' & * 03:03:03:    '  * +:' 
*& &   *' '%  5I573:5+
0' C30$::3$F'  &  @A & - ) '*& &  7754
*& ! 5+:' *& / !   & - ) '*& &  7$*& 
! $+:' "/ ! & - ) '' *& &  5I573:5  &  *& 
! +
:' & * ) & *

)

175$$51
513:3:+
1234500:F$7
55F+

175$$:5
03:+
123457754:5I0:>712+
7,0+
054203:03:+
1234512345F17,0>03:+
054203:1234512345F=1=>03:+
1234512345F17,0>
5<35$:+
527,0+
054203:123457:73
$1
>$5457:01+
7,0+
054203:03:+
123457:73
$1
>$5457:01+
527,0+
1234573
$1
:73
$1
>$5457:01+
:'    *     ' ))' &'   & *
   & )' &'   +
^
^
^

)  

D'  -    *'  *        ' ! & '   12345F* 
!   & +
D'  -    *' '  *  &' ' ! & '   12345F* 
!   & +
D'  -  * &  = !' ! &   12345F=* ! 
 & +

^
^
^

0*'  &'    % >& &/ .*  ' & ' ! & '   
73
$1
+
0*'  &'    % >& &/ * ' ! & '   7+
0*'  &'    % >& &/ *  ' ! & '   73
$1
+
  7  -  . &  & ' 12345+++:73
$1
$5457:01   &&
) &   !'    &  +

http://help.sap.com/saphelp_47x200/helpdata/en/d1/801ca2454211d189710000e8322d00/frameset.h
tm
Flow Logic Keywords
6  *  ' * ) & ' * ) &    *' $&     ' *
Keyword
744
7,0
527,0
52411
0542
411
1206
12345
1

175$$
$5457:
H435$

)  / !) 

Description
7 %& +
$ &   &' +
5 &   &' +
5  &   +

*  * +6 && %  ' ) '' 12345$5457:


/ !) +
$  &   +
  * % +
0  *  &     +
3 ) '0542  +
2 *   &    - +
7' &/ !  % +
2 *   )  -  +


    *  % &     ' 
Example of Flow Logic Example
:' *

)   . ' )    *& * ) &

*-----------------------------------------------* Sample Code


*--------------------------------------------------*Processing Before Screen Output
PROCESS BEFORE OUTPUT.
MODULE INIT_FIELDS.

3 JC  

* Self-programmed F1 Help
PROCESS ON HELP-REQUEST.
FIELD GSSG-BUKRG MODULE V-BUKRG.
* Processing after user input
PROCESS AFTER INPUT.
* Lock customer master record
CHAIN.
FIELD GSSG-KTNRG
MODULE ENQUEUE_CUSTOMER_MASTER.
* Read customer master record
MODULE READ_CUSTOMER_MASTER.
* Read business area
MODULE READ_GSSG.
ENDCHAIN.
* Process function code
FIELD OK-CODE MODULE OKCODE ON INPUT.










You might also like