Skip to Content
0
Former Member
Sep 13, 2016 at 01:05 PM

Idoc data

58 Views

Hello,

I have one function module in which the table parameter 'ABC' is defined of type LTAP_VB.

This Parameter 'ABC' is already filled with different material types(MTART) like 'XYZ', 'SDF' etc and other data.

In my source code of the FM, i have a logic as below:

loop at ABC into wa_abc.

select * from mara where matnr = wa_abc-matnr and (mtart = 'XYZ' or mtart = 'SDF').

endloop.

then i need to create an idoc only for the materials which have MTART as 'XYZ' and 'SDF' . but not for other material types.

CALL Function 'L_IDOC_CREATE_WMTOID01'

Exporting

.....

....

Tables

ABC = ABC.

the issue is the table ABC is already having all the material types and thus creates the idocs for all the material types. But i need to create IDOC only for material types XYZ or SDF only. Please let me know if something is missing in my code.

Regards, Guru.