Application Development and Automation 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: 
Read only

Error in Idoc

Former Member
0 Likes
1,681

Hi,

I have intercompany billing document.There EDI output got triggered through RD04 output.It creates a IDOC successfully.But when I check the IDOC I see status message 51(Application document not posted).Error message is showing as below..

"Document t3es5 does not exist

Message no. 06019

"

can you please tell me how I can resolve the problem?

Regards,

Bedayan.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
878

Hi Badayana,

I took this code from standard program. You can check these tables with ur values, if any condition failes, it results the same message.

if not xbelnr is initial.

select single * from rbkp "Is an invoice existing??

where belnr = xbelnr

and gjahr = xgjahr

and xrech = kreuz

and vgart = 'RD'.

if not sy-subrc is initial.

message id '06' type 'E' number '019' with xbelnr.

endif.

select * from rseg up to 1 rows "look for the PO number

where belnr = xbelnr

and gjahr = xgjahr.

exit.

endselect.

if not sy-subrc is initial.

message id '06' type 'E' number '019' with xbelnr.

endif.

  • "Exists a service entry sheet?

select * from essr up to 1 rows "Read service entry sheet

where ebeln = rseg-ebeln

and ebelp = rseg-ebelp.

exit.

endselect.

if not sy-subrc is initial.

message id '06' type 'E' number '019' with rseg-ebeln.

endif.

h_awkey(10) = rbkp-belnr.

h_awkey+10 = rbkp-gjahr.

select * from bkpf up to 1 rows "Read accounting document

where awtyp = 'RMRP'

and awkey = h_awkey.

exit.

endselect.

if not sy-subrc is initial.

message id '06' type 'E' number '019' with rbkp-belnr.

endif.

select * from bseg up to 1 rows "Read accounting document item

where belnr = bkpf-belnr "with positive vendor line

and bukrs = bkpf-bukrs

and gjahr = bkpf-gjahr

and vorgn = 'RMRP'

and koart = 'K'

and shkzg = 'S'.

exit. .

endselect.

if not sy-subrc is initial.

message id '06' type 'E' number '019' with bkpf-belnr.

endif

--

Reddy

2 REPLIES 2
Read only

JL23
Active Contributor
0 Likes
878

find out what this number is: t3es5

the message is a kind of generic, the number can be a reference document number, or a contract number or . or or....

try to post the invoice with MIRO and see what errors come up in this transaction.

Read only

Former Member
0 Likes
879

Hi Badayana,

I took this code from standard program. You can check these tables with ur values, if any condition failes, it results the same message.

if not xbelnr is initial.

select single * from rbkp "Is an invoice existing??

where belnr = xbelnr

and gjahr = xgjahr

and xrech = kreuz

and vgart = 'RD'.

if not sy-subrc is initial.

message id '06' type 'E' number '019' with xbelnr.

endif.

select * from rseg up to 1 rows "look for the PO number

where belnr = xbelnr

and gjahr = xgjahr.

exit.

endselect.

if not sy-subrc is initial.

message id '06' type 'E' number '019' with xbelnr.

endif.

  • "Exists a service entry sheet?

select * from essr up to 1 rows "Read service entry sheet

where ebeln = rseg-ebeln

and ebelp = rseg-ebelp.

exit.

endselect.

if not sy-subrc is initial.

message id '06' type 'E' number '019' with rseg-ebeln.

endif.

h_awkey(10) = rbkp-belnr.

h_awkey+10 = rbkp-gjahr.

select * from bkpf up to 1 rows "Read accounting document

where awtyp = 'RMRP'

and awkey = h_awkey.

exit.

endselect.

if not sy-subrc is initial.

message id '06' type 'E' number '019' with rbkp-belnr.

endif.

select * from bseg up to 1 rows "Read accounting document item

where belnr = bkpf-belnr "with positive vendor line

and bukrs = bkpf-bukrs

and gjahr = bkpf-gjahr

and vorgn = 'RMRP'

and koart = 'K'

and shkzg = 'S'.

exit. .

endselect.

if not sy-subrc is initial.

message id '06' type 'E' number '019' with bkpf-belnr.

endif

--

Reddy