cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid error message from Inlcude LBBP_PDIGPF2R

former_member504446
Participant
0 Kudos
240

Dear gurus,

our SRM system can be used not only to create PRs for non-stock material, but also reservations for stock materials.

Now, we would like to use the plant specific material status in SAP MM material master to mark stock material that is not to be orderes from our vendor again. Unfortunatelly, SRM gives an error message for those materials on SC creation ("Purchase of product ... is not permitted in the backend", BBP_PD 426, caused in include LBBP_PDIGPF2R).

We would like to have SRM ignore the material status for stock material. Is there a way to do this?

Cheers
Alicia

Accepted Solutions (0)

Answers (1)

Answers (1)

ImreMatyas
Product and Topic Expert
Product and Topic Expert
0 Kudos

Dear Alicia,

If I understand well your requirement is to avoid the error BBP_PD 426.

As I see the BBP_PD 426 >> Purchase of product &1 is not permitted in the back end >> is hardcoded as error, so it will be issued everytime the material status is not OK against the backend.

I have made some debugging in my internal system. I have found that in the afore-mentioned LBBP_PDIGPF2R (FORM check_plant) >> the plant specific material status is brought back by the Function META_MATERIAL_READ >> imports the results from the backend into the structure 'mat_mmsta'.

Now that function in turn calls the META_MATERIAL_READ which reads out an Adapter as per the Customizing table BBP_FUNCTION_MAP:

FUNCTION 'META_BAPI_DISPATCH'

EXPORTING

object = 'BUS1001' ==========>>> this object is the material master

method = 'Read' ==========>>> this is the "read" command.

And will read the subsequent adapter function like the above BS4I_MATERIAL_READ (RFC-call to the backend).

Now, in case you maintain the above customizing table BBP_FUNCTION_MAP with a customer specific reading Adapter like a "ZBS4I_MATERIAL_READ" >> then you can copy the contents of the function BS4I_MATERIAL_READ and place a one-line code snippet at the end to bring a specific value into your 'mat_mmsta'.

Does it make any sense? I hope so.

Best regards,

Imre