‎2006 Sep 20 5:06 AM
Hi all,
I have created a table control and assigned the f4 help menu to it. If the It is working fine. But now , without choosing the f4 help if we key in the data it should be validated and the corresponding sub menu should appear.
Please tell me how to do this?
Thanks,
PRIYA
‎2006 Sep 20 5:10 AM
Hi,
PROCESS AFTER INPUT.
LOOP AT it_parts.
CHAIN.
FIELD :
wa_parts-matnr.
MODULE check_matnr.
ENDCHAIN.
ENDLOOP.
MODULE CHECK_MATNR.
Do the validation here
select matnr
from mara
where matnr = wa_parts-matnr.
If sy-subrc ne 0.
MEssage e001. " Invalid material number
else.
append wa_parts to it_parts.
endif.
ENDMODULE.
Best regards,
Prashant
PS : Please reward all helpful answers
‎2006 Sep 20 5:10 AM
Hi,
PROCESS AFTER INPUT.
LOOP AT it_parts.
CHAIN.
FIELD :
wa_parts-matnr.
MODULE check_matnr.
ENDCHAIN.
ENDLOOP.
MODULE CHECK_MATNR.
Do the validation here
select matnr
from mara
where matnr = wa_parts-matnr.
If sy-subrc ne 0.
MEssage e001. " Invalid material number
else.
append wa_parts to it_parts.
endif.
ENDMODULE.
Best regards,
Prashant
PS : Please reward all helpful answers