‎2008 Nov 04 2:57 PM
Hi All,
I need to create a Function module with material type parameter that reads the custom u201CZu201D config table with field MTART and returns a flag indicating if the item is a blocked material. Please help in steps how i do this.
Many thanks,
‎2008 Nov 05 7:16 PM
code could look some thing like this
select single mtart from mara.
if sy-subrc eq 0.
flag = X.
else.
endif.
as its a FM you can catch exceptions and use that exceptions, in which ever program you call it...
‎2008 Nov 04 5:33 PM
Hi,
Create a Function Group. From the menu bar of SE37 you can see GOTO->function group->create.
Give your function module name->create->function group ->short des->in imports give MTART in parameter name -> Associated type give MTART-> in export->give the name of the output ->type->mtart.
And write the validation code in the source code tab.
Cheers!!
VEnk@
‎2008 Nov 05 8:01 PM
Thanks Venkat and Jay, I really appreciate you guys for your time.
‎2008 Nov 05 7:16 PM
code could look some thing like this
select single mtart from mara.
if sy-subrc eq 0.
flag = X.
else.
endif.
as its a FM you can catch exceptions and use that exceptions, in which ever program you call it...