XML 167 R133.htm IDEA: XBRL DOCUMENT
v3.8.0.1

Loans - Details of Negotiable Obligations (Parenthetical) (Detail) - Medium Term Notes [member] $ in Millions | Dec. 31, 2017 USD ($)
--- | ---
Two Thousand Eight [Member] |
Disclosure of detailed information about borrowings [line items] |
Negotiable amount | $ 10,000
Nineteen Ninety Seven [Member] |
Disclosure of detailed information about borrowings [line items] |
Negotiable amount | $ 1,000

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Negotiable amount. + References No definition available. + Details
Name: | ypf_NegotiableAmount
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | credit
Period Type: | instant

X
- Details
Name: | ifrs-full_ClassesOfAssetsAxis=ypf_MediumTermNotes1Member
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ypf_TwoThousandEightMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_MaturityAxis=ypf_NineteenNinetySevenMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |