2009 May 18 11:09 AM
Hi,
I added new field to existing e1maram segment through user exit. the idoc sent from source system got the field added to segment when seen through bd87. In the destination system, the mara table is not getting updated. I dont have authorisation to we19 in destination system. But i have authorisation to We19 in source system. Please advice me how to debug the inbound function module(Z_idoc_input_matmas01) as i have made some code changes in the FM using UPDATE query to update the new field value in MARA table. The field is added in the segment successfully in the destination system, checked in BD87.
Thanks.
2009 May 18 1:47 PM
Hi Uma,
Put break point in your posting function module in the reveiving system and then process the idoc recieved through bd87 , then the code will stop at your break point.Note that you can process the received idoc through bd87 only if the idoc is not posted immediately when it is received in the receiver side. ie, if status is not equal to 53. You can change this setting in we20 so that the idoc is not posted immedialtely it receives in the receiver side by changing the option of the processing by function module status in we20 from 'Trigger Immediately' to 'Trigger by background program'.
Regards,
Soumya.
Hi,
I added new field to existing e1maram segment through user exit. the idoc sent from source system got the field added to segment when seen through bd87. In the destination system, the mara table is not getting updated. I dont have authorisation to we19 in destination system. But i have authorisation to We19 in source system. Please advice me how to debug the inbound function module(Z_idoc_input_matmas01) as i have made some code changes in the FM using UPDATE query to update the new field value in MARA table. The field is added in the segment successfully in the destination system, checked in BD87.
Thanks.
2009 May 18 12:35 PM
WE19 calls the FM IDOC_START_INBOUND when you hit 'Standard Inbound' button. I think from SE37 if you specify the right parameter to IDOC_START_INBOUND you can debug you Inbound function module.
2009 May 18 1:23 PM
>
> i have made some code changes in the FM using UPDATE query to update the new field value in MARA table. The field is added in the segment successfully in the destination system, checked in BD87.
>
Make sure you have a commit work after the update statement.
regards,
Advait
2009 May 18 1:47 PM
Hi Uma,
Put break point in your posting function module in the reveiving system and then process the idoc recieved through bd87 , then the code will stop at your break point.Note that you can process the received idoc through bd87 only if the idoc is not posted immediately when it is received in the receiver side. ie, if status is not equal to 53. You can change this setting in we20 so that the idoc is not posted immedialtely it receives in the receiver side by changing the option of the processing by function module status in we20 from 'Trigger Immediately' to 'Trigger by background program'.
Regards,
Soumya.
2009 May 18 3:26 PM
Hi,
Dont use an update statement within your function module. I hope you have taken a Z copy of the standard Inbound FM.
To debug, in partner profile, instead Trigger Immediately, chose option Trigger by background program.
Keep a break point in your code.
As soon as you recieve an inbound Idoc, go to transaction BD20, provide the IDoc number and start processing.
The debugger will stop at your break point.
See if you have populated the TRANC_ID field if you are inserting a new record in the MARA Internal table.
Regards,
Yogesh
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |