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

coding required

Former Member
0 Likes
562

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

5 REPLIES 5
Read only

Former Member
0 Likes
534

Please check if below code works for you:

  select matno subtype qty from <table>
         into table itab
         where matno is null.

Kind Regards

Eswar

Read only

Former Member
0 Likes
534

Try the Function "POPUP_TO_CONFIRM"

there are a lot of popup functions in System if you don't want to code it yourself

Read only

vadrevu_kk
Participant
0 Likes
534

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.

Read only

0 Likes
534

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

Read only

vadrevu_kk
Participant
0 Likes
534

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.