XML 171 R137.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Revenues - Detailed Information about Revenue (Parenthetical) (Detail) - ARS ($) $ in Millions | 12 Months Ended
--- | ---
Dec. 31, 2017 | Dec. 31, 2016 | Dec. 31, 2015
Disclosure Of Revenues [Abstract] |  |  |
Additional injection stimulus program | $ 12,840 | $ 16,757 | $ 12,345

X
- Definition The amount of revenue arising from the sale of natural gas. [Refer: Current natural gas; Revenue] + References Reference 1: http://www.xbrl.org/2009/role/commonPracticeRef -Note Expiry date 2018-01-01 -Name IAS -Number 18 -IssueDate 2017-01-01 -Paragraph 35 -Subparagraph b -Clause i -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=18&date=2017-03-02&anchor=para_35_b_i&doctype=Standard&book=B -URIDate 2017-03-09 Reference 2: http://www.xbrl.org/2009/role/commonPracticeRef -Name IAS -Number 1 -IssueDate 2017-01-01 -Paragraph 112 -Subparagraph c -URI http://eifrs.ifrs.org/eifrs/XBRL?type=IAS&num=1&date=2017-03-01&anchor=para_112_c&doctype=Standard -URIDate 2017-03-09 + Details
Name: | ifrs-full_RevenueFromSaleOfNaturalGas
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | duration

X
- Definition Disclosure Of Revenues. + References No definition available. + Details
Name: | ypf_DisclosureOfRevenuesAbstract
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration