Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Suggested answer

Set Purchase order field based on Purchase requisition default dimension

(1) ShareShare
ReportReport
Posted on by 1,911
Hi Experts,
 
Requirement is to set Purchase Order set field (AddressShipping) lookup value based on Purchase requisition CostCenter value.
 
If CostCenter=='30' set Purchase Order field (AddressShipping) to 'Eastern'
If CostCenter=='20' set Purchase Order field(AddressShipping) to 'Central'
If CostCenter=='10' set Purchase Order field(AddressShipping) to 'Western'
 
Whenever Purchase requisition convert to Purchase order the field(AddressShipping) set automatically based on CostCenter.
 
Please guide me how to start and achieve this.
 
Thanks,
Faiz
 
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,569 Super User 2024 Season 2 on at
    Set Purchase order field based on Purchase requisition default dimension
    Hi,
     
    The default dimension is copied from Purchase requisition to Purchase order, you can add your code in Purchase order creation code, I think you should trace the code in order to know when to put your code, you can start from PurchAutoCreate_PurchReq class , create method.
     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

  • faiz7049 Profile Picture
    faiz7049 1,911 on at
    Set Purchase order field based on Purchase requisition default dimension
    Hi Waed,
     
    AddressShipping custom field and has lookup value. AddressShipping available only on Purchase Order not available in Purchase requisition table.
     
    Thanks,
    Faiz
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,569 Super User 2024 Season 2 on at
    Set Purchase order field based on Purchase requisition default dimension
    Hi,
     
    AddressShipping is a standard or custom field? In general, you should trace the code and see where the values (The fields that are sent from PR to PO )are set. 
     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

  • faiz7049 Profile Picture
    faiz7049 1,911 on at
    Set Purchase order field based on Purchase requisition default dimension
    Hi Waed,
     
    Thank you for reply. I want to know where I should write the code. I want Purchase Order field lookup filled when Purchase requisition is converted to Purchase Order.
     
    Thank,
    Faiz
  • Suggested answer
    Waed Ayyad Profile Picture
    Waed Ayyad 6,569 Super User 2024 Season 2 on at
    Set Purchase order field based on Purchase requisition default dimension
    Hi,
     
    Did you write the code? Do you want help in extracting dimension values from default dimension field?
     
     
     

    Thanks,

    Waed Ayyad

    If this helped, please mark it as "Verified" for others facing the same issue

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,472 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,560 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans