XML 148 R126.htm IDEA: XBRL DOCUMENT
v3.21.1

Trade Receivables - Summary of Evolution of the Provision for Doubtful Trade Receivables (Parenthetical) (Detail) $ in Millions | Dec. 31, 2020 ARS ($)
--- | ---
Disclosure of information about evolution of the provsion for doubtful trade receivables abstract [Abstract] |
Credits included in increases charged to expenses due to accumulated daily differences | $ 8,861

X
- Definition Credits included in increases charged to expenses. + References No definition available. + Details
Name: | ypf_CreditsIncludedInIncreasesChargedToExpenses
Namespace Prefix: | ypf_
Data Type: | xbrli:monetaryItemType
Balance Type: | debit
Period Type: | instant

X
- Definition Disclosure of information about evolution of the provision for doubtful trade receivables. + References No definition available. + Details
Name: | ypf_DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesabstractAbstract
Namespace Prefix: | ypf_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration