cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Report for update of Material with deletion Flag from R/3 to SRM

Former Member
0 Likes
242

Hi All,

Is any report for Updating material in SRM with deletion indicator for those deletion flag set in R/3...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

Hi

i dont think so any report exist. for eg. if you put deletion flag in ECC , you can not procure a material from SRM .

I believe some function module /rfc calls validates in ECC before you order a cart and it will not allow you to buy a material.

you get this error from srm

product x is designed for deletion

you can try in your system .

br

muthu

Former Member
0 Likes

Hi muthu...

Thank u for your earlier reply...

You mean to say...If we set Deletion flag indicator In R/3..is it automatically replicated to SRM with Deletion.If this is case

can u plz explain......

If we create SC for deleted materials..whether validation is takes place from ECC or SRM side. Anyway it does not allow u Create SC..for deletd items from ECC side.

Awaiting for your reply.....

Thanks in advance..

Former Member
0 Likes
  • Check material status

IF mat_mmsta EQ '--'.

lv_msgv1 = iv_ordered_prod.

CALL FUNCTION 'BBP_PD_MSG_ADD'

EXPORTING

i_msgty = c_msgty_e

i_msgid = 'BBP_PD'

i_msgno = 426

i_msgv1 = lv_msgv1

EXCEPTIONS

log_not_found = 1

OTHERS = 2.

IF sy-subrc <> 0.

PERFORM abort.

ENDIF.

IF c_on = c_off.

MESSAGE e426(bbp_pd) WITH lv_msgv1.

ENDIF.

ENDIF.

if not mat_lvorm is initial.

lv_msgv1 = iv_ordered_prod.

call function 'BBP_PD_MSG_ADD'

program name LBBP_PDIGPF2R

  • Check material in backend

CALL FUNCTION 'META_MATERIAL_READ'

EXPORTING

i_mtcom = ls_mtcom_eci

logical_system = iv_log_system

IMPORTING

e_mmsta = mat_mmsta

e_lvorm = mat_lvorm

EXCEPTIONS

mat_not_found = 1

OTHERS = 2.

IF sy-subrc <> 0.

lv_msgv1 = iv_ordered_prod.

lv_msgv2 = iv_plant.

CALL FUNCTION 'BBP_PD_MSG_ADD'

EXPORTING

i_msgty = c_msgty_e

i_msgid = 'BBP_PD'

i_msgno = 275

i_msgv1 = lv_msgv1

i_msgv2 = lv_msgv2

EXCEPTIONS

log_not_found = 1

OTHERS = 2.

IF sy-subrc <> 0.

PERFORM abort.

ENDIF.

IF c_on = c_off.

MESSAGE e275(bbp_pd) WITH lv_msgv1 lv_msgv2.

ENDIF.

ENDIF.

EXPORTING

i_msgty = c_msgty_e

i_msgid = 'BBP_PD'

i_msgno = 345

EXCEPTIONS

log_not_found = 1

others = 2.

if sy-subrc <> 0.

perform abort.

endif.

if c_on = c_off.

IN SRM PROGRAM LBBP_PDIGPF2R BBP_PD 345 throws message "product x is designed for deletion"

but it is validationg from fm 'META_MATERIAL_READ'

please close this thread

br

muthu