‎2008 Aug 26 7:11 PM
Hi Experts,
I need a solution for the corrent requirement.
I have a input /output field as a screen element of a screen.Now my requirement is to check whether the input output field is empty or not.if its empty then the program will retreive something from the database table..
how to do it.
Regards,
Abhinab Mishra.
‎2008 Aug 27 5:33 AM
Hi,
We write the validation in PAI, where we can check thr initiality and popup a message.
like:
if p_date is initial.
p_date = sy-datum.
endif.
in your case it would be :
if p_parameter is initial.
select ...
from...
where...
into ....
endif.example :
MODULE check_chain_300 INPUT.
IF g_date_from > g_date.
MESSAGE i051.
LEAVE TO SCREEN 9000.
ENDIF.
ENDMODULE. " check_chain_300 INPUTthanx.
Edited by: Dhanashri Pawar on Aug 27, 2008 6:34 AM
‎2008 Aug 26 7:30 PM
Hi,
You can write it PBO.
Say your input /output field is ZZZ.
If ZZZ is initial.
Your select query.
ZZZ = your select query output.
endif.
Regds,
Senthil
‎2008 Aug 27 4:51 AM
Dear friend ,
You can write it PBO. By giving a module to check whether your input output field is empty or not . Suppose that your input/output field is A the you can write a select statement a = your select query .
Regards
Shankar
‎2008 Aug 27 5:04 AM
Hello
You can also use a better way of validation
FIELD. and
CHAIN ENDCHAIN.
statement
Check standard program
DEMO_DYNPRO_FIELD_CHAIN
Hope this will help you
Thanks
‎2008 Aug 27 5:33 AM
Hi,
We write the validation in PAI, where we can check thr initiality and popup a message.
like:
if p_date is initial.
p_date = sy-datum.
endif.
in your case it would be :
if p_parameter is initial.
select ...
from...
where...
into ....
endif.example :
MODULE check_chain_300 INPUT.
IF g_date_from > g_date.
MESSAGE i051.
LEAVE TO SCREEN 9000.
ENDIF.
ENDMODULE. " check_chain_300 INPUTthanx.
Edited by: Dhanashri Pawar on Aug 27, 2008 6:34 AM