cancel
Showing results for 
Search instead for 
Did you mean: 

Case Link GR-PO to LandedCost

ivan_leonardo
Participant
0 Kudos

Hi,

I have a problem, I create LandedCost Copy from GR-PO then after a while I realize there is a mistake then I have to revise LandedCost by creating new landed cost Copy From LandedCost not GR-PO :

1st LandedCost (the wrong one) can easily link to GR-PO since it is copy from GR-PO

BUT the 2nd LandedCost can't be Link to GRPO since it is copy from LandedCost.

Any solution to link GR-PO to the 2nd Landed Cost (the right one) ?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

1.  I realize there is a mistake then I have to revise LandedCost by creating new landed cost Copy From Landed Cost not GR-PO

Where did you get this idea or information?

2. To add any additional cost to GRPO, you can create second landed cost for same GRPO

3. Join between  GRPO and  Landed cost as follow:

SELECT T0.[DocNum], T0.[DocDate], T1.[ItemCode], T1.[Dscription], T1.[Quantity],T1.[BaseEntry],t2.docentry,T1.[LineNum],T2.[BaseLine], T1.[Reference] FROM OIPF T0  INNER JOIN IPF1 T1 ON T0.DocEntry = T1.DocEntry left join  PDN1 T2 on  T1.[BaseEntry]  = t2.docentry and  T1.[LineNum]  =  T2.[BaseLine] INNER JOIN OPDN T3 ON T2.DocEntry = T3.DocEntry

4. There is another common field between GRPO and landed cost table is reference field.

SELECT T0.[DocNum], T1.[ItemCode], T0.[DocTotal] FROM OIPF T0  INNER JOIN IPF1 T1 ON T0.DocEntry = T1.DocEntry WHERE T1.[Reference]  = [%0]

Thanks & Regards,

Nagarajan

ivan_leonardo
Participant
0 Kudos

1.  I realize there is a mistake then I have to revise LandedCost by creating new landed cost Copy From Landed Cost not GR-PO

Where did you get this idea or information?

I got this info from my SAP Consultant, do u have other suggestion ?

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Please check this thread:

How to Reverse Landed Cost | SCN

Thanks & Regards,

Nagarajan

Answers (1)

Answers (1)

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

1. You can reopen same GRPO in landed cost window. To open (display) in landed cost window again, Open GRPO---> Data--->Advanced--->Open for landed cost.

2.  From 9.0 PL05 onwards, you can link base landed cost document to another landed cost document, provided perpetual inventory.

Thanks & Regards,

Nagarajan


ivan_leonardo
Participant
0 Kudos

Naga I dont understand your info, I need to create a query that link OPDN/PDN1 to OIPF/IPF1/IPF2

Rgds,

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

The word "Link" confused me and I thought you are linking GRPO and landed cost. It will be better to use "JOIN" instead of  link.

But still above information valid---

1. How did you add second landed cost document?

2. Advice your version and PL.

Thanks & Regards,

Nagarajan

ivan_leonardo
Participant
0 Kudos

Sorry Naga, My mistake. yes i want to JOIN table.

I am using B1 9.0 PL4 for SAP HANA

1. How did you add second landed cost document?

     I create landed cost copy from 1st landed cost NOT copy from GRPO, so the BaseEntry relate to the 1st LandedCost.

     the 1st one Copy from GRPO so can JOIN to GRPO using BaseEntry

I also found OpenForLaC field on IPF1, what is that mean if the value Y or N ?

Rgds,

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi Ivan,

No problem.

Sorry to say i don't have same version to write query for you. Further your one is SAP HANA.

Thanks & Regards,

Nagarajan

ivan_leonardo
Participant
0 Kudos

Naga can U show me the Query for SAP SQL ? maybe I can use the concept.

kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Let me try and update.

Thanks & Regards,

Nagarajan