2008 Jan 07 6:40 PM
Hi all,
we have some custom tables and these tables contains material related data. by reading data from these tables
i am creating material using function moudule INBOUND_IDOC_PROCESS .once after material creation i am updating all custom tables with newly created material.
its working fine.
later,if i change data in custom tables i must also change the material master using idoc functions
for this i am using function IDOC_INPUT_MATMAS01.
but its not working...
is anyone worked with this kind of requirement..?
if so, plz respond to this asap.
Thanks in advance.
Hi all,
we have some custom tables and these tables contains material related data. by reading data from these tables
i am creating material using function moudule INBOUND_IDOC_PROCESS .once after material creation i am updating all custom tables with newly created material.
its working fine.
later,if i change data in custom tables i must also change the material master using idoc functions
for this i am using function IDOC_INPUT_MATMAS01.
but its not working...
is anyone worked with this kind of requirement..?
if so, plz respond to this asap.
Thanks in advance.
2008 Jan 07 7:19 PM
2008 Jan 07 7:38 PM
Within the same box , for creating a material why are you using IDOC_INPUT_MATMAS01. simply use fm MATERIAL_MAINTAIN_DARK or use BAPI_MATERIAL_SAVEDATA
a®
2008 Jan 07 8:02 PM
we have some custom fields in mm01 transaction which are not available in bapi structures.
i just want to know how can we update material master using idoc functions.
Thanks,
sara
Edited by: sara p on Jan 7, 2008 9:03 PM
2008 Jan 07 8:03 PM
we have some custom fields in mm01 transaction which are not available in bapi structures.
i just want to know how can we update material master using idoc functions.
Thanks,
sara
2008 Jan 07 8:11 PM
The function module IDOC_INPUT_MATMAS01 is internally ALSO calls the function module MATERIAL_MAINTAIN_DARK . If you are extended the MARA table using ZMARA (append structure) then this function module taken care the updating custom fields in the MARA table.
other wise if you are maintaining the custom fields in a separate custom table then first call MATERIAL_MAINTAIN_DARK and after that use direct update to custom table after checking the sy-subrc value of function module (retruning from )
a®
2008 Jan 07 8:32 PM
Thanks to quick reply.
here is small exaple.
i created material using FM INBOUND_IDOC_PROCESS
this material has sales text which i am reading from my custom table and populating to E1MTXHM and E1MTXLM segments.
And now, once after material creation if someone change sales text data in my custom table. i have to update this based on some checks.
i am reading the changed data into the same segments and
this time i am changing MSGFN = '004'. and calling IDOC_INPUT_MATMAS01 FM to update.
But its not.
[i can't use BAPI as i am using extended Idoc]
2008 Jan 07 8:54 PM
Hi,
Check for the IDOC user exit includes, so that you can write the code to update the customized tables.
Regards,
Satya
2008 Jan 07 9:10 PM
Hi all,
what Idoc Function Module do we use to update Material...?
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |