Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem in module-pool.

Hi

I have developed a module-pool prg for modification ,in which i enter a Ref sample no

& when i enter its show

all details of ref sample no..but when i try of change the contains of

some input fields & then enter ,its show the earlier

contains..

i have coded like this

Save_ok = okcode.

case save_ok.

when 'ENTER'.

if zacg_exsh-rsampno <> ' '.

select single * from zacg_exsh

where rsampno = zacg_exsh-rsampno.

endif.

if sy-subrc = 0 .

display = 1.

endif.

if zacg_exsh-gh <> ' '.

select single * from zacg_gh

where gh = zacg_exsh-gh.

endif.

if zacg_exsh-ru <> ' '.

select single * from zacg_ru

where ru = zacg_exsh-ru.

endif.

if zacg_exsh-sizecode <> ' '.

select single * from zacg_ns_size

where sizetype = zacg_exsh-sizecode.

endif.

if zacg_exsh-sls <> ' '.

select single * from zacg_sls

where SLS = zacg_exsh-sls.

endif.

if zacg_exsh-tse <> ' '.

select single * from zacg_tse

where tse = zacg_exsh-tse.

endif.

When 'REF'.

Clear : zacg_exsh,zacg_gh,zacg_ru,zacg_ns_size,zacg_sls,zacg_tse.

When 'SAVE'.

if zacg_exsh-rsampno <> ' '.

modify zacg_exsh.

else .

message e000(ZACG_EXS).

endif.

Clear : zacg_exsh,zacg_gh,zacg_ru,zacg_ns_size,zacg_sls,zacg_tse.

Can any one ......

Not what you were looking for? View more on this topic or Ask a question