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: 

IDoc with Status 30(Ready for Dispatch)

Former Member
0 Kudos

while executing the outbound program it is giving the status as 30(Ready for Dispatch).

In the Partner profile I choose the option 'Transfer IDoc Immediately.

When I process that idoc using WE19 , then it is working fine(status 03).

Can you please explain me that how to get the status as '03' without processing the Idoc by 'WE19'.

Thanks & Regards,

Pradeep.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

If you are generating IDOC through the Z program, use COMMIT WORK after triggering the IDOC.

Regards

Vinod

6 REPLIES 6

Former Member
0 Kudos

Hi,

If you are generating IDOC through the Z program, use COMMIT WORK after triggering the IDOC.

Regards

Vinod

0 Kudos

Thank you for your reply.

I have used 'COMMIT WORK' keyward after calling the FM 'MASTER_IDOC_DISTRIBUTE' in my Program. But it is giving the Status as 30

0 Kudos

Hi

Have you created the distribution model for the Message type (BD64)?

Regards

Vinod

0 Kudos

Hi Vinod,

I made all the configarations, whenever I execute the OUTBOUND program, it is giving the status as 30, when I process that IDoc by using transaction WE19 , it is distributing the data to partner system & updating the partner system.

Every thing is working fine, but problem is every time I need to process it. I want to avoid it.Please help me.

Configarations :

1)definined Logical Systems

2)assigned the Logical Systems to the corresponding clients

3)Maintained RFC destinations.

4)created Port

5)Defined Disribution Model

6)Defined Partner Profile , where I choose the option 'Transfer IDoc Immediately,

OUTBOUND Program :

CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'

EXPORTING

MASTER_IDOC_CONTROL = W_CTRL

  • OBJ_TYPE = ''

  • CHNUM = ''

TABLES

COMMUNICATION_IDOC_CONTROL = T_COMM

MASTER_IDOC_DATA = T_DATA

COMMIT WORK.

Please help me on this.

Regards,

Pradeep.

0 Kudos

Hi,

After calling MASTER_IDOC_DISTRIBUTE, add following code.

data: begin of int_edidd occurs 0.
          include structure edidd.
data: end of int_edidd.
call function 'EDI_OUTPUT_NEW'
         exporting
              onl_option  = 'O'             "Online"
         tables
              i_edidc     = <COMMUNICATION_IDOC_CONTROL(EDIDC) from output of MASTER_IDOC_DISTRIBUTE>
              i_edidd     = int_edidd
         exceptions
              others      = 1.
    commit work.
    call function 'DEQUEUE_ALL'
*        EXPORTING
*             _SYNCHRON = ' '
         exceptions
              others    = 1.

Regards

Vinod

0 Kudos

Hi Vinod,

Thank you so much, now it is working fine.

Thanks & Regards,

Pradeep.