‎2008 Nov 19 8:17 AM
Hi all,,
On my selection screen i have
aufnr-aufk
vblen-vbap
now i want to select data from aufk and the corresponding values from vbap.
so i wrote the below select
select data from aufk where aufk in my selection screeen
select data from vbap for all entries in above table.
But if the user just gives vbeln on selection then , my 1st select wont work because there is no selection based on vbeln on auk
How do i handle the situation?
I c'nt write inner join also.
Any suggestions?
‎2008 Nov 19 8:19 AM
use a inner join on the two tables. You can read them at once.
For more info on INNER JOIN, use the search functionality of forum and wiki.
regards,
hans
‎2008 Nov 19 8:21 AM
‎2008 Nov 19 8:22 AM
Hi Malik,
Do validations at selection screen for the field aufnr-aufk .
try like this, hope it hleps u.
select-options : s_aufk for aufnr-aufk .
at selection-screen on s_aufk.
if aufnr-aufk is inital.
message 'enter a value' type 'E'.
endif.Thanks & Regards
‎2008 Nov 19 8:24 AM
Hi
You can make aufnr an obligatory field in the selection screen.
Regards
Neha
‎2008 Nov 19 8:25 AM
‎2008 Nov 19 10:30 AM