‎2010 May 19 7:32 PM
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.
‎2010 May 20 7:02 AM
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
‎2010 May 19 8:48 PM
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.
‎2010 May 20 7:02 AM
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