2008 Nov 27 9:52 AM
Hi,
I need an EXIT or BADI to manage the idocs OutBound during creation. I need to place this modify In the Function Modules MASTERIDOC_CREATE_"messagename" because i want disribute the idoc and manage the status (Red Status for bad Idoc), i've seen a lot of Internal FM but there aren't Customer Exit to manage it. There is a way or another easy way ?
Regards.
Angelo Abbascià
Hi,
I need an EXIT or BADI to manage the idocs OutBound during creation. I need to place this modify In the Function Modules MASTERIDOC_CREATE_"messagename" because i want disribute the idoc and manage the status (Red Status for bad Idoc), i've seen a lot of Internal FM but there aren't Customer Exit to manage it. There is a way or another easy way ?
Regards.
Angelo Abbascià
2008 Nov 27 9:55 AM
Hi ,
For which application u r going to do the outbound idoc.....
Regards,
Bharani
2008 Nov 27 10:04 AM
Now is for AC08 for send service master, the FM is MASTERIDOC_CREATE_SRVMAS, i need to replicate the same modify for other message type like Matmas, Cremas, Cond_a (BDXX Transaction and other report that call the MasterIdoc* FM).
Thank's.
Angelo Abbascià
2008 Nov 27 10:06 AM
Hi ,
SAP internally checks lots of things..What exactly u want to modify....
Regards,
Nagaraj
2008 Nov 27 10:16 AM
When i send an Idoc with AC08 to another Logical System if the Segment Data is Bad (normally the idoc is generate in green state because there isn't a Check in the Idoc_datat) i need to manage this event and send Idoc with Red State but i have a difficult to find an exit or badi that can manage this Event. I find User-Exit EXIT_SAPLBASO_001 but in this case i can't find any way to change the status.
Thank's.
Angelo Abbascià
2008 Nov 27 10:38 AM
Hi,
I have checked the function module which u specified..and also the exit which u specified...
it will work only for two segments 'E1ASMDM' and 'E1ASMDT'...and also there is no status internal table which u can modify..
what you can try is try to check the values are passed in the exit(IDOC_DATA),now modify if there is any issues in the exit...
Finally the FM 'MASTER_IDOC_DISTRIBUTE' is called to generate the idoc,before that only in the user exit try to change the (IDOC_DATA) with correct information.
Regards,
Nagaraj
2008 Nov 27 10:55 AM
Thank's for the reply, in the user-exit with Idoc_data i can modify the field sdata for change some information and it's work fine, but there isn't an internal table that manage the state of the idoc, i've tried to find somethings in DISTRIBUTE FM but there isn't exit to change the data before the IDOC_CREATE_ON_DATABASE (The Fm that add information in EDIDC).
I've found another external function like IDOC_STATUS_WRITE_TO_DATABASE where i can modify the state manually, but i don't want modify the status manually and after Idoc creation, but during.
Thank's.
Angelo Abbascià
2008 Nov 27 11:01 AM
Hi,
I feel the only opyion left is modify the status manually ....as we don't have any internal table which exactly can handle the status...
Regards,
Nagaraj
2008 Nov 27 11:06 AM
Hi ,
When ever the idoc is not trigger it will be the BAD i.e not contains the proper data. so for that code wise u need to write the logic ..
IDOC_STATUS is tablw which holds the status of the idoc....
Regards,
Bharani
2008 Nov 27 11:20 AM
Yes, i see, idoc_status (and idoc_control) manage the status of Idoc, i'm on ECC 6.0 and now i want to try with implicit enanchement before the Fm that write status on DB. I see in the FM for DISTRIBUTE the badi IDOC_CONTROL_CHECK is useful in this case ?
Edit: In this case i've tried Implicit enanchement and it is useless, there aren't good point to place it.
Thank's.
Angelo Abbascià.
Edited by: Angelo Abbasci on Nov 27, 2008 12:27 PM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |