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

Screen I/O

Former Member
0 Likes
949

Hi All,

I have to develop a screen where in user can modify the value or can enter a new value.

The pre-requisites are

Input Screen:

Warehouse (T329D-LGNUM)

Source storage type (T329D-VLTYP)

Destination storage type (T329D-NLTYP)

Upon entry, the program should first validate the storage types exist (check table T301). If either the storage type or destination type does not exist, provide an error indicating which does not exist. If the storage types exist, check for an existing entry for the entry combination (warehouse, source storage type, and destination storage type) in table T329D.

If an entry exists, offer the printer field (T329D-LDEST) for change.

If no entry exists, create an entry and require a printer definition.

The new printer number defined will require a validation to insure the printer number exists. (Printer check table TSP03?)

The above is the approach given to me

Please suggest that whether i have to develop a selection screen or a module pool screen ??

Thanks,

Suresh

1 ACCEPTED SOLUTION
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
821

Hi,

I suggest you to use selection screen approach.

I assume that 3 input fields are parameters.

parameters : p_Ware like T329D-LGNUM,

p_stor type T329D-VLTYP,

p_Dest type T329D-NLTYP.

at selection-screen on p_stor.

select vltyp into table i_vltyp from t329d.

if sy-subrc ne 0.

message e000 with 'Storage not exist'.

endif.

at selection-screen on p_dest.

select nltyp into table i_nltyp from t329d.

if sy-subrc ne 0.

message e000 with 'Destination not exist'.

endif.

at selection-screen output.

select * from t329d into table t329d where vltyp = p_stor

and nltyp = p_dest.

if sy-subrc eq 0.

*9000 is a screen which is having printer field

call screen 9000.

*do the necessary validations in PAI of the screen.

else.

*9001 is a screen containing the details needed for the creation of entry

call screen 9001.

*do the necessary validations in PAI of the screen.

endif.

Hope this helps.If so,reward points.Otherwise , get back.

Hi All,

I have to develop a screen where in user can modify the value or can enter a new value.

The pre-requisites are

Input Screen:

Warehouse (T329D-LGNUM)

Source storage type (T329D-VLTYP)

Destination storage type (T329D-NLTYP)

Upon entry, the program should first validate the storage types exist (check table T301). If either the storage type or destination type does not exist, provide an error indicating which does not exist. If the storage types exist, check for an existing entry for the entry combination (warehouse, source storage type, and destination storage type) in table T329D.

If an entry exists, offer the printer field (T329D-LDEST) for change.

If no entry exists, create an entry and require a printer definition.

The new printer number defined will require a validation to insure the printer number exists. (Printer check table TSP03?)

The above is the approach given to me

Please suggest that whether i have to develop a selection screen or a module pool screen ??

Thanks,

Suresh

4 REPLIES 4
Read only

Former Member
0 Likes
821

Hi Suresh,

I would think that using a selection screen is more intuitive. initially u can have the user give valid values for the warehouse & storage types upon which u can display the printer field, let him change it & proceed further.

Having a module pool program is not a bad idea but u can save time if the former appraoch is used.

Hope this helps.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
822

Hi,

I suggest you to use selection screen approach.

I assume that 3 input fields are parameters.

parameters : p_Ware like T329D-LGNUM,

p_stor type T329D-VLTYP,

p_Dest type T329D-NLTYP.

at selection-screen on p_stor.

select vltyp into table i_vltyp from t329d.

if sy-subrc ne 0.

message e000 with 'Storage not exist'.

endif.

at selection-screen on p_dest.

select nltyp into table i_nltyp from t329d.

if sy-subrc ne 0.

message e000 with 'Destination not exist'.

endif.

at selection-screen output.

select * from t329d into table t329d where vltyp = p_stor

and nltyp = p_dest.

if sy-subrc eq 0.

*9000 is a screen which is having printer field

call screen 9000.

*do the necessary validations in PAI of the screen.

else.

*9001 is a screen containing the details needed for the creation of entry

call screen 9001.

*do the necessary validations in PAI of the screen.

endif.

Hope this helps.If so,reward points.Otherwise , get back.

Read only

0 Likes
821

Hi Jayanthi,

Thank you for your solution for my problem.

One thing more i have to tell you is that the fourth parameter field(Printer) will also be in the same selection screen below the three other parameters. Please clarify me whether the below procedure that you have suggested works fine with that too.

Thanks,

Suresh

Read only

0 Likes
821

Hi Suresh,

The fourth parameter field(Printer) is not required in selection screen.Because any way we are going to call screens which is having those parameter.

If you find the replies are useful,Kindly reward points by clicking any of the star button[yellow star-2 points,green star-6 points,blue star-problem solved 10 points] nearer to replies.

If you need more clarification,get back.