2005 May 10 12:45 PM
Hello All,
We have an OUTPUT type for Distribution ALE (for Order confirmation), we stop OUTBOUND IDOC depending on few conditions.
Problem : OUTPUT type shows RED status (fair enough),
No Log (unfair).
I need to change the status to green and generate a log
stating IDOC is generated for blah blah reasions.
Is it possible?
Thanks in advance.
Regds,
Manohar
Hello All,
We have an OUTPUT type for Distribution ALE (for Order confirmation), we stop OUTBOUND IDOC depending on few conditions.
Problem : OUTPUT type shows RED status (fair enough),
No Log (unfair).
I need to change the status to green and generate a log
stating IDOC is generated for blah blah reasions.
Is it possible?
Thanks in advance.
Regds,
Manohar
2005 May 10 12:55 PM
Hi Manohar,
To get a green light on OUTBOUND IDoc's you need to set the status to 03.
You can do that as follows:
DATA: it_status TYPE bdidocstat OCCURS 0 WITH HEADER LINE.
it_status-docnum = '<your IDoc number>'.
it_status-status = '03'.
APPEND it_status.
CALL FUNCTION 'IDOC_STATUS_WRITE_TO_DATABASE'
EXPORTING
idoc_number = docnum
no_dequeue_flag = space
TABLES
idoc_status = it_status
EXCEPTIONS
OTHERS = 0.Keep in mind, that you need, from time to time, run the report RBDMOIND (or transaction BD75) to check if the IDoc's were correctly handled (send). This will then set status 12 for all status 03 outbound IDoc's and will report problems.
Regards,
Rob.
2005 May 10 1:04 PM
2005 May 10 1:13 PM
Hi Manohar,
The second part of your question: How to create a log entry.
You must use the following function modules:
1. ECCLOG_SELECT (this to open a specific log related to your IDoc number).
2. ECCLOG_ADD_MESSAGE (to add messages to the log)
3. ECCLOG_SAVE (to save and close the log).
Regards,
Rob.
2005 May 10 1:56 PM
Hi Rob,
IDOC itself is stopped, we dont want to send outbound IDOC to confirm Orders dependign on Business Requirements,
So IDOC is not generated i will nto have IDOC number.
I am looking to change status of OUTPUT type (NAST) and give message.
I appreciate your time on this so far.
Awaiting reply.
Regards,
Manohar
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |