Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

OUTPUT type status change

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

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