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

Dialog Programming.

Former Member
0 Likes
608

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
587

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  INPUT

thanx.

Edited by: Dhanashri Pawar on Aug 27, 2008 6:34 AM

4 REPLIES 4
Read only

Former Member
0 Likes
587

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

Read only

Former Member
0 Likes
587

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

Read only

former_member745780
Active Participant
0 Likes
587

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

Read only

Former Member
0 Likes
588

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  INPUT

thanx.

Edited by: Dhanashri Pawar on Aug 27, 2008 6:34 AM