cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear Mapping Error Bdocs

Former Member
0 Kudos

Hi,

We are getting Mapping error bdcos in SMW01 if there is an error while data is downloading from ECC to CRM. We are fixing the issue by looking at the BDOC error description. We are unable to re-process these error bdocs after fixing the issue as it is not allowing. To fix the issue we are re-processing the corresponding queue in SMQ2 and queues are processing successfully. the problem is these error bdocs are sitting in data base and we want to clear them.

Can any one please let me know how we can re-process these kind of mapping error bdocs?

Thanks,

Rajinikanth

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Mapping Error BDOCs have the status E08. The BDOC is incomplete state, so the BDOC cannot be processed. In this case what you have done(reprocessing the queue ) is right. Once the queue is processed, a new BDOC is formed, so you can delete the bdoc in smw01, so the bdoc gets F03(Set to Processed).

Answers (3)

Answers (3)

Former Member
0 Kudos

The batch job MW_REORG_300 will delete the error bdocs. Scheduled this batch job and all mapping error bdocs got deleted.

Thanks,

Rajinikanth G

Former Member
0 Kudos

Hi ,

Below logic may be useful.

SELECT bdoc_id

bdoc_type

bdoc_state

snd_date

snd_time

qname

INTO TABLE lt_inque

FROM smw3_bdoc

WHERE bdoc_type IN s_bdoc

AND qname IN s_qname

AND bdoc_state IN r_err.(r_err = E01,E02.....E09)

LOOP AT lt_inque INTO ls_inque.

DATA:lv_bdoc_id TYPE smog_tid.

CLEAR lv_bdoc_id.

lv_bdoc_id = ls_inque-bdoc_id.

CALL METHOD cl_smw_flow=>restart_processing

EXPORTING

bdoc_id = lv_bdoc_id

EXCEPTIONS

bdoc_not_found = 1

bdoc_locked = 2

bdoc_was_processed = 3

internal_error = 4

OTHERS = 5.

ENDLOOP.

Thank you,

Gangadhar.S

Former Member
0 Kudos

Hello Rajinikanth,

What data you are trying to download from ECC to CRM?

If you can tell me the mapping error which you can see in txn:SMW01 , then I can check further.

Best Regards,

Shanthala Kudva.