XML 144 R122.htm IDEA: XBRL DOCUMENT
v3.21.1

Inventories - Summary of Inventories (Detail) - ARS ($) $ in Millions | Dec. 31, 2020 | Dec. 31, 2019 | Dec. 31, 2018 | Dec. 31, 2017
--- | --- | --- | --- | ---
Disclosure of inventories [line items] |  |  |  |
Inventories | $ 100,137 | $ 80,479 | $ 53,324 | $ 27,149
Refined products [member] |  |  |  |
Disclosure of inventories [line items] |  |  |  |
Inventories | 59,971 | 50,563 | 33,583 |
Crude oil and natural gas [member] |  |  |  |
Disclosure of inventories [line items] |  |  |  |
Inventories | 33,066 | 24,756 | 14,571 |
Products in process [member] |  |  |  |
Disclosure of inventories [line items] |  |  |  |
Inventories | 1,966 | 2,259 | 1,177 |
Raw materials, packaging materials and others [member] |  |  |  |
Disclosure of inventories [line items] |  |  |  |
Inventories | $ 5,134 | $ 2,901 | $ 3,993 |

X
- Definition The amount of current inventories. [Refer: Inventories] + References Reference 1: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 2 -IssueDate 2020-01-01 -Paragraph 36 -Subparagraph b -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=2&code=ifrs-tx-2020-en-r&anchor=para_36_b&doctype=Standard -URIDate 2020-01-01 Reference 2: http://www.xbrl.org/2003/role/disclosureRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 54 -Subparagraph g -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_54_g&doctype=Standard -URIDate 2020-01-01 Reference 3: http://www.xbrl.org/2003/role/exampleRef -Name IAS -Number 1 -IssueDate 2020-01-01 -Paragraph 68 -URI http://eifrs.ifrs.org/eifrs/xifrs-link?type=IAS&num=1&code=ifrs-tx-2020-en-r&anchor=para_68&doctype=Standard -URIDate 2020-01-01 + Details
Name: | ifrs-full_Inventories
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Disclosure of inventories [line items] + References No definition available. + Details
Name: | ypf_DisclosureOfInventoriesLineItems
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis=ypf_RefinedProductsMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis=ypf_CrudeOilAndCommercializedNaturalGasMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis=ypf_ProductsInProcessMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis=ypf_RawMaterialsPackagingMaterialsAndOthersMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |