Need Help with SAP MM Interview Questions - Looking for Expert Advice!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2023 12:27 PM
Hey,
I am currently preparing for an SAP MM (Materials Management) interview and stumbled upon a great resource. However, I'm facing a challenge with a specific problem related to SAP MM.
Problem Description: I am trying to calculate the procurement lead time for a material in SAP MM. The procurement lead time includes the time taken for processing purchase requisitions, converting them into purchase orders, and receiving the ordered materials. I need to write a Python script to automate this calculation based on specific input parameters.
Input Parameters:
- Processing Time for Purchase Requisition (in days)
- Processing Time for Purchase Order (in days)
- Transit Time for Material Delivery (in days)
Output:
- Procurement Lead Time (in days)
Sample Code (Python):
def calculate_procurement_lead_time(pr_time, po_time, transit_time):
total_lead_time = pr_time + po_time + transit_time
return total_lead_time
# Example Input Parameters
pr_processing_time = 2 # days
po_processing_time = 3 # days
transit_delivery_time = 5 # days
# Calculate Procurement Lead Time
lead_time = calculate_procurement_lead_time(pr_processing_time, po_processing_time, transit_delivery_time)
# Output
print("Procurement Lead Time: {} days".format(lead_time))
I've written a basic Python function to calculate the procurement lead time based on the input parameters. However, I'm not sure if this covers all the aspects of SAP MM procurement lead time calculation. I would really appreciate it if someone could review this code and let me know if I'm missing any important factors in the calculation or if there's a more efficient way to do this.