‎2006 Oct 11 1:48 PM
Hi i am not a pure abaper ..so please help with sample coding
my scenario is
i have a table.it contains 3 fields. MATNO,SUBTYPE,qty.for each SUBTYPE one MATNO is assigned.
i want read the table based on the subtype and display a pop up for which subtype the material no is not assigned.
for example
(MATNO) (SUBTYPE) (QTY)
X2 A1 10
X3 A2 12
X4 A4 12
--- A5 11
--- A6 10
so we need display a popup saying for A5,A6 subtype the materail no is not assigned.
kindly help me sample coding,as it is urgent
thanks in advance.
praveen
‎2006 Oct 11 1:55 PM
Please check if below code works for you:
select matno subtype qty from <table>
into table itab
where matno is null.Kind Regards
Eswar
‎2006 Oct 11 1:56 PM
Try the Function "POPUP_TO_CONFIRM"
there are a lot of popup functions in System if you don't want to code it yourself
‎2006 Oct 11 1:56 PM
Hi,
Loop throughthe table
if you find material is initial then
concatanate sub type to one variable.
endloop.
finally you will get variable with all subtypes which don't have materials.
then give message with this variable.
Regards.
Kiran.
‎2006 Oct 11 2:00 PM
Thanks a lot for replies..
Kiran could you give me sapmle coding...cause my knowledge is very less.i am not an abaper.
praveen
Message was edited by: praveen
‎2006 Oct 11 2:20 PM
Hi Praveen,
data: l_var1 type char20.
l_var1 = 'For these sub types'.
Itab contains the data with subtypes and materials
LOOP at itab into w_itab.
If w_itab-matnr is initial.
CONCATENATE l_var1 w_itab-subtype INTO l_var1.
endif.
endloop.
CONCATENATE l_var1 'Material no is not assigned'
INTO l_var1.
message i999 with l_var1.
Regards.
Kiran.