gauravj6
Occasional Contributor

2级Sprint 3 Module INV01 : Formula for Shipping Method

Hello !!,

@Misbah

I have been doing Level 2 Sprint 3 - INV01 Module and stuck on formula for Shipping Method as i am getting multiple type of errors while doing LOOKUPs.

In order to populate values for Shipping Method Line Item, I need to look into SYS07 Module(Distribution Center Details) for Default Shipping Line item looking up SYS08 SKU Details'.Code and SYS08 SKU Details'.Supplied By

Is my understanding of the flow is correct ? because i am getting error while trying to use this formula as below.

gauravj6_0-1596779799091.png

Please guide me further.

Thanks and Regards

1 ACCEPTED SOLUTION

接受处理ions
Misbah
Moderator

@gauravj6

Let's try to understand how does LOOKUPs work. When you construct a formula intending to use LOOKUP there are few things that you need to consider

  1. What are the Dimensions of Source Module?
  2. 目标模块的尺寸是什么?
  3. What is the format of the Mapping used in the Formula?
  4. What is the format of the Source and Target Line items ?

In your Case

Dimensions of Source Module SYS07 Distribution Center Details issG3 Location:Distributon Center

Dimensions of Target Module is INV01 Inventory Ordering isP3 SKU

Format of the mapping has to be List or Time Period/Date

Format of Source & Target Line items has to be same

So here is a dimension mismatch. Now In order to pull values from Source Module to Target Module you want to find a connection that

you can use to pull the values - Here comes the SYS08 SKU Details module which is dimensioned byP3 SKUwhich has a line item called Distribution Center. Remember Format of this line item is very important, it has to be formatted assG3 Location: Distribution Centerand not TEXT or anything else. One last piece is about the format of the source line item, In our case it has to List format -Shipping Method and your Target Line item in INV01 module also should be formatted as List format- Shipping Method

Your formula construct should be

Source[LOOKUP: Mapping]

Here mapping has to be List formatted only. If you look at the error that you are receiving it clearly says that format other than List or Date being referenced. Hence the error

Hope that helps

Misbah

View solution in original post

8 REPLIES8
Misbah
Moderator

@gauravj6

Let's try to understand how does LOOKUPs work. When you construct a formula intending to use LOOKUP there are few things that you need to consider

  1. What are the Dimensions of Source Module?
  2. 目标模块的尺寸是什么?
  3. What is the format of the Mapping used in the Formula?
  4. What is the format of the Source and Target Line items ?

In your Case

Dimensions of Source Module SYS07 Distribution Center Details issG3 Location:Distributon Center

Dimensions of Target Module is INV01 Inventory Ordering isP3 SKU

Format of the mapping has to be List or Time Period/Date

Format of Source & Target Line items has to be same

So here is a dimension mismatch. Now In order to pull values from Source Module to Target Module you want to find a connection that

you can use to pull the values - Here comes the SYS08 SKU Details module which is dimensioned byP3 SKUwhich has a line item called Distribution Center. Remember Format of this line item is very important, it has to be formatted assG3 Location: Distribution Centerand not TEXT or anything else. One last piece is about the format of the source line item, In our case it has to List format -Shipping Method and your Target Line item in INV01 module also should be formatted as List format- Shipping Method

Your formula construct should be

Source[LOOKUP: Mapping]

Here mapping has to be List formatted only. If you look at the error that you are receiving it clearly says that format other than List or Date being referenced. Hence the error

Hope that helps

Misbah

gauravj6
Occasional Contributor

Hi@Misbah,

Thank you for the help.

I was able to populate the values in the Line Items. I will do a detailed check on the values and reconfirm the applied formula.

Regards

Gaurav Jain

ifeldman
Occasional Contributor

@Misbah

Hi there,

I am having the same issue of not knowing how to correctly format the lookup items. I know I need to use Distribution Center and SKY modules, however I keep getting an error. Any help would be great, thanks!

JimMcL
New Contributor

I thought I was following your guidance.

The mapping I had was SYS07 to SYS08 to INV01. I thought the formula below would get it done. However I get the error -Format of mapping used for lookup doesn't match any dimension of the source.

'SYS07 Distribution Center Details'.Default Shipping[LOOKUP: 'SYS08 SKU Details'.Code, LOOKUP: 'SYS08 SKU Details'.Product]

I double checked the format of the source and target both are lists. Please let me know where I have missed it.

jingru
New Contributor

Hi Jim,

Did you have this question figured? Below is the formula I tried, but I have no results showing. If you know how to solve this, would you please help? Thank you!

'SYS07 Distribution Center Details'.Default Shipping[LOOKUP: 'SYS08 SKU Details'.Code]

Shashikala
Contributor

Perhaps you've figured out by now, the lookup item was wrong the formula should be :

'SYS07 Distribution Center Details'.Default Shipping[LOOKUP: 'SYS08 SKU Details'.Supplied By]

HongXiangChin
New Contributor

'SYS07 Distribution Center Details'.Default Shipping[LOOKUP: 'SYS08 SKU Details''.Distribution Center]
afrozonline
New Contributor

Source[LOOKUP: Mapping]

I believe your source is correct, figure out the lookup: Mapping from SKU Details Module. Please note that it has to be Mapping has to be List of values referring distribution center.